| 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 : /home2/cp648411/public_html/beerecord.com/fabulous/myBackend/extra/ |
Upload File : |
<?php session_start(); ?>
<?php include('../include/checkLogin.php'); ?>
<?php
date_default_timezone_set("Asia/Bangkok");
$datetime = date("Y-m-d H:i:s");
include('../include/class.php');
include('page.php');
$page = 'extra';
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Hugo 0.88.1">
<title>Mybackend</title>
<link rel="canonical" href="https://getbootstrap.com/docs/5.1/examples/dashboard/">
<!-- Bootstrap core CSS -->
<link href="../../bootstrap-5.1.3-dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script type="text/javascript" src="../include/ckeditor/ckeditor.js"></script>
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
.active1 {
background-color: #000000;
color: #ffffff;
}
</style>
<!-- Custom styles for this template -->
</head>
<body>
<?php include('../include/header.php'); ?>
<div class="alert alert-warning alert-dismissible fade <?php echo (@$_SESSION['er']) ? "show" : "hidden" ?>" role="alert" <?php echo (@$_SESSION['er']) ? "" : "hidden"; ?>>
<strong>แจ้งเตือน!</strong> <?php echo @$_SESSION['er']; ?>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<div class="container-fluid">
<div class="row">
<?php include('../include/menu_left.php'); ?>
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4 mb-5">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">เหลือเชื่อ</h1>
</div>
<?php
$sql = array('table' => $name_table, 'where' => "id = '" . $_GET["id"] . "'");
$view_sql = $view_db->view($sql);
$row = $view_db->q($view_sql);
?>
<h2>รายการ</h2>
<form class="form-horizontal well" id="signupform_product" action="edit_save.php" method="post" enctype="multipart/form-data">
<fieldset>
<div class="control-group mb-3">
<label class="control-label" for="input01">บทความ</label>
<div class="controls">
<textarea id="detail" name="detail" rows="10" cols="5" class="ckeditor span8"><?php echo $row['detail'] ?></textarea>
</div>
</div>
<div class="control-group mb-3">
<label class="control-label">รูปภาพ :</label>
<div class="controls">
<input name="image" type="file" class="span8" /><span style="color:#F00">* ขนาดรูป 163*163</span>
</div>
<?php if ($row['image'] <> '') { ?>
<div style="margin-top:30px;padding-left:160px;">
<img src="../../redbag/<?php echo $name_table; ?>/<?php echo $row['image']; ?>" width="100">
</div>
<?php } ?>
<input type="hidden" name="img_old" value="<?php echo $row['image']; ?>">
</div>
</fieldset>
<div class="form-actions text-center ">
<input type="hidden" name="id" value="<?php echo $row['id']; ?>">
<button class="btn btn-primary" type="submit">Save changes</button>
<a href="index.php" class="btn" role="button">Cancel</a>
</div>
</form>
</main>
</div>
</div>
<?php unset($_SESSION['er']) ?>
<script>
function myFunction(id) {
var copyText = document.getElementById("url_" + id);
copyText.select();
document.execCommand("Copy");
alert("Copied the text: " + copyText.value);
}
</script>
<script src="../../bootstrap-5.1.3-dist/js/bootstrap.bundle.min.js" ></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
</body>
</html>