Changeset 17207 for branches/version-2/data
- Timestamp:
- 2008/04/04 17:56:26 (16 years ago)
- Location:
- branches/version-2/data
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2/data/Smarty/templates/default/admin/contents/subnavi.tpl
r16582 r17207 39 39 <tr><td class=<!--{if $tpl_subno_csv != 'product'}-->"subnavi"<!--{else}-->"subnavi-on"<!--{/if}-->><a href="./csv.php?tpl_subno_csv=<!--{$arrSubnavi.1}-->" onMouseOver="naviStyleChange('product_sub', '#b7b7b7')" <!--{if $tpl_subno_csv != 'product'}-->onMouseOut="naviStyleChange('product_sub', '#818287')"<!--{/if}--> id="product_sub"><span class="subnavi_text">商品管理</span></a></td></tr> 40 40 <tr><td><img src="<!--{$TPL_DIR}-->img/contents/navi_subline.gif" width="140" height="2" alt=""></td></tr> 41 <tr><td class=<!--{if $tpl_subno_csv != 'category'}-->"subnavi"<!--{else}-->"subnavi-on"<!--{/if}-->><a href="./csv.php?tpl_subno_csv=<!--{$arrSubnavi.5}-->" onMouseOver="naviStyleChange('category_sub', '#b7b7b7')" <!--{if $tpl_subno_csv != 'category'}-->onMouseOut="naviStyleChange('category_sub', '#818287')"<!--{/if}--> id="category_sub"><span class="subnavi_text">カテゴリ</span></a></td></tr> 42 <tr><td><img src="<!--{$TPL_DIR}-->img/contents/navi_subline.gif" width="140" height="2" alt=""></td></tr> 41 43 <tr><td class=<!--{if $tpl_subno_csv != 'customer'}-->"subnavi"<!--{else}-->"subnavi-on"<!--{/if}-->><a href="./csv.php?tpl_subno_csv=<!--{$arrSubnavi.2}-->" onMouseOver="naviStyleChange('customer_sub', '#b7b7b7')" <!--{if $tpl_subno_csv != 'customer'}-->onMouseOut="naviStyleChange('customer_sub', '#818287')"<!--{/if}--> id="customer_sub"><span class="subnavi_text">顧客管理</span></a></td></tr> 42 44 <tr><td><img src="<!--{$TPL_DIR}-->img/contents/navi_subline.gif" width="140" height="2" alt=""></td></tr> … … 48 50 <tr><td><img src="<!--{$TPL_DIR}-->img/contents/navi_subline.gif" width="140" height="2" alt=""></td></tr> 49 51 <!--{/if}--> 50 51 52 <!--ナビ--> 52 53 </table> -
branches/version-2/data/Smarty/templates/default/admin/products/category.tpl
r16582 r17207 48 48 <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 49 49 <td bgcolor="#cccccc"> 50 50 51 51 <!--▼登録テーブルここから--> 52 52 <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> … … 65 65 <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td> 66 66 </tr> 67 </table> 68 67 </table> 68 69 69 <table width="678" border="0" cellspacing="1" cellpadding="5" summary=" " bgcolor="#cccccc"> 70 70 <tr bgcolor="#ffffff"> 71 71 <!--▼画面左--> 72 72 <td width="250" valign="top" class="fs12"> 73 <a href="#" onmouseover="chgImg('<!--{$TPL_DIR}-->img/contents/btn_csv_on.jpg','btn_csv');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/contents/btn_csv.jpg','btn_csv');" onclick="fnModeSubmit('csv','','');" ><img src="<!--{$TPL_DIR}-->img/contents/btn_csv.jpg" width="99" height="22" alt="CSV DOWNLOAD" border="0" name="btn_csv" id="btn_csv"></a><br /> 73 74 <a href="<!--{$smarty.server.PHP_SELF|escape}-->">▼ホーム</a><br> 74 75 <!--{section name=cnt loop=$arrTree}--> … … 83 84 <!--{* スペース繰り返し *}--> 84 85 <!--{section name=n loop=$level}--> <!--{/section}--> 85 86 86 87 <!--{* カテゴリ名表示 *}--> 87 88 <!--{assign var=disp_name value="`$arrTree[cnt].category_id`.`$arrTree[cnt].category_name`"}--> … … 98 99 <!--{$disp_name|sfCutString:20|escape}--></a><br> 99 100 <!--{/if}--> 100 101 101 102 <!--{if $arrTree[cnt].display == true}--> 102 103 <div id="f<!--{$arrTree[cnt].category_id}-->"> 103 104 <!--{else}--> 104 105 <div id="f<!--{$arrTree[cnt].category_id}-->" style="display:none"> 105 <!--{/if}--> 106 106 <!--{/if}--> 107 107 108 <!--{assign var=before_level value="`$arrTree[cnt].level`}--> 108 <!--{/section}--> 109 109 <!--{/section}--> 110 110 111 </td> 111 112 <!--▼画面右--> 112 113 <!--▼画面右--> 113 114 <td width="428" valign="top"> 114 115 115 116 <span class="red12"><!--{$arrErr.category_name}--></span> 116 117 <input type="text" name="category_name" value="<!--{$arrForm.category_name|escape}-->" size="30" class="box30" maxlength="<!--{$smarty.const.STEXT_LEN}-->"/> 117 118 <input type="submit" name="button" value="登録"/><span class="red10"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> 118 <table width="428" border="0" cellspacing="0" cellpadding="0" summary=" "> 119 <table width="428" border="0" cellspacing="0" cellpadding="0" summary=" "> 119 120 <tr><td height="15"></td></tr> 120 121 </table> 121 122 122 123 <!--{if count($arrList) > 0}--> 123 124 <table border="0" cellspacing="1" cellpadding="5" summary=" " bgcolor="#cccccc"> … … 160 161 <!--{/section}--> 161 162 </table> 162 163 163 164 <!--{else}--> 164 165 <table border="0" cellspacing="0" cellpadding="0" summary=" "> 165 166 <tr> 166 <td 167 <td class="fs12n">この階層には、カテゴリが登録されていません。</td> 167 168 </tr> 168 169 </table> … … 190 191 </form> 191 192 </table> 192 <!--★★メインコンテンツ★★--> 193 <!--★★メインコンテンツ★★--> -
branches/version-2/data/class/helper/SC_Helper_CSV.php
r17206 r17207 184 184 // 各項目をCSV出力用に変換する。 185 185 $data .= $this->lfMakeTrackbackCSV($list_data[$i]); 186 } 187 return $data; 188 } 189 190 // CSV出力データを作成する。(カテゴリ) 191 function lfGetCategoryCSV($where, $option, $arrval, $arrOutputCols) { 192 $objDb = new SC_Helper_DB_Ex(); 193 194 $from = "dtb_category"; 195 $cols = SC_Utils_Ex::sfGetCommaList($arrOutputCols); 196 197 $objQuery = new SC_Query(); 198 $objQuery->setoption($option); 199 200 $list_data = $objQuery->select($cols, $from, $where, $arrval); 201 $max = count($list_data); 202 203 if (!isset($data)) $data = ""; 204 for($i = 0; $i < $max; $i++) { 205 // 各項目をCSV出力用に変換する。 206 $data .= $this->lfMakeCSV($list_data[$i]); 186 207 } 187 208 return $data; … … 334 355 2 => 'customer', 335 356 3 => 'order', 336 4 => 'campaign' 357 4 => 'campaign', 358 5 => 'category' 337 359 ); 338 360 … … 341 363 2 => '顧客管理', 342 364 3 => '受注管理', 343 4 => 'キャンペーン' 365 4 => 'キャンペーン', 366 5 => 'カテゴリ' 344 367 ); 345 368 -
branches/version-2/data/class/pages/admin/products/LC_Page_Admin_Products_Category.php
r16741 r17207 174 174 break; 175 175 case 'tree': 176 break; 177 case 'csv': 178 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_CSV_Ex.php"); 179 180 $objCSV = new SC_Helper_CSV_Ex(); 181 // オプションの指定 182 $option = "ORDER BY rank DESC"; 183 // CSV出力タイトル行の作成 184 $arrOutput = SC_Utils_Ex::sfSwapArray($objCSV->sfgetCsvOutput(5, " WHERE csv_id = 5 AND status = 1")); 185 186 if (count($arrOutput) <= 0) break; 187 188 $arrOutputCols = $arrOutput['col']; 189 $arrOutputTitle = $arrOutput['disp_name']; 190 191 $head = SC_Utils_Ex::sfGetCSVList($arrOutputTitle); 192 193 $where = "del_flg = 0"; 194 $data = $objCSV->lfGetCategoryCSV($where, $option, $arrval, $arrOutputCols); 195 196 // CSVを送信する。 197 SC_Utils_Ex::sfCSVDownload($head.$data, 'category'); 198 exit; 176 199 break; 177 200 default:
Note: See TracChangeset
for help on using the changeset viewer.