퍼스트가든에서 사용하는 사용자 함수 및 관련파일 추가
This commit is contained in:
28
manager/annual_member/annual_member_category.update.php
Normal file
28
manager/annual_member/annual_member_category.update.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
include_once '_common.php';
|
||||
if(!$_SESSION['user_id']) exit;
|
||||
|
||||
// 테이블 선택
|
||||
$table = $fg['annual_category_table'];
|
||||
|
||||
// 변수 선언
|
||||
$ca_name = trim($_POST['ca_name']);
|
||||
$ca_info = trim($_POST['ca_info']);
|
||||
$ca_used = 1;
|
||||
|
||||
// update query
|
||||
$query = "INSERT INTO {$table}(ca_name, ca_info, ca_used)";
|
||||
$query .= "VALUES('{$ca_name}', '{$ca_info}', '1') ";
|
||||
|
||||
$result = sql_query($query);
|
||||
|
||||
// log 기록
|
||||
$work = '연간회원/구분추가';
|
||||
$work_detail = "구분명 : ".$ca_name.", 내용 : ".$ca_info.", 처리자 : ".$_SESSION['user_name'];
|
||||
$time = date("Y-m-d H:i:s");
|
||||
|
||||
log_update($work, $work_detail, $_SESSION['user_id'], $time);
|
||||
|
||||
$data = array("isSuccess" => $result);
|
||||
header("Content-Type: application/json");
|
||||
echo json_encode($data);
|
||||
Reference in New Issue
Block a user