?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/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 |
Current File : /home1/savoy/public_html/savoyglobal.net/sgms/application/views/Timesheet/view_client_timesheet.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar"> <label> <img src="<?=base_url()?>assets/images/add-icon.png" title="Add New" class="clickimage" onclick="addformdisplay('add_client_timesheet','Timesheet')" alt="Add New" align = "center" width="25" height="25" /> </label> </div> <div id="searchdiv"> <?php $attributes=array('id'=>'searchvalidateform','class'=>'customForm'); echo form_open('timesheet/viewintimesheetsearch/search_client_timesheet/view_client_timesheet/1',$attributes); if(isset($_SESSION['searchdata'])) { $searchdata=$_SESSION['searchdata']; if(!empty($searchdata)) { $searchtext=$searchdata['searchtext']; $searchfield=$searchdata['searchopt']; } else { $searchtext = ""; $searchfield = ""; } } else { $searchtext = ""; $searchfield = ""; } ?> Search For <input type="text" name="searchtext" id="searchtext" value="<?=$searchtext;?>"> In <select name="searchopt" id="searchopt"> <option value="job_code">Select</option> <option <?php if ($searchfield == "job_code") echo "selected"; ?> value="job_code">Job Code</option> <option <?php if ($searchfield == "customer_name") echo "selected"; ?> value="customer_name">Customer Name</option> <option <?php if ($searchfield == "customer_purchase_order_no") echo "selected"; ?> value="customer_purchase_order_no">Customer Purchase Order No</option> <option <?php if ($searchfield == "client_timesheet_received_date") echo "selected"; ?> value="client_timesheet_received_date">Timesheet Received date</option> <option <?php if ($searchfield == "client_timesheet_submission_date") echo "selected"; ?> value="client_timesheet_submission_date">Timesheet Submission Date</option> </select> <input type="submit" id="button1" onclick="addformdata('searchvalidateform')" class="clickimage" value="Search"/> <?php echo form_close(); ?> </div> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Client Timesheet</caption> <thead> <tr> <th>Sl No</th> <th>Job Code</th> <th>Customer Name</th> <th>Customer Purchase<br/> Order No</th> <th>Timesheet Received Date</th> <th>Timesheet Submission Date</th> <th>Site</th> <th width="10%">Action</th> </tr> </thead> <tbody> <?php if ($viewinfo->num_rows() > 0) { $table=""; $field=""; $z=1; foreach ($viewinfo->result() as $row) { if($z%2==0) $alt="alt"; else $alt="alt1"; echo '<tr class="'.$alt.'"> <td>'.$id.'</td>'; ?> <td><a href="#" onclick="displayformdata('timesheet','single_page','<?=$row->client_timesheet_id;?>','payroll_client_timesheet','client_timesheet_id','single_client_timesheet')" ><?=$row->job_code;?></a></td> <?php echo '<td>'.$row->customer_name.'</td> <td>'.$row->customer_purchase_order_no.'</td> <td>'.$this->mastermodel->convertdatenormalformat($row->client_timesheet_received_date).'</td> <td>'.$this->mastermodel->convertdatenormalformat($row->client_timesheet_submission_date).'</td> <td>'.$row->site_name.'</td>'; ?> <td> <div id="console_fronticons_4"> <div class="fronticons"> <a class="inliexample2" href="#" onclick="enter_timesheet('<?=$row->client_timesheet_id;?>')" ><img src="<?=base_url()?>assets/images/blueup.jpg" title="Enter Timesheet Details" width="20" height="20" alt="Enter Timesheet Details" align = "center" class="clickimage" /></a> </div> <div class="fronticons"> <a class="inliexample2" href="#" onclick="display_client_timesheet('<?=$row->client_timesheet_id;?>')" ><img src="<?=base_url()?>assets/images/bluedown.jpg" title="View Timesheet Details" width="20" height="20" alt="View Timesheet Details" align = "center" class="clickimage" /></a> </div> <div class="fronticons"> <img src="<?=base_url()?>assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('timesheet','edit_page','<?=$row->client_timesheet_id;?>','payroll_client_timesheet','client_timesheet_id','edit_client_timesheet')" alt="" /> </div> <div class="fronticons"> <img src="<?=base_url()?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="deletedata('payroll_client_timesheet',<?=$row->client_timesheet_id;?>,'client_timesheet_id','timesheet','viewintimesheetsearch','search_client_timesheet','view_client_timesheet','<?=$table?>','<?=$field?>')" alt="Delete" align = "center"/> </div> </div> </td> <?php $id++; $z++; } } ?> </tbody> </table> <div style="display: none;"> <div id="timesheet_details"></div> </div> <div id="pager"> <ul id="pagination-digg"> <li <?php if($pagenum>1){ ?>class="previous" <?php } else { ?> class="previous-off" <?php } ?> > <?php if($pagenum>1){ ?><a href="#" onclick="viewdata('timesheet','viewintimesheetsearch','search_client_timesheet','view_client_timesheet',<?=$pagenum-1?>);" > <?php } ?> «Previous </a> </li> <?php //Pagination Numbers for($i=$startpage; $i<=$endpage; $i++) { if($pagenum==$i ) { ?> <li class="active" ><?=$i?></li> <?php } else { ?> <li><a href="#" onclick="viewdata('timesheet','viewintimesheetsearch','search_client_timesheet','view_client_timesheet',<?=$i?>);"><?=$i?></a></li> <?php } } ?> <li <?php if($pagenum<$endpage){ ?> class="next" <?php } else { ?> class="next-off" <?php } ?>> <?php if($pagenum<$endpage){ ?><a href="#" onclick="viewdata('timesheet','viewintimesheetsearch','search_client_timesheet','view_client_timesheet',<?=$pagenum+1?>);"> <?php } ?> Next » </a> </li> </ul> </div>