simple_index.php
3.78 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
<?PHP
header("Content-type: text/html; charset=Shift_JIS");
//***************************
//* インクルードファイル
//***************************
include("../include/dbset.inc");
include("../include/dbcon.inc");
include("../include/jcode.phps");
include("../../include/mtcnews.inc");
session_unregister("ADD_SYAIN_CD");
//表葢
$strSQL = "SELECT disp_name " .
"FROM mst_disp " .
"WHERE disp_id = '1'";
$objRecSet = pg_exec($strSQL);
if($objRecSet==false){
echo("SQLsuW敗oGSELECT)");
exit;
}
$objData = pg_fetch_object($objRecSet, 0);
$stDisp_Name = mb_convert_encoding($objData->disp_name, "EUC-JP", "ASCII,JIS,UTF-8,EUC-JP,SJIS");
// 合計ポイントを取得する
//
// 戻り値 合計ポイント
function get_point_total($user_id){
$hostname="172.31.16.254";
$database="post_kanri";
if( !$pg_con2=pg_connect("host=$hostname port=5434 dbname=$database user=pgsqladmin password=pgsqladmin") ) {
print "Error : connect to ${hostname}<br>";
exit;
}
//表示名称を取得
$strSQL = "SELECT use_point,max_point " .
"FROM mst_kanri,point_tbl " .
"WHERE mst_kanri.user_id=point_tbl.user_id and mst_kanri.angou = '".$user_id."'";
$objRecSet = pg_exec($pg_con2,$strSQL);
if($objRecSet==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
if(pg_numrows($objRecSet)!=0){
$objRecData = pg_fetch_object($objRecSet, 0);
$Point = $objRecData->use_point;
$max_point = $objRecData->max_point;
}else{
$Point = 0;
$max_point = 0;
}
return array($Point,$max_point);
}
list($Point,$max_point) = get_point_total($dkey);
?>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<META http-equiv="Content-Style-Type" content="text/css">
<TITLE><?PHP echo jcodeconvert($stDisp_Name,1,2) ?></TITLE>
</HEAD>
<BODY bgcolor="White">
<FORM METHOD="POST">
<center>
<FONT color=blue size=5>め〜るNiポン(携帯版)</FONT><br>
<HR width="100%">
<?PHP
//*** 広告 ***//
include("../include/Advertisement.inc");
?>
</center>
<!-- <a href="./../mente.html">【緊急メンテナンスのお知らせ】</a><BR><BR> -->
<?PHP if($PHP_POST_DB_FLG==6){ ?>
現在、<?PHP echo $Point ?>ポイントご利用可能です<br><br>
<?PHP } ?>
<A href="../kojin_tran/mkojin_Tran.php?dkey=<?PHP echo $dkey ?>&PHP_SYAIN_CD=<?PHP echo $PHP_SYAIN_CD ?>&PHP_DB_NAME=<?PHP echo $PHP_DB_NAME ?>&PHP_POST_DB_FLG=<?PHP echo $PHP_POST_DB_FLG ?>&PHP_POST_DB_USER_NAME=<?PHP echo $PHP_POST_DB_USER_NAME ?>" target="_self">
個人メール配信
</A><br>
<A href="../group_tran/group_Tran.php?dkey=<?PHP echo $dkey ?>&PHP_SYAIN_CD=<?PHP echo $PHP_SYAIN_CD ?>&PHP_DB_NAME=<?PHP echo $PHP_DB_NAME ?>&PHP_POST_DB_FLG=<?PHP echo $PHP_POST_DB_FLG ?>&PHP_POST_DB_USER_NAME=<?PHP echo $PHP_POST_DB_USER_NAME ?>" target="_self">
グループメール配信
</A><br>
<A href="../haisin_check/itiran.php?dkey=<?PHP echo $dkey ?>&PHP_SYAIN_CD=<?PHP echo $PHP_SYAIN_CD ?>&PHP_DB_NAME=<?PHP echo $PHP_DB_NAME ?>&PHP_POST_DB_FLG=<?PHP echo $PHP_POST_DB_FLG ?>&PHP_POST_DB_USER_NAME=<?PHP echo $PHP_POST_DB_USER_NAME ?>" target="_self">
配信メール一覧
</A><br>
<!--
現時点で、機能制御
<A href="user/user_ichiran.php?dkey=<?PHP echo $dkey ?>" target="_self">
ユーザ情報マスタ
</A><br>
<A href="group1_group2/group1_group2.php?dkey=<?PHP echo $dkey ?>" target="_self">
グループ情報マスタ
</A><br>
<A href="disp/disp_reg.php?dkey=<?PHP echo $dkey ?>" target="_self">
表示文言マスタ
</A><br>
<A href="answer/ans_list.php?dkey=<?PHP echo $dkey ?>" target="_self">
回答文言マスタ
</A><br>
-->
<BR>
<HR width="100%">
[<A href="../index.php" target="_self">ログアウト</a>]
<br>
<HR width="100%">
<?PHP
echo "<font size=\"2\">[ASP / SaaS 製品情報]<br />".jcodeconvert($Mail_Keitai_news,1,2)."</font>";
?>
<HR width="100%">
<CENTER>
<font color="#666666">Copyright (C) 2004 Media Tech Inc. All rights reserved.</font>
</FORM>
</CENTER>
</BODY>
</HTML>