simple_index.php 3.78 KB
<?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.18.14";
	$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>