403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.216.231
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User : sieuthimay ( 1016)
PHP Version : 8.2.20
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/nhadatkhangdien.net-bk/public_html/admin/templates/sanpham/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/nhadatkhangdien.net-bk/public_html/admin/templates/sanpham/item_add_tpl20-03-2018.php
<script type="text/javascript">
	tinyMCE.init({
		// General options
		mode : "exact",
        elements : "noidung",
		theme : "advanced",
		convert_urls : false,
		plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,imagemanager,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,visualblocks",
height:"300px",
    width:"100%",
	remove_script_host : false,

		// 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,|,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_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",

		// Style formats
		style_formats : [
			{title : 'Bold text', inline : 'b'},
			{title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
			{title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
			{title : 'Example 1', inline : 'span', classes : 'example1'},
			{title : 'Example 2', inline : 'span', classes : 'example2'},
			{title : 'Table styles'},
			{title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}
		],

		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}
	});
</script>

<h3> Thêm mới</h3>
<script language="javascript">				
	function select_onchange1()
	{				
		var b=document.getElementById("id_cat");
		window.location ="index.php?com=sanpham&act=<?php if($_REQUEST['act']=='edit') echo 'edit'; else echo 'add';?><?php if($_REQUEST['id']!='') echo"&id=".$_REQUEST['id']; ?>&id_cat="+b.value;	
		return true;
	}
	function select_onchangelist()
	{	
		var b=document.getElementById("id_cat");
		var c=document.getElementById("id_list");
		window.location ="index.php?com=sanpham&act=<?php if($_REQUEST['act']=='edit') echo 'edit'; else echo 'add';?><?php if($_REQUEST['id']!='') echo"&id=".$_REQUEST['id']; ?>&id_cat="+b.value+"&id_list="+c.value;	
		return true;
	}
		function select_onchange3()
	{	
		var b=document.getElementById("id_cat");
		var c=document.getElementById("id_list");
		var x=document.getElementById("id_item");
		window.location ="index.php?com=sanpham&act=<?php if($_REQUEST['act']=='edit') echo 'edit'; else echo 'add';?>&id_cat="+b.value+"&id_list="+c.value+"&id_item="+x.value;	
		return true;
	}

	
</script>
<?php
function get_main_category()
{
	$sql="select * from table_product_cat order by stt";
	$stmt=mysql_query($sql);
	$str='
		<select id="id_cat" name="id_cat" onchange="select_onchange1()" class="main_font">
		<option>Chọn danh mục</option>			
		';
	while ($row=@mysql_fetch_array($stmt)) 
	{
		if($row["id"]==(int)@$_REQUEST["id_cat"])
			$selected="selected";
		else 
			$selected="";
		$str.='<option value='.$row["id"].' '.$selected.'>'.$row["ten"].'</option>';			
	}
	$str.='</select>';
	return $str;
}


function get_main_item()
{
	$sql_huyen="select * from table_product_list where id_cat='".$_REQUEST['id_cat']."'  order by id desc ";
	$result=mysql_query($sql_huyen);
	$str='
		<select id="id_list" name="id_list" onchange="select_onchangelist()" class="main_font">
		<option>Chọn danh mục</option>			
		';
	while ($row_huyen=@mysql_fetch_array($result)) 
	{
		if($row_huyen["id"]==(int)@$_REQUEST["id_list"])
			$selected="selected";
		else 
			$selected="";
		$str.='<option value='.$row_huyen["id"].' '.$selected.'>'.$row_huyen["ten"].'</option>';			
	}
	$str.='</select>';
	return $str;
}
function get_main_item2()
{
	$sql_huyen2="select * from table_product_item where id_cat=".$_REQUEST['id_cat']." and id_list=".$_REQUEST['id_list']." order by stt desc ";
	$result2=mysql_query($sql_huyen2);
	$str='
		<select id="id_item" name="id_item" onchange="" class="main_font">
		<option>Chọn danh mục</option>	
		';
	while ($row_huyen2=@mysql_fetch_array($result2)) 
	{
		if($row_huyen2["id"]==(int)@$_REQUEST["id_item"])
			$selected="selected";
		else 
			$selected="";
		$str.='<option value='.$row_huyen2["id"].' '.$selected.'>'.$row_huyen2["ten"].'</option>';			
	}
	$str.='</select>';
	return $str;
}
	$act = (isset($_REQUEST['act'])) ? "&act=".$_REQUEST['act'] : '';
	$id_cat = (isset($_REQUEST['id_cat'])) ? "&id_cat=".$_REQUEST['id_cat'] : '';
	$id_list = (isset($_REQUEST['id_list'])) ? "&id_list=".$_REQUEST['id_list'] : '';
	$id_item = (isset($_REQUEST['id_item'])) ? "&id_item=".$_REQUEST['id_item'] : '';
	$curPage = (isset($_REQUEST['curPage'])) ? "&curPage=".$_REQUEST['curPage'] : 1;
	if(!isset($_REQUEST['act'])) $_REQUEST['act']="";
?>
<form name="frm" method="post" action="index.php?com=sanpham&act=save<?=$curPage?><?=$id_cat?><?=$id_list?><?=$id_item?>" enctype="multipart/form-data" class="nhaplieu">
    <b>Danh mục cấp 1:</b>
    <?=get_main_category();?>
    <br />
    <b>Danh mục cấp 2:</b>
    <?=get_main_item();?>
    <br />
    <br />
    <!-- <b>Danh mục cấp 3:</b><?=get_main_item2();?><br /><br />   --> 
    
    <b>Banner top:</b><img src="<?=_upload_sanpham.$item['photo2']?>" width="800px"  alt="NO PHOTO" /><br />
    <b>Chọn Banner top:</b>
    <input type="file" name="file2" />
    <?=_product_type?>
    width:1349px - height: 265px<br />
    <b>Hiển thị banner top</b>
    <input type="checkbox" name="httop" <?=(!isset($item['httop']) || $item['httop']==1)?'checked="checked"':''?>>
    <br />
    <br />
    <br />
    <br>
    <div style="width:350px;float:left">
    <?php 
	if ($_REQUEST['act']=="edit")
	{
	?>
        <b>Banner trái:</b><b>Hiển thị banner trái</b>
        <input type="checkbox" name="htleft" <?=(!isset($item['htleft']) || $item['htleft']==1)?'checked="checked"':''?>>
        <br />
        <br />
        <b>Link</b>
        <input type="text" name="link3" value="<?=$item['link3']?>" class="input" />
        <br />
        <img src="<?=_upload_sanpham.$item['photo3']?>" width="100" > <br />
        <?php }?>
        <b>Banner trái:</b>
        <input type="file" name="file3" />
        110 x 500 <span style="font-weight:bold">
        <?=_product_type?>
        </span> <br />
        <br />
        <br>
    </div>
    <div style="width:350px;float:left;margin-left:10px">
        <?php if ($_REQUEST['act']=="edit")
	{?>
        <b>Banner phải:</b><b>Hiển thị banner phải</b>
        <input type="checkbox" name="htright" <?=(!isset($item['htright']) || $item['htright']==1)?'checked="checked"':''?>>
        <br />
        <br />
        <b>Link</b>
        <input type="text" name="link4" value="<?=$item['link4']?>" class="input" />
        <br />
        <img src="<?=_upload_sanpham.$item['photo4']?>" width="100" > <br />
        <?php }?>
        <b>Banner phải:</b>
        <input type="file" name="file4" />
        110 x 500 <span style="font-weight:bold">
        <?=_product_type?>
        </span> <br />
        <br />
        <br>
    </div>
    <br>
    <?php if ($_REQUEST['act']=="edit")
	{?>
    <b>Hình hiện tại:</b><img src="<?=_upload_sanpham.$item['photo']?>" width="200px"  alt="NO PHOTO" /><br />
    <?php }?>
    <b>Hình ảnh đại diện:</b>
    <input type="file" name="file" />
    <?=_product_type?>
    width:500px - height: 340px<br />
    <br />
    <br>
    <b>Tên</b>
    <input type="text" name="ten" value="<?=$item['ten']?>" class="input" />
    <br />
    <b>Mô tả</b>
    <input type="text" name="vitri" value="<?=$item['vitri']?>" class="input" />
    <br />
    <!--<b>Mã SP</b> <input type="text" name="maso" value="<?=$item['maso']?>" class="input" /><br /> 
	    <b>Giá gốc</b> <input type="text" name="gia2" value="<?=$item['gia2']?>" class="input" /> VNĐ<br /> --> 
    <!--<b>Giá bán</b> <input type="text" name="gia" value="<?=$item['gia']?>" class="input" /> VNĐ<br />
   
   <b>Màu sắc</b> <input type="text" name="mausac" value="<?=$item['mausac']?>" class="input" /><br /> 
   <b>Tình trạng</b> <input type="text" name="tinhtrang" value="<?=$item['tinhtrang']?>" class="input" /><br /> --> 
    <!-- <b>Mô tả</b>
	<div>
	 <textarea name="mota" id="mota" cols="50" rows="5"><?=$item['mota']?></textarea></div>
      
      <br/>
    <b>Đánh giá:</b>
	 <textarea name="danhgia" id="danhgia" cols="50" rows="5"><?=$item['danhgia']?></textarea>
     <br/>
      
     <b>Nội dung</b><br/>
	<div>
	 <textarea name="noidung" id="noidung"><?=$item['noidung']?></textarea></div>
      --> 
    <br/>
    <b>Keyword</b>
    <input type="text" name="keyword" value="<?=@$item['keyword']?>" class="input" />
    <br />
    <br>
    <b>Description </b>
    <div>
        <textarea type="text" cols="50" rows="5" name="description" ><?=@$item['description']?>
</textarea>
    </div>
    <b>Số thứ tự</b>
    <input type="text" name="stt" value="<?=isset($item['stt'])?$item['stt']:1?>" style="width:30px">
    <br>
    <b>Hiển thị tin</b>
    <input type="checkbox" name="hienthi" <?=(!isset($item['hienthi']) || $item['hienthi']==1)?'checked="checked"':''?>>
    <br />
    <br />
    <input type="hidden" name="id" id="id" value="<?=@$item['id']?>" />
    <input type="submit" value="Lưu" class="btn" />
    <input type="button" value="Thoát" onclick="javascript:window.location='index.php?com=sanpham&act=man&id_cat=<?=$_REQUEST['id_cat']?>&id_list=<?=$_REQUEST['id_list']?>&id_item=<?=$_REQUEST['id_item']?>'" class="btn" />
</form>

Youez - 2016 - github.com/yon3zu
LinuXploit