KST008.php
2.19 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
<?php
//*****************************************************************************
//*
//* プログラム名:取引先情報初期表示グループ設定画面
//* プログラムID:KST008.php
//* 機能 :取引先情報の初期表示設定を行う
//* 作成者 :荒内
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
include("include/session_start.inc");
include("include/SessionChk.inc");
$strDBinc="include/dbcon.inc";
include($strDBinc);
//**** メニュー ****//
// include("include/menu.inc");
//**** DB接続 ****//
$strDBinc="include/dbcon.inc";
include($strDBinc);
//*****取引先情報*****//
$strSQL="SELECT * FROM torihiki_group_tbl Order by disp_rank";
$objRecSet = pg_exec($strSQL);
if($objRecSet==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
//*****個人設定情報*****//
$strSQLkojin="SELECT * FROM tori_group_tbl Where syain_cd='$PHP_SYAIN_CD'";
$objReckojin = pg_exec($strSQLkojin);
if($objReckojin==false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
if (pg_numrows($objReckojin) > 0){
$objkojin = pg_fetch_object($objReckojin, 0);
}
?>
<span class="Tinnyfont"><br></span>
<span class="Tinnyfont"><br><br></span>
<!--個人情報入力ー-->
<table width="602" border="0" cellspacing="1" cellpadding="1" class="mainColor">
<tr>
<TD bgColor=#ffffff width="600" height="35">
<span class="Middlefont"> </span><select name="tori_group" >
<option value="99" <?php if ($objkojin->tori_group ==99){ echo "selected"; } ?>>-未設定-</option>
<?php
for ($intCnt=0; $intCnt < pg_numrows($objRecSet); $intCnt++){
$objData = pg_fetch_object($objRecSet, $intCnt);
?>
<option value="<?php echo $objData->group_seq ?>" <?php if($objData->group_seq==$objkojin->tori_group){ echo "selected"; } ?>><?php echo $objData->group_name ?></option>;
<?php
}
?>
</select>
</TD>
</tr>
</table>
<table width="702" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD height="35" width="702" align="left"><input type="button" onclick=" setdata_KST008();" value=" 設定する " name="kosin" <?php echo $PHP_DISABLED ?>></td>
<!-- <input onclick="move_top();" type="button" value=" 戻 る "></TD> -->
</TR>
</table>