📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv9.demodesign.com.tr
/
adminco
/
inc
📝
categories.php
← Geri Dön
<?php if(!defined('ADMIN_INCLUDED')) { exit; } ?> <?php if(m_a_g('id')) { $cat_informations = $db->table('categories')->where('id','=',m_a_g('id'))->get(); if($cat_informations['total_count']==0) { m_redirect(ADMIN_URL); } $cat_info = $cat_informations['data'][0]; $informations = $db->table('categories')->where('c_id','=',$cat_info['id'])->order('id','desc')->get(); $title = LGA_SUB_CATEGORIES.' - '.$cat_info['title']; } else { $informations = $db->table('categories')->where('c_id','=',0)->order('id','desc')->get(); $title = LGA_CATEGORIES_LIST; } ?> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="page-title-box d-sm-flex align-items-center justify-content-between"> <a href="<?php echo ADMIN_URL; ?>/index.php?page=categories"><h4 class="mb-sm-0 font-size-18"><?php echo LGA_CATEGORIES; ?></h4></a> <div class="page-title-right"> <ol class="breadcrumb m-0"> <li class="breadcrumb-item"><a href="<?php echo ADMIN_URL; ?>"><?php echo LGA_HOME; ?></a></li> <li class="breadcrumb-item active"><?php echo LGA_CATEGORIES; ?></li> </ol> </div> </div> </div> </div> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h4 class="card-title"><?php echo $title; ?></h4> <div class="text-end"> <a href="<?php echo ADMIN_URL; ?>/index.php?page=category_add"><span class="btn btn-success btn-label"><i class="fa fa-plus-circle label-icon"></i> <?php echo LGA_CATEGORY_ADD; ?></span></a> </div> </div> <div class="card-body"> <table id="datatable_default" class="table table-bordered dt-responsive nowrap w-100"> <thead> <tr> <th><?php echo LGA_CATEGORY_NAME; ?></th> <th class="text-center"><?php echo LGA_SUB_CATEGORIES; ?></th> <th class="text-center"><?php echo LGA_PRODUCTS; ?></th> <th class="text-center"><?php echo LGA_STATUS; ?></th> <th class="text-end"><?php echo LGA_ACTIONS; ?></th> </tr> </thead> <tbody> <?php if($informations['total_count']>0) { foreach($informations['data'] as $info) { $sc_count = number_format($db->table('categories')->where('c_id','=',$info['id'])->count()); $pc_count = number_format($db->table('products')->where_set('c_id','LIKE',"'%[".$info['id']."]%'")->count()); echo ' <tr> <td>'.$info['title'].'</td> <td class="text-center"><a href="'.ADMIN_URL.'/index.php?page=categories&id='.$info['id'].'"><span class="btn btn-light waves-effect btn-label waves-light" style="width:100px"><i class="fa fa-bezier-curve label-icon"></i> '.$sc_count.'</span></a></td> <td class="text-center"><a href="'.ADMIN_URL.'/index.php?page=products&c_id='.$info['id'].'"><span class="btn btn-light waves-effect btn-label waves-light" style="width:100px"><i class="fa fa-cubes label-icon"></i> '.$pc_count.'</span></a></td> <td class="text-center" data-order="'.$info['status'].'">'.m_admin_ajax_status('categories',$info['id'],$info['status']).'</td> <td class="text-end"> <a href="'.ADMIN_URL.'/index.php?page=category_edit&id='.$info['id'].'"><span class="btn btn-sm btn-soft-primary"><i class="fa fa-edit"></i></span></a> <a class="delete" data-question="'.LGA_CATEGORY_DELETE_QUESTION.'" href="'.ADMIN_URL.'/index.php?page=delete&table=categories&id='.$info['id'].'"><span class="btn btn-sm btn-soft-danger"><i class="fa fa-trash"></i></span></a> </td> </tr>'; } } ?> </tbody> </table> </div> </div> </div> </div> </div>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula