header.inc 6.51 KB
<?PHP 

$rootPath="/mail_ni_pon/";

include("session_start.inc");

//広告情報を取得
$news_no = rand(0, 15);
$arNews[0]="総合資金管理システム【はやぶさ君】リリース!  ⇒  <a href=\"http://www.f-mtclab.net/\" target=\"_blank\">詳しく見る</a>";
$arNews[1]="グループウェア【E−グルPro】 ⇒ <a href=\"http://www.e-gru.net/\" target=\"_blank\">詳しく見る</a>";
$arNews[2]="スケジュール管理・情報共有に!【E−グルPro】 ⇒ <a href=\"http://www.e-gru.net/\" target=\"_blank\">詳しく見る</a>";
$arNews[3]="モバイルでグループウェア【E−グルPro】 ⇒ <a href=\"http://www.e-gru.net/\" target=\"_blank\">詳しく見る</a>";
$arNews[4]="イベント登録管理【e−イベント】 ⇒ <a href=\"http://www.media-tek.co.jp/e_event/\" target=\"_blank\">詳しく見る</a>";
$arNews[5]="イベント情報のかんたん更新・管理【e−イベント】 ⇒ <a href=\"http://www.media-tek.co.jp/e_event/\" target=\"_blank\">詳しく見る</a>";
$arNews[6]="【トレーサビリティシステム】で信頼性アピール ⇒ <a href=\"http://www.asp-mtclab.net/category/7482484-1.html\" target=\"_blank\">詳しく見る</a>";
$arNews[7]="品質保証に【トレーサビリティシステム】 ⇒ <a href=\"http://www.asp-mtclab.net/category/7482484-1.html\" target=\"_blank\">詳しく見る</a>";
$arNews[8]="簡単に新着情報を更新【ホームページ新着君】 ⇒ <a href=\"http://www.asp-mtclab.net/category/7482476-1.html\" target=\"_blank\">詳しく見る</a>";
$arNews[9]="求人検索システムを自社ホームページに! ⇒ <a href=\"http://www.asp-mtclab.net/category/7482483-1.html\" target=\"_blank\">詳しく見る</a>";
$arNews[10]="携帯版ホームページ作成【携帯横丁】 ⇒ <a href=\"http://www.asp-mtclab.net/category/7482276-1.html\" target=\"_blank\">詳しく見る</a>";
$arNews[11]="携帯から携帯用HP作成【携帯横丁】 ⇒ <a href=\"http://www.asp-mtclab.net/category/7482276-1.html\" target=\"_blank\">詳しく見る</a>";
$arNews[12]="サイトに一息コンテンツ【ランキング機能付!クイズ】 ⇒ <a href=\"http://www.asp-mtclab.net/category/7482493-1.html\" target=\"_blank\">詳しく見る</a>";
$arNews[13]="web広告システム【チラシdeポン】 ⇒ <a href=\"http://www.asp-mtclab.net/category/7482877-1.html\" target=\"_blank\">詳しく見る</a>";
$arNews[14]="コストをかけずにwebで宣伝【チラシdeポン】 ⇒ <a href=\"http://www.asp-mtclab.net/category/7482877-1.html\" target=\"_blank\">詳しく見る</a>";
$arNews[15]="携帯からweb広告が出せる!【チラシdeポン】 ⇒ <a href=\"http://www.asp-mtclab.net/category/7482877-1.html\" target=\"_blank\">詳しく見る</a>";

/*

$news_no = rand(0, 1);
$arNews[0]='東日本大震災・被災企業向けの物資提供をお願いしております。 ⇒ <a href="http://www.iitvt.jp/" target="_blank">詳しく見る</a>';
$arNews[1]='東日本大震災・石巻市への支援金を受付いたしております。 ⇒ <a href="http://www.maki-ishi.net/" target="_blank">詳しく見る</a>';
*/
// 合計ポイントを取得する
// 
// 戻り値 合計ポイント
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 point_tbl " .
	          "WHERE user_id = '".$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($PHP_POST_SYAIN_ID);

include("dbcon.inc");


?>

<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
document.onclick=function()
{
	if(document.getElementById("calid1") != null)
	{
		document.getElementById("calid1").style.display="none";
		document.getElementById("calid1").innerHTML="";
	}
	if(document.getElementById("calid2") != null)
	{
		document.getElementById("calid2").style.display="none";
		document.getElementById("calid2").innerHTML="";
	}
	if(document.getElementById("calid3") != null)
	{
		document.getElementById("calid3").style.display="none";
		document.getElementById("calid3").innerHTML="";
	}
	if(document.getElementById("calid4") != null)
	{
		document.getElementById("calid4").style.display="none";
		document.getElementById("calid4").innerHTML="";
	}
}
-->
</SCRIPT>

<div id="header">
	<h1 title="め〜るNiポン!"><a href="<?PHP echo $rootPath; ?>admin/simple_index.php">め〜るNiポン!</a></h1>
	
	<div class="logOut">
		<?PHP if($PHP_POST_DB_FLG==6){ ?>
			現在、<B><FONT COLOR="#FFFF00"><?PHP echo $Point; ?></FONT>ポイント</B>ご利用可能です
		<?PHP }else{ ?>
			<!--		<FONT COLOR="#666666">現在、<B><?PHP echo $Point; ?>ポイント</B>ご利用可能です</FONT> -->
		<?PHP } ?>
		<a href="http://www.mail-ni-pon.net/category/8824713-1.html" target="_blank">
			<img src="<?PHP echo $rootPath; ?>admin/img/strat_button.gif" alt="ご利用方法" width="70" height="30" border="0">
		</a>
		<a href="http://www.mail-ni-pon.net/category/8824716-1.html" target="_blank">
			<img src="<?PHP echo $rootPath; ?>admin/img/faq_button.gif" alt="FAQ" width="70" height="30" border="0">
		</a>
		<a href="<?PHP echo $rootPath; ?>tel.htm" target="_blank">
			<img src="<?PHP echo $rootPath; ?>admin/img/toi_button.gif" alt="お問合せ" width="70" height="30" border="0">
		</a>
		<input type="button" value="メインメニュー" onClick="location.href='<?PHP echo $rootPath; ?>admin/simple_index.php'">
		<input type="button" value="ログアウト" onClick="location.href='http://www.mail-ni-pon.net/'">
	</div>
</div>

<INPUT type="hidden" name="total_point" value="<?PHP echo $Point ?>">
<INPUT type="hidden" name="total_max_point" value="<?PHP echo $max_point ?>">

<div id = "mtcnews">
	<font size = "2"> 
	<font color = "blue"><b>[ASP / SaaS 製品情報]</b></font>
	<?PHP echo $arNews[$news_no]; ?>
	</font>
	<hr size="1" color="red" style="border-style:dotted">
</div>

<div align="right" id="header_intro">
	<!--
		<a href="http://mediatech.seesaa.net/" target="_blank">
			<img src="/mail_ni_pon/admin/img/mtc_pj.gif" alt="メディアテックプロジェクト">
		</a>
	-->
		<a href="http://www.media-tek.co.jp/privacy/" target="_blank">
			【個人情報について】
		</a>     
<?PHP 
	//日付編集
	$youbi=array("日","月","火","水","木","金","土");
	$intYoubi=date("w", mktime (0,0,0,Date("m"),Date("d"),Date("Y")));
?>
	ようこそ 
	<?PHP echo $PHP_POST_DB_USER_NAME; ?>様 
	<?PHP echo Date("Y"); ?>
	<?PHP echo Date("n"); ?>
	<?PHP echo Date("j"); ?>
<?PHP echo $youbi[$intYoubi] ?>
	<?PHP echo $strMenuH ?>
	<?PHP echo Date("g"); ?>
	<?PHP echo Date("i"); ?>



</div>