MIL041.php
4.34 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?php
//*****************************************************************************
//*
//* プログラム名:Webメール
//* プログラムID:MIL041.php
//* 機能 :Webメールアドレス帳追加画面
//* 作成者 :K.Yoshimura
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
include("include/session_start.inc");
include("include/SessionChk.inc");
include("inc/header.inc");
include("include/input_chk.inc");
include("inc/MIL041.inc");
$strDBinc="include/dbcon.inc";
include($strDBinc);
//メニューセット
include("menu_opacity.php");
?>
<form name="e_gru">
<?php
//未読メッセージ取得
$strSQLmi="Select mail_id from mail_get_tbl Where syain_cd='$PHP_SYAIN_CD' and kind_flg=0 and del_flg=0";
$objRecmi = pg_exec($strSQLmi);
if($objRecmi==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
//修正の場合
if ($seq !=""){
$strSQLedit="Select view_name,view_name_kana,mail_address from mail_address_tbl Where syain_cd='$PHP_SYAIN_CD' and seq=$seq";
$objRecedit = pg_exec($strSQLedit);
if($objRecedit==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
$objData = pg_fetch_object($objRecedit, 0);
$view_name=htmlspecialchars($objData->view_name);
$view_name_kana=$objData->view_name_kana;
$mail_address=$objData->mail_address;
}else{
if (($strName!="") || ($strAddress!="")){
$view_name=$strName;
$strAddress=str_replace("<","",$strAddress);
$mail_address=str_replace(">","",$strAddress);
}
}
?>
<table width="100%" border="0" cellspacing="0">
<tr>
<td class="midashi">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<th width="50%" scope="col"><div align="left"><img src="image/mail.gif" border="0"><span class="MiddleBold"><?php echo $PHP_TITLE_NAME[13] ?></span></div></th>
<th width="50%" scope="col"><div align="right"><a href='javascript:Disp_Help("MILHLP.htm")'><img src="image/help.gif" border="0"></a> <a href='javascript:Disp_Help("MILHLP.htm")'>ヘルプ</a></div></th>
</tr>
</table><div align="right"></div>
</td>
</tr>
</table><br>
<TABLE border=0 width=100%>
<TR>
<TD align="left">
<span class="Normalfont">
[<a href="MIL001.php">新着メールの確認</a>]
[<a href="MIL010.php?from=&to=<?php echo $strMailAdd ?>&strSubject=&strBody=">新規作成</a>]
[<a href="MIL020.php">受信ボックス(未読<?php echo pg_numrows($objRecmi) ?>件)</a>]
[<a href="MIL030.php">送信ボックス</a>]
[<a href="MIL040.php">個人アドレス帳</a>]
</span>
</TD>
<TD align="right">
<span class="Normalfont">
[<a href="MIL050.php">署名設定</a>]
[<a href="MIL002.php">アカウント設定</a>]
</span>
</TD>
</TR>
</TABLE>
<BR>
<span class="Chufont">*</span><span class="Normalfont">は入力必須項目です</span>
<table width="702" border="0" cellspacing="1" cellpadding="1" class="mainColor">
<tr><td>
<table width="700" cellSpacing="1" cellPadding="1" border="0">
<tr bgcolor="#ffffff">
<td class="toneDown">
<span class="Normalfont">氏名(表示名)</span><span class="Chufont">*</span>
</td>
<td>
<input maxlength="40" size="60" value="<?php echo $view_name ?>" name="view_name">
</td>
</tr>
<tr bgcolor="#ffffff">
<td class="toneDown"><span class="Normalfont">氏名(フリガナ)</span><span class="Chufont">*</span></td>
<td>
<input maxlength="40" size="60" value="<?php echo $view_name_kana ?>" name="name_furi"><span class="Normalfont">(全角カタカナ)</span>
</td>
</tr>
<tr bgcolor="#ffffff">
<td class="toneDown"><span class="Normalfont">メールアドレス</span><span class="Chufont">*</span></td>
<td>
<input maxlength="200" size="60" value="<?php echo $mail_address ?>" name="e_mail">
</td>
</tr>
</td>
</tr>
</table>
</td></tr>
</table>
<br>
<table width="702" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD height="40" width="702" align="left">
<?php
if ($seq !=""){
?>
<input type="button" onclick="return chk(2);" value=" 修 正 " name="edit">
<?php
}else{
?>
<input type="button" onclick="return chk(1);" value=" 登 録 " name="toroku">
<?php
}
?>
<input type="button" value=" 戻 る " onClick="history.back()"></TD>
</TR>
</table>
<br>
<hr width="100%">
<input type="hidden" name="kind_flg" value="">
<?php
if ($seq !=""){
?>
<input type="hidden" name="seq" value="<?php echo $seq ?>">
<?php
}
?>
</form>
<?php
//コピーライト
include("include/copyright.inc");
?>