<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/ebinokodawari/">
    <title>ebinokodawari @ ウィキ</title>
    <link>http://w.atwiki.jp/ebinokodawari/</link>
    <atom:link href="https://w.atwiki.jp/ebinokodawari/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>ebinokodawari @ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2009-10-30T15:34:28+09:00</dc:date>
    <utime>1256884468</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/ebinokodawari/pages/16.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ebinokodawari/pages/15.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ebinokodawari/pages/14.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ebinokodawari/pages/13.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ebinokodawari/pages/1.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ebinokodawari/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ebinokodawari/pages/3.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ebinokodawari/pages/4.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ebinokodawari/pages/5.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ebinokodawari/pages/6.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/ebinokodawari/pages/16.html">
    <title>表示されているテンプレートの所在地</title>
    <link>https://w.atwiki.jp/ebinokodawari/pages/16.html</link>
    <description>
      商品一覧のテンプレートはここ
User_data &gt; Packages &gt; default &gt; list.tpl    </description>
    <dc:date>2009-10-30T15:34:28+09:00</dc:date>
    <utime>1256884468</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ebinokodawari/pages/15.html">
    <title>子カテゴリを表示するブロックの生成</title>
    <link>https://w.atwiki.jp/ebinokodawari/pages/15.html</link>
    <description>
      管理画面から、
subcategory.tpl を作成します。

引用：


&lt;!--商品カテゴリーここから--&gt;
&lt;div id=&quot;maincate&quot;&gt;
&lt;h2&gt;&lt;!--{$maincate[0].category_name }--&gt;&lt;/h2&gt;
&lt;div class=&quot;maincate_disp&quot;&gt;
&lt;!--{$maincate[0].category_disp }--&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;!--{section name=cnt loop=$arrTree}--&gt;
&lt;!--{* 階層を level へ *}--&gt;
&lt;!--{assign var=level value=&quot;`$arrTree[cnt].level`}--&gt;
&lt;!--{* カテゴリ名を disp_name へ *}--&gt;
&lt;!--{assign var=disp_name value=&quot;`$arrTree[cnt].category_name`&quot;}--&gt;
&lt;!--{assign var=disp_disp value=&quot;`$arrTree[cnt].category_disp`&quot;}--&gt;
&lt;!--{* 表示カテゴリのみ *}--&gt;
&lt;!--{if $arrTree[cnt].display == 1}--&gt;
&lt;!--{* 選択したカテゴリ *}--&gt;
&lt;!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--&gt;
&lt;li&gt;&lt;a href=&quot;&lt;!--{$smarty.const.URL_DIR}--&gt;products/list.php?category_id=&lt;!--{$arrTree[cnt].category_id}--&gt;&quot; title=&quot;&lt;!--{$disp_name|escape}--&gt;&quot;&gt;&lt;!--{$disp_name|escape}--&gt;&lt;/a&gt;&lt;/li&gt;

&lt;!--{* 未選択カテゴリ *}--&gt;
&lt;!--{else}--&gt;
&lt;li&gt;&lt;a href=&quot;&lt;!--{$smarty.const.URL_DIR}--&gt;products/list.php?category_id=&lt;!--{$arrTree[cnt].category_id}--&gt;&quot; title=&quot;&lt;!--{$disp_name|escape}--&gt;&quot;&gt;&lt;!--{$disp_name|escape}--&gt;&lt;/a&gt;&lt;/li&gt;
&lt;!--{/if}--&gt;

&lt;!--{$disp_disp|sfCutString:40|escape}--&gt;

&lt;!--{/if}--&gt;
&lt;!--{/section}--&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;!--商品カテゴリーここまで--&gt;





ランキングブロック作成と同じ要領で、
データベースで、
dtb_blocに追加された
subcategory.tpl　の php_path を下記のように編集します。

frontparts/bloc/subcategory.php


次に、
/html/frontparts/blocに
subcategory.phpを作成してアップロード

category.phpをコピーして、作成します。
内容は下記のとおりです。

引用：


&lt;?php

// {{{ requires
require_once(CLASS_EX_PATH . &quot;page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_Subcategory.php&quot;);

// }}}
// {{{ generate page

$objPage = new LC_Page_FrontParts_BLoc_Subcategory();
register_shutdown_function(array($objPage, &quot;destroy&quot;));
$objPage-&gt;init();
$objPage-&gt;process();
?&gt;




次に、
/data/class_extends/page_extends/frontparts/bloc に、

LC_Page_FrontParts_Bloc_Subcategory.php
を作成してアップロードします。

引用：


&lt;?php

class LC_Page_FrontParts_Bloc_Subcategory extends LC_Page_FrontParts_Bloc {

// }}}
// {{{ functions

/**
* Page を初期化する.
*
* @return void
*/
function init() {
parent::init();
$bloc_file = &#039;subcategory.tpl&#039;;
$this-&gt;setTplMainpage($bloc_file);
}

/**
* Page のプロセス.
*
* @return void
*/
function process() {
$objSubView = new SC_SiteView();
$objDb = new SC_Helper_DB_Ex();

// 選択中のカテゴリIDを判定する
$arrCategory_id = $objDb-&gt;sfGetCategoryId($_GET[&#039;product_id&#039;], $_GET[&#039;category_id&#039;]);

// 選択中のカテゴリID
$this-&gt;tpl_category_id = empty($arrCategory_id) ? array(0) : $arrCategory_id;
if($arrCategory_id[0]){
$this-&gt;lfGetCatdate($arrCategory_id[0], true, $this);
$this-&gt;lfGetCatTree($this-&gt;tpl_category_id, true, $this);
}

$objSubView-&gt;assignobj($this);
$objSubView-&gt;display($this-&gt;tpl_mainpage);
}

/**
* モバイルページを初期化する.
*
* @return void
*/
function mobileInit() {
$this-&gt;tpl_mainpage = MOBILE_TEMPLATE_DIR . &quot;frontparts/&quot;
. BLOC_DIR . &#039;category.tpl&#039;;
}

/**
* Page のプロセス(モバイル).
*
* @return void
*/
function mobileProcess() {
$objSubView = new SC_MobileView();

$this-&gt;lfGetMainCat(true, $this);

$objSubView-&gt;assignobj($this);
$objSubView-&gt;display($this-&gt;tpl_mainpage);
}

/**
* デストラクタ.
*
* @return void
*/
function destroy() {
parent::destroy();
}

// カテゴリツリーの取得
function lfGetCatTree($arrParent_category_id, $count_check = false) {
$objQuery = new SC_Query();
$objDb = new SC_Helper_DB_Ex();
$col = &quot;*&quot;;
$from = &quot;dtb_category&quot;;
$where = &quot;del_flg = 0 AND parent_category_id =&quot;.$arrParent_category_id[0];
$objQuery-&gt;setoption(&quot;ORDER BY rank DESC&quot;);
$arrRet = $objQuery-&gt;select($col, $from, $where);

foreach ($arrParent_category_id as $category_id) {
$arrParentID = $objDb-&gt;sfGetParents($objQuery, &#039;dtb_category&#039;, &#039;parent_category_id&#039;, &#039;category_id&#039;, $category_id);
$arrBrothersID = SC_Utils_Ex::sfGetBrothersArray($arrRet, &#039;parent_category_id&#039;, &#039;category_id&#039;, $arrParentID);
$arrChildrenID = SC_Utils_Ex::sfGetUnderChildrenArray($arrRet, &#039;parent_category_id&#039;, &#039;category_id&#039;, $category_id);

$this-&gt;root_parent_id[] = $arrParentID[0];

$arrDispID = array_merge($arrBrothersID, $arrChildrenID);

foreach($arrRet as $key =&gt; $array) {
foreach($arrDispID as $val) {
if($array[&#039;category_id&#039;] == $val) {
$arrRet[$key][&#039;display&#039;] = 1;
break;
}
}
}
}

$this-&gt;arrTree = $arrRet;
}

// メインカテゴリーの取得
function lfGetMainCat($count_check = false, &amp;$objSubPage) {
$objQuery = new SC_Query();
$col = &quot;*&quot;;
$from = &quot;dtb_category left join dtb_category_total_count using (category_id)&quot;;
// メインカテゴリーとその直下のカテゴリーを取得する。
$where = &#039;level &lt;= 2 AND del_flg = 0&#039;;
// 登録商品数のチェック
if($count_check) {
$where .= &quot; AND product_count &gt; 0&quot;;
}
$objQuery-&gt;setoption(&quot;ORDER BY rank DESC&quot;);
$arrRet = $objQuery-&gt;select($col, $from, $where);

// メインカテゴリーを抽出する。
$arrMainCat = array();
foreach ($arrRet as $cat) {
if ($cat[&#039;level&#039;] != 1) {
continue;
}

// 子カテゴリーを持つかどうかを調べる。
$arrChildrenID = SC_Utils_Ex::sfGetUnderChildrenArray($arrRet, &#039;parent_category_id&#039;, &#039;category_id&#039;, $cat[&#039;category_id&#039;]);
$cat[&#039;has_children&#039;] = count($arrChildrenID) &gt; 0;
$arrMainCat[] = $cat;
}

$objSubPage-&gt;arrCat = $arrMainCat;
return $objSubPage;
}

//メインカテゴリのデータ取得
function lfGetCatdate($arrCategory_id, $count_check = false){
$objQuery = new SC_Query();
$objDb = new SC_Helper_DB_Ex();
$col = &quot;*&quot;;
$from = &quot;dtb_category&quot;;
$where = &quot;del_flg = 0 AND category_id = &quot;.$arrCategory_id;
$objQuery-&gt;setoption(&quot;ORDER BY rank DESC&quot;);
$arrRet = $objQuery-&gt;select($col, $from, $where);
$this-&gt;maincate = $arrRet;
}
}
?&gt;






とりあえず、以上の作業で、
子カテゴリーが別ブロックで表示されるようになりました。

あとは、CSSでデザインを整えてください。    </description>
    <dc:date>2009-10-20T16:53:11+09:00</dc:date>
    <utime>1256025191</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ebinokodawari/pages/14.html">
    <title>お客さんの入力備考欄を増やす（楽天みたいに）</title>
    <link>https://w.atwiki.jp/ebinokodawari/pages/14.html</link>
    <description>
      参考
http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=flat&amp;topic_id=2413&amp;forum=6


DBのdtb_orderとdtb_order_tempに上記を追加。⇒追加しなくてもmemo5 - memo10
を使用可能

data/Smarty/templates/default/shopping/payment.tpl に追加。

data/class/pages/shopping/LC_Page_Shopping_Payment.php　に追加。

/////省略//////
/* パラメータ情報の初期化 */
    function lfInitParam() {
        $this-&gt;objFormParam-&gt;addParam(&quot;お支払い方法&quot;, &quot;payment_id&quot;,
/////省略//////
        $this-&gt;objFormParam-&gt;addParam(&quot;ラベル入力&quot;, &quot;memo10&quot;, LTEXT_LEN,
/////省略//////


data/Smarty/templates/default/shopping/confirm.tpl　に確認画面用に追加。
&lt;!--{$arrData.memo10|escape|nl2br}--&gt;

data/class/helper/SC_Helper_Mail.php　に項目追加分の受注取得を追加。
/////省略//////
        // 受注情報の取得
        $where = &quot;order_id = ?&quot;;
/////省略//////
        $objPage-&gt;Message_tmp = $arrOrder[&#039;message&#039;];
	$objPage-&gt;Message_tmp = $arrOrder[&#039;memo10&#039;];
/////省略//////

data/Smarty/templates/default/mail_templates/order_mail.tpl　注文確認
メールに項目追加。モバイル用は別になります。
&lt;!--{$memo10_tmp}--&gt;

++
data/Smarty/templates/default/admin/order/edit.tpl　注文詳細画面に追加
&lt;!--{$arrDisp.memo10|escape|nl2br}--&gt;    </description>
    <dc:date>2009-10-16T15:35:51+09:00</dc:date>
    <utime>1255674951</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ebinokodawari/pages/13.html">
    <title>メールテンプレート追加方法</title>
    <link>https://w.atwiki.jp/ebinokodawari/pages/13.html</link>
    <description>
      メールテンプレート作成
http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=flat&amp;topic_id=3396&amp;forum=11

注文日時のタグ
&lt;!--{$arrOrder.create_date}--&gt;



検索結果の部分の表示
&lt;!--{$arrResults[cnt].xxxxxxx}--&gt;

xxxxxx部分がタグID


テンプレートは

PC
Smarty/templates/default/mail_templates/ｘｘｘｘｘ.tpl
モバイル
Smarty/templates/default/mobile/mail_templates/ｘｘｘｘｘ.tpl    </description>
    <dc:date>2009-10-16T09:57:43+09:00</dc:date>
    <utime>1255654663</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ebinokodawari/pages/1.html">
    <title>トップページ</title>
    <link>https://w.atwiki.jp/ebinokodawari/pages/1.html</link>
    <description>
      **@wikiへようこそ
-ウィキはみんなで気軽にホームページ編集できるツールです。
-このページは自由に編集することができます。
-メールで送られてきたパスワードを用いてログインすることで、各種変更（サイト名、トップページ、メンバー管理、サイドページ、デザイン、ページ管理、等）することができます

**まずはこちらをご覧ください。
-[[@wikiの基本操作&gt;http://atwiki.jp/guide/category2.html]]
-[[用途別のオススメ機能紹介&gt;http://atwiki.jp/guide/category22.html]]
-[[@wikiの設定/管理&gt;http://atwiki.jp/guide/category6.html]]

**分からないことは？
-[[@wiki ご利用ガイド&gt;http://atwiki.jp/guide/]]
-[[よくある質問&gt;http://atwiki.jp/guide/category1.html]]
-[[無料で会員登録できるSNS内の@wiki助け合いコミュニティ&gt;http://sns.atfb.jp/view_community2.php?no=112]]
-[[@wiki更新情報&gt;http://www1.atwiki.jp/guide/pages/264.html]]
-[[@wikiへのお問合せフォーム&gt;http://atwiki.jp/helpdesk]]
等をご活用ください

**@wiki助け合いコミュニティの掲示板スレッド一覧
#atfb_bbs_list(112)

**その他お勧めサービスについて
-[[大容量１Ｇ、PHP/CGI、MySQL、FTPが使える無料ホームページは@PAGES&gt;&gt;http://atpages.jp/]]
-[[無料ブログ作成は@WORDをご利用ください&gt;&gt;http://atword.jp/]]
-[[2ch型の無料掲示板は@chsをご利用ください&gt;&gt;http://atchs.jp/]]
-[[フォーラム型の無料掲示板は@bbをご利用ください&gt;&gt;http://atbb.jp/]]
-[[お絵かき掲示板は@paintをご利用ください&gt;&gt;http://atpaint.jp/]]
-[[その他の無料掲示板は@bbsをご利用ください&gt;&gt;http://atbbs.jp/]]
-[[無料ソーシャルプロフィールサービス @flabo(アットフラボ)&gt;&gt;http://sns.atfb.jp]]

**おすすめ機能
-[[気になるニュースをチェック&gt;http://atwiki.jp/guide/17_174_ja.html]]
-[[関連するブログ一覧を表示&gt;http://atwiki.jp/guide/17_161_ja.html]]

**その他にもいろいろな機能満載！！
-[[@wikiプラグイン&gt;http://atwiki.jp/guide/category17.html]]
-[[@wiki便利ツール&gt;http://atwiki.jp/guide/category32.html]]
-[[@wiki構文&gt;http://atwiki.jp/guide/category16.html]]
-[[@wikiプラグイン一覧&gt;http://www1.atwiki.jp/guide/pages/264.html]]
-[[まとめサイト作成支援ツール&gt;http://atwiki.jp/matome/]]

**バグ・不具合を見つけたら？ 要望がある場合は？
お手数ですが、メールでお問い合わせください。
    </description>
    <dc:date>2009-10-16T09:53:11+09:00</dc:date>
    <utime>1255654391</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ebinokodawari/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/ebinokodawari/pages/2.html</link>
    <description>
      **メニュー
-[[トップページ]]
-[[プラグイン紹介&gt;プラグイン]]
-[[まとめサイト作成支援ツール]]
-[[メニュー]]
-[[メニュー2]]

----

**リンク
-[[@wiki&gt;&gt;http://atwiki.jp]]
-[[@wikiご利用ガイド&gt;&gt;http://atwiki.jp/guide/]]

**他のサービス
-[[無料ホームページ作成&gt;&gt;http://atpages.jp]]
-[[無料ブログ作成&gt;&gt;http://atword.jp]]
-[[2ch型掲示板レンタル&gt;&gt;http://atchs.jp]]
-[[無料掲示板レンタル&gt;&gt;http://atbbs.jp]]
-[[お絵かきレンタル&gt;&gt;http://atpaint.jp/]]
-[[無料ソーシャルプロフ&gt;&gt;http://sns.atfb.jp/]]

// リンクを張るには &quot;[&quot; 2つで文字列を括ります。
// &quot;&gt;&quot; の左側に文字、右側にURLを記述するとリンクになります


//**更新履歴
//#recent(20)

&amp;link_editmenu(text=ここを編集)
    </description>
    <dc:date>2009-10-16T09:53:11+09:00</dc:date>
    <utime>1255654391</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ebinokodawari/pages/3.html">
    <title>右メニュー</title>
    <link>https://w.atwiki.jp/ebinokodawari/pages/3.html</link>
    <description>
      **更新履歴
#recent(20)


&amp;link_editmenu2(text=ここを編集)
    </description>
    <dc:date>2009-10-16T09:53:11+09:00</dc:date>
    <utime>1255654391</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ebinokodawari/pages/4.html">
    <title>プラグイン/ニュース</title>
    <link>https://w.atwiki.jp/ebinokodawari/pages/4.html</link>
    <description>
      * ニュース
@wikiのwikiモードでは
 #news(興味のある単語)
と入力することで、あるキーワードに関連するニュース一覧を表示することができます
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/17_174_ja.html


-----


たとえば、#news(wiki)と入力すると以下のように表示されます。


#news(wiki)
    </description>
    <dc:date>2009-10-16T09:53:11+09:00</dc:date>
    <utime>1255654391</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ebinokodawari/pages/5.html">
    <title>まとめサイト作成支援ツール</title>
    <link>https://w.atwiki.jp/ebinokodawari/pages/5.html</link>
    <description>
      * まとめサイト作成支援ツールについて
@wikiには[[まとめサイト作成を支援するツール&gt;&gt;http://atwiki.jp/matome/]]があります。
また、
 #matome_list
と入力することで、注目の掲示板が一覧表示されます。

利用例）#matome_listと入力すると下記のように表示されます
#matome_list
    </description>
    <dc:date>2009-10-16T09:53:11+09:00</dc:date>
    <utime>1255654391</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ebinokodawari/pages/6.html">
    <title>プラグイン/編集履歴</title>
    <link>https://w.atwiki.jp/ebinokodawari/pages/6.html</link>
    <description>
      * 更新履歴
@wikiのwikiモードでは
 #recent(数字)
と入力することで、wikiのページ更新履歴を表示することができます。
詳しくはこちらをご覧ください。
＝＞http://atwiki.jp/guide/17_117_ja.html


-----


たとえば、#recent(20)と入力すると以下のように表示されます。


#recent(20)
    </description>
    <dc:date>2009-10-16T09:53:11+09:00</dc:date>
    <utime>1255654391</utime>
  </item>
  </rdf:RDF>
