echo"<a href=\"index.php?page=ecommerce_system&select_ecommerce=product&action=edit&exam_id=$rs[exam_id]&productcat_level2_id=$productcat_level2_id\">"; ?> <img src="images/b_edit.png" border="0" /> <? echo"แก้ไข"; echo"</a>"; echo"</div>"; echo"</div>"; echo"<br style=\"clear:both\">"; $i++; } pu_pageloop("productcat_id=".$productcat_id."&productcat_level2_id=".$productcat_level2_id.""); ?> </div> <br style="clear:both" /> <br style="clear:both" /> <br style="clear:both" /> <?php if($_GET['action']=="edit"){ $submit="แก้ไข"; $exam_id=$_GET['exam_id']; $strSQL="select * from exam where exam_id=$exam_id"; $result=mysql_query($strSQL); $rs=mysql_fetch_array($result);
?> </td> <td> <?php echo $rs[topic_name]; ?> </td> <td> <center> <?php //จำนวนคนตอบ /*$strSQL3="select * from answer"; $result=mysql_query($strSQL3); $num=mysql_num_rows($result); echo"$num";*/ echo " {$num}"; ?> </center> </td> </tr> <?php $i++; } ?> </table> <?php pu_pageloop(); ?> </div>
</tr> <? $i++; } ?> </table> <table> <tr> <td> <? $numpu=pu_pageloop("news_cat_id=".$news_cat_id."&select_news=new_sport"); ?> </td> </tr> </table> <br style="clear:both" /> <div id="dev_title"> เพิ่มข่าว </div> <form method="post" action="news_process.php" enctype="multipart/form-data"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td> หัวข้อ <br> <input type="text" name="news_title" value="<?=$news_title?>" /> </td>
</tr> <? $i++; } ?> </table> <table> <tr> <td> <? $numpu=pu_pageloop("news_cat_id=".$news_cat_id."&select_news=new_polotics"); ?> </td> </tr> </table> <br style="clear:both" /> <div id="dev_title"> เพิ่มข่าว </div> <form method="post" action="news_process.php" enctype="multipart/form-data"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td> หัวข้อ <br> <input type="text" name="news_title" value="<?=$news_title?>" /> </td>
</tr> <? $i++; } ?> </table> <table> <tr> <td> <? $numpu=pu_pageloop("news_cat_id=".$news_cat_id."&select_news=new_travel"); ?> </td> </tr> </table> <br style="clear:both" /> <div id="dev_title"> เพิ่มข่าว </div> <form method="post" action="news_process.php" enctype="multipart/form-data"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td> หัวข้อ <br> <input type="text" name="news_title" value="<?=$news_title?>"/> </td>
echo"<a href=\"index.php?page=ecommerce_system&select_ecommerce=product&action=edit&exam_id=$rs[exam_id]&productcat_level2_id=$productcat_level2_id\">"; ?> <img src="images/b_edit.png" border="0" /> <? echo"แก้ไข"; echo"</a>"; echo"</div>"; echo"</div>"; echo"<br style=\"clear:both\">"; $i++; } pu_pageloop("productcat_level2_id=".$productcat_level2_id); ?> </div> <br style="clear:both" /> <br style="clear:both" /> <br style="clear:both" /> <?php if($_GET['action']=="edit"){ $submit="แก้ไข"; $exam_id=$_GET['exam_id']; $strSQL="select * from exam where exam_id=$exam_id"; $result=mysql_query($strSQL); $rs=mysql_fetch_array($result);
</tr> <? $i++; } ?> </table> <? $numpu=pu_pageloop("picturecat_id=".$picturecat_id); ?> <?php if($_GET['action']=="edit"){ $submit="แก้ไขข้อมูลรูปภาพ"; $picture_id=$_GET['picture_id']; $admin_id=$_GET['admin_id']; $strSQL="select * from picture where picture_id=$picture_id"; $result=mysql_query($strSQL); $rs=mysql_fetch_array($result); $picture_detail= $rs[picture_detail]; $picture_detail_eng= $rs[picture_detail_eng]; $picturecat_id=$rs[picturecat_id]; $action="edit"; }else{ $submit="เพิ่มรูปภาพ";
</tr> <? $i++; } ?> </table> <table> <tr> <td> <? $numpu=pu_pageloop("news_cat_id=".$news_cat_id."&select_news=new_variety"); ?> </td> </tr> </table> <br style="clear:both" /> <div id="dev_title"> เพิ่มข่าว </div> <form method="post" action="news_process.php" enctype="multipart/form-data"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td> หัวข้อ <br> <input type="text" name="news_title" value="<?=$news_title?>" /> </td>
echo"<a href=\"index.php?page=ecommerce_system&select_ecommerce=product&product&action=edit&product_id=$rs[product_id]&productcat_id=$rs[productcat_id]\">"; ?> <img src="images/b_edit.png" border="0" /> <? echo"แก้ไข"; echo"</a>"; echo"</div>"; echo"</div>"; echo"<br style=\"clear:both\">"; $i++; } pu_pageloop("productcat_id=".$productcat_id); ?> </div> <br style="clear:both" /> <br style="clear:both" /> <br style="clear:both" /> <?php if($_GET['action']=="edit"){ $submit="แก้ไขข้อมูลสินค้า"; $product_id=$_GET['product_id']; $strSQL="select * from product where product_id=$product_id"; $result=mysql_query($strSQL); $rs=mysql_fetch_array($result);
</tr> <? $i++; } ?> </table> <table> <tr> <td> <? $numpu=pu_pageloop("news_cat_id=".$news_cat_id."&select_news=new_entertain"); ?> </td> </tr> </table> <br style="clear:both" /> <div id="dev_title"> เพิ่มข่าว </div> <form method="post" action="news_process.php" enctype="multipart/form-data"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td> หัวข้อ <br> <input type="text" name="news_title" value="<?=$news_title?>"/> </td>