ADR012.php
3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
//*****************************************************************************
//*
//* プログラム名:取引情報
//* プログラムID:ADR012.php
//* 機能 :担当者情報入力
//* 作成者 :
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
//***************************
//* インクルードファイル
//***************************
include("./include/session_start.inc");
include("./include/SessionChk.inc");
include('./include/smarty.conf');
include("./inc/header.inc");
include("./inc/STRING.inc");
include("./inc/input_chk.inc");
include("./inc/mtc_comfunc.inc");
//**** DB接続 ****//
include("./include/dbcon.inc");
if ($TantoSeq != 0){
$strSQL = "SELECT * FROM tantou_tbl WHERE seq = $ToriSeq AND tori_syain_cd='$TantoSeq'";
$objToriTan = pg_exec($strSQL);
if ($objToriTan == false){
echo "データの取得に失敗しました。";
exit;
}
$objRecData = pg_fetch_object($objToriTan, 0);
$Phpname_sei = mtc_rtrim($objRecData->last_name_j);
$Phpname_mei = mtc_rtrim($objRecData->first_name_j);
$Phpname_sei_kana = mtc_rtrim($objRecData->last_name_e);
$Phpname_mei_kana = mtc_rtrim($objRecData->first_name_e);
if ($objRecData->sex==t){
$Phpsex ='<input type="radio" value="true" name="sex" checked><span class="Normalfont">男</span>';
$Phpsex .='<input type="radio" value="false" name="sex"><span class="Normalfont">女</span>';
}else{
$Phpsex ='<input type="radio" value="true" name="sex" ><span class="Normalfont">男</span>';
$Phpsex .='<input type="radio" value="false" name="sex" checked><span class="Normalfont">女</span>';
}
$Phpbusyo = mtc_rtrim($objRecData->busyo);
$Phpyaku = mtc_rtrim($objRecData->yaku);
$Phpmemo = mtc_rtrim($objRecData->memo);
$Phpmail = $objRecData->email;
$Phptel = $objRecData->phone;
$Phphandy = $objRecData->handy;
}else{
$Phpname_sei = "";
$Phpname_mei = "";
$Phpname_sei_kana = "";
$Phpname_mei_kana = "";
$Phpsex ='<input type="radio" value="true" name="sex" checked><span class="Normalfont">男</span>';
$Phpsex .='<input type="radio" value="false" name="sex"><span class="Normalfont">女</span>';
$Phpbusyo = "";
$Phpyaku = "";
$Phpmemo = "";
$Phpmail = "";
$Phptel = "";
$Phphandy = "";
}
$o_smarty->assign('ToriSeq' , $ToriSeq);
$o_smarty->assign('TantoSeq' , $TantoSeq);
$o_smarty->assign('Phpname_sei' , $Phpname_sei);
$o_smarty->assign('Phpname_mei' , $Phpname_mei);
$o_smarty->assign('Phpname_sei_kana' , $Phpname_sei_kana);
$o_smarty->assign('Phpname_mei_kana' , $Phpname_mei_kana);
$o_smarty->assign('Phpsex' , $Phpsex);
$o_smarty->assign('Phpbusyo' , htmlspecialchars($Phpbusyo));
$o_smarty->assign('Phpyaku' , htmlspecialchars($Phpyaku));
$o_smarty->assign('Phpmemo' , htmlspecialchars($Phpmemo));
$o_smarty->assign('Phpmail' , $Phpmail);
$o_smarty->assign('Phptel' , htmlspecialchars($Phptel));
$o_smarty->assign('Phphandy' , htmlspecialchars($Phphandy));
$o_smarty->display('ADR012.tpl');
?>