]]jkjjgdjffksdkdfdkasdashjgjdsadsadsadsadskdfgjdskfgj
במ12[aspddfasdasddsadsadadasdasdghjghjghjsadasbvxcvxcv;'
/
home2
/
kediapaper
/
www
/
wknadmin
/
Upload FileeE
HOME
<?php require_once("../includes/dbsmain.inc.php"); if(is_post_back()) { $arr_ids = $_REQUEST['arr_ids']; if(is_array($arr_ids)) { $str_ids = implode(',', $arr_ids); if(isset($_REQUEST['Delete']) || isset($_REQUEST['Delete_x']) ) { db_query("delete from tbl_press_realeases where press_rel_id in ($str_ids)"); set_session_msg("News Deleted Successfully !"); } else if(isset($_REQUEST['Activate']) || isset($_REQUEST['Activate_x']) ) { db_query("update tbl_press_realeases set press_rel_status = 'Active' where press_rel_id in ($str_ids)"); set_session_msg("News Activated Successfully !"); } else if(isset($_REQUEST['Deactivate']) || isset($_REQUEST['Deactivate_x']) ) { db_query("update tbl_press_realeases set press_rel_status = 'Inactive' where press_rel_id in ($str_ids)"); set_session_msg("News Deactivated Successfully !"); } } header("Location: ".$_SERVER['HTTP_REFERER']); exit; } $start = intval($start); $pagesize = intval($pagesize)==0?$pagesize=DEF_PAGE_SIZE:$pagesize; $order_by == '' ? $order_by = 'press_rel_id' : true; $order_by2 == '' ? $order_by2 = 'desc' : true; $sql = "select * from tbl_press_realeases where 1"; $sql = apply_filter($sql, $press_rel_name, 'like','press_rel_name'); $sql .= " order by $order_by $order_by2 "; $sql .= " limit $start, $pagesize "; $pager = new midas_pager_sql($sql, $pagesize, $start); if($pager->total_records) { $result = db_query($sql); } ?> <link href="styles.css" rel="stylesheet" type="text/css"> <script language="JavaScript" type="text/javascript" src="../includes/general.js"></script> <? include("top.inc.php");?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="pageHead"><div id="txtPageHead">News list </div></td> </tr> </table> <strong class="msg" style="margin-left:500px;"><?=display_sess_msg()?></strong> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="content"><form method="get" name="form2" id="form2" onSubmit="return confirm_submit(this)"> <br /> <table border="0" align="center" cellpadding="2" cellspacing="0" class="tableSearch" style="width:300px; height:90px;border:2px outset #fff;"> <tr align="center"> <th colspan="2">Search</th> </tr> <tr> <td class="tdLabel">Name</td> <td><input name="press_rel_name" type="text" value="" style="width:200px; height:24px;" /></td> </tr> <tr> <td> </td> <td><input name="pagesize" type="hidden" id="pagesize" value="<?=$pagesize?>" /> <input type="image" name="imageField" src="images/buttons/search.gif" /></td> </tr> </table> </form> <br /> <div align="right"><a href="news_f.php" style="font-size:12px; font-weight:bold;">Add News</a> </div> <? if($pager->total_records==0) {?> <div class="msg">Sorry, no records found.</div> <? } else { ?> <div align="right"> <? $pager->show_displaying()?> </div> <div>Records Per Page: <?=pagesize_dropdown('pagesize', $pagesize);?> </div> <form method="post" name="form1" id="form1" onSubmit="confirm_submit(this)"> <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tableList"> <tr> <th width="22%" nowrap="nowrap" style="font-size:12px; padding:9px;">Media Name</th> <th width="11%" nowrap="nowrap" style="font-size:12px; padding:9px;">Media Type</th> <th width="25%" nowrap="nowrap" style="font-size:12px; padding:9px;">Headline</th> <th width="20%" nowrap="nowrap" style="font-size:12px; padding:9px;">News Coverage URL</th> <th width="7%" nowrap="nowrap" style="font-size:12px; padding:9px;">Posted Date</th> <th width="7%" nowrap="nowrap" style="font-size:12px; padding:9px;">Status<?=sort_arrows('press_rel_status')?></th> <th width="4%"> </th> <th width="4%"><input name="check_all" type="checkbox" id="check_all" value="1" onClick="checkall(this.form)" /></th> </tr> <? while ($line_raw = mysqli_fetch_array($result)) { $line = ms_display_value($line_raw); @extract($line); $css = ($css=='trOdd')?'trEven':'trOdd'; ?> <tr class="<?=$css?>"> <td align="center"><?php echo $press_rel_name;?> </td> <td align="center"><?php echo $press_rel_type;?></td> <td align="center"><b><?php echo $press_headline_url;?></b></td> <td align="center"><?php echo $press_rel_url;?> </td> <td align="center"><?php echo $press_rel_add_date;?> </td> <td align="center"><b style="font-size:12px;"><?php echo $press_rel_status;?></b> </td> <td align="center"><a href="news_f.php?press_rel_id=<?=$press_rel_id?>"><img src="images/icons/edit.png" alt="Edit" width="16" height="16" border="0" /></a></td> <td align="center"><input name="arr_ids[]" type="checkbox" id="arr_ids[]" value="<?=$press_rel_id?>" /></td> </tr> <? } ?> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" style="padding:2px"> <input type="submit" name="Activate" value="Activate" class="button" onClick="return select_chk()" style="font-size:12px; font-weight:bold; height:26px; background-color:#1F3E00; border-radius:4px; cursor:pointer; width:100px;"/> <input type="submit" name="Deactivate" value="Deactivate" class="button" onClick="return select_chk()" style="font-size:12px; font-weight:bold; height:26px; background-color:#FF6F6F; border-radius:4px; cursor:pointer; width:100px;" /> <input type="submit" name="Delete" value="Delete" class="button" onClick="return select_chk()" style="font-size:12px; font-weight:bold; height:26px; background-color:#CA0000; border-radius:4px; cursor:pointer; width:100px;"/> </td> </tr> </table> </form> <? $pager->show_pager();?> <? } ?> </td> </tr> </table> <?php include("bottom.inc.php");?> <script language="javascript"> function select_chk(){ var chks = document.getElementsByName('arr_ids[]'); var hasChecked = false; for (var i = 0; i < chks.length; i++){ if (chks[i].checked){ hasChecked = true; break; } } if (hasChecked == false){ alert("Please Select At Least One."); return false; } } </script>