Changeset 18075
- Timestamp:
- 2009/06/09 19:43:22 (15 years ago)
- Location:
- branches/comu-ver2/data
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/Smarty/templates/default/admin/order/edit.tpl
r18068 r18075 289 289 <a name="order_products">受注商品情報</a> 290 290 <input type="button" name="cheek" value="計算結果の確認" onclick="fnModeSubmit('cheek','anchor_key','order_products');" /> 291 <input type="button" name="add_product" value="商品の追加" onclick="win03(' ./product_select.php<!--{if $tpl_order_id}-->?order_id=<!--{$tpl_order_id}--><!--{/if}-->', 'search', '500', '500'); " />291 <input type="button" name="add_product" value="商品の追加" onclick="win03('<!--{$smarty.const.SITE_URL}-->admin/order/product_select.php<!--{if $tpl_order_id}-->?order_id=<!--{$tpl_order_id}--><!--{/if}-->', 'search', '500', '500'); " /> 292 292 </h2> 293 293 <!--{if $arrErr.product_id || $arrErr.quantity || $arrErr.price}--> -
branches/comu-ver2/data/Smarty/templates/default/admin/order/product_select.tpl
r17967 r18075 28 28 self.moveTo(20,20);self.focus(); 29 29 30 function func_submit(product_id, class_name1, class_name2) {30 function func_submit(product_id, class_name1, class_name2) { 31 31 var err_text = ''; 32 32 var fm = window.opener.document.form1; … … 72 72 fm.submit(); 73 73 window.close(); 74 74 75 return true; 75 76 } … … 106 107 //]]> 107 108 </script> 109 108 110 109 111 <script type="text/javascript">//<![CDATA[ … … 175 177 <td> 176 178 <!--{$arrProducts[cnt].name|escape}--> 179 177 180 <!--{assign var=class1 value=classcategory_id`$id`_1}--> 178 181 <!--{assign var=class2 value=classcategory_id`$id`_2}--> … … 205 208 <!--{/if}--> 206 209 </td> 207 <td class="center"><a href="" on Click="return func_submit('<!--{$arrProducts[cnt].product_id}-->', '<!--{$tpl_class_name1[$id]}-->', '<!--{$tpl_class_name2[$id]}-->')">決定</a></td>210 <td class="center"><a href="" onclick="return func_submit('<!--{$arrProducts[cnt].product_id}-->', '<!--{$tpl_class_name1[$id]}-->', '<!--{$tpl_class_name2[$id]}-->')">決定</a></td> 208 211 </tr> 209 212 <!--▲商品<!--{$smarty.section.cnt.iteration}-->--> -
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.