?
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_alert.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('settings/viewinsettingssearch/search_my_alert/view_search_my_alert/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="module_name">Select</option> <option <?php if ($searchfield == "module_name") echo "selected"; ?> value="module_name">Module Name</option> <option <?php if ($searchfield == "alert_master_caption") echo "selected"; ?> value="alert_master_caption">Alert Type</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>My Alerts</caption> <thead> <tr> <th>Sl No</th> <th>Module</th> <th>Alert Type</th> <th width="10%">Count</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"; $count_alert = $this->settingsmodel->get_my_alert_count($row->alert_master_id); ?> <tr class="<?=$alt;?>"> <td><?=$id?></td> <?php if($count_alert > 0) { ?> <td><a href="#" onclick="view_alerts(<?=$row->alert_master_id;?>,'1')" ><?=$row->module_name?></a></td> <?php } else { ?> <td><?=$row->module_name?></td> <?php } ?> <td><?=$row->alert_master_caption?></td> <td> <?=$count_alert;?> </td> <?php $id++; $z++; } } ?> </tbody> </table>