ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE/branches/stable-2.12.x/webapp/modules/pc/templates/h_diary_add.tpl @ 7127

Last change on this file since 7127 was 7127, checked in by ebihara, 12 years ago

#2381:tinyMCEを使ったテキストエリアのテンプレート部品を共通化した

File size: 5.0 KB
Line 
1<div id="LayoutB">
2
3<div id="Left">
4
5({* {{{ sideNav *})
6<div class="parts sideNav">
7
8<div class="item calendar">
9<div class="partsHeading"><h3>
10({if $ym.prev_month})<a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;year=({$ym.prev_year})&amp;month=({$ym.prev_month})"><</a>({/if})
11({$date_val.month})月のカレンダー
12({if $ym.next_month})<a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;year=({$ym.next_year})&amp;month=({$ym.next_month})">></a>({/if})
13</h3></div>
14<table class="calendar">
15<tr>
16<th class="sun">日</th>
17<th class="mon">月</th>
18<th class="tue">火</th>
19<th class="wed">水</th>
20<th class="thu">木</th>
21<th class="fri">金</th>
22<th class="sat">土</th>
23</tr>({foreach from=$calendar item=week})<tr>
24({foreach from=$week item=item name="calendar_days"})
25<td>({strip})
26({if $item.day})
27({if $item.is_diary})
28<a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;year=({$date_val.year})&amp;month=({$date_val.month})&amp;day=({$item.day})">({$item.day})</a>
29({else})
30({$item.day})
31({/if})
32({else})
33({/if})
34({/strip})</td>
35({/foreach})
36</tr>
37({/foreach})
38</table>
39</div>
40
41<div class="item recentlyComment">
42<div class="partsHeading"><h3>最近のコメント</h3></div>
43<ul class="list">
44<li><a href="({t_url m=pc a=page_fh_comment_list})&amp;target_c_member_id=({$target_member.c_member_id})">一覧を見る</a></li>
45</ul>
46</div>
47
48({if $date_list})
49<div class="item monthlyDiary">
50<div class="partsHeading"><h3>各月の({$WORD_DIARY})</h3></div>
51<ul class="list">
52({foreach from=$date_list item=item})
53<li><a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;year=({$item.year})&amp;month=({$item.month})">({$item.year})年({$item.month})月の一覧</a></li>
54({/foreach})
55</ul>
56</div>
57({/if})
58
59({if $category_list})
60<div class="item listCategory">
61<div class="partsHeading"><h3>カテゴリ一覧</h3></div>
62<ul class="list">
63({foreach from=$category_list item=category})
64<li><a href="({t_url m=pc a=page_fh_diary_list})&amp;target_c_member_id=({$target_member.c_member_id})&amp;category_id=({$category.c_diary_category_id})">({$category.category_name})</a></li>
65({/foreach})
66</ul>
67</div>
68({/if})
69
70</div>
71({* }}} *})
72
73</div><!-- Left -->
74<div id="Center">
75
76({* {{{ formTable *})
77<div class="dparts formTable"><div class="parts">
78<div class="partsHeading"><h3>({$WORD_DIARY})を書く</h3></div>
79({t_form_block _enctype=file m=pc a=page_h_diary_add_confirm})
80<table>
81<tr>
82<th>タイトル</th>
83<td>
84<input type="text" class="input_text" name="subject" value="({$form_val.subject})" size="40" />
85</td>
86</tr>
87<tr>
88<th>本文</th>
89<td>
90({if $inc_entry_point[3]})({$inc_entry_point[3]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})({/if})
91
92({ext_include file="inc_tinymce_textarea.tpl" _name="body" _rows="15" _cols="50" _body=$form_val.body|smarty:nodefaults})
93
94</td>
95</tr>
96<tr>
97<th>写真1</th>
98<td>
99<input type="file" class="input_file" name="upfile_1" size="40" />
100</td>
101</tr>
102<tr>
103<th>写真2</th>
104<td>
105<input type="file" class="input_file" name="upfile_2" size="40" />
106</td>
107</tr>
108<tr>
109<th>写真3</th>
110<td>
111<input type="file" class="input_file" name="upfile_3" size="40" />
112</td>
113</tr>
114({if $use_diary_category})
115<tr>
116<th>カテゴリ</th>
117<td>
118<input type="text" class="input_text" name="category" id="category" value="({$form_val.category})" size="40" />
119<select onchange="if(selectedIndex){if(!category.value.match(/\s$/)){category.value += ' '}category.value += options[selectedIndex].value + ' ';}">
120<option>カテゴリを選択してください</option>
121({foreach from=$category_list item=value})
122<option value="({$value.category_name})">({$value.category_name})</option>
123({/foreach})
124</select>
125<p>※カテゴリはひとつにつき全角10文字(半角20文字)以内で入力してください。</p>
126<p>※ひとつの({$WORD_DIARY})にカテゴリは5つまで同時に指定することができます。</p>
127</td>
128</tr>
129({/if})
130<tr>
131<th>公開範囲</th>
132<td>
133<ul>
134<li><input type="radio" class="input_radio" name="public_flag" id="public_flag_public" value="public"({if $form_val.public_flag == "public"}) checked="checked"({/if}) /><label for="public_flag_public">全員に公開</label></li>
135<li><input type="radio" class="input_radio" name="public_flag" id="public_flag_friend" value="friend"({if $form_val.public_flag == "friend"}) checked="checked"({/if}) /><label for="public_flag_friend">({$WORD_MY_FRIEND})まで公開</label></li>
136<li><input type="radio" class="input_radio" name="public_flag" id="public_flag_private" value="private"({if $form_val.public_flag == "private"}) checked="checked"({/if}) /><label for="public_flag_private">公開しない</label></li>
137</ul>
138</td>
139</tr>
140</table>
141<div class="operation">
142<ul class="moreInfo button">
143<li><input type="submit" class="input_submit" value="確認画面" /></li>
144</ul>
145</div>
146({/t_form_block})
147</div></div>
148({* }}} *})
149
150</div><!-- Center -->
151</div><!-- LayoutB -->
Note: See TracBrowser for help on using the repository browser.