?
Path : /home/admin/public_html/old/promice/ |
Current File : /home/admin/public_html/old/promice/NewTopic.php |
<? include("header.php");?> <title><? echo "$headtxt_web"; ?></title> <!-- jQuery library (served from Google) --> <script type="text/JavaScript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <body onLoad="MM_preloadImages('images/menu2_03.jpg','images/menu2_04.jpg','images/menu2_05.jpg','images/menu2_06.jpg','images/menu2_07.jpg','images/menu2_09.jpg','images/menu2_10.jpg','images/menu2_11.jpg','images/menu2_12.jpg','images/menu2_13.jpg','images/menu2_15.jpg','images/menu2_16.jpg')"><td colspan="5" bgcolor="#FFFFFF"><div align="center"> <table width="1024" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="180" align="left" valign="top"><table id="Table_01" width="180" height="329" border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="images/menu1_01.jpg" width="180" height="39" alt="" /></td> </tr> <tr> <td><img src="images/menu1_02.jpg" width="180" height="22" alt="" /></td> </tr> <tr> <td><a href="ceo.php"><img src="images/menu1_03.jpg" alt="" width="180" height="19" border="0" id="Image1" onMouseOver="MM_swapImage('Image1','','images/menu2_03.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td> </tr> <tr> <td><a href="company.php"><img src="images/menu1_04.jpg" alt="" width="180" height="15" border="0" id="Image2" onMouseOver="MM_swapImage('Image2','','images/menu2_04.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td> </tr> <tr> <td><a href="subdiary.php"><img src="images/menu1_05.jpg" alt="" width="180" height="15" border="0" id="Image3" onMouseOver="MM_swapImage('Image3','','images/menu2_05.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td> </tr> <tr> <td><a href="organiz.php"><img src="images/menu1_06.jpg" alt="" width="180" height="15" border="0" id="Image4" onMouseOver="MM_swapImage('Image4','','images/menu2_06.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td> </tr> <tr> <td><a href="map.php"><img src="images/menu1_07.jpg" alt="" width="180" height="16" border="0" id="Image5" onMouseOver="MM_swapImage('Image5','','images/menu2_07.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td> </tr> <tr> <td><img src="images/menu1_08.jpg" width="180" height="29" alt="" /></td> </tr> <tr> <td><a href="mice1.php"><img src="images/menu1_09.jpg" alt="" width="180" height="16" border="0" id="Image6" onMouseOver="MM_swapImage('Image6','','images/menu2_09.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td> </tr> <tr> <td><a href="prpromo.php"><img src="images/menu1_10.jpg" alt="" width="180" height="15" border="0" id="Image7" onMouseOver="MM_swapImage('Image7','','images/menu2_10.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td> </tr> <tr> <td><a href="mice2.php"><img src="images/menu1_11.jpg" alt="" width="180" height="16" border="0" id="Image8" onMouseOver="MM_swapImage('Image8','','images/menu2_11.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td> </tr> <tr> <td><a href="event.php"><img src="images/menu1_12.jpg" alt="" width="180" height="14" border="0" id="Image9" onMouseOver="MM_swapImage('Image9','','images/menu2_12.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td> </tr> <tr> <td><a href="tran.php"><img src="images/menu1_13.jpg" alt="" width="180" height="19" border="0" id="Image10" onMouseOver="MM_swapImage('Image10','','images/menu2_13.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td> </tr> <tr> <td><img src="images/menu1_14.jpg" width="180" height="9" alt="" /></td> </tr> <tr> <td><a href="port.php"><img src="images/menu1_15.jpg" alt="" width="180" height="18" border="0" id="Image11" onMouseOver="MM_swapImage('Image11','','images/menu2_15.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td> </tr> <tr> <td><a href="Webboard.php"><img src="images/menu1_16.jpg" alt="" width="180" height="22" border="0" id="Image12" onMouseOver="MM_swapImage('Image12','','images/menu2_16.jpg',1)" onMouseOut="MM_swapImgRestore()" /></a></td> </tr> <tr> <td><img src="images/menu1_17.jpg" width="180" height="30" alt="" /></td> </tr> </table></td> <td width="820" align="left" valign="top"><table width="700" border="0" cellspacing="1" cellpadding="1"> <tr> <td><img src="images/ba_01.jpg" width="127" height="25" alt=""></td> </tr> <tr> <td><table width="700" border="0" align="center" cellpadding="0" cellspacing="0"> <!-- fwtable fwsrc="Untitled" fwbase="home.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" --> <tr> <td colspan="5" bgcolor="#FFFFFF"><div align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><table width="99%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><table width="100%" border="0" cellspacing="4" cellpadding="4"> <tr> <td><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><div align="right"> <table width="17%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="38%" background="images/bg.jpg"><div align="center"><a href="Webboard.php"><img src="alltopic.jpg" alt="" width="49" height="31" border="0"></a></div></td> <td width="62%" background="images/bg.jpg"><div align="center"><a href="NewTopic.php"><img src="newstopic.jpg" alt="" width="78" height="31" border="0"></a></div></td> </tr> </table> </div></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><script language="JavaScript"> function checkpost() { var v1 = document.webForm.topic.value; var v2 = document.webForm.message.value; var v3 = document.webForm.name.value; var v4 = document.webForm.textcode.value; if( v1.length==0) { alert("กรุณาระบุหัวข้อกระทู้ของคุณด้วยค่ะ"); document.webForm.topic.focus(); return false; } else if ( v2.length==0) { } else if ( v3.length==0) { alert("กรุณาระบุ ชื่อผู้ตั้งด้วยค่ะ"); document.webForm.name.focus(); return false; } else if ( v4.length==0) { alert("กรุณาระบุ Text Code ด้วยค่ะ"); document.webForm.textcode.focus(); return false; } else return true; } function chkEmail(){ if(document.webForm.email.value!=""){ if (document.webForm.email.value.match(/.+@.+\..+/) == null) { alert("กรุณากรอก E-Mail ให้ถูกต้อง"); document.webForm.email.focus(); } } } function check_number(ch){ var len, digit; if(ch == " "){ return false; len=0; }else{ len = ch.length; } for(var i=0 ; i<len ; i++) { digit = ch.charAt(i) if(digit >="0" && digit <="9"){ ; }else{ return false; } } return true; } function checkvalue() { if(!check_number(document.webForm.phone.value) || document.webForm.phone.value == "" ) { alert('กรุณากรอกหมายเลขโทรศัพท์เป็นตัวเลขเท่านั้นค่ะ'); document.webForm.phone.focus(); return false; } else{return true;} } </script> <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1" class="taladcr"> <form method="post" action="SaveTopic.php" name="webForm" onSubmit="return checkpost()" enctype="multipart/form-data"> <tr> <td colspan="2"><div align="center"> *필수 입력 사항입니다. </div></td> </tr> <tr> <td colspan="2" bgcolor="#EEEEEE"><strong ><span class="style2" style="color: #666666">내용</span></strong></td> </tr> <tr> <td colspan="2"><span class="style2" style="color: #666666"> 제목</span></td> </tr> <tr> <td colspan="2"> <div align="left"> <input name="topic" type=text id="topic" size="75" class="inputxx"> </div><span class="style2" style="color: #666666"> 내용</span> <br> <textarea name="message" cols="70" rows="10" class="input" id="message"><? echo "$productsdetail"; ?></textarea> <strong>*</strong> </td> </tr> <tr> <td colspan="2"><span class="style2" style="color: #666666"> 작성자 이름</span><br> <input name="name" type=text class="inputxx" id="name2" size="25"> <strong>*</strong> </td> </tr> <tr> <td height="57" colspan="2"><span class="style2" style="color: #666666">Images</span><br> <input name="productsphoto" type="file" class="input" id="productsphoto" size="40"></td> </tr> <tr> <td colspan="2"><span class="style2" style="color: #666666"> Telephone</span><br> <input name="phone" type="text" class="inputxx" id="phone" size=30 / onblur="checkvalue()"> </td> </tr> <tr> <td colspan="2"><span class="style2" style="color: #666666"> Email </span> <br> <input name="email" type="text" id="email4" value="" size="30" / onblur="chkEmail()" class="inputxx"> </td> </tr> <tr> <td width="19%"> </td> <td width="81%"> <? require_once "token.php"; $code = randomToken(5); echo "<b>$code</b>"; ?> <input name="code" type="hidden" class="td3" id="code" size="8" value=<? echo "$code"; ?>> <input name="textcode" type="text" class="inputxx" id="textcode" size="8" maxlength="5"> <em>** <span id="result_box" lang="en" style="color: #666666">코드5자리를 입력하세요.</span>** </em><em><strong>*</strong></em></td> </tr> <tr> <td> </td> <td> <input name="submit" type="submit" class="submitxx" value="작성완료!"> </td> </tr> </form> </table> <script language="javascript1.2"> var config = new Object(); // create new config object config.width = "600px"; config.height = "500px"; config.bodyStyle = 'background-color: white; font-family: "Verdana"; font-size: x-small;'; config.debug = 0; // NOTE: You can remove any of these blocks and use the default config! config.toolbar = [ ['fontname'], ['fontsize'], ['fontstyle'], ['linebreak'], ['bold','italic','underline','separator'], // ['strikethrough','subscript','superscript','separator'], ['justifyleft','justifycenter','justifyright','separator'], ['OrderedList','UnOrderedList','Outdent','Indent','separator'], ['forecolor','backcolor','separator'], ['HorizontalRule','Createlink','InsertImage','htmlmode','separator'], ['about','help','popupeditor'], ]; config.fontnames = { "Arial": "arial, helvetica, sans-serif", "Tahoma": "Tahoma, courier, mono", "Georgia": "Georgia, Times New Roman, Times, Serif", "Tahoma": "Tahoma, Arial, Helvetica, sans-serif", "Times New Roman": "times new roman, times, serif", "Verdana": "Verdana, Arial, Helvetica, sans-serif", "impact": "impact", "WingDings": "WingDings" }; config.fontsizes = { "1 (12 pt)": "3", "2 (14 pt)": "4", "3 (18 pt)": "5", "4 (24 pt)": "6", "5 (36 pt)": "7" }; //config.stylesheet = "http://www.domain.com/sample.css"; config.fontstyles = [ // make sure classNames are defined in the page the content is being display as well in or they won't work! { name: "headline", className: "headline", classStyle: "font-family: arial black, arial; font-size: 28px; letter-spacing: -2px;" }, { name: "arial red", className: "headline2", classStyle: "font-family: arial black, arial; font-size: 12px; letter-spacing: -2px; color:red" }, { name: "verdana blue", className: "headline4", classStyle: "font-family: verdana; font-size: 18px; letter-spacing: -2px; color:blue" } // leave classStyle blank if it's defined in config.stylesheet (above), like this: // { name: "verdana blue", className: "headline4", classStyle: "" } ]; editor_generate('message',config); </script></td> </tr> </table></td> </tr> </table></td> </tr> </table> <strong></strong></td> </tr> </table></td> </tr> </table></td> </tr> </table> </div></td> <td width="10"><img src="images/spacer.gif" width="1" height="25" border="0" alt=""></td> </tr> </table></td> </tr> </table> </td> </tr> </table> </div></td><? include("footer.php");?> </body> </html>