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/hocthongminh.net-bk/public_html/webadmin/components/news/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hocthongminh.net-bk/public_html/webadmin/components/news/views/edit.php
<style type="text/css">
.btload {
    display: inline-block;
    padding: 6px 8px;
    background: #CCC;
    margin-left: 15px;
}
</style>
<?php
function plit_product_list($list_product)
{
	$arr_product = explode("|",$list_product);
	return $arr_product;
}
$arr_product = plit_product_list($rs->list_proid);
$product1 = isset($arr_product[0])? $arr_product[0] : '';
$product2 = isset($arr_product[1])? $arr_product[1] : '';
$product3 = isset($arr_product[2])? $arr_product[2] : '';
?>
<?=form_open(uri_string())?>
<input type="hidden" name="list_proid" id="list_proid" value="<?=$rs->list_proid?>" />
<table class="form">
    <tr>
        <td class="label"><?=lang('news_category');?></td>
        <td>
        <select name="cat_id" id="cat_id" class="w350">
            <option value="0">Loại tin tức</option>
            <?php 
                foreach($postcat as $row) :
                    $listsub1 = $this->news->get_Parent($row->cat_id);
            ?>		<option value="<?=$row->cat_id;?>" <?php if($row->cat_id==$rs->cat_id){echo 'selected="selected"';}?>><?=$row->cat_name;?></option>
            <?php endforeach;?>
        </select></td>
    </tr>
    <tr>
        <td width="150" class="required label" style="width: 150px;">Tiêu đề</td>
        <td><input type="text" name="lb_title" id="lb_title" class="w710" value="<?=htmlspecialchars($rs->lb_title)?>"></td>
    </tr>
    <tr>
        <td class="label">Ảnh đại diện<br>(135x110)</td>
        <td><a class="lib_img" href="javascript:imgLib.openLib({width:'375',height:'228',return_tag:'lb_image',action:'imgcrop'});"></a>
        <div class="lb_image">
            <input type="hidden" name="lb_image" id="lb_image" value="" />
            <? if(!empty($rs->lb_image)){?>
            <a href="javascript:imgLib.openLib({dir_img:'news/<?=$rs->lb_image?>',width:'375',height:'228', method:'imgcrop', return_tag:'lb_image', action:'imgcrop'});">
                <img src="<?=urlimg?>news/<?=$rs->lb_image?>" width="120px" />
            </a>
            <? } ?>
        </div></td>
    </tr>
    <tr>
        <td class="label">Trạng thái</td>
        <td><input type="checkbox" name="bl_active" id="bl_active" <?php if($rs->bl_active==1) echo 'checked'; ?> value="1" />
        <span style="padding:5px;">Home : <input type="checkbox" name="is_home" id="is_home" <?php if($rs->is_home==1) echo 'checked'; ?> value="1" /></span> 
        <span style="padding:5px;">Tin hot : <input type="checkbox" name="is_hot" id="is_hot" <?php if($rs->is_hot==1) echo 'checked'; ?> value="1" /></span>
        </td>
    </tr>
    <tr>
        <td valign="top" class="label">Trích đoạn</td>
        <td><textarea style="width:710px; height: 100px;" name="lb_summary" id="lb_summary"><?=$rs->lb_summary?></textarea></td>
    </tr>
    <tr>
        <td  class="label">Nội dung</td>
        <td><textarea class="full field" cols="" rows="" name="lb_content" id="wysiwyg-advanced"><?=$rs->lb_content?></textarea></td>
    </tr>
    <!--Load product-->
    <tr>
        <td width="150" class="label" style="width: 150px;">Product 1</td>
        <td><input type="text" name="product1" id="product1"  class="w350 product" value="<?=$product1?>">
        <span class="btload"><a href="<?=site?>news/product/product1" class="popup">LOAD PRODUCTS</a></span></td>
    </tr>
    <tr>
        <td width="150" class="label" style="width: 150px;">Product 2</td>
        <td><input type="text" name="product2" id="product2"  class="w350 product" value="<?=$product2?>">
        <span class="btload"><a href="<?=site?>news/product/product2" class="popup">LOAD PRODUCTS</a></span></td>
    </tr>
    <tr>
        <td width="150" class="label" style="width: 150px;">Product 3</td>
        <td><input type="text" name="product3" id="product3"  class="w350 product" value="<?=$product3?>">
        <span class="btload"><a href="<?=site?>news/product/product3" class="popup">LOAD PRODUCTS</a></span></td>
    </tr>
    <!--Meta desc-->
    <tr>
        <td width="150" class="label" style="width: 150px;">Page Title <div id="count_metatitle">0</div></td>
        <td><input type="text" name="metatitle" id="metatitle"  class="w710" value="<?=$rs->metatitle?>" onKeyUp="count_text('metatitle',70)"></td>
    </tr>
    <tr>
        <td valign="top" class="label">Page sumary <div id="count_metadesc">0</div></td>
        <td><textarea style="width:710px; height: 100px;" name="metadesc" id="metadesc" onKeyUp="count_text('metadesc',200)"><?=$rs->metadesc?></textarea></td>
    </tr>
    <tr>
        <td valign="top" class="label">Từ khóa</td>
        <td><textarea style="width: 710px; height: 100px;" name="metakey" id="metakey"><?=$rs->metakey?></textarea></td>
    </tr>
    <tr>
        <td colspan="2" align="center"><input type="submit" name="bt_submit" value="" class="capnhat"></td>
    </tr>
</table>
<?=form_close()?>
<script language="javascript">
function join_proid(){
	var p1 = $('#product1').val();
	var p2 = $('#product2').val();
	var p3 = $('#product3').val();
	
	var list_proid = p1 + '|' + p2 + '|' + p3 ;
	
	$('#list_proid').val(list_proid);
}
$(document).ready(function(e){
	count_text('metatitle',70) ;
	count_text('metadesc',300) ;
	
	$('.product').blur(function(e){
        join_proid();
    });
	$('.product').change(function(e) {
        join_proid();
    });
});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit