|
@ -1,5 +1,7 @@ |
|
|
<?php |
|
|
<?php |
|
|
|
|
|
|
|
|
use function Symfony\Component\String\s; |
|
|
use function Symfony\Component\String\s; |
|
|
|
|
|
|
|
|
require_once("../conn.php"); |
|
|
require_once("../conn.php"); |
|
|
include_once("./upload_chk.php"); |
|
|
include_once("./upload_chk.php"); |
|
|
ini_set('date.timezone', 'Asia/Taipei'); |
|
|
ini_set('date.timezone', 'Asia/Taipei'); |
|
@ -119,7 +121,8 @@ if(isset($_POST['vol_no']) && !empty($_POST['vol_no']) && ($_POST['status'] == 0 |
|
|
$max_size = 4096 * 4096; //設定允許上傳檔案容量的最大值(1M) |
|
|
$max_size = 4096 * 4096; //設定允許上傳檔案容量的最大值(1M) |
|
|
$allow_ext = array('jpeg', 'jpg', 'png', 'JPG', 'JPEG', 'PNG', 'GIF', 'docx', 'doc', 'pdf'); //設定允許上傳檔案的類型 |
|
|
$allow_ext = array('jpeg', 'jpg', 'png', 'JPG', 'JPEG', 'PNG', 'GIF', 'docx', 'doc', 'pdf'); //設定允許上傳檔案的類型 |
|
|
$path = '../images/contracts_new_files/'; |
|
|
$path = '../images/contracts_new_files/'; |
|
|
if (!file_exists($path)): mkdir($path); endif; |
|
|
if (!file_exists($path)) : mkdir($path); |
|
|
|
|
|
endif; |
|
|
$msg_result = ''; //負責接收所有檔案檢測後的回傳訊息 |
|
|
$msg_result = ''; //負責接收所有檔案檢測後的回傳訊息 |
|
|
$datetime = (string)date('YmdHis'); |
|
|
$datetime = (string)date('YmdHis'); |
|
|
$files_id = 'm' . $datetime; // 保養=>b + 日期時間 |
|
|
$files_id = 'm' . $datetime; // 保養=>b + 日期時間 |
|
@ -211,8 +214,6 @@ if(isset($_POST['vol_no']) && !empty($_POST['vol_no']) && ($_POST['status'] == 0 |
|
|
echo $e->getMessage(); |
|
|
echo $e->getMessage(); |
|
|
die('Error!:' . $e->getMessage()); |
|
|
die('Error!:' . $e->getMessage()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
//結案同意 |
|
|
//結案同意 |
|
|
if (isset($_POST['vol_no']) && !empty($_POST['vol_no']) && ($_POST['status'] == 3)) { |
|
|
if (isset($_POST['vol_no']) && !empty($_POST['vol_no']) && ($_POST['status'] == 3)) { |
|
|