?
Path : /home/admin/domains/happytokorea.com/public_html_bk/promice/Admin/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/promice/Admin/editbook.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> </head> <body bgcolor="#ffffff"> <div align="center"><strong> </strong> <table width="89%" border="0" align="center" cellpadding="1" cellspacing="1"> <tr valign="top"> <td width="57%"><? echo "$headtxt | $e_date $etime"; ?><br></td> <td width="43%"> <div align="right">เ</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 book where id = '$_GET[PrdID]'"; $db_query=mysql_db_query($db,$sql_1); $result1=mysql_fetch_array($db_query); $idx =$result1['id']; $productsname =$result1['title']; $productsdetail =$result1['message']; $productsdetail2 =$result1['message2']; ?> <table width="763" border="0" align="center" cellpadding="1" cellspacing="1"> <form method="post" action="EditbookSave.php" enctype="multipart/form-data"> <tr bgcolor="#FFFFFF"> <td valign="top"> </td> <td width="285"> </td> <td width="66"> </td> <td width="251"> </td> </tr> <tr bgcolor="#FFFFFF"> <td width="148" valign="top"><div align="right">Subject :</div></td> <td colspan="3"> <input name="productsname" type="text" class="input" id="productsname" value='<? echo $productsname; ?>' size="40"> <input type="hidden" name="idx" value=<? echo "$idx"; ?>> <input name="agentid" type="hidden" id="agentid" value=<? echo "$id"; ?>></td> </tr> <tr bgcolor="#FFFFFF"> <td valign="top"><div align="right">DetailThai :</div></td> <td colspan="3"><textarea name="productsdetail" cols="70" rows="10" class="input" id="productsdetail"><? echo "$productsdetail"; ?></textarea></td> </tr> <tr bgcolor="#FFFFFF"> <td valign="top"><div align="right">DetailKorea :</div></td> <td colspan="3"> <script src="ckeditor.js"></script> <textarea name="productsdetail2" cols="70" rows="10" class="input" id="txtDescription1"><? echo "$productsdetail"; ?></textarea> <script> CKEDITOR.replace( 'txtDescription1'); </script></td> </tr> <tr bgcolor="#FFFFFF"> <td valign="top"> </td> <td colspan="3"> <input name="submit" type="submit" class="submit" value="Submit" > </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>