?
Path : /home/admin/domains/happytokorea.com/public_html_bk/promice/Admin/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/promice/Admin/WebTalk.php |
<? @session_start(); ob_start(); $useradmin = $_SESSION["useradmin"]; if(empty($useradmin)) { echo "<script>alert('เธซเธเนเธฒเธเธตเนเธเธณเธเธฑเธ”เน€เธเธเธฒเธฐ Admin เน€เธ—เนเธฒเธเธฑเนเธ');history.back();</script>"; exit(); } 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"> <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> <script type="text/javascript"> $(document).ready(function() { $(".input").cleditor({width:700, height:300})[0].focus(); }); </script> <div class=mainPanel> <div> <div class=leftPanel> </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> <div align="left"></div></td> <td width="43%"> <div align="right">“ <? echo "<u>$adminname</u>"; ?></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><br><script language="JavaScript"> function checkmess() { var prd1 = document.webform.message.value; if( prd1.length ==0) { alert("เธเธฃเธธเธ“เธฒเนเธชเนเธฃเธฒเธขเธฅเธฐเน€เธญเธตเธขเธ”เธ”เนเธงเธขเธเนเธฐ"); document.webform.message.focus(); return false; } else return true; } </script> <table width="91%" border="0" align="center" cellpadding="1" cellspacing="1"> <form method="post" action="WebTalkEdit.php" name="webform" onSubmit="return checkmess()"> <tr> <td><div align="center"> <?php $sql_1="select * from webtalk where id='1'"; $db_query=mysql_db_query($db,$sql_1); $result1=mysql_fetch_array($db_query); $idx=$result1[id]; $message=$result1[message]; ?> <strong>รายละเอียด<br><script src="ckeditor.js"></script> <textarea name="message" cols="85" rows="10" class="input" id="txtDescription1"><? echo "$message"; ?></textarea> <input name=idx type=hidden id="idx" value=<?php echo "$idx"; ?>> <script> CKEDITOR.replace( 'txtDescription1'); </script> </strong></div> </td> </tr> <tr> <td><div align="center"> <input name="submit" type=submit class="submit" value=แก้ไข onClick="return confirm ('ต้องการแก้ไขข้อมูลหรือไม่? ') > </div></td> </tr> </form> </table></td> </tr> <tr> <td> </td> </tr> </table> </div></td> <td><img src="../images/spacer.gif" width="1" height="13" border="0" alt=""> </div></td> </tr> </form> </table> <br> </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>