?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/application/views/Training/ |
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/Training/view_business_summary.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar"> <label> <br/><br/> </label> </div> <div id="searchdiv"> <?php $attributes=array('id'=>'searchvalidateform','class'=>'customForm'); echo form_open('training/viewintrainingsearch/search_training_proposal/view_training_proposal/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="training_title">Select</option> <option <?php if ($searchfield == "training_title") echo "selected"; ?> value="training_title">Title</option> <option <?php if ($searchfield == "training_date") echo "selected"; ?> value="training_date">Date</option> <option <?php if ($searchfield == "activity_name") echo "selected"; ?> value="activity_name">Project</option> <option <?php if ($searchfield == "training_code") echo "selected"; ?> value="training_code">Training Code</option> <option <?php if ($searchfield == "venue") echo "selected"; ?> value="venue">Venue</option> <option <?php if ($searchfield == "trainer") echo "selected"; ?> value="trainer">Trainer</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>Business Summary</caption> <thead> <tr> <th>Sl No</th> <th>Date</th> <th>Project</th> <th>Training Title</th> <th>Training Code</th> <th>Trainer</th> <th>Venue</th> </tr> </thead> <tbody> <?php if ($viewinfo->num_rows() > 0) { $table="training_proposal_details"; $field="training_id"; $z=1; $i=($pagenum-1)*10; foreach ($viewinfo->result() as $row) { if($z%2==0) $alt="alt"; else $alt="alt1"; ?> <tr class="<?=$alt;?>"> <td><?=++$i;?></td> <td><?=$this->mastermodel->convertdatenormalformat($row->training_date);?></td> <td><a href="#" onclick="displayformdata('training','single_page','<?=$row->training_id;?>','training_proposal','training_id','single_business_summary')" ><?=$row->activity_name;?></a></td> <td><a href="#" onclick="displayformdata('training','single_page','<?=$row->training_id;?>','training_proposal','training_id','single_business_summary')" ><?=$row->training_title;?></a></td> <td><?=$row->training_code;?></td> <td><?=$row->trainer;?></td> <td><?=$row->venue;?></td> <?php $z++; } ?> </tr> <?php } ?> </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('training','viewintrainingsearch','search_training_proposal','view_training_proposal',<?=$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('training','viewintrainingsearch','search_training_proposal','view_training_proposal',<?=$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('training','viewintrainingsearch','search_training_proposal','view_training_proposal',<?=$pagenum+1?>);"> <?php } ?> Next » </a> </li> </ul> </div>