? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Policies/

Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Upload File :
Current File : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Policies/viewendorsement.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if(isset($_SESSION['searchoption']))
{
    if(!empty($_SESSION['searchoption']))
    {
        $searchtxt=$_SESSION['searchtxt'];
        $searchoption=$_SESSION['searchoption'];
    }
    else
    {
        $searchtxt = "";
        $searchoption = "";
    }
}
else
{
    $searchtxt = "";
    $searchoption = "";
}

?> 
<script>
    function credit_exist(id)
    {

        var req = new XMLHttpRequest();
        req.open('GET', "<?= site_url('documents/credit_existss/') ?>"+"/"+id, false);
        req.send(null);
        if(req.status == 200)
            {


        if(req.responseText==0)
            {

         alert('No Credit Note');
        return false;
            }
            }

    }
</script>
<div class="select-bar">
		<label>
                    <img src="<?=base_url()?>/assets/images/add-icon.png" title="Add New"  class="clickimage" onclick="addendorsement(1)" alt="Add New" align = "top" width="25" height="25"  /></label>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <label> Search For <input type="text" name="search" id="search" value="<?=$searchtxt;?>"  style="background-image: none;">in <select id ="selectsearch" name="selectsearch"><option value="">All</option>
                <option value="policyno" <?php if ($searchoption == "policyno") echo "selected"; ?>>Policy No</option>
                <option value="endpolicyno" <?php if ($searchoption == "endpolicyno") echo "selected"; ?>>Endorsement Policy No</option>
                <option value="date" <?php if ($searchoption == "date") echo "selected"; ?>>Date</option>
                <option value="endrefno" <?php if ($searchoption == "endrefno") echo "selected"; ?>>Endorsement Ref No</option>
                <option value="customername" <?php if ($searchoption == "customername") echo "selected"; ?>>Customer Name</option>
                <option value="covername" <?php if ($searchoption == "covername") echo "selected"; ?>>Type of Cover</option>
      
  

         </select>
</label>
    <label for="submit">
        <button type="submit" class="clickimage" id="submit" onclick="searchendorsement(document.getElementById('search').value,document.getElementById('selectsearch').value);">Search</button></label>



		  </div>


 <table class="sort" cellpadding="0" cellspacing="0">
                                    <caption>Endorsements</caption>
                                    <thead><tr>

						<th>Sl No.</th>
                                                <th>Endorsement Ref No</th>
                                                 <th>Customer Name</th>
                                                <th>Type of Cover</th>
                                                <th>Policy No</th>
                                               
                                                <th class="last">Action</th>




					</tr></thead>


    <?php
if($searchinfo == "")
    {
    if ($viewinfo->num_rows() > 0) {
    
          $z=1;
        foreach ($viewinfo->result() as $row) {

 if($z%2==0)
                {
                 $alt="alt";
                }
                else
                  $alt="alt1";

    $covername=$this->policiesmodel->get_cover_policy($row->policyid);
    $policynum=$this->mastermodel->get_data_srow('policynote',$row->policyid,'id');

    $customername=$this->policiesmodel->get_customer_policy($row->policyid);
    $placing_slip_id=$this->policiesmodel->getplacingslipid($row->policyid);


                       echo '<tr  class="'.$alt.'"><td>'.$id.'</td><td>';?> <a href="javascript:void(0)" onclick="singleendorsement(0,<?=$row->id;?>)"><?php echo $row->endrefno; ?></a><?php echo '</td><td>'.$customername.'</td><td>'.$covername.'</td><td>'.$policynum->policyno.'</td>

                         <td >';?>
                          <div id="console_fronticons_4">
                              <?php
                              if(empty($row->endpolicyno))
                              {
                              ?>
                              <div class="fronticons1">
                                <img src="<?=base_url()?>/assets/images/addpolicyno.png" title="Add Policy No" width="20" height="20" alt="Add Policy No" align = "center" class="clickimage endpol" onclick="addendpolicy(<?=$row->id;?>)" />
                               </div>
                              <?php
                              }
                              ?>
                              <div class="fronticons1">
                                <img src="<?=base_url()?>/assets/images/upload.png" title="Upload" width="20" height="20" alt="Upload" align = "center" class="clickimage uploadform" onclick="showuploadform(<?=$row->id?>,'endorsement_files','endorsementid')" alt="" />
                               </div>
                            <div class="fronticons1">
                         
                         <img src="<?=base_url()?>/assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center"  onclick="editendorsement(1,<?=$row->id?>)" /></div>

                              <?php

                              $drefid=$this->documentsmodel->getreferencebyplacingslip($row->id,'6','endorsement');
                              $crefid=$this->documentsmodel->getreferencebyplacingslip($row->id,'5','endorsement');

                              ?>

                           <div class="fronticons1">   <?=anchor('documents/debit_ps/'.$placing_slip_id.'/endorsement/'.$row->id.'/'.$drefid, '<img src="'.base_url().'/assets/images/blueup.jpg" title="Debit Note" align = "center" width="20" height="20">',array('class'=>'delete','onclick'=>"return confirm('Download Debit Note')"))?></div>

                           <?php
                           if($row->mode=='Deduction')
                           {

                           ?>
                           <div class="fronticons1"><?=anchor('documents/credit_ps/'.$placing_slip_id.'/endorsement/'.$row->id.'/'.$crefid, '<img src="'.base_url().'/assets/images/bluedown.jpg" title="Credit Note" align = "center" width="20" height="20">',array('class'=>'delete','onclick'=>"return confirm('Download Credit Note')"))?></div>
                           <?php
                           }
                           else
                           {
                           
                           ?>

                         <div class="fronticons1"><?=anchor('documents/credit_ps/'.$placing_slip_id.'/endorsement/'.$row->id.'/'.$crefid, '<img src="'.base_url().'/assets/images/bluedown.jpg" title="Credit Note" align = "center" width="20" height="20">',array('class'=>'delete','onclick'=>"return credit_exist($row->id)"))?></div>
                         <?php
                           }
                         ?>

                          </div>

  <?php  echo '</td></tr>' ;
              $id++;
                $z++;
 }
    }
    }
    else
        {
    $res = mysql_query($searchinfo);

    if (mysql_num_rows($res) > 0) {
       
          $z=1;
        while ($row = mysql_fetch_array($res)) {
                if($z%2==0)
                {
                 $alt="alt";
                }
                else
                  $alt="alt1";
                  $covername=$this->policiesmodel->get_cover_policy($row['policyid']);
                  $policynum=$this->mastermodel->get_data_srow('policynote',$row['policyid'],'id');
                  $customername=$this->policiesmodel->get_customer_policy($row['policyid']);

                  $placing_slip_id=$this->policiesmodel->getplacingslipid($row['policyid']);

                echo '<tr  class="'.$alt.'">
                        <td>'.$id.'</td>
                        <td>';?> <a href="javascript:void(0)" onclick="singleendorsement(0,<?=$row['id'];?>)"><?php echo $row['endrefno']; ?></a><?php echo '</td>
                        <td>'.$customername.'</td>
                        <td>'.$covername.'</td>
                        <td>'.$policynum->policyno.'</td>

                         <td >';?>

                         <div id="console_fronticons_4">
                              <?php
                              if(empty($row['endpolicyno']))
                              {
                              ?>
                              <div class="fronticons1">
                                <img src="<?=base_url()?>/assets/images/addpolicyno.png" title="Add Policy No" width="20" height="20" alt="Add Policy No" align = "center" class="clickimage endpol" onclick="addendpolicy(<?=$row['id'];?>)" />
                               </div>
                              <?php
                              }
                              ?>
                              <div class="fronticons1">
                                <img src="<?=base_url()?>/assets/images/upload.png" title="Upload" width="20" height="20" alt="Upload" align = "center" class="clickimage uploadform" onclick="showuploadform(<?=$row['id']?>,'endorsement_files','endorsementid')" alt="" />
                               </div>
                            <div class="fronticons1">

                         <img src="<?=base_url()?>/assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center"  onclick="editendorsement(1,<?=$row['id']?>)" /></div>

                              <?php

                              $drefid=$this->documentsmodel->getreferencebyplacingslip($row['id'],'6','endorsement');
                              $crefid=$this->documentsmodel->getreferencebyplacingslip($row['id'],'5','endorsement');

                              ?>

                           <div class="fronticons1">   <?=anchor('documents/debit_ps/'.$placing_slip_id.'/endorsement/'.$row['id'].'/'.$drefid, '<img src="'.base_url().'/assets/images/blueup.jpg" title="Debit Note" align = "center" width="20" height="20">',array('class'=>'delete','onclick'=>"return confirm('Download Debit Note')"))?></div>

                           <?php
                           if($row['mode']=='Deduction')
                           {

                           ?>
                           <div class="fronticons1"><?=anchor('documents/credit_ps/'.$placing_slip_id.'/endorsement/'.$row['id'].'/'.$crefid, '<img src="'.base_url().'/assets/images/bluedown.jpg" title="Credit Note" align = "center" width="20" height="20">',array('class'=>'delete','onclick'=>"return confirm('Download Credit Note')"))?></div>
                           <?php
                           }
                           else
                           {

                           ?>

                         <div class="fronticons1"><?=anchor('documents/credit_ps/'.$placing_slip_id.'/endorsement/'.$row['id'].'/'.$crefid, '<img src="'.base_url().'/assets/images/bluedown.jpg" title="Credit Note" align = "center" width="20" height="20">',array('class'=>'delete','onclick'=>"return credit_exist(".$row['id'].")"))?></div>
                         <?php
                           }
                         ?>

                          </div>
                  <?php  echo '</td></tr>' ;
              $id++;
                $z++;

        }
    }

        }
?>


                                        </table>


<ul class="paginate">
 <li class="pagsel"onclick="paginationendorsementsearch('1','<?=$searchoption?>','<?=$searchtxt?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li>
    <li class="pagsel" <?php if($pagenum>1){ ?> onclick="paginationendorsementsearch('<?=$pagenum-1?>','<?=$searchoption?>','<?=$searchtxt?>')" <?php } ?> > <img src="<?php echo base_url() ?>/assets/images/prev.gif"/> </li>
<?php

//Pagination Numbers
for($i=$startpage; $i<=$endpage; $i++)
{

 if($pagenum==$i )
   {?>
  <li class="pagsel" onclick="paginationendorsementsearch('<?=$i?>','<?=$searchoption?>','<?=$searchtxt?>')"><?=$i?></li>
   <?php }
   else
    {?>
  <li class="pag" onclick="paginationendorsementsearch('<?=$i?>','<?=$searchoption?>','<?=$searchtxt?>')"><?=$i?></li>
   <?php }



}
?>
<li class="pagsel" <?php if($pagenum<$pages){ ?>  onclick="paginationendorsementsearch(<?=$pagenum+1?>,'<?=$searchoption?>','<?=$searchtxt?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li>
    <li class="pagsel" onclick="paginationendorsementsearch('<?=$pages?>','<?=$searchoption?>','<?=$searchtxt?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li>

</ul>

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net