kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
dmcschool.ac.in
/
dmcadmin
/
includes
/
Upload FileeE
HOME
<?php //page_list.php $total_page = $pageObj->getTotalPages(); $page = isset($_GET['page'])?(int)$_GET['page']:0; $orderby = isset($_SESSION[SES]['page-management']['orderby'])?$_SESSION[SES]['page-management']['orderby']:"page_id"; $order = isset($_SESSION[SES]['page-management']['order'])?$_SESSION[SES]['page-management']['order']:"desc"; $res = $pageObj->getAllPages($page*PAGE_LIMIT, $orderby, $order); $total = $res['NO_OF_ITEMS']; if($_REQUEST['act'] == "delrec" && $_REQUEST['rid']!="") { $query = mysql_query("DELETE FROM tbl_res_adv_diploma_pg WHERE id = '".$_REQUEST['rid']."'"); if($query){?> <script> window.location = "result-managementpg.php"; </script> <?php $msg = 'Record Deleted Successfully.'; setMessage($msg, "correct"); } } ?> <div class="content_header"> <div class="heading flleft">Result Management</div> <div class="heading flright"><a href="<?=$_curpage?>?q=add">Add New Result</a></div> <div class="flright"><select name="page" onchange="document.location.href='page-management.php?page='+this.value" class="sel1"><?php for($i=0;$i<ceil($total_page/PAGE_LIMIT);$i++) { if(isset($_GET['page']) && $_GET['page']!="" && $_GET['page']==$i) { echo '<option value="'.$i.'" selected="selected">Page '.($i+1).'</option>';} else {echo '<option value="'.$i.'">Page '.($i+1).'</option>';} } ?></select> | </div> <div class="clear"></div> </div> <div class="bodycontent"> <?php if($total>0) { ?> <table width="99%" border="1" bordercolor="#CCCCCC" cellspacing="0" cellpadding="3" align="center" class="datagrid" id="pagetable"> <thead> <tr> <th width="30" align="center">S.N.</th> <th align="center" class="sort" onclick="sortdata('page_name')">Student Name</th> <th width="110" class="sort" align="center" onclick="sortdata('page_type')">Registration Number</th> <th width="170" class="sort" align="center" onclick="sortdata('page_updated')">Roll Number</th> <th width="170" class="sort" align="center" onclick="sortdata('page_updated')">DOB</th> <th width="170" class="sort" align="center" onclick="sortdata('page_updated')">Year Of Passing</th> <th width="170" class="sort" align="center" onclick="sortdata('page_updated')">Father's name</th> <th colspan="2" align="center">Actions</th> </tr> </thead> <tbody> <?php $query = mysql_query("SELECT * FROM tbl_res_adv_diploma_pg"); $i = 1; while($res = mysql_fetch_array($query)){ ?> <tr> <td align="center"><?=$i;?></td> <td align="left"><?=$res['stu_nme'];?></td> <td align="center"><?=$res['reg_no'];?></td> <td align="center"><?=$res['roll_no'];?></td> <td align="center"><?=$res['stu_dob'];?></td> <td align="center"><?=$res['year_pass'];?></td> <td align="center"><?=$res['father_nme'];?></td> <td align="center" width="50"><a href="<?=$_curpage?>?q=edit&rid=<?=$res['id'];?>&name=<?=$res['stu_nme'];?>"><img border="0" src="images/edit.png" align="Edit" title="Edit" /></a></td> <td align="center" width="50"><a href="result-managementpg.php?act=delrec&rid=<?=$res['id'];?>&name=<?=$res['stu_nme'];?>" onclick="return confirm('Are You Sure Delete This Record?')"><img border="0" src="images/delete.png" align="Delete" title="Delete" /></a></td> </tr> <?php $i++; } ?> </tbody> </table> <?php } ?> </div>