:: **Zploit** v1.0 | Current Path: **/home/bbbncs7/amtechint.com/admin/**
:: Editing File: more_prods.php
<?php include "param.php"; include "func.php"; include "chk_login.php"; ?> <html> <head> <title><?=$web_title?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="chk_frm.js"></script> <script language="JavaScript"> function chk_form() { if (checkempty(document.frm_add.pname,":.. Please enter Product Name.:")==false) return false; return true; } </script> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="top"><table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <?php $pname = ""; $RNK = qry_run("select * from tbl_prods where pid = ".ch_lvl('pid')." order by ranking"); if (num_rec($RNK) > 0) { $rk = fetch_rec($RNK); $pname = $rk['pname']; } ?> <td width="671" height="29" background="imgs/cp/menu_cat_bg.jpg" class="left_menu_head" style="padding:4px;"><?=$pname?></td> <td width="129" align="right" background="imgs/cp/menu_cat_bg.jpg" class="left_menu_head" style="padding:4px;"><a href="javascript:showp('new');hidep('CATs');" class="btn">Add New <?=$More_prod_heading?></a> </td> </tr> <tr> <td colspan="2"><div id="new" style="display:none"> <table width="800" border="0" cellpadding="4" cellspacing="0" class="base"> <form action="cat_prcess.php" method="post" enctype="multipart/form-data" name="frm_add" onSubmit="javascript:return chk_form();"> <input type="hidden" name="main" value="<?=ch_lvl('mid')?>"> <input type="hidden" name="sec" value="<?=ch_lvl('sec')?>"> <input type="hidden" name="cat" value="<?=ch_lvl('cat')?>"> <input type="hidden" name="pid" value="<?=ch_lvl('pid')?>"> <input type="hidden" name="LVL" value="9"> <input type="hidden" name="sub_mit" value="Y"> <input type="hidden" name="C_TYPE" value="NEW"> <tr align="left"> <td height="29" colspan="4" background="imgs/cp/menu_bg.jpg"><strong>Add New <?=$More_prod_heading?></strong></td> </tr> <tr> <td width="102" height="25" align="right"><?=$More_prod_heading?> Heading:</td> <td><input name="pname" type="text" class="txt_id" id="pname" size="40" maxlength="100"></td> <td align="right">Publish:</td> <td><input name="pshow" type="checkbox" id="pshow" value="Yes" checked></td> </tr> <tr> <td height="25" align="right">Detail:</td> <td colspan="3"><input name="pdetail" type="text" class="txt_id" id="pdetail" value="" style="width:100%;"></td> </tr> <tr> <td height="25" align="right">Upload Image:</td> <td width="291"><input name="img2" type="file" class="txt_id" id="img2"></td> <td width="64" align="right"> </td> <td width="311"> </td> </tr> <tr> <td height="25" align="right"> </td> <td colspan="3"><input name="Submit" type="submit" class="btn" value="Submit"> <input name="Submit2" type="button" class="btn" value="Cancel" onClick="hidep('new');showp('CATs');"></td> </tr> </form> </table> </div></td> </tr> <tr> <td colspan="2"><div id="CATs" style="display:block;"> <table width="800" border="0" cellpadding="4" cellspacing="0" class="base"> <tr> <td width="35" height="29" background="imgs/cp/menu_bg.jpg"><strong>#</strong></td> <td width="485" background="imgs/cp/menu_bg.jpg"><strong><?=$More_prod_heading?> Heading</strong></td> <td width="91" background="imgs/cp/menu_bg.jpg"><strong>Ranking</strong></td> <td width="72" background="imgs/cp/menu_bg.jpg"><strong>Publish</strong></td> <td width="77" background="imgs/cp/menu_bg.jpg"> </td> </tr> <?php $QRY = qry_run("select * from tbl_more where pid = ".ch_lvl('pid')." order by ranking"); if (num_rec($QRY) > 0) { $p = 1; while($rs = fetch_rec($QRY)) { ?> <tr bgcolor="#FFFFFF" onMouseOver="this.bgColor = '#F8FCFF'" onMouseOut ="this.bgColor = '#FFFFFF'"> <td height="29" style="border-style:solid;border-width:0px 0px 1px 0px;border-color:#DFEDF8;"> <?=$p?> .</td> <td height="29" style="border-style:solid;border-width:0px 0px 1px 0px;border-color:#DFEDF8;"> <?=$rs['pname']?> </td> <form name="frm_ranking<?=$rs['mainid']?>" method="post" action="ranking.php"> <input type="hidden" name="main" value="<?=$rs['mid']?>"> <input type="hidden" name="sec" value="<?=$rs['sec']?>"> <input type="hidden" name="cat" value="<?=$rs['cat']?>"> <input type="hidden" name="pid" value="<?=$rs['pid']?>"> <input type="hidden" name="more" value="<?=$rs['mainid']?>"> <input type="hidden" name="LVL" value="9"> <input type="hidden" name="sub_mit" value="Yes"> <td height="29" style="border-style:solid;border-width:0px 0px 1px 0px;border-color:#DFEDF8;"> <input type="text" class="txt_id" name="ranking<?=$rs['mainid']?>" value="<?=$rs['ranking']?>" size="4" style="text-align:center;"> <a href="#" class="base_link" onClick="javascript:document.frm_ranking<?=$rs['mainid']?>.submit();"><img src="imgs/page_white_go.png" width="16" height="16" border="0"></a> </td> </form> <td height="29" style="border-style:solid;border-width:0px 0px 1px 0px;border-color:#DFEDF8;"> <a href="cat_prcess.php?mid=<?=$rs['mid']?>&sec=<?=$rs['sec']?>&cat=<?=$rs['cat']?>&pid=<?=$rs['pid']?>&more=<?=$rs['mainid']?>&C_TYPE=PSHOW&P_show=<?=$rs['pshow']?>&LVL=9" class="base_link"> <?=$rs['pshow']?> </a> </td> <td height="29" align="right" style="border-style:solid;border-width:0px 0px 1px 0px;border-color:#DFEDF8;"><table width="75" border="0" cellpadding="0" cellspacing="0" class="base_2"> <tr align="center"> <td width="25"> </td> <td width="25"><a href="edit_more.php?mid=<?=$rs['mid']?>&sec=<?=$rs['sec']?>&cat=<?=$rs['cat']?>&pid=<?=$rs['pid']?>&more=<?=$rs['mainid']?>" title="Update <?=$More_prod_heading?> Detail"><img src="imgs/page_paintbrush.png" width="16" height="16" border="0"></a></td> <td width="25"><a href="cat_prcess.php?mid=<?=$rs['mid']?>&sec=<?=$rs['sec']?>&cat=<?=$rs['cat']?>&pid=<?=$rs['pid']?>&more=<?=$rs['mainid']?>&C_TYPE=DEL&LVL=9" onclick="return confirm('Are you sure you want to delete?')" title="Delete this item"><img src="imgs/ed_delete.gif" width="18" height="18" border="0"></a></td> </tr> </table></td> </tr> <?php $p += 1; } } ?> </table> </div></td> </tr> </table></td> </tr> </table> </body> </html>