?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/application/views/Onboarding/ |
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/Onboarding/view_site_allotment.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar" style="height:25px;"> </div> <div id="searchdiv"> <?php $attributes=array('id'=>'searchvalidateform','class'=>'customForm'); echo form_open('onboarding/viewinonboardingsearch/search_site_allotment/view_site_allotment/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="site_name">Select</option> <option <?php if ($searchfield == "site_name") echo "selected"; ?> value="site_name">Site Name</option> <option <?php if ($searchfield == "site_cordinator") echo "selected"; ?> value="site_cordinator">Site Cordinator</option> <option <?php if ($searchfield == "site_contact_no") echo "selected"; ?> value="site_contact_no">Contact No</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>Site</caption> <thead> <tr> <th>Sl No</th> <th>Site Name</th> <th>Site Cordinator</th> <th>Contact No</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('onboarding','single_page','<?=$row->site_id;?>','site','site_id','single_site_allotment')" ><?=$row->site_name;?></a> </td> <?php echo '<td>'.$row->site_cordinator.'</td> <td>'.$row->site_contact_no.'</td>'; ?> <td> <div id="console_fronticons"> <div class="fronticons"> <img src="<?=base_url()?>assets/images/add-icon.png" title="Add Employees to Site" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('onboarding','edit_page','<?=$row->site_id;?>','site','site_id','add_site_allotment')" alt="" /> </div> </div> </td> <?php $id++; $z++; } } ?> </tbody> </table> <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('onboarding','viewinonboardingsearch','search_site_allotment','view_site_allotment',<?=$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('onboarding','viewinonboardingsearch','search_site_allotment','view_site_allotment',<?=$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('onboarding','viewinonboardingsearch','search_site_allotment','view_site_allotment',<?=$pagenum+1?>);"> <?php } ?> Next » </a> </li> </ul> </div>