CON003_1.php
3.42 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
<?php
//*****************************************************************************
//*
//* プログラム名:部門情報画面(新規・修正併用)
//* プログラムID:CON003_1
//* 機能 :部門情報画面を表示する
//* 作成者 :
//*
//*****************************************************************************
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/CON003_1.inc"); //
include("menu_opacity.php"); //メニュー
switch ($_POST["sinki_edit_flg"]) {
case "sinki":
$strSyozoku_cd = "";
$strBumonName = "";
break;
case "edit":
$strSql = "SELECT * FROM mst_bumon Where syozoku_cd = ".$_POST["syozoku_cd"];
$rsRecset = pg_exec($pg_con, $strSql);
$strSyozoku_cd = pg_result($rsRecset, 0, "syozoku_cd");
$strBumonName = htmlspecialchars(pg_result($rsRecset, 0, "bumon_name"));
break;
}
?>
<form name = "e_gru" method = "POST" onsubmit = "return false">
<?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("CON003HLP.htm")'><img src = "image/help.gif" border = "0"></a> <a href = 'javascript:Disp_Help("CON003HLP.htm")'>ヘルプ</a></div></th>
</tr>
</table>
<div align = "right"></div>
</td>
</tr>
</table>
<br>
<span class = "Chufont">*</span><span class = "Normalfont">は入力必須項目です</span>
<table width = "602" border = "0" cellspacing = "1" cellpadding = "1" class = "mainColor">
<tr>
<td>
<table cellspacing = "1" cellpadding = "1" width = "600" border = "0">
<tr bgcolor = "#ffffff">
<td class = "toneDown"><span class = "Normalfont">部門名</span><span class = "Chufont">*</span></td>
<td><input type = "text" maxLength = "50" size = "100" value = "<?php echo $strBumonName ?>" name = "bumon_name"></td>
</tr>
</table>
</td>
</tr>
</table>
<table width = "602" border = "0" cellspacing = "0" cellpadding = "0">
<tr height = "40">
<td align = "left">
<input type = "button" onclick = "return chk();" value = " 設 定 " name = "btn1">
</td>
<td align = "center">
<input type = "reset" value = "ク リ ア">
</td>
<?php if($_POST["sinki_edit_flg"] == "edit") { ?>
<td align = "center">
<input type = "button" onclick = "return dell_chk();" value = " 削 除 " name = "btn2">
</td>
<?php } ?>
<td align = "right">
<input type = "button" onclick = "return back();" value = " 戻 る " name = "modoru">
</td>
</tr>
</table>
<?php }else{ ?>
<a href = "TOP000.php"><span class = "Normalfont">マスタ変更権限がありません</span></a>
<?php } ?>
<input type="hidden" name = "syozoku_cd" value = "<?php echo $strSyozoku_cd; ?>">
</form>
<?php
//コピーライト
include("include/copyright.inc");
?>