| 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/simded.com/prophecyadmin/control/backend/include-/ |
Upload File : |
<?php
include("../../../control/backend/include/setcalssajax.php");
//exit;
$list = array(
'table'=>'prophecy',
'id'=>$_POST['id'],
);
$list2 = array(
'table'=>'prophecy_score',
'id'=>$_POST['id_score'],
);
for($i=0;$i<=99;$i++)
{
$num = str_pad($i, 2, "0", STR_PAD_LEFT);
$list[$num] = $_POST['num_'.$num];
$list2[$num] = $_POST['score_'.$num];
}
$edit = $actiondata_db->edit_db($list);
$edit2 = $actiondata_db->edit_db($list2);
if($_POST['id_set'] > 0)
{
$list = array(
'table'=>'setting_shop',
'id'=>$_POST['id_set'],
'analyzeberby'=>$_POST['analyzeberby'],
);
$edit2 = $actiondata_db->edit_db($list);
//print_r($edit2);
}
if($edit['suc'] == 1)
{
?>
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true" style="font-family:Verdana, Geneva, sans-serif;">×</span></button>
<strong>Well done!</strong> <span> บันทึกข้อมูลเสร็จเรียบร้อย</span>
</div>
<?php
//echo '1';
}
else
{
?>
<div class="alert alert-danger" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true" style="font-family:Verdana, Geneva, sans-serif;">×</span></button>
<strong>Warning!</strong> <span> ระบบมีปัญหากรุณาลองใหม่อีกครั้งค่ะ</span>
</div>
<?php
}
?>