バージョン選択

フォーラム

メニュー

オンライン状況

93 人のユーザが現在オンラインです。 (78 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 93
もっと...

サイト内検索

質問 > フロント機能 > 月曜日のみを取得するSmartyスクリプトの作成

フロント機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
yuh
投稿日時: 2014/4/17 10:50
対応状況: −−−
登録日: 2013/1/9
居住地: 大阪
投稿: 1819
Re: 月曜日のみを取得するSmartyスクリプトの作成

<!--{assign var=today value=$smarty.now|date_format:"%w"}-->
<!--{if $today != 1}-->
	<!--{math equation="`$smarty.now` + (8 - $today) * 60 * 60 * 24" assign="startday"}-->
<!--{else}-->
	<!--{math equation="`$smarty.now` + $today * 60 * 60 * 24 * 7" assign="startday"}-->
<!--{/if}-->
<br clear="all">
<select>
        <option value="--" selected="selected">--年--月--日</option>
            <!--{section name=time start=$startday loop=$smarty.now+25920000 step=604800}-->
            <option value="{$smarty.section.time.index|date_format:"20%y年 %m月 %d日"}">
            <!--{$smarty.section.time.index|date_format:"20%y年 %m月 %d日"}-->
        </option>
        <!--{/section}-->
</select>


こんな感じですか?
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   月曜日のみを取得するSmartyスクリプトの作成 manabubb 2014/4/16 19:46
   » Re: 月曜日のみを取得するSmartyスクリプトの作成 yuh 2014/4/17 10:50
       Re: 月曜日のみを取得するSmartyスクリプトの作成 manabubb 2014/4/18 14:44

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は89,611名です
総投稿数は110,128件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1656
8
red
1570
9
mcontact
1319
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.