?
Path : /home/admin/domains/happytokorea.com/public_html/modules/gallery/ |
Current File : /home/admin/domains/happytokorea.com/public_html/modules/gallery/com_new_photo.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"> $(function(){ $("#addRow").click(function(){ $("#myTbl").append($("#firstTr").clone()); }); $("#removeRow").click(function(){ if($("#myTbl tr").size()>1){ $("#myTbl tr:last").remove(); }else{ alert("ต้องมีรายการข้อมูลอย่างน้อย 1 รายการ"); } }); }); </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="" 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"/> </div> <div class="fix"></div></div> <div class="rowElem" style="border-top:1px solid #cccccc;"> <label>รายละเอียด</label> <div class="formRight"> <label> <textarea name="textarea"></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 id="firstTr"> <td><input type="file" name="files[]" id="files[]" 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 type="submit" value="บันทึกรูปภาพ" onclick="xajax.upload('UploadPhoto', 'webForm')" 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>