Changeset 5224 for temp/trunk/html
- Timestamp:
- 2006/09/20 13:02:41 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/contents/inquiry.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/contents/inquiry.php
r5223 r5224 63 63 $objSess = new SC_Session(); 64 64 65 $i=0;66 sfprintr($i+1);67 68 65 // ǧ¾Ú²ÄÈݤÎȽÄê 69 66 sfIsSuccess($objSess); … … 73 70 , "3"=>"¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹", "4"=>"¥é¥¸¥ª¥Ü¥¿¥ó" 74 71 ); 75 76 77 sfprintr($i+1);78 72 79 73 $sql = "SELECT *, cast(substring(create_date, 1, 10) as date) as disp_date FROM dtb_question WHERE del_flg = 0 ORDER BY question_id"; 80 74 $result = $conn->getAll($sql); 81 75 $objPage->list_data = $result; 82 sfprintr($i+1);76 83 77 if ( $_GET['mode'] == 'regist' ){ 84 sfprintr($i+1); 78 85 79 for ( $i=0; $i<count($_POST["question"]); $i++ ) { 86 80 $_POST['question'][$i]['name'] = mb_convert_kana( trim ( $_POST['question'][$i]['name'] ), "K" ); … … 89 83 } 90 84 } 91 sfprintr($i+1); 85 92 86 $error = lfErrCheck(); 93 87 … … 97 91 //ÅÐÏ¿ 98 92 $value = serialize($_POST); 99 $sql_val = array( $value, $_POST['title'] ,$question_id );100 93 if (DB_TYPE == "pgsql") { 101 94 $question_id = $objQuery->nextval('dtb_question', 'question_id'); 102 95 } 96 $sql_val = array( $value, $_POST['title'] ,$question_id ); 103 97 $conn->query("INSERT INTO dtb_question ( question, question_name, question_id, create_date) VALUES (?, ?, ?, now())", $sql_val ); 104 98 $objPage->MESSAGE = "ÅÐÏ¿¤¬´°Î»¤·¤Þ¤·¤¿"; … … 176 170 177 171 178 179 172 // ------------ ¥¨¥é¡¼¥Á¥§¥Ã¥¯½èÍýÉô ------------ 180 173
Note: See TracChangeset
for help on using the changeset viewer.
