korsygfhrtzangaiide
Elepffwdsff
/
home3
/
nmslyumy
/
public_html
/
odishaexpress
/
oe-admin
/
view
/
Upload FileeE
HOME
<div id="content" class="col-lg-10 col-sm-10"> <!-- content starts --> <div> <ul class="breadcrumb"> <li> <a href="home.php?page=dash-board">Home</a> </li> <li> <a href="#">Main Menu </a> </li> <li style="float:right;padding-right:20px;"> <a href="home.php?page=add-menu" style="font-weight:bold">Add New Menu</a> </li> </ul> </div> <div class="row"> <div style="text-align:center"><?php include("controller/msg.php"); ?></div> <div id="container"> <div class="demo_jui"> <table cellpadding="0" cellspacing="0" border="0" class="display" id="example"> <thead> <tr> <th bgcolor="#CCCCCC" width="20"> <input type="checkbox" name="checkbox" value="checkbox" /></th> <th bgcolor="#CCCCCC">Menu Name </th> <th bgcolor="#CCCCCC">Position</th> <th bgcolor="#CCCCCC">Status</th> <th bgcolor="#CCCCCC">Page Name </th> <th bgcolor="#CCCCCC" width="100">URL</th> <th bgcolor="#CCCCCC" width="100">FILE</th> <th bgcolor="#CCCCCC" width="100">Action</th> </tr> </thead> <tbody> <?php $grs = $conn->query("select * from its_menu"); while($ftcmnu=$grs->fetch_array()){ //GET ALL PAGE $wh="its_pid='".$ftcmnu['its_pagelink']."'"; $allpage=$conn->query("select * from its_page where $wh"); $fetchpage = $allpage->fetch_array(); ?> <tr class="gradeX"> <td width="20"><input type="checkbox" name="checkbox2" value="checkbox" /></td> <td><?php echo $ftcmnu['its_menuname'];?></td> <td><?php echo $ftcmnu['its_position'];?></td> <td><a href="home.php?page=main-menu&sid=<?php echo $ftcmnu['its_mid'];?>"> <?php if ($ftcmnu['its_status'] ==0){ ?> <span style="color:#FF0000;">Inactive</span> <?php } else { ?> Active <?php } ?> </a></td> <td><?php if(!empty($ftcmnu['its_pagelink'])){ echo $ftcmnu['its_pagelink'];}else{echo $fetchpage['its_ptitle'];}?></td> <td class="center"><?php echo $ftcmnu['its_url'];?></td> <td class="center"><?php echo $ftcmnu['its_file'];?></td> <td align="left"><a href="home.php?page=add-menu&eid=<?php echo $ftcmnu['its_mid'];?>">Edit</a> || <?php if($ftcmnu['its_mid']!=1){ ?><a href="#" onclick="deleteAlert('<?php echo $ftcmnu["its_mid"];?>')">Delete</a><?php } ?></td> </tr> <?php }?> </tbody> </table> </div> </div> </div> <script type="text/javascript"> function deleteAlert(str) { var con=confirm("Do You Want to Delete"); if(con) { location.href="home.php?page=main-menu&did="+str; } } </script>