CON003_3.php
3.29 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
<?php
//*****************************************************************************
//*
//* プログラム名:部門エラーメッセージ
//* プログラムID:CON003_3
//* 機能 :削除する部門が使用中の場合
//* 作成者 :
//*
//*****************************************************************************
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("menu_opacity.php"); //メニュー
$strSQL = "SELECT syain_tbl.syain_cd,name_kj_sei,name_kj_mei ".
" from syain_tbl,syozoku_tbl " .
" Where syozoku_cd=".$_POST["syozoku_cd"] ." and syozoku_tbl.syain_cd=syain_tbl.syain_cd and syain_tbl.del_flg=true ".
" Order by syain_tbl.syain_cd";
$objRecSet = pg_exec($strSQL);
if($objRecSet==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
?>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
function modoru(){
document.location = "CON003.php";
}
-->
</SCRIPT>
<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("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><br>
<table border="0" width=100%>
<tr><td width=50 ></td><td align="left"><span class="Titlefont">警告メッセージ</span></td></tr>
<tr><td width=50 ></td><td align="left" height=10 ></td></tr>
<tr><td width=50 ></td><td align="left"><span class="Normalfont">削除しようとしている部門は以下の社員が使用中です</span></td></tr>
<tr><td width=50 ></td><td align="left"><span class="Normalfont">社員情報設定から部門をはずしてください</span></td></tr>
<tr><td width=50 ></td><td align="left" height=10 ></td></tr>
</table>
<table cellSpacing=1 cellPadding=1 width=500 class="mainColor" border=0>
<tr>
<td>
<table cellSpacing=1 cellPadding=1 width=498 align=center class="mainColor" border=0>
<tr><td align="left" class="toneDown" height=20><span class="Normalfont">部門使用中の社員一覧</span></td></tr>
<?php
for ($intCnt=0; $intCnt < pg_numrows($objRecSet); $intCnt++){
$objSyain = pg_fetch_object($objRecSet, $intCnt);
?>
<tr><td align="left" bgcolor="#ffffff"><span class="Normalfont"> <?php echo $objSyain->name_kj_sei.$objSyain->name_kj_mei ?></span></td></tr>
<?php } ?>
</table>
</td>
</tr>
</table>
<table border="0" width="500">
<tr><td align="right"><INPUT type="button" value=" 戻 る " onclick="modoru();"></td></tr>
</table>
<?php }else{ ?>
<a href="TOP000.php"><span class="Normalfont">マスタ変更権限がありません</span></a>
<?php } ?>
</form>
<?php
//コピーライト
include("include/copyright.inc");
?>