?
Current Path : /home1/savoy/public_html/savoyglobal.net/simsdemo/school/application/views/Student/ |
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/simsdemo/school/application/views/Student/viewstudent.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $profile_type=$_SESSION['profile_type']; if($_SESSION['searchdata'] != ""){?> <script language="javascript" type="text/javascript"> jQuery(document).ready(function() { searchformdisplay(); }); </script> <?php } ?> <span class="section_content_top"></span> <div class="section_content_inner"> <div class="table_tabs_menu"> <!--[if !IE]>start tabs<![endif]--> <ul class="table_tabs"> <li><a href="#" class="selected" onclick="searchformdisplay()"><span><span class="searchrecord">Search</span></span></a></li> </ul> <!--[if !IE]>end tabs<![endif]--> <a href="#" class="update" onclick="addformdisplay('addstudent','Student')"><span><span class="addrecord"><em>Add New Record</em><strong></strong></span></span></a> <div id="top-panel-search" style="display: none;"> <div id="panel-search"> <?php $attributes=array('class'=>'search_form','id'=>'searchvalidateform'); echo form_open('student/viewinstudentsearch/searchstudent/viewstudent/1',$attributes); if(isset($_SESSION['searchdata'])) { $searchdata=$_SESSION['searchdata']; if(!empty($searchdata)) { $searchtext=$searchdata['searchtext']; $searchfield=$searchdata['searchvalue']; } else { $searchtext = ""; $searchfield = ""; } } else { $searchtext = ""; $searchfield = ""; } ?> <ul> <li><a href="#">Search For</a><input type="text" name="searchtext" value="<?=$searchtext;?>"/></li> <li> <a href="#">In</a><select name="searchvalue"> <option value="reg_no">Select</option> <option <?php if ($searchfield == "reg_no") echo "selected"; ?> value="reg_no" >Reg No</option> <option <?php if ($searchfield == "first_name") echo "selected"; ?> value="first_name" >First Name</option> <option <?php if ($searchfield == "last_name") echo "selected"; ?> value="last_name" >Last Name</option> <option <?php if ($searchfield == "classlevel_code") echo "selected"; ?> value="classlevel_code" >Class</option> </select> <li><input type="submit" id="button1" onclick="addformdata('searchvalidateform')" value="Search Now"/></li> <li class="closeli"><a href="#" onclick="closesearchformdisplay()" class="closeform">Close</a></li> </ul> <?php echo form_close();?> </div> </div> </div> <!--[if !IE]>start table_wrapper<![endif]--> <div class="table_wrapper"> <div class="table_wrapper_inner"> <table cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <th style="width: 17px;">Sl No.</th> <th><span>Reg. No.</span></th> <th><span>First Name</span></th> <th>Last Name</th> <th style="width: 60px;">Class</th> <th style="width: 100px;">Actions</th> </tr> <?php $slno=($pagenum-1)*10+1; if ($viewinfo->num_rows() > 0) { foreach ($viewinfo->result() as $row) { ?> <tr <?php if($slno%2==0) { ?>class="first" <?php } else { ?> class="second" <?php } ?>> <td><?=$slno++;?></td> <td><?=$row->reg_no;?></td> <td><a href="#" onclick="viewformdata('student','singlestudent','<?=$row->student_id;?>')"><?=$row->first_name;?></a></td> <td><?=$row->last_name;?></td> <td><?=$row->classlevel_code;?></td> <td> <div class="actions_menu"> <ul> <li><a class="inliexample2 details" href="#" onclick="showuploaddiv('<?=$row->student_id;?>')" >Upload</a></li> <li><a class="edit" href="#" onclick="editformdata('student','editstudent','<?=$row->student_id;?>')">Edit</a></li> <li><a class="delete" href="#" onclick="deletedata(<?=$row->student_id;?>,'student','viewinstudentsearch','searchstudent','viewstudent')">Delete</a></li> </ul> </div> </td> </tr> <?php } } ?> </tbody></table> </div> <div style='display:none'> <div id="uploaddiv"></div> </div> </div> <!--[if !IE]>end table_wrapper<![endif]--> </div> <!--[if !IE]>start pagination<![endif]--> <div class="pagination_wrapper"> <span class="pagination_top"></span> <div class="pagination_middle"> <div class="pagination"> <span class="page_no">Page <?=$pagenum;?> of <?=$endpage;?></span> <ul class="pag_list"> <li> <?php if($pagenum>1){ ?><a href="#" onclick="viewdata('student','viewinstudentsearch','searchstudent','viewstudent',<?=$pagenum-1?>);" class="pag_nav"> <?php } ?> <span><span>« Previous</span></span></a> </li> <?php //Pagination Numbers for($i=$startpage; $i<=$endpage; $i++) { if($pagenum==$i) { ?> <li><a href="#" class="current_page"><span><span><?=$i?></span></span></a></li> <?php } else { ?> <li><a href="#" onclick="viewdata('student','viewinstudentsearch','searchstudent','viewstudent',<?=$i?>);"><?=$i?></a></li> <?php } } ?> <li> <?php if($pagenum<$endpage){ ?><a href="#" class="pag_nav" onclick="viewdata('student','viewinstudentsearch','searchstudent','viewstudent',<?=$pagenum+1?>);"> <?php } ?> Next »</a> </li> </ul> </div> </div> <span class="pagination_bottom"></span> </div> <!--[if !IE]>end pagination<![endif]--> <span class="section_content_bottom"></span>