Linux altar53.supremepanel53.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
/ home1/ bdapparelinfo/ krugertexbd.com/ Wp-Administrator/ |
|
<?php $dis_pages = $function_file->view_pages(); ////////////////////// $tableName="pages_content"; $targetpage = "".$main_page."".$Pages."&"; if(isset($_POST['srch_user'])){ $limit = 300; $us=$_POST['key']; $asc_desc = " where content_pages_name ='$us' ORDER BY `id` DESC"; /* echo $asc_desc ; exit; */ }else{ $limit = 30; $asc_desc = " ORDER BY `id` DESC"; } include ('classes/pagination.php'); //echo $total_pages.' Total Post'; // pagination $msg=$_GET['msg']; //////////delete function all $DelID=$_GET['del_id']; $file="../media/".$_GET['path']; if($DelID){ ///echo $DelID; exit(); $del_pages = $function_file->delete_pages_id($DelID); if(file_exists($file)){unlink($file);} } $result_row=mysql_query("SELECT * FROM `pages_content`"); $count=mysql_num_rows($result); $delete=$_POST['delete']; if($delete){$checkbox=$_POST['checkbox']; for($w=0;$w<$count;$w++){ $DelID = $checkbox[$w]; $dell_all_row=mysql_fetch_array(mysql_query("SELECT * FROM `pages_content` WHERE id='$DelID'")); $allfile="../media/".$dell_all_row['image']; //exit; $del_pages = $function_file->delete_pages_id($DelID); if(file_exists($allfile)){unlink($allfile);} } } ?> <table align="left" border="0" cellpadding="0" cellspacing="0" width="995"> <tbody><tr> <td valign="top"> <!--end validation--> <script type="text/javascript"> function confirmUnpublish() { return confirm("Are you sure you want to Delete this ?"); } /////////////////////////////checkbox select option $(function(){ // add multiple select / deselect functionality $("#selectall").click(function () { $('.case').attr('checked', this.checked); }); // if all checkbox are selected, check the selectall checkbox // and viceversa $(".case").click(function(){ if($(".case").length == $(".case:checked").length) { $("#selectall").attr("checked", "checked"); } else { $("#selectall").removeAttr("checked"); } }); }); </SCRIPT> <table align="left" border="0" cellpadding="0" cellspacing="0" width="995"> <tbody><tr> <td valign="top"><br><h1 style="color:#2d2d2d;">Content Management</h1><br> <?php if($msg=='3'){echo"Delete Success";} ?> </td> </tr> <tr> <td valign="top"> <table class="user-table" style="background-color: rgb(255, 255, 255);" align="center" border="0" cellpadding="0" cellspacing="2" width="895px"> <tbody><tr> <td style="background-color: rgb(229, 229, 229); border-bottom: 1px solid rgb(204, 204, 204); padding-left: 10px; color: rgb(0, 0, 0);" height="30"> <h2><a href="dashboard.php?cid=ins_Pages_Content"><img src="images/icon-16-user-dd.png" border="0"> Add New Content</a> </h2> </td> </tr> <tr> <td> <!--user view st--> <table align="center" border="0" cellpadding="0" cellspacing="20" width="995"> <!-- Unpublish --> <tbody> <tr> <td> <div> <b>Page: </b> </div> </td> </tr> <!--publish--> <tr> <td align="right" height="30">Publish [USER]</td> </tr> <tr> <td style="background-color: rgb(204, 204, 204);"> <table align="center" border="0" cellpadding="1" cellspacing="1" width="100%"> <form action="" method="post" onsubmit="return smVali();" enctype="multipart/form-data"> <tbody> <tr style="background-color: rgb(231, 231, 231); height: 25px;"> <td width="25"> </td> <td><select class="regi-submit" name="key" id="key"> <?php require_once 'all_cat.php';?> </select> </td> <td colspan="2"><input type="submit" name="srch_user" class="btn btn-primary" value="Search"></td> <td width="38" colspan="2" align="right"><input name="delete" type="submit" id="delete" class="btn btn-primary" value="Delete All" onClick="return confirmUnpublish();"> </td> <td width="48"> <input type="checkbox" id="selectall"/> </td> </tr> <tr style="background-color: rgb(231, 231, 231); height: 25px;"> <td><b>ID</b></td> <td> <b>Pages Name</b></td> <td width="318"> <b>Title</b></td> <td width="155"> <b>Images</b></td> <td> <b>Date</b></td> <td colspan="2"> <b>Action</b></td> </tr> <?php $x=1;while($display_pages=mysql_fetch_array($result)){$P_Id=$display_pages['id']; $C_Id=$display_pages['content_pages_name']; //$sqlcat=mysql_fetch_array(mysql_query("SELECT * FROM `categories` WHERE id='$C_Id'")); ?> <tr style="background-color: rgb(255, 255, 255);"> <td><?=$x++;?></td> <td width="238"><?=$display_pages['content_pages_name'];?></td> <td><?=$display_pages['title'];?></td> <td><a href="../media/<?php echo $display_pages['image'];?>" target="_blank"><img src="../media/<?php echo $display_pages['image'];?>" width="100" height="90" /></a></td> <td><?=$display_pages['date'];?></td> <td width="38"><a href="dashboard.php?cid=ins_Pages_Content&id=<?=$P_Id;?>" title="Edit Content">Edit</a></td> <td width="48"> <input name="checkbox[]" class="case" type="checkbox" value="<?=$P_Id;?>"> <br /> <br /> <a onClick="return confirmUnpublish();" href="dashboard.php?cid=<?=$Pages;?>&del_id=<?=$P_Id;?>&path=<?=$display_pages['image'];?>">Delete </a></td> </tr> <?php }?> </form> </tbody></table> </td> </tr> <tr> <td colspan="3"><?=$paginate;?> <?='Total Post '.$total_pages;?></td> </tr> </tbody></table> <!--user view end--> </td> </tr> </tbody></table> </td> </tr> </tbody></table> <script type="text/javascript"> $( function () { twitter.screenNameKeyUp(); $('#user_screen_name').focus(); }); </script> </td> </tr> <tr> <td> </td> </tr> </tbody></table> </td> </tr> <tr> <td> </td> <td colspan="2"><table style="height: 1px; font-size: 1px;" align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> </tr> </tbody></table>