403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.216.74
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/cannguyenlong.com-bk/public_html/webadmin/views/product/cat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/cannguyenlong.com-bk/public_html/webadmin/views/product/cat/editcat.php
<script language="javascript">
	jQuery(document).ready(function(){
		$('#ParentID').change(function(){
			var catid = $('#ParentID').val() ;
			$.post(url+"product/get_level", {'catid':catid}, function(data){
				$('#level').val(parseInt(data)+1) ;
			});
		});
	});
</script>
<?=form_open(uri_string(),array('id'=>'adminform'));?>
<input type="hidden" id="level" name="level" value="<?=$rs->Level?>" />
<table class="form">
    <tr>
        <td class="w150 required label">Tên danh mục</td>
        <td><input type="text" name="CategoryName" id="title" class="w300 validate[required] text-input" value="<?=$rs->CategoryName?>"></td>
    </tr>
    <tr>
        <td class="label">Danh mục</td>
        <td><select name="ParentID" id="ParentID">
                <option value="0">Là danh mục gốc</option>
                <?
            	foreach($listmaincat as $cat):
						 $listsub1 = $this->product->check_parentid($cat->CategoryID);
			 	?>
                <option value="<?=$cat->CategoryID?>" <?=($rs->ParentID == $cat->CategoryID)?'selected="selected"':'';?>>
                <?=$cat->CategoryName?>
                </option>
                <? 
					if(count($listsub1) > 0){
						foreach($listsub1 as $sub1):
				?>
                <option value="<?=$sub1->CategoryID?>" <?=($rs->ParentID == $sub1->CategoryID)?'selected="selected"':'';?>>¦&nbsp;
                <?=$cat->CategoryName?>
                &nbsp;¦&nbsp;
                <?=$sub1->CategoryName?>
                </option>
                <? 
						// level 3
						$listsub2 = $this->product->check_parentid($sub1->CategoryID);
						if(count($listsub2) > 0){
							foreach($listsub2 as $sub2):
								if($rs->ParentID == $sub2->CategoryID)
									echo '<option value="'.$sub2->CategoryID.'" selected="selected">¦&nbsp;&nbsp;'.$cat->CategoryName.' ¦ '.$sub1->CategoryName.' ¦ '.$sub2->CategoryName.'</option>' ;
								else
									echo '<option value="'.$sub2->CategoryID.'">¦&nbsp;&nbsp;'.$cat->CategoryName.' ¦ '.$sub1->CategoryName.' ¦ '.$sub2->CategoryName.'</option>' ;
							endforeach ;
						} // end level 3
					endforeach ;
				}
				endforeach;
				?>
            </select></td>
    </tr>
    <!-- start meta seo -->
    <tr>
        <td width="150" class="label" style="width: 150px;">Meta Title
            <div id="count_metatitle">0</div></td>
        <td><input type="text" name="metatitle" id="metatitle" class="w500" value="<?=$rs->metatitle?>" onKeyUp="count_text('metatitle',70)"></td>
    </tr>
    <tr>
        <td valign="top" class="label">Meta desc
            <div id="count_metadesc">0</div></td>
        <td><textarea style="width: 500px;height: 100px;" name="metadesc" id="metadesc" onKeyUp="count_text('metadesc',200)"><?=$rs->metadesc;?></textarea></td>
    </tr>
    <tr>
        <td valign="top" class="label">Meta Keyword</td>
        <td><textarea style="width: 500px;height: 100px;" name="metakey" id="metakey"><?=$rs->metakey;?></textarea></td>
    </tr>
    <!-- end meta seo -->
    <tr>
        <td class="label">Trang chủ</td>
        <td><input type="checkbox" name="IsMainMenu" value="1" <? if($rs->IsMainMenu==1){echo 'checked="checked"';}?>></td>
    </tr>
    <tr>
        <td class="label">Kích hoạt</td>
        <td><input type="checkbox" name="IsActive" value="1" <?if($rs->IsActive==1){echo 'checked="checked"';}?>></td>
    </tr>
    <tr>
        <td></td>
        <td class="footer"><input type="submit" name="bt_submit" class="capnhat"></td>
    </tr>
</table>
<?=form_close();?>

Youez - 2016 - github.com/yon3zu
LinuXploit