| Server IP : 172.67.216.113 / Your IP : 104.23.243.32 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/cp648411/www/kainumber.com/mybackend/admin/ |
Upload File : |
<?php require_once("../include/class.php");?>
<?php require_once("../include/header.php");?>
<?php require_once("../include/nav_top.php");?>
<?php require_once("../include/sidebar.php");?>
<?php include('../include/sql_injection_get.php');?>
<?php include("table_name.php");?>
<?php
/*if(!is_numeric($_GET["id"]))
{
?>
<meta http-equiv="refresh" content="0;URL=../index.php">
<?php
}*/
?>
<div id="main-content">
<div class="container-fluid">
<ul class="breadcrumb">
<li><a href="#">Member</a><span class="divider">»</span></li>
<li class="active">View Profile</li>
</ul>
<div class="row-fluid">
<div class="span12">
<div class="nonboxy-widget">
<div class="widget-head">
<h5> profile </h5>
</div>
<?php
$g_id = $_GET["id"];
if($_GET["id"] == '')
{
$g_id = $_SESSION["admin_cn_id"];
}
$sql = array('table'=>$name_table,'where'=>"id = '". $g_id."'");
$view_sql = $view_db->view($sql);
$row = $view_db->q($view_sql);
?>
<div class="widget-content">
<div class="widget-box">
<?php
if($_GET['er']=='true')
{
?>
<div class="alert alert-success fade in">
<button data-dismiss="alert" class="close" type="button">×</button>
<strong>บันทึก</strong> เสร็จแล้วร้อยค่ะ
</div>
<?php
}
if($_GET['er']=='false')
{
?>
<div class="alert alert-error fade in">
<button data-dismiss="alert" class="close" type="button">×</button>
<strong>ระบบขัดข้อง</strong> กรุณาทำรายการใหม่ค่ะขอบคุณค่ะ
</div>
<?php
}
?>
<div class="form-horizontal well">
<fieldset>
<div class="control-group">
<label class="control-label">Username :</label>
<div class="controls">
<label class="checkbox inline"><?php echo $row['username']?></label>
</div>
</div>
<div class="control-group">
<label class="control-label">สถานะ :</label>
<div class="controls">
<label class="checkbox inline">
<?php
if($row['status'] == 1)
{
echo 'เปิดใช้งาน';
}
else
{
echo 'ปิดใช้งาน';
}
?>
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">ตำแหน่ง :</label>
<div class="controls">
<label class="checkbox inline">
<?php
if($row['type'] == 1)
{
echo 'Administrator ';
}
if($row['type'] == 2)
{
echo 'Webmaster';
}
?>
</label>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-info" onClick="window.location='edit.php';">Edit Profile</button>
<button class="btn btn-warning" onClick="window.location='../main/index.php';">Cancel</button>
</div>
</fieldset>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php require_once("../include/footer_js.php");?>
</body>
</html>