Changeset 18075 for branches/comu-ver2/data/class/pages/admin
- Timestamp:
- 2009/06/09 19:43:22 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/admin/order/LC_Page_Admin_Order_ProductSelect.php
r17293 r18075 45 45 parent::init(); 46 46 $this->tpl_mainpage = 'order/product_select.tpl'; 47 $this->tpl_mainno = ' products';47 $this->tpl_mainno = 'order'; 48 48 $this->tpl_subnavi = ''; 49 49 $this->tpl_subno = ""; … … 67 67 68 68 if (!isset($_POST['mode'])) $_POST['mode'] = ""; 69 69 70 if ($_GET['no'] != '') { 70 71 $this->tpl_no = strval($_GET['no']); … … 90 91 switch ($key) { 91 92 case 'search_name': 92 $where .= " AND name LIKE ?";93 $where .= " AND name ILIKE ?"; 93 94 $arrval[] = "%$val%"; 94 95 break; … … 109 110 } 110 111 111 112 /************113 if (!empty($_GET['order_id'])) {114 $arrOrderDetails = $objQuery->select('product_id', 'dtb_order_detail', 'order_id = ?', array($_GET['order_id']));115 $tmp_where = '';116 foreach ($arrOrderDetails AS $key=>$val) {117 if($tmp_where == "") {118 $tmp_where.= " product_id NOT IN ( ?";119 } else {120 $tmp_where.= ",? ";121 }122 $arrval[] = $val['product_id'];123 }124 $tmp_where.= " ) ";125 $where .= " AND " .$tmp_where;126 }127 ************/128 129 112 // 読み込む列とテーブルの指定 130 #$col = "product_id, name, category_id, main_list_image, status, product_code, price01, price02, stock, stock_unlimited, point_rate, classcategory_id1, classcategory_id2, (SELECT name FROM dtb_classcategory WHERE classcategory_id = classcategory_id1) AS classcategory_name1, (SELECT name FROM dtb_classcategory WHERE classcategory_id = classcategory_id2) AS classcategory_name2";131 #$from = "vw_products_nonclass AS noncls ";132 #$order = "update_date DESC, product_id DESC ";133 134 113 $col = "DISTINCT T1.product_id, product_code_min, product_code_max," 135 114 . " price01_min, price01_max, price02_min, price02_max," … … 183 162 // 規格名一覧 184 163 $arrClassName = $objDb->sfGetIDValueList("dtb_class", "class_id", "name"); 164 185 165 // 規格分類名一覧 186 166 $arrClassCatName = $objDb->sfGetIDValueList("dtb_classcategory", "classcategory_id", "name"); 167 187 168 // 規格セレクトボックス設定 188 169 for($i = 0; $i < count($this->arrProducts); $i++) { … … 387 368 } 388 369 } 389 390 391 370 } 392 371 ?>
Note: See TracChangeset
for help on using the changeset viewer.
