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="#">Sub Menu </a> </li> <li style="float:right;padding-right:20px;"> <a href="home.php?page=add-submenu" style="font-weight:bold">Add New sub 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">Sub 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 while($submenu=$grs->fetch_array()){ //GET ALL PAGE $wh="its_pid='".$submenu['its_pagelink']."'"; $allpage=$conn->query("select * from its_page where $wh"); $fetchpage=$allpage->fetch_array(); //GET MAIN MENU $wh="its_mid='".$submenu['its_menuid']."'"; $allmnu=$conn->query("select * from its_menu where $wh"); $fetcmnu=$allmnu->fetch_array(); ?> <tr class="gradeX"> <td width="20"><input type="checkbox" name="checkbox2" value="checkbox" /></td> <td><?php echo $fetcmnu['its_menuname'];?></td> <td><?php echo $submenu['its_submenuname'];?></td> <td><?php echo $submenu['its_position'];?></td> <td><a href="home.php?page=sub-menu&sid=<?php echo $submenu['its_sid'];?>"> <?php if ($submenu['its_status'] ==0){ ?> <span style="color:#FF0000;">Inactive</span> <?php } else { ?> Active <?php } ?> </a></td> <td><?php echo $fetchpage['its_ptitle'];?></td> <td class="center"><?php echo $submenu['its_url'];?></td> <td class="center"><?php echo $submenu['its_file'];?></td> <td class="center"><a href="home.php?page=add-submenu&eid=<?php echo $submenu['its_sid'];?>">Edit</a> || <a href="#" onclick="deleteAlert('<?php echo $submenu["its_sid"];?>')" >Delete</a></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=sub-menu&did="+str; } } </script>