MIL040.php
4.21 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
<?php
//*****************************************************************************
//*
//* プログラム名:Webメールアドレス帳画面
//* プログラムID:MIL040.php
//* 機能 :メール アドレス帳 新規追加/修正/削除
//* 作成者 :K.Yoshimura
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
include("include/session_start.inc");
include("include/SessionChk.inc");
include("inc/header.inc");
include("inc/MIL040.inc");
$strDBinc="include/dbcon.inc";
include($strDBinc);
//メニューセット
include("menu_opacity.php");
?>
<form name="e_gru">
<?php
$strSQLad="";
$objRecad="null";
$strSQLmi="";
$objRecmi="null";
//未読メッセージ取得
$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;
}
//個人用メールアドレス取得
$strSQLad="Select seq,view_name,view_name_kana,mail_address from mail_address_tbl".
" Where syain_cd = '$PHP_SYAIN_CD' Order by view_name_kana";
$objRecad = pg_exec($strSQLad);
if($objRecad==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
?>
<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>
<TABLE border=0>
<TR>
<TD align="left"><input type="button" value=" メールアドレス追加 " onClick="mail_add();"></TD>
</TR>
</TABLE>
<BR>
<TABLE cellSpacing=1 cellPadding=1 width="802" class="mainColor" border=0>
<TR>
<TD>
<TABLE cellSpacing=1 cellPadding=1 width="800" align=center class="mainColor" border=0>
<TR class="toneDown">
<TD width="200" align="center"><span class="Normalfont">名前</span></TD>
<TD width="250" align="center"><span class="Normalfont">フリガナ</span></TD>
<TD width="250" align="center"><span class="Normalfont">E-mail</span></TD>
<TD width="50" align="center"><span class="Normalfont">修正</span></TD>
<TD width="50" align="center"><INPUT type=button value="削除" onclick="del_chk(3);"></TD>
</TR>
<?php
if (pg_numrows($objRecad)==0){
?>
<TR bgcolor="#ffffff">
<TD colspan="5"><span class="Normalfont"> メールアドレスは登録されていません</span></TD>
</TR>
<?php
}
for ($intCnt = 0; $intCnt < pg_numrows($objRecad); $intCnt++) {
$objData = pg_fetch_object($objRecad, $intCnt);
?>
<TR bgcolor="#ffffff">
<TD width="200" align="left">
<span class="Normalfont"><?php echo $objData->view_name ?></span>
</TD>
<TD width="250">
<span class="Normalfont"><?php echo $objData->view_name_kana ?></span>
</TD>
<TD width="250">
<span class="Normalfont"><?php echo $objData->mail_address ?></span>
</TD>
<TD width="50" align="center">
<INPUT type=button value="修正" onclick="edit_address(<?php echo $objData->seq ?>);">
</TD>
<TD width="50" align="center">
<INPUT type="checkbox" name="del_seq[]" value="<?php echo $objData->seq ?>">
</TD>
</TR>
<?php
}
?>
</TABLE>
</TD>
</TR>
</TABLE><BR>
</Center>
<HR width="100%">
<input type="hidden" name="seq" value="">
<input type="hidden" name="kind_flg" value="">
</form>
<?php
//コピーライト
include("include/copyright.inc");
?>