TDL005.php
1.09 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
<?php
//*****************************************************************************
//*
//* プログラム名:ToDo
//* プログラムID:TDL005.php
//* 機能 :ToDo カテゴリ削除
//* 作成者 :
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
include("include/session_start.inc");
include("include/SessionChk.inc");
include('./include/smarty.conf');
$strDBinc="include/dbcon.inc";
include($strDBinc);
$strSQL="";
$objRec="null";
$strSQL = "select category_syubetu, category_name from mst_todo_category where syain_cd = '".$PHP_SYAIN_CD."' order by category_syubetu desc";
$objRec = pg_exec($strSQL);
if($objRec == false){
echo("SQL実行に失敗しました(SELECT)");
exit;
}
$listctg = "";
for($i=0;$i<pg_numrows($objRec);$i++){
$objftc = pg_fetch_object($objRec, $i);
$listctg .= "<option value='".$objftc->category_syubetu."'>".$objftc->category_name."</option>";
}
$listctg .= "<option value=''> </option>";
$o_smarty->assign('listctg',$listctg);
$o_smarty->display('TDL005.tpl');
?>