?
Path : /home/admin/domains/happytokorea.com/public_html_bk/promice/Admin/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/promice/Admin/editbanner.php |
<? @session_start(); ob_start(); require_once "../include/tdate.php"; require_once "../include/connect.php"; require_once "../include/connectdb.php"; $sql="select * from useradmin where useradmin='$useradmin'"; $db_query=mysql_db_query($db,$sql); $result=mysql_fetch_array($db_query); $id=$result[id]; $adminname=$result[name]; $user_admin=$result[useradmin]; $pass_admin=$result[passadmin]; ?> <html> <head> <title><? echo "$headtxt"; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- Fireworks MX Dreamweaver MX target. Created Sat Apr 02 10:29:23 GMT+0700 (SE Asia Standard Time) 2011--> <link href="../css/style.css" rel="stylesheet" type="text/css"> <link rel="shortcut icon" type="../editor/image/x-icon" href="../favicon.ico"> <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <table width="89%" border="0" align="center" cellpadding="1" cellspacing="1"> <tr valign="top"> <td width="57%"><? echo "$headtxt | $e_date $etime"; ?><br> <div align="left">หน้าปัจจุบันของคุณ : <a href="Main.php">หน้าหลัก</a> --> <strong>แก้ไข</strong></div></td> <td width="43%"> <div align="right">ยินดีต้อนรับคุณ <? echo "<u>$adminname</u>"; ?> เข้าใช้งานในระบบ<br> [ <a href="ChangePass.php">เปลี่ยนรหัสผ่าน</a> ] <a href="logout.php">ออกจากระบบ</a> </div></td> </tr> <tr> <td colspan="2"><table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#E9E9E6"> <tr> <td><div align="center"> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><div align="center"><br> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><div align="center"> <?php $sql_1="select * from flash_banner_index where id = '$_GET[PrdID]'"; $db_query=mysql_db_query($db,$sql_1); $result1=mysql_fetch_array($db_query); $idx =$result1['id']; $titleimg =$result1['TitleImg']; $productsphoto =$result1['PathImg']; $urllink =$result1['UrlLink']; $orderimg =$result1['OrderImg']; $productsdetail =$result1['detail']; ?> <table width="763" border="0" align="center" cellpadding="1" cellspacing="1"> <form method="post" action="editbannersave.php" enctype="multipart/form-data"> <tr bgcolor="#FFFFFF"> <td width="148"><div align="right">Title</div></td> <td><input name="title" type="text" class="input" id="title" value='<? echo "$titleimg"; ?>' size="40"></td> </tr> <tr bgcolor="#FFFFFF"> <td><div align="right">URL link :</div></td> <td><option value=<? echo "$urllink"; ?>> <input name="urllink" type="text" class="input" id="urllink" value="<? echo "$urllink"; ?>" size="40"> </td> </tr> <tr bgcolor="#FFFFFF"> <td valign="top"><div align="right">ORder IMG :</div></td> <td width="608"> <input name="orderimg" type="text" class="input" id="orderimg" value='<? echo "$orderimg"; ?>' size="40"> <input type="hidden" name="idx" value=<? echo "$idx"; ?>> </td> </tr> <tr bgcolor="#FFFFFF"> <td valign="top"><div align="right">Detail :</div></td> <td> <script src="ckeditor.js"></script><textarea name="detail" cols="70" rows="10" class="input" id="txtDescription1"><? echo "$productsdetail"; ?></textarea> <script> CKEDITOR.replace( 'txtDescription1'); </script></td> </tr> <tr bgcolor="#FFFFFF"> <td><div align="right">Image :</div></td> <td> <? if ($productsphoto != "") { echo "<img src=../images/images_flash_banner_index/$productsphoto width=150><br><a href=CancelPhoto2.php?PrdID=$_GET[PrdID]&PhotoField=productsphoto&PhotoName=$productsphoto>Delete Image/a>"; echo "<input type=hidden name=productsphotosend value='$productsphoto'>"; }else{ echo "<input type=file name=productsphoto size=50 class=input>"; } ?> </td> </tr> <tr bgcolor="#FFFFFF"> <td valign="top"> </td> <td> <input name="submit" type="submit" class="submit" value="Edit Banner!" onClick="return confirm ('คุณต้องการแก้ไข ใช่ หรือ ไม่? ') "> </td> </tr> </form> </table> </div></td> </tr> </table> <br> <br> </div></td> </tr> </table> </div></td> </tr> </table></td> </tr> <tr> <td colspan="2"><div align="center"><br> <? echo "$buttomtxt"; ?> </div></td> </tr> </table> </div> </body> </html>