?
Path : /home/admin/domains/happytokorea.com/public_html/modules/gallery/ |
Current File : /home/admin/domains/happytokorea.com/public_html/modules/gallery/com_new_photo1.php |
<script type="text/javascript" src="tinymce_3_0b3/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ // General options mode : "textareas", theme : "advanced", plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template", // Theme options theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true, // Example content CSS (should be your site CSS) content_css : "css/content.css", // Drop lists for link/image/media/template dialogs template_external_list_url : "lists/template_list.js", external_link_list_url : "lists/link_list.js", external_image_list_url : "lists/image_list.js", media_external_list_url : "lists/media_list.js", // Replace values for the template plugin /*template_replace_values : { username : "Some User", staffid : "991234" }*/ }); </script> <script language="javascript" src="js/jquery-1.4.4.js"></script> <script type="text/javascript"> $(document).ready(function(){ var i = 1; $('#addRow').click(function(){ var tr = "<tr><td><input type=\"file\" name=\"files["+i+"]\" id=\"files["+i+"]\" multiple=\"ture\" accept=\"image/*\" class=\"basicBtn\" size=\"45\" /></td></tr>"; i += 1; $('#myTbl').append(tr); }); }) </script> <SCRIPT language=JavaScript> function fun_name() { var temp; var digital="'"; if (document.webForm.namegaiiey.value.length != 0) { for (var i=0;i<document.webForm.namegaiiey.value.length;i++) { temp=document.webForm.namegaiiey.value.substring(i,i+1) if (digital.indexOf(temp)!=-1) { errmsg="ห้ามใส่เครื่องหมาย '"; document.webForm.namegaiiey.select(); alert(errmsg); return false; } } } if (document.webForm.detaigallery.value.length != 0) { for (var i=0;i<document.webForm.detaigallery.value.length;i++) { temp=document.webForm.detaigallery.value.substring(i,i+1) if (digital.indexOf(temp)!=-1) { errmsg="ห้ามใส่เครื่องหมาย '"; document.webForm.detaigallery.select(); alert(errmsg); return false; } } } if (document.webForm.MetaTitle_gallery.value.length != 0) { for (var i=0;i<document.webForm.MetaTitle_gallery.value.length;i++) { temp=document.webForm.MetaTitle_gallery.value.substring(i,i+1) if (digital.indexOf(temp)!=-1) { errmsg="ห้ามใส่เครื่องหมาย '"; document.webForm.MetaTitle_gallery.select(); alert(errmsg); return false; } } } if (document.webForm.MetaKeyword_gallery.value.length != 0) { for (var i=0;i<document.webForm.MetaKeyword_gallery.value.length;i++) { temp=document.webForm.MetaKeyword_gallery.value.substring(i,i+1) if (digital.indexOf(temp)!=-1) { errmsg="ห้ามใส่เครื่องหมาย '"; document.webForm.MetaKeyword_gallery.select(); alert(errmsg); return false; } } } if (document.webForm.MetaDescription_gallery.value.length != 0) { for (var i=0;i<document.webForm.MetaDescription_gallery.value.length;i++) { temp=document.webForm.MetaDescription_gallery.value.substring(i,i+1) if (digital.indexOf(temp)!=-1) { errmsg="ห้ามใส่เครื่องหมาย '"; document.webForm.MetaDescription_gallery.select(); alert(errmsg); return false; } } } } </SCRIPT> <? /*$rs=$db->Query("SELECT max(round_chk) AS M FROM gallery"); $data=mysql_fetch_array($rs); $chk_round=$data[M]+1;*/ ?> <div class="content"> <div class="title"><img style="padding:10px 0 0 15px; float:left;" src="images/icons/dark/create.png" alt="" /><h5>เพิ่ม gallery</h5></div> <form action="<? echo"$PHPSELF?mod=gallery&ac=add_gallery";?>" enctype="multipart/form-data" class="mainForm" id="webForm" method="post" name="webForm"> <!-- Input text fields --> <fieldset> <div class="widget first"> <div class="rowElem" style="border-top:1px solid #cccccc;"> <div class="formRight"> <label style="color:#FF0000"><strong>ไฟล์รูปไม่ควรใหญ่เกินไปจะทำให้ความเร็วในการอัพโหลดช้าลง </strong></label> </div> <div class="fix"></div></div> <div class="rowElem" style="border-top:1px solid #cccccc;"> <label>ชื่อ gallery</label> <div class="formRight"> <input name="namegaiiey" type="text" id="namegaiiey" onChange="fun_name()"/> </div> <div class="fix"></div></div> <div class="rowElem"><label>Meta Title (SEO)</label><div class="formRight"><input name="MetaTitle_gallery" type="text" id="MetaTitle_gallery" onChange="fun_name()"/> </div><div class="fix"></div></div> <div class="rowElem"><label>MetaKeyword (SEO)</label><div class="formRight"><input name="MetaKeyword_gallery" type="text" id="MetaKeyword_gallery" onChange="fun_name()"/> </div><div class="fix"></div></div> <div class="rowElem"><label>Meta Description (SEO)</label><div class="formRight"><input name="MetaDescription_gallery" type="text" id="MetaDescription_gallery" onChange="fun_name()"/> </div><div class="fix"></div></div> <div class="rowElem" style="border-top:1px solid #cccccc;"> <label>รายละเอียด</label> <div class="formRight"> <label> <textarea name="detaigallery" id="detaigallery" onChange="fun_name()"></textarea> </label> </div> <div class="fix"></div></div> <div class="rowElem"><label>รูป (ขนาดไม่ควร กว้างเกิน 900px และ สูงเกิน 600px)</label> <div class="formRight"> <table id="myTbl" width="650" border="1" cellspacing="2" cellpadding="0"> <tr> <td><input type="file" name="files[0]" id="files[0]" multiple accept="image/*" class="basicBtn" size="45" /></td> </tr> </table> <br /> <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <input type="button" value="เพิ่มรูป" id="addRow" class="basicBtn"> </td> </tr> </table> </div> <div class="fix"></div></div> <div class="rowElem"><label>แสดงผลหน้าจัดกรุ๊ปทัวร์</label><div class="formRight"> <input name="show_incentive" type="radio" id="show_incentive" value="0" checked="checked" /> แสดง <input name="show_incentive" type="radio" id="show_incentive" value="1" /> ไม่แสดง</div> <div class="fix"></div></div> <div class="rowElem"><label> </label><div class="formRight"> <input type="submit" value="บันทึกรูปภาพ" class="greyishBtn" /> <input type="reset" value="ยกเลิกบทความ" class="basicBtn" /></div><div class="fix"></div></div> <div class="fix"></div> </div> </fieldset> <div class="rowElem" style="border-top:1px solid #cccccc;"><label></label><div class="formRight"> </div><div class="fix"></div></div> </form> </div>