📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv9.demodesign.com.tr
/
adminco
/
inc
📝
support_tickets.php
← Geri Dön
<?php if(!defined('ADMIN_INCLUDED')) { exit; } ?> <?php if(m_a_g('status')=='') { $informations = $db->table('support_tickets')->order('id','desc')->get(); $title = LGA_ALL_SUPPORT_TICKETS; } else { switch(m_a_g('status')) { case '0': $title = LGA_WAIT_RESPONSE_TICKETS; break; case '1': $title = LGA_ANSWERED_TICKETS; break; case '2': $title = LGA_CLOSED_TICKETS; break; } $informations = $db->table('support_tickets')->where('status','=',m_a_g('status'))->order('id','desc')->get(); } ?> <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=support_tickets"><h4 class="mb-sm-0 font-size-18"><?php echo LGA_SUPPORT_TICKETS; ?></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_SUPPORT_TICKETS; ?></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 LGA_SUPPORT_TICKETS; ?> - <?php echo $title; ?></h4> </div> <div class="card-body"> <table id="datatable_default" class="table table-bordered dt-responsive nowrap w-100"> <thead> <tr> <th><?php echo LGA_TITLE; ?></th> <th class="text-center"><?php echo LGA_CUSTOMER; ?></th> <th class="text-center"><?php echo LGA_LAST_ANSWER; ?></th> <th class="text-center"><?php echo LGA_STATUS; ?></th> <th class="text-center"><?php echo LG_LAST_UPDATED; ?></th> <th class="text-end"><?php echo LGA_ACTIONS; ?></th> </tr> </thead> <tbody> <?php if($informations['total_count']>0) { foreach($informations['data'] as $info) { $answers = $db->table('support_messages')->where('t_id','=',$info['id'])->order('id','desc')->get(); if($answers['total_count']=='0') { $last_answer = '<span class="badge bg-primary">'.LGA_CUSTOMER.'</span>'; } else { if($answers['data'][0]['author']==$info['u_id']) { $last_answer = '<span class="badge bg-primary">'.LGA_CUSTOMER.'</span>'; } else { $last_answer = '<span class="badge bg-danger">'.LGA_CUSTOMER_REPRESENTATIVE.'</span>'; } } echo ' <tr> <td>'.$info['title'].'</td> <td>'.m_user('name',$info['u_id']).' '.m_user('lastname',$info['u_id']).'</td> <td class="text-center">'.$last_answer.'</td> <td class="text-center">'.m_ticket_status($info['status']).'</td> <td>'.m_date_to_tr($info['date']).'</td> <td class="text-end"> <a href="'.ADMIN_URL.'/index.php?page=support_ticket&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_DELETE_QUESTION.'" href="'.ADMIN_URL.'/index.php?page=delete&table=support_tickets&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