ÿØÿà JFIF ` ` ÿþ
Server : Apache System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : tkt_travelbus ( 1137) PHP Version : 7.0.0p1 Disable Function : mysql_pconnect Directory : /tkt_travelbus/www/admin/agent_info/ |
Upload File : |
<? include "../include/top_proc.html";//공통파일 인클루드 include "_common.php"; //테이블 $table = "TB_MEMBER"; // 알람 등록 if($SqlType=="ararm_add"){ $mb_id = $TK_MEMBER['mb_id']; if($mb_id == '') exit; $add_number = implode("-", $ag_alarm_phone); $data = member_fetch(" and mb_id='{$mb_id}' "); if($data[0]['ag_alarm_phone']){ $alarm_list = explode("|", $data[0]['ag_alarm_phone']); } $alarm_list[] = $add_number; if(count($alarm_list) > 4) { error_msg("수신번호는 4개까지만 등록 가능합니다.","reserve_alarm.html"); exit; } $ag_alarm_phone = implode("|", $alarm_list); $sql = "update {$table} set "; $sql .= " ag_alarm_phone='{$ag_alarm_phone}' "; $sql .= " where mb_id='{$mb_id}' "; db_query($sql); error_msg("알람톡 수신번호가 등록되었습니다","reserve_alarm.html"); } // 알람 삭제 else if($SqlType=="ararm_delete"){ $mb_id = $TK_MEMBER['mb_id']; if($mb_id == '') exit; $data = member_fetch(" and mb_id='{$mb_id}' "); $alarm_list = explode("|", $data[0]['ag_alarm_phone']); foreach($alarm_list as $k => $v){ if($v == $del_number) unset($alarm_list[$k]); } $ag_alarm_phone = implode("|", $alarm_list); $sql = "update {$table} set "; $sql .= " ag_alarm_phone='{$ag_alarm_phone}' "; $sql .= " where mb_id='{$mb_id}' "; db_query($sql); error_msg("알람톡 수신번호가 삭제되었습니다","reserve_alarm.html"); } ?>