?
Current Path : /home1/savoy/www/savoyglobal.net/horeitia/application/views/Settings/ |
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/www/savoyglobal.net/horeitia/application/views/Settings/view_my_single_alerts.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript"> function mark_completed(alert_id) { $.ajax({ type: "POST", url: "<?= site_url('settings/mark_completed/') ?>/"+alert_id, success: function(msg){ if(msg!=0) { $('#mark_completed').html("Completed"); } } }); } </script> <div class="select-bar" style="height: 25px;"> </div> <div id="searchdiv"> <?php $attributes=array('id'=>'searchvalidateform','class'=>'customForm'); echo form_open('settings/view_alerts/'.$alert_master_id.'/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="emp_non_full_name">Select</option> <option <?php if ($searchfield == "emp_non_full_name") echo "selected"; ?> value="emp_non_full_name">Employee Name</option> <option <?php if ($searchfield == "emp_non_no") echo "selected"; ?> value="emp_non_no">Employee No</option> <option <?php if ($searchfield == "emp_non_no_old") echo "selected"; ?> value="emp_non_no_old">Old Employee No</option> <option <?php if ($searchfield == "trade_name") echo "selected"; ?> value="trade_name">Trade</option> <option <?php if ($searchfield == "nationality_name") echo "selected"; ?> value="nationality_name">Nationality</option> <option <?php if ($searchfield == "emp_non_date_joining") echo "selected"; ?> value="emp_non_date_joining">Date of Joining</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>Alerts for Entering <?=$alertinfo->module_name;?> / <?=$alertinfo->alert_master_caption;?></caption> <thead> <tr> <th>Sl No</th> <th>Employee Name</th> <th>Employee No</th> <th>Trade</th> <th>Nationality</th> <th>Date of Joining</th> <th>Alert Date</th> <th width="2%">Status</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"; if($row->emp_non_no[0]==',') { $row->emp_non_no=substr($row->emp_non_no, 1); } $emp_non_no = str_replace(',',', ', $row->emp_non_no); $employee = $row->emp_non_full_name.' -'.$emp_non_no; $emp_function = str_replace("~~~", $row->emp_non_id, $row->alert_function); $emp_function = str_replace("@@@", $row->alert_id, $emp_function); $emp_function = str_replace("***", $employee, $emp_function); ?> <tr class="<?=$alt;?>"> <td><?=$id;?></td> <td><?=$row->emp_non_full_name;?></td> <td><?=$emp_non_no;?></td> <td><?=$row->trade_name;?></td> <td><?=$row->nationality_name;?></td> <td><?=$this->mastermodel->convertdatenormalformat($row->emp_non_date_joining);?></td> <td><?=$this->mastermodel->convertdatenormalformat($row->alert_date);?></td> <td> <div id="console_fronticons"> <div class="fronticons" id="mark_completed"> <img src="<?=base_url()?>assets/images/task.png" title="Complete Task" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="<?=$emp_function;?>" alt="" /> </div> </div> </td> </tr> <?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="view_alerts(<?=$alert_master_id;?>,<?=$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="view_alerts(<?=$alert_master_id;?>,<?=$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="view_alerts(<?=$alert_master_id;?>,<?=$pagenum+1?>);"> <?php } ?> Next » </a> </li> </ul> </div>