? 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_edit_topic.php

<?
$topic_id=$_GET['id'];

if ($_SESSION["la"] == 1){
$edit=$db->getDataOneRow('banner',$topic_id,'bannerID');
}else{
$edit=$db->getDataOneRow('banner_en',$topic_id,'bannerID');
}




?>

<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 begins -->
 <form action="<? echo"$PHPSELF?mod=banner&ac=edit_data_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" value="<?=$edit['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"  value="<?=$edit['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"  value="<?=$edit['bannerRanking']?>" onChange="fun_name()"/>
						</div><div class="fix"></div></div>
												
						<div class="rowElem"><label>รูปประกอบแบนเนอร์ (ขนาด 550 x 550)</label><div class="formRight">		<?
		if($edit[bannerPictureName] != ""){
		?>
		<table width="650" border="1" cellspacing="2" cellpadding="0">
		<td>
		<label> 
		<div align="right" style="padding-bottom:20px;"><a href="<? echo"$PHPSELF?mod=banner&ac=de_banner&id={$_GET['id']}";?>"><img src="images/close.png"></a><br />
		    <img src="images/banner/<?=$edit[bannerPictureName];?>" width="300"></div>
		</label>
		</td>		 
		</tr>
		</table>
		<?
		}
		?><input  type="file" name="ContentPhoto" id="ContentPhoto" class="basicBtn" size="45"></div><div class="fix"></div></div>
        <?
		$bi1="";
		$bi2="";
		$bi3="";
        if($edit['bannerInfo']==0){
		$bi1="selected=\"selected\"";
		}elseif($edit['bannerInfo']==1){
		$bi2="selected=\"selected\"";
		}else{
		$bi3="selected=\"selected\"";
		}
		?>
						<div class="rowElem"><label>ตำแหน่งแสดงผล</label><div class="formRight">
						  <select name="bannerInfo" id="bannerInfo">
						    <option value="0" <?=$bi1;?>>banner slide</option>
						    <option value="1" <?=$bi2;?>>banner info</option>
						    <option value="2" <?=$bi3;?>>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" />
						<input name="bannerID" type="hidden" id="bannerID" value="<?=$edit['bannerID']?>" />
					    <input name="bannerPictureName" type="hidden" id="bannerPictureName" value="<?=$edit['bannerPictureName']?>" />
					  </div><div class="fix"></div></div>

                        <div class="fix"></div>

                </div>
            </fieldset>
             <div class="rowElem"><div class="formRight">
					  
                     
                 </div><div class="fix"></div></div>
        </form>
        
 
	</div>				

T1KUS90T
  root-grov@210.1.60.28:~$