CON160.php
4.18 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
124
125
<?php
//*****************************************************************************
//*
//* プログラム名:簡易在席機能使用管理
//* プログラムID:CON160.php
//* 機能 :簡易在席機能使用管理画面を表示する
//* 作成者 :
//*
//*****************************************************************************
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("include/input_chk.inc"); //
include("inc/CON160.inc"); //
include("menu_opacity.php"); //メニュー
$strSQL = "SELECT default_data FROM mst_default_data Where data_no = 11";
$objRec = pg_exec($strSQL);
if($objRec==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
$strCHK = "";
if(pg_numrows($objRec) > 0){
$objData = pg_fetch_object($objRec,0);
if($objData->default_data == "1"){
$strCHK = "checked";
}
}
$strSQL2 = "SELECT * FROM mst_common_word Where type = 1 order by seq";
$rsRecset2 = pg_exec($pg_con,$strSQL2);
if($rsRecset2==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
$intRsCnt = pg_numrows($rsRecset2);
?>
<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("CON160HLP.htm")'><img src="image/help.gif" border="0"></a> <a href='javascript:Disp_Help("CON160HLP.htm")'>ヘルプ</a></div></th>
</tr>
</table>
<div align="right"></div>
</td>
</tr>
</table>
<br><br>
<table width="400" border="0" cellspacing="1" cellpadding="1" class="mainColor">
<tr>
<td bgColor=#ffffff>
<br>
<input type="checkbox" name="Chk_disp" id="Chk_disp" value="1" <?php echo $strCHK; ?> onClick="Fnc_Chk()">
<span class="Normalfont"><label for="Chk_disp" title="簡易在席機能を使用する。">簡易在席機能を使用する。</label></span><br><br>
</td>
</tr>
</table>
<br>
<input type="button" onclick="return sinki();" value="簡易在席項目新規作成"><br><br>
<table width="400" border="0" cellspacing="1" cellpadding="1" bgColor = "#9999ff">
<tr>
<td>
<table cellSpacing="1" cellPadding="1" border="0">
<tr bgColor = "#ccccff">
<td height = "30" width = "398" align = "center"><span class = "Normalfont">簡易在席名</span></td>
</tr>
<?php for ($i = 0 ; $i < $intRsCnt ; $i++) { ?>
<?php
$strSQL = "SELECT * FROM mst_common_word Where type = 2 And seq =".pg_result($rsRecset2,$i,"memo2");
$rsRecset = pg_exec($pg_con,$strSQL);
if($rsRecset==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
?>
<tr bgColor = "#ffffff">
<td height = "30">
<span class = "Normalfont">
<a href = "javascript:edit('<?php echo pg_result($rsRecset2, $i, "seq") ?>')"><?php echo htmlspecialchars(pg_result($rsRecset2,$i,"memo1")."(".htmlspecialchars(pg_result($rsRecset,0,"memo2")).")") ?></a>
</span>
</td>
</tr>
<?php } ?>
</table>
</td>
</tr>
</table>
<table width="400" border="0">
<tr height = "right">
<td align = "right"><input type = "button" onclick = "return back();" value = " 戻 る "></td>
</tr>
</table>
<input type = "hidden" name = "sinki_edit_flg" value = "">
<input type = "hidden" name = "seq" value = "">
<input type = "hidden" name = "intsts" value = "<?php echo $intsts ?>">
<?php }else{ ?>
<a href="TOP000.php"><span class="Normalfont">マスタ変更権限がありません</span></a>
<?php } ?>
</form>
<?php
//コピーライト
include("include/copyright.inc");
?>