? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/domains/happytokorea.com/public_html/backend/modules/banner/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html/backend/modules/banner/com_new_topic.php

<?
require_once('function.php');
$selected=$_GET[CATID];
?>
<script src="nicEdit/nicEdit.js" type="text/javascript"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function() {
	new nicEditor({fullPanel : true}).panelInstance('ContentDetail');
});
</script>
<SCRIPT language=JavaScript>
function fun_name()
{

var temp;
var digital="'";

if (document.webForm.bannerName.value.length != 0) 
    {
       for (var i=0;i<document.webForm.bannerName.value.length;i++) 
         {
              temp=document.webForm.bannerName.value.substring(i,i+1)
              if (digital.indexOf(temp)!=-1) 
                {
                    errmsg="ห้ามใส่เครื่องหมาย '";
                    document.webForm.bannerName.select();
                    alert(errmsg);
                    return false;
                }
         }
   }
if (document.webForm.bannerLink.value.length != 0) 
    {
       for (var i=0;i<document.webForm.bannerLink.value.length;i++) 
         {
              temp=document.webForm.bannerLink.value.substring(i,i+1)
              if (digital.indexOf(temp)!=-1) 
                {
                    errmsg="ห้ามใส่เครื่องหมาย '";
                    document.webForm.bannerLink.select();
                    alert(errmsg);
                    return false;
                }
         }
   }

if (document.webForm.bannerRanking.value.length != 0) 
    {
       for (var i=0;i<document.webForm.bannerRanking.value.length;i++) 
         {
              temp=document.webForm.bannerRanking.value.substring(i,i+1)
              if (digital.indexOf(temp)!=-1) 
                {
                    errmsg="ห้ามใส่เครื่องหมาย '";
                    document.webForm.bannerRanking.select();
                    alert(errmsg);
                    return false;
                }
         }
   }

}
</SCRIPT>
 <div class="content">
    	<div class="title"><img style="padding:10px 0 0 15px; float:left;" src="images/icons/dark/create.png" alt="" /><h5>เพิ่มแบนเนอร์</h5></div>
 
	<form action="<? echo"$PHPSELF?mod=banner&ac=add_banner";?>" enctype="multipart/form-data" class="mainForm" id="webForm" method="post" name="webForm">
        
        	<!-- Input text fields -->
            <fieldset>
                <div class="widget first">
						
						<div class="fix"></div>
						
						<div class="rowElem"><label>ชื่อแบนเนอร์</label><div class="formRight"><input name="bannerName" type="text" id="bannerName"  onChange="fun_name()" />
						</div><div class="fix"></div></div>
						
						<div class="rowElem"><label>Link แบนเนอร์</label><div class="formRight"><input type="text" name="bannerLink" id="bannerLink"  onChange="fun_name()"/>
						</div><div class="fix"></div></div>
						
						<div class="rowElem"><label>Ranking แบนเนอร์</label><div class="formRight"><input type="text" name="bannerRanking" id="bannerRanking"  onChange="fun_name()"/>
						</div><div class="fix"></div></div>
												
						<div class="rowElem"><label>รูปประกอบแบนเนอร์ (ขนาด 550 x 550)</label><div class="formRight"><input  type="file" name="ContentPhoto" id="ContentPhoto" class="basicBtn" size="45"></div><div class="fix"></div></div>				
						<div class="rowElem"><label>ตำแหน่งแสดงผล</label><div class="formRight">
						  <select name="bannerInfo" id="bannerInfo">
						    <option value="0">banner slide</option>
						    <option value="1">banner info</option>
						    <option value="2">banner Happy EZY</option>
					      </select>
						</div><div class="fix"></div></div>
						
						<div class="rowElem"><label>&nbsp;</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>  


T1KUS90T
  root-grov@210.1.60.28:~$