CON011.php 3.91 KB
<?php 
//*****************************************************************************
//* 
//* プログラム名:祝祭日画面表示
//* プログラムID:CON011
//* 機能        :祝祭日画面を表示する
//* 作成者      :
//* 
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");

//*****************************************************************************
//* インクルードファイル
//*****************************************************************************
include("include/session_start.inc");							//セッション開始
include("include/SessionChk.inc");								//セッションチェック
include("include/dbcon.inc");											//DB接続

//*****************************************************************************
//* 画面制御
//*****************************************************************************
include("inc/header.inc");												//
include("inc/CON011.inc");												//
include("menu_opacity.php");											//メニュー

if($jouken == "") {
	$jouken = date("Y");
}

$strSql = "SELECT seq,holiday_date,holiday_name FROM holiday_tbl ";
$strSql = $strSql." WHERE holiday_date >='".$jouken."/01/01'";
$strSql = $strSql." AND holiday_date <='".$jouken."/12/31'";
$strSql = $strSql." ORDER BY holiday_date";
$rsRecset = pg_exec($pg_con,$strSql);
$intRsCnt = pg_numrows($rsRecset);

$intLoop=date("Y")-2004+3;
?>

<form name="e_gru" method == "POST">
<?php  if ($PHP_BIT[0]==1){ ?>
	<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/t_kanri.gif" border="0"> 祝祭日設定</div></th>
						<th width="50%" scope="col"><div align="right"><a href='javascript:Disp_Help("CON011HLP.htm")'><img src="image/help.gif" border="0"></a> <a href='javascript:Disp_Help("CON011HLP.htm")'>ヘルプ</a></div></th>
					</tr>
				</table>
				<div align="right"></div>
			</td>
		</tr>
	</table>
	<br>
	<input type="button" onclick="sinki();" value="祝祭日新規作成">
	<input type="button" onclick="upall_chk();" value="祝祭日一括登録">

	<table width="420" border="0">
		<tr>
			<td align="right">
				<span class="Normalfont">年:</span>
				<select name="nendo" onchange="year_change();">
					<?php 
						for ($i = 0 ; $i <= $intLoop ; $i++) {
							$intSetValue=2004+$i;
							if ($jouken == $intSetValue) {
								echo '<option value='.$intSetValue.' selected>'.$intSetValue.'</option>';
							}else{
								echo '<option value='.$intSetValue.'>'.$intSetValue.'</option>';
							}
						}
					?>
				</select>
			</td>
		</tr>
	</table>

	<table width = "420" border = "0" cellspacing = "1" cellpadding = "1" bgColor = "#9999ff">
		<tr>
			<td>
				<table width = "419" align="center" cellspacing = "1" cellpadding = "1" border = "0">
					<tr bgColor = "#ccccff">
						<td  height = "30"  align = "center"><span class = "Normalfont">祝祭日名</span></td>
					</tr>
						<?php for ($i = 0 ; $i < $intRsCnt ; $i++) { ?>
							<tr bgColor = "#ffffff">
								<td height = "30">
									<span class = "Normalfont">
										<a href = "javascript:edit('<?php echo pg_result($rsRecset, $i, "seq") ?>')"> <?php echo pg_result($rsRecset, $i, "holiday_date") ?><?php echo htmlspecialchars(pg_result($rsRecset, $i, "holiday_name")) ?></a>
									</span>
								</td>
							</tr>
						<?php } ?>
				</table>
			</td>
		</tr>
	</table>
	<table width="420" border="0">
		<tr height = "40">
			<td align="right">
				<input type="button" onclick="return back();" value=" 戻 る " name="modoru">
			</td>
	</tr>
	</table>

	<input type="hidden" name="sinki_edit_flg" value="">
	<input type="hidden" name="seq" value="">
	<input type="hidden" name="jouken" value="">

<?php }else{ ?>
	<a href="TOP000.php"><span class="Normalfont">マスタ変更権限がありません</span></a>
<?php  } ?>
</form>
<?php 
//コピーライト
include("include/copyright.inc");
?>