| Server IP : 104.21.37.246 / Your IP : 172.71.28.145 [ 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/simded.com/mybackend/package/ |
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("table_name.php");?>
<?php include('../include/sql_injection_get.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="../<?php echo $name_folder ?>/list.php"><?php echo ucfirst($name_table) ?></a><span class="divider">»</span></li>
<li class="active">Edit</li>
</ul>
<div class="row-fluid">
<div class="span12">
<div class="nonboxy-widget">
<div class="widget-head">
<h5><i class="black-icons blocks_images"></i> From </h5>
</div>
<?php
$sql = array('table'=>$name_table,'where'=>"id = '". $_GET["id"]."'");
$view_sql = $view_db->view($sql);
$row = $view_db->q($view_sql);
?>
<div class="widget-content">
<div class="widget-box">
<form class="form-horizontal well" id="signupform_product" action="edit_save.php" method="post" enctype="multipart/form-data">
<fieldset>
<div class="control-group">
<label class="control-label">ชื่อ</label>
<div class="controls">
<input id="name" name="name" type="text" class="span8" value="<?php echo $row['name']?>">
</div>
</div>
<div class="control-group">
<label class="control-label">ราคา</label>
<div class="controls">
<input id="price" name="price" type="text" class="span8" value="<?php echo $row['price']?>"/>
</div>
</div>
<div class="control-group">
<label class="control-label">ลงประกาศเบอร์ได้สูงสุด</label>
<div class="controls">
<input id="bermax" name="bermax" type="text" class="span8" value="<?php echo $row['bermax']?>"/>
</div>
</div>
<div class="control-group">
<label class="control-label">ระบบทำนายเบอร์</label>
<div class="controls">
<label class="radio">
<input type="radio" <?php if($row['predict_ber'] == 0){?>checked<?php }?> value="0" name="predict_ber">
ปิด </label>
<label class="radio">
<input type="radio" <?php if($row['predict_ber'] == 1){?>checked<?php }?> value="1" name="predict_ber">
เปิด </label>
</div>
</div>
<div class="control-group">
<label class="control-label">จำนวนการทำนายเบอร์</label>
<div class="controls">
<input id="predict_ber_limit" name="predict_ber_limit" type="text" class="span8" value="<?php echo $row['predict_ber_limit']?>"/>
</div>
</div>
<div class="control-group">
<label class="control-label">ระบบทำนายบัตรประชาชน</label>
<div class="controls">
<label class="radio">
<input type="radio" <?php if($row['predict_card'] == 0){?>checked<?php }?> value="0" name="predict_card">
ปิด </label>
<label class="radio">
<input type="radio" <?php if($row['predict_card'] == 1){?>checked<?php }?> value="1" name="predict_card">
เปิด </label>
</div>
</div>
<div class="control-group">
<label class="control-label">ทำนายทะเบียนรถ</label>
<div class="controls">
<label class="radio">
<input type="radio" <?php if($row['predict_car'] == 0){?>checked<?php }?> value="0" name="predict_car">
ปิด </label>
<label class="radio">
<input type="radio" <?php if($row['predict_car'] == 1){?>checked<?php }?> value="1" name="predict_car">
เปิด </label>
</div>
</div>
<div class="control-group">
<label class="control-label">เลขที่บ้าน</label>
<div class="controls">
<label class="radio">
<input type="radio" <?php if($row['predict_home'] == 0){?>checked<?php }?> value="0" name="predict_home">
ปิด </label>
<label class="radio">
<input type="radio" <?php if($row['predict_home'] == 1){?>checked<?php }?> value="1" name="predict_home">
เปิด </label>
</div>
</div>
<div class="control-group">
<label class="control-label">ระบบอีเมล แสดงการซื้อ-ขาย</label>
<div class="controls">
<label class="radio">
<input type="radio" <?php if($row['sm_emai'] == 0){?>checked<?php }?> value="0" name="sm_emai">
ปิด </label>
<label class="radio">
<input type="radio" <?php if($row['sm_emai'] == 1){?>checked<?php }?> value="1" name="sm_emai">
เปิด </label>
</div>
</div>
<div class="control-group">
<label class="control-label">จัดการวันหมดอายุเบอร์</label>
<div class="controls">
<label class="radio">
<input type="radio" <?php if($row['sm_ber'] == 0){?>checked<?php }?> value="0" name="sm_ber">
ปิด </label>
<label class="radio">
<input type="radio" <?php if($row['sm_ber'] == 1){?>checked<?php }?> value="1" name="sm_ber">
เปิด </label>
</div>
</div>
<div class="control-group">
<label class="control-label">สัญลักษณ์ ความน่าเชื่อถือของร้าน</label>
<div class="controls">
<label class="radio">
<input type="radio" <?php if($row['sm_label'] == 0){?>checked<?php }?> value="0" name="sm_label">
ปิด </label>
<label class="radio">
<input type="radio" <?php if($row['sm_label'] == 1){?>checked<?php }?> value="1" name="sm_label">
เปิด </label>
</div>
</div>
<div class="control-group">
<label class="control-label">รับทำป้าย Banner</label>
<div class="controls">
<label class="radio">
<input type="radio" <?php if($row['sm_banner'] == 0){?>checked<?php }?> value="0" name="sm_banner">
ปิด </label>
<label class="radio">
<input type="radio" <?php if($row['sm_banner'] == 1){?>checked<?php }?> value="1" name="sm_banner">
เปิด </label>
<input id="banner_limit" name="banner_limit" type="text" value="<?php echo $row['banner_limit']; ?>" class="span8"/> ครั้ง/เดือน
</div>
</div>
<div class="control-group">
<label class="control-label">โปรโมทผ่านเพจ Facebook Simded</label>
<div class="controls">
<label class="radio">
<input type="radio" <?php if($row['promote'] == 0){?>checked<?php }?> value="0" name="promote">
ปิด </label>
<label class="radio">
<input type="radio" <?php if($row['promote'] == 1){?>checked<?php }?> value="1" name="promote">
เปิด </label>
<input id="promote_limit" name="promote_limit" value="<?php echo $row['promote_limit']; ?>" type="text" class="span8"/> ครั้ง/เดือน
</div>
</div>
<div class="control-group">
<label class="control-label">Domain ของตัวเอง</label>
<div class="controls">
<label class="radio">
<input type="radio" <?php if($row['domain'] == 0){?>checked<?php }?> value="0" name="domain">
ปิด </label>
<label class="radio">
<input type="radio" <?php if($row['domain'] == 1){?>checked<?php }?> value="1" name="domain">
เปิด </label>
</div>
</div>
<div class="control-group">
<label class="control-label">โปรโมชั่นวันนี้ ฟรี domain name</label>
<div class="controls">
<label class="radio">
<input type="radio" <?php if($row['pro_domain'] == 0){?>checked<?php }?> value="0" name="pro_domain">
ปิด </label>
<label class="radio">
<input type="radio" <?php if($row['pro_domain'] == 1){?>checked<?php }?> value="1" name="pro_domain">
เปิด </label>
</div>
</div>
</fieldset>
<div class="form-actions">
<input type="hidden" name="img_old" value="<?php echo $row['image']; ?>">
<input type="hidden" name="id" value="<?php echo $row['id']; ?>">
<button class="btn btn-primary" type="submit">Save changes</button>
<a href="list.php" class="btn" role="button">Cancel</a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php require_once("../include/footer_js.php");?>
</body>
</html>