KST014.php
2.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
<?php
//*****************************************************************************
//*
//* プログラム名:個人設定
//* プログラムID:KST014.php
//* 機能 :電話メモメール転送設定
//* 作成者 :K.Yoshimura
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
include("include/session_start.inc");
include("include/SessionChk.inc");
$strDBinc="include/dbcon.inc";
include($strDBinc);
$strSQL="";
$objRec="null";
$strSQLIns="";
$objRecIns="null";
$strSQLUp="";
$objRecUp="null";
$strSQLDel="";
$objRecDel="null";
//メニュー
include("inc/KST014.inc");
if (empty($con)){
$con=0;
}
//メール情報取得
$strSQL= "SELECT e_mail FROM tel_trans_TBL WHERE syain_cd='$PHP_SYAIN_CD' ";
$objRec = pg_exec($strSQL);
if($objRec==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
if (pg_numrows($objRec)==1){
$objData = pg_fetch_object($objRec, 0);
$strToMailAdr = split("@",$objData->e_mail);
$strToMailAcount = $strToMailAdr[0]; //送信先メールアドレスアカウント
$strToMailDomain = $strToMailAdr[1]; //送信先メールアドレスドメイン
}
?>
<!--電話連絡メモ新規作成ー-->
<span class="Tinnyfont"><br></span>
<span class="Tinnyfont"><br><br></span>
<table width="702" border="0" cellspacing="1" cellpadding="1" class="mainColor">
<tr><td>
<TABLE cellspacing="1" cellpadding="1" width="700" align="center" class="mainColor" border="0">
<tr bgcolor="#ffffff">
<td height="30" noWrap class="toneDown">
<span class="Normalfont">転送メールアドレス</span>
</td>
<td>
<input type="text" maxlength="34" size="55" value="<?php echo $strToMailAcount?>" name="email1">@
<input maxlength="25" size="30" value="<?php echo $strToMailDomain?>" name="email2">
</td>
</tr>
</table>
</td></tr>
</table>
<table width="702">
<tr>
<td width="351" height="35" align="center"><INPUT TYPE="button" onClick="Tel_Trans()" VALUE=" 設定する " <?php echo $PHP_DISABLED ?>></td>
<td width="351" height="35" align="center"><INPUT TYPE="RESET" VALUE="入力クリア"></td>
</tr>
</table>