CON900.php
7.39 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?php
//*****************************************************************************
//*
//* プログラム名:管理者情報設定
//* プログラムID:CON900
//* 機能 :管理者情報を設定する
//* 作成者 :
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
include("include/session_start.inc");
include("include/SessionChk.inc");
include("include/dbcon.inc");
include("inc/header.inc");
include("inc/CON900.inc");
//メニュー
include("menu_opacity.php");
$strSQL = "SELECT syain_tbl.syain_cd,name_kj_sei,name_kj_mei,kanri_bit ";
$strSQL .= "FROM syain_tbl left join mst_kanri on syain_tbl.syain_cd=mst_kanri.syain_cd ";
$strSQL .= "WHERE del_flg =true ORDER BY disp_rank";
$objRec = pg_exec($pg_con,$strSQL);
for ($i = 0 ; $i <= pg_numrows($objRec)-1 ; $i++) {
$objData = pg_fetch_object($objRec, $i);
$strSyain_cd[$i]=$objData->syain_cd;
$strSyain_nm[$i]=$objData->name_kj_sei." ".$objData->name_kj_mei;
$kanri_bit[$i]=$objData->kanri_bit;
}
if ($PHP_MODE_FLG==2){
$Disabled_flg=" disabled";
$PHP_TITLE_NAME[17] = "プロジェクト管理";
}
?>
<form name="e_gru">
<?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("CON900HLP.htm")'><img src="image/help.gif" border="0"></a> <a href='javascript:Disp_Help("CON900HLP.htm")'>ヘルプ</a></div></th>
</tr>
</table>
<div align="right"></div>
</td>
</tr>
</table>
<br>
<table width="810" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="40" align="left">
<input type="button" onclick="return chk();" value=" 設 定 " name="touroku">
</td>
<td height="40" align="right">
<input type="button" onclick="return back();" value=" 戻 る " name="modoru">
</td>
</tr>
</table>
<table width="802" border="0" cellspacing="1" cellpadding="1" bgcolor="#9999ff">
<tr><td>
<table cellspacing="1" cellpadding="1" width="800" border="0">
<tr bgcolor="#ffffff">
<td height="30" width="300" noWrap bgcolor="#ccccff"><span class="Normalfont">社員名</span><span class="Chufont"></span></td>
<td height="30" width="50" noWrap bgcolor="#ccccff"><span class="Normalfont">マスタ権限</span><span class="Chufont"></span></td>
<td height="30" width="50" noWrap bgcolor="#ccccff"><span class="Normalfont"><?php echo $PHP_TITLE_NAME[0]; ?>権限</span><span class="Chufont"></span></td>
<td height="30" width="50" noWrap bgcolor="#ccccff"><span class="Normalfont"><?php echo $PHP_TITLE_NAME[7]; ?>権限</span><span class="Chufont"></span></td>
<td height="30" width="50" noWrap bgcolor="#ccccff"><span class="Normalfont"><?php echo $PHP_TITLE_NAME[11]; ?>権限</span><span class="Chufont"></span></td>
<td height="30" width="50" noWrap bgcolor="#ccccff"><span class="Normalfont"><?php echo $PHP_TITLE_NAME[8]; ?>権限</span><span class="Chufont"></span></td>
<td height="30" width="50" noWrap bgcolor="#ccccff"><span class="Normalfont"><?php echo $PHP_TITLE_NAME[5]; ?>権限</span><span class="Chufont"></span></td>
<td height="30" width="50" noWrap bgcolor="#ccccff"><span class="Normalfont"><?php echo $PHP_TITLE_NAME[4]; ?>権限</span><span class="Chufont"></span></td>
<td height="30" width="50" noWrap bgcolor="#ccccff"><span class="Normalfont"><?php echo $PHP_TITLE_NAME[17]; ?>権限</span><span class="Chufont"></span></td>
<td height="30" width="50" noWrap bgcolor="#ccccff"><span class="Normalfont"><?php echo $PHP_TITLE_NAME[19]; ?>権限<br>(個人)</span><span class="Chufont"></span></td>
<td height="30" width="50" noWrap bgcolor="#ccccff"><span class="Normalfont"><?php echo $PHP_TITLE_NAME[19]; ?>権限<br>(全体)</span><span class="Chufont"></span></td>
</tr>
<?php for ($i = 0 ; $i <= count($strSyain_cd)-1 ; $i++) { ?>
<tr bgcolor="#ffffff">
<td height="30" noWrap bgcolor="#ffffff"><span class="Normalfont"><?php echo $strSyain_nm[$i]; ?></span></td>
<td>
<INPUT type="checkbox" name="chk_flg1" value="1" <?php if ((int)substr($kanri_bit[$i] , 0 , 1)==1){ echo "checked";} ?> >
</td>
<td>
<INPUT type="checkbox" name="chk_flg2" value="1" <?php if ((int)substr($kanri_bit[$i] , 1 , 1)==1){ echo "checked";} ?> <?php if ($PHP_TITLE_NAME[0]==""){ echo " disabled"; }?>>
</td>
<td>
<INPUT type="checkbox" name="chk_flg3" value="1" <?php if ((int)substr($kanri_bit[$i] , 2 , 1)==1){ echo "checked";} ?> <?php if ($PHP_TITLE_NAME[7]==""){ echo " disabled"; }?>>
</td>
<td>
<INPUT type="checkbox" name="chk_flg4" value="1" <?php if ((int)substr($kanri_bit[$i] , 3 , 1)==1){ echo "checked";} ?> <?php echo $Disabled_flg; ?> <?php if ($PHP_TITLE_NAME[11]==""){ echo " disabled"; }?>>
</td>
<td>
<INPUT type="checkbox" name="chk_flg5" value="1" <?php if ((int)substr($kanri_bit[$i] , 4 , 1)==1){ echo "checked";} ?> <?php if ($PHP_TITLE_NAME[8]==""){ echo " disabled"; }?>>
</td>
<td>
<INPUT type="checkbox" name="chk_flg6" value="1" <?php if ((int)substr($kanri_bit[$i] , 5 , 1)==1){ echo "checked";} ?> <?php echo $Disabled_flg; ?> <?php if ($PHP_TITLE_NAME[5]==""){ echo " disabled"; }?>>
</td>
<td>
<INPUT type="checkbox" name="chk_flg7" value="1" <?php if ((int)substr($kanri_bit[$i] , 6 , 1)==1){ echo "checked";} ?> <?php echo $Disabled_flg; ?> <?php if ($PHP_TITLE_NAME[4]==""){ echo " disabled"; }?>>
</td>
<td>
<INPUT type="checkbox" name="chk_flg8" value="1" <?php if ((int)substr($kanri_bit[$i] , 7 , 1)==1){ echo "checked";} ?> <?php echo $Disabled_flg; ?> <?php if ($PHP_TITLE_NAME[17]==""){ echo " disabled"; }?>>
</td>
<td>
<INPUT type="checkbox" name="chk_flg9" value="1" <?php if ((int)substr($kanri_bit[$i] , 8 , 1)==1){ echo "checked";} ?> <?php echo $Disabled_flg; ?> <?php if ($PHP_TITLE_NAME[19]==""){ echo " disabled"; }?>>
</td>
<td>
<INPUT type="checkbox" name="chk_flg10" value="1" <?php if ((int)substr($kanri_bit[$i] , 9 , 1)==1){ echo "checked";} ?> <?php echo $Disabled_flg; ?> <?php if ($PHP_TITLE_NAME[19]==""){ echo " disabled"; }?>>
</td>
<INPUT type="hidden" name="Syain_cd[]" value="<?php echo $strSyain_cd[$i]; ?>">
</tr>
<?php } ?>
</table>
</td></tr>
</table>
<table width="810" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="40" align="left">
<input type="button" onclick="return chk();" value=" 設 定 " name="touroku">
</td>
<td height="40" align="right">
<input type="button" onclick="return back();" value=" 戻 る " name="modoru">
</td>
</tr>
</table>
<INPUT type="hidden" name="chkMode1" value="" >
<INPUT type="hidden" name="chkMode2" value="" >
<INPUT type="hidden" name="chkMode3" value="" >
<INPUT type="hidden" name="chkMode4" value="" >
<INPUT type="hidden" name="chkMode5" value="" >
<INPUT type="hidden" name="chkMode6" value="" >
<INPUT type="hidden" name="chkMode7" value="" >
<INPUT type="hidden" name="chkMode8" value="" >
<INPUT type="hidden" name="chkMode9" value="" >
<INPUT type="hidden" name="chkMode10" value="" >
<?php }else{ ?>
<a href="TOP000.php"><span class="Normalfont">マスタ変更権限がありません</span></a>
<?php } ?>
</form>
<?php
//コピーライト
include("include/copyright.inc");
?>