Changeset 10963 for temp/branches
- Timestamp:
- 2006/12/18 23:24:16 (20 years ago)
- Location:
- temp/branches/ec-cube-beta/html
- Files:
-
- 2 edited
-
admin/contents/campaign_create_tag.php (modified) (2 diffs)
-
campaign/default/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/branches/ec-cube-beta/html/admin/contents/campaign_create_tag.php
r10958 r10963 114 114 break; 115 115 case 'view': 116 lfGetProductsClass(); 116 117 $create_tag = "<a href=\"#\" onclick=\"fnFormModeSubmit('form1', 'cart', 'product_id', 404)\"><img src=\"images/top/button_03.jpg\" alt=\"¹ØÆþ¤¹¤ë\" width=\"138\" height=\"60\" border=\"0\" style=\"margin-left:10px;\" /></a>"; 117 118 118 $objPage->tpl_create_tag = $create_tag; 119 119 break; … … 151 151 } 152 152 153 153 /* ¾¦Éʵ¬³Ê¾ðÊó¤Î¼èÆÀ */ 154 function lfGetProductsClass($product_id) { 155 $arrRet = array(); 156 if(sfIsInt($product_id)) { 157 // ¾¦Éʵ¬³Ê¼èÆÀ 158 $objQuery = new SC_Query(); 159 $col = "product_class_id, classcategory_id1, classcategory_id2, class_id1, class_id2, stock, stock_unlimited"; 160 $table = "vw_product_class AS prdcls"; 161 $where = "product_id = ?"; 162 $objQuery->setorder("rank1 DESC, rank2 DESC"); 163 $arrRet = $objQuery->select($col, $table, $where, array($product_id)); 164 } 165 return $arrRet; 166 } 154 167 ?> -
temp/branches/ec-cube-beta/html/campaign/default/index.php
r10912 r10963 51 51 $arrRet = $objQuery->select($col, "dtb_campaign", "directory_name = ? AND del_flg = 0", array($directory_name)); 52 52 53 // ³«»ÏÆü»þ¡¦Ää»ßÆü»þ¤ò ʬ²ò54 $start_date = (date("YmdHis" , strtotime($arrRet[0]['start_date'])));55 $end_date = (date("YmdHis" , strtotime($arrRet[0]['end_date'])));53 // ³«»ÏÆü»þ¡¦Ää»ßÆü»þ¤òÀ®·¿ 54 $start_date = (date("YmdHis", strtotime($arrRet[0]['start_date']))); 55 $end_date = (date("YmdHis", strtotime($arrRet[0]['end_date']))); 56 56 $now_date = (date("YmdHis")); 57 57
Note: See TracChangeset
for help on using the changeset viewer.
