403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.217.33
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/tintuc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/nhadatkhangdien.net-bk/public_html/admin/templates/tintuc/items_tpl.php
<script language="javascript">
$(document).ready(function() {
	$("#chonhet").click(function(){
		var status=this.checked;
		$("input[name='chon']").each(function(){this.checked=status;})
	});
	
	$("#xoahet").click(function(){
		var listid="";
		$("input[name='chon']").each(function(){
			if (this.checked) listid = listid+","+this.value;
			})
		listid=listid.substr(1);	 //alert(listid);
		if (listid=="") { alert("Bạn chưa chọn mục nào"); return false;}
		hoi= confirm("Bạn có chắc chắn muốn xóa?");
		if (hoi==true) document.location = "index.php?com=tintuc&act=delete&listid=" + listid;
	});
});
function select_onchange()
{	
	var b=document.getElementById("id_cat");
	window.location ="index.php?com=tintuc&act=man&id_cat="+b.value;	
	return true;
}
</script>

<h3><a href="index.php?com=tintuc&act=add">Thêm tin tức</a></h3>
<b>Danh mục: <?=get_op_category()?>
</b>
<table class="blue_table">
    <tr>
        <th style="width:5%" align="center"><input type="checkbox" name="chonhet" id="chonhet" /></th>
        <th width="5%" style="width:6%;">Stt</th>
        <th width="5%" style="width:6%;">Hình ảnh</th>
        <th style="width:20%;">Danh mục</th>
        <th style="width:40%;">Tên</th>
        <th width="9%" style="width:6%;">Tin nổi bật</th>
        <th width="9%" style="width:6%;">Hiển thị</th>
        <th width="9%" style="width:6%;">Sửa</th>
        <th width="9%" style="width:6%;">Xóa</th>
    </tr>
    <?php 
	for($i=0,$count=count($items);$i<$count;$i++)
	{
		$id_cat = isset($_REQUEST['id_cat']) ? "&id_cat=".$_REQUEST['id_cat'] : '';
		
		
		$url = 'index.php?com=tintuc&act=edit&id_item='.$items[$i]['id_item'].'&id='.$items[$i]['id'];
		$linkto = 'index.php?com=tintuc&act=man'.$id_cat.'&tinnoibat='.$items[$i]['id'];
	?>
    <tr>
        <td style="width:5%;" align="center"><input type="checkbox" name="chon" id="chon" value="<?=$items[$i]['id']?>" class="chon" /></td>
        <td style="width:6%;" align="center"><?=$items[$i]['stt']?></td>
        <td style="width:6%;" align="center"><img src="<?=_upload_tintuc.$items[$i]['photo']?>" height="50"/></td>
        <td style="width:20%;" align="center">&nbsp;</td>
        <td style="width:40%; text-align:left;padding:8px"><a href="<?=$url?>" style="text-decoration:none;"><?=$items[$i]['ten']?></a></td>
        <td style="width:6%;">
		<?php if(@$items[$i]['tinnoibat']==1){?>
            <a href="<?=$linkto?>"><img src="media/images/active_1.png" border="0"/></a>
            <? }else{?>
            <a href="index.php?com=tintuc&act=man<?=$id_cat?>&tinnoibat=<?=$items[$i]['id']?>"><img src="media/images/active_0.png" border="0" /></a>
            <?php }?></td>
        <td style="width:6%;"><?php if(@$items[$i]['hienthi']==1){?>
            <a href="index.php?com=tintuc&act=man<?=$id_cat?>&hienthi=<?=$items[$i]['id']?>"><img src="media/images/active_1.png"  border="0"/></a>
            <? }else{?>
            <a href="index.php?com=tintuc&act=man<?php if($_REQUEST['id_cat']!='') echo"&id_cat=".$_REQUEST['id_cat'] ?>&hienthi=<?=$items[$i]['id']?>"><img src="media/images/active_0.png" border="0" /></a>
            <?php }?></td>
        <td style="width:6%;" align="center"><a href="index.php?com=tintuc&act=edit&id_item=<?=$items[$i]['id_item']?>&id=<?=$items[$i]['id']?>"><img src="media/images/edit.png"  border="0"/></a></td>
        <td style="width:6%;"><a href="index.php?com=tintuc&act=delete&id=<?=$items[$i]['id']?>" onClick="if(!confirm('Xác nhận xóa')) return false;"><img src="media/images/delete.png" border="0" /></a></td>
    </tr>
    <?php	}?>
</table>
<a href="index.php?com=tintuc&act=add"><img src="media/images/add.jpg" border="0"  /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" id="xoahet"><img src="media/images/delete.jpg" border="0"  /></a>
<div class="paging">
    <?=$paging['paging']?>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit