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

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

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

#2312:テキストモード時に表示されるボタンで、文字装飾毎の使用設定が反映されていなかったのを修正

File size: 11.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_item})
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_item.c_diary_category_id})">({$category_item.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_edit_confirm})
80<input type="hidden" name="target_c_diary_id" value="({$diary.c_diary_id})" />
81<input type="hidden" name="del_img" value="({$del_img})" />
82<table>
83<tr>
84<th>タイトル</th>
85<td>
86<input type="text" class="input_text" name="subject" value="({$diary.subject})" size="40" />
87</td>
88</tr>
89<tr>
90<th>本文</th>
91<td>
92({if $inc_entry_point[3]})({$inc_entry_point[3]|smarty:nodefaults|t_url2cmd:'entry_point'|t_cmd:'entry_point'})</div>({/if})
93
94({if $smarty.const.OPENPNE_USE_DECORATION})
95<script type="text/javascript" src="./js/pne_decoration.js"></script>
96<script type="text/javascript" src="./js/tiny_mce/tiny_mce.js"></script>
97<script type="text/javascript">
98//<![CDATA[
99function pne_mce_editor_get_config()
100{
101    return {
102        op_b : {
103            isEnabled : ({$INC_HEADER_decoration_config.op_b}),
104            imageURL : "({t_img_url_skin filename=deco_op_b})"
105        },
106        op_u : {
107            isEnabled : ({$INC_HEADER_decoration_config.op_u}),
108            imageURL : "({t_img_url_skin filename=deco_op_u})"
109        },
110        op_s : {
111            isEnabled : ({$INC_HEADER_decoration_config.op_s}),
112            imageURL : "({t_img_url_skin filename=deco_op_s})"
113        },
114        op_i : {
115            isEnabled : ({$INC_HEADER_decoration_config.op_i}),
116            imageURL : "({t_img_url_skin filename=deco_op_i})"
117        },
118        op_large : {
119            isEnabled : ({$INC_HEADER_decoration_config.op_large}),
120            imageURL : "({t_img_url_skin filename=deco_op_large})"
121        },
122        op_small : {
123            isEnabled : ({$INC_HEADER_decoration_config.op_small}),
124            imageURL : "({t_img_url_skin filename=deco_op_small})"
125        },
126        op_color : {
127            isEnabled : ({$INC_HEADER_decoration_config.op_color}),
128            imageURL : "({t_img_url_skin filename=deco_op_color})"
129        },
130        op_image : {
131            isEnabled : ({$smarty.const.OPENPNE_USE_ALBUM}),
132            imageURL : "({t_img_url_skin filename=deco_op_image})",
133            contentURL : "({t_url _html=0 m=pc a=page_h_album_insert_dialog})"
134        }
135    }
136}
137//]]>
138</script>
139<script type="text/javascript" src="./js/pc_emoji_palet/pc_emoji_palet.js"></script>
140<input type="radio" name="mce_editor_mode_changer" id="mce_editor_mode_changer_1" onclick="pne_toggle_mce_editor('mce_editor_textarea')" checked="checked" /><label for="mce_editor_mode_changer_1">テキストモード</label>&nbsp;<input type="radio" name="mce_editor_mode_changer" id="mce_editor_mode_changer_2" onclick="pne_toggle_mce_editor('mce_editor_textarea')" /><label for="mce_editor_mode_changer_2">プレビューモード</label>
141
142<div id="mce_editor_buttonmenu">
143({foreach from=$INC_HEADER_decoration_config item=item key=key})
144({if $item})
145<a id="mce_textmode_button_({$key})" href="#" onclick="pne_mce_insert_tagname('mce_editor_textarea', '({$key|replace:"_":":"})');"><img src="({t_img_url_skin filename=deco_`$key`})" alt="" /></a>&nbsp;
146({/if})
147({/foreach})
148({if $smarty.const.OPENPNE_USE_ALBUM})
149<a id="mce_textmode_button_op_image" href="#" onclick="window.open('({t_url m=pc a=page_h_album_insert_dialog})', '', 'width=600,height=550,toolbar=no,scrollbars=yes,left=10,top=10')"><img src="({t_img_url_skin filename=deco_op_image})" alt="" /></a>
150({/if})
151({if $smarty.const.OPENPNE_EMOJI_DOCOMO_FOR_PC})
152<a id="mce_textmode_button_op_emoji_docomo" href="#" onclick="togglePallet('epDocomo');"><img src="({t_img_url_skin filename=deco_op_emoji_docomo})" alt="" /></a>
153<script type="text/javascript">
154//<![CDATA[
155createEmojiPalletDoCoMo();
156//]]>
157</script>
158({else})
159<a id="mce_textmode_button_op_emoji_docomo" href="#" onclick="togglePallet('epDocomo');"><img src="({t_img_url_skin filename=deco_op_emoji_docomo})" alt="" /></a>
160<a id="mce_textmode_button_op_emoji_au" href="#" onclick="togglePallet('epAu');"><img src="({t_img_url_skin filename=deco_op_emoji_au})" alt="" /></a>
161<a id="mce_textmode_button_op_emoji_softbank" href="#" onclick="togglePallet('epSb');"><img src="({t_img_url_skin filename=deco_op_emoji_softbank})" alt="" /></a>
162<script type="text/javascript">
163//<![CDATA[
164createEmojiPalletDoCoMo();
165createEmojiPalletAu();
166createEmojiPalletSoftBank();
167//]]>
168</script>
169({/if})
170</div>
171
172<script type="text/javascript">
173//<![CDATA[
174pne_mce_editor_init();
175//]]>
176</script>
177({/if})
178
179<textarea id="mce_editor_textarea" name="body" rows="15" cols="50">({$diary.body})</textarea>
180</td>
181</tr>
182<tr>
183<th>写真1</th>
184<td>
185({if $diary.image_filename_1 && !($del_img & 0x01)})
186<p>
187<input type="hidden" name="pre_image_filename_1" value="({$diary.image_filename_1})" />
188<a href="({t_img_url filename=$diary.image_filename_1})" target="_blank"><img src="({t_img_url filename=$diary.image_filename_1 w=120 h=120})" alt="" /></a><br />
189<a href="({t_url m=pc a=do_h_diary_edit_delete_image})&amp;target_c_diary_id=({$diary.c_diary_id})&amp;del_img=1&amp;sessid=({$PHPSESSID})">削除</a>
190</p>
191({/if})
192<input type="file" class="input_file" name="upfile_1" size="40" />
193</td>
194</tr>
195<tr>
196<th>写真2</th>
197<td>
198({if $diary.image_filename_2 && !($del_img & 0x02)})
199<p>
200<input type="hidden" name="pre_image_filename_2" value="({$diary.image_filename_2})" />
201<a href="({t_img_url filename=$diary.image_filename_2})" target="_blank"><img src="({t_img_url filename=$diary.image_filename_2 w=120 h=120})" alt="" /></a><br />
202<a href="({t_url m=pc a=do_h_diary_edit_delete_image})&amp;target_c_diary_id=({$diary.c_diary_id})&amp;del_img=2&amp;sessid=({$PHPSESSID})">削除</a>
203</p>
204({/if})
205<input type="file" class="input_file" name="upfile_2" size="40" />
206</td>
207</tr>
208<tr>
209<th>写真3</th>
210<td>
211({if $diary.image_filename_3 && !($del_img & 0x04)})
212<p>
213<input type="hidden" name="pre_image_filename_3" value="({$diary.image_filename_3})" />
214<a href="({t_img_url filename=$diary.image_filename_3})" target="_blank"><img src="({t_img_url filename=$diary.image_filename_3 w=120 h=120})" alt="" /></a><br />
215<a href="({t_url m=pc a=do_h_diary_edit_delete_image})&amp;target_c_diary_id=({$diary.c_diary_id})&amp;del_img=3&amp;sessid=({$PHPSESSID})">削除</a>
216</p>
217({/if})
218<input type="file" class="input_file" name="upfile_3" size="40" />
219</td>
220</tr>
221({if $use_diary_category})
222<tr>
223<th>カテゴリ</th>
224<td>
225<input type="text" class="input_text" name="category" id="category" value="({foreach from=$category item=item})({$item.category_name}) ({/foreach})" size="40" />
226<select onchange="if(selectedIndex){if(!category.value.match(/\s$/)){category.value += ' '}category.value += options[selectedIndex].value + ' ';}">
227<option>カテゴリを選択してください</option>
228({foreach from=$category_list item=value})
229<option value="({$value.category_name})">({$value.category_name})</option>
230({/foreach})
231</select>
232<p>※カテゴリはひとつにつき全角10文字(半角20文字)以内で入力してください。</p>
233<p>※ひとつの({$WORD_DIARY})にカテゴリは5つまで同時に指定することができます。</p>
234</td>
235</tr>
236({/if})
237<tr>
238<th>公開範囲</th>
239<td>
240<ul>
241<li><input type="radio" class="input_radio" name="public_flag" id="public_flag_public" value="public"({if $diary.public_flag == "public"}) checked="checked"({/if}) /><label for="public_flag_public">全員に公開</label></li>
242<li><input type="radio" class="input_radio" name="public_flag" id="public_flag_friend" value="friend"({if $diary.public_flag == "friend"}) checked="checked"({/if}) /><label for="public_flag_friend">({$WORD_MY_FRIEND})まで公開</label></li>
243<li><input type="radio" class="input_radio" name="public_flag" id="public_flag_private" value="private"({if $diary.public_flag == "private"}) checked="checked"({/if}) /><label for="public_flag_private">公開しない</label></li>
244</ul>
245</td>
246</tr>
247</table>
248<div class="operation">
249<ul class="moreInfo button">
250<li><input type="submit" class="input_submit" value="確認画面" /></li>
251</ul>
252</div>
253({/t_form_block})
254</div></div>
255({* }}} *})
256
257({* {{{ formTable *})
258<div class="dparts formTable"><div class="parts">
259<div class="partsHeading"><h3>({$WORD_DIARY})を削除する</h3></div>
260<div class="partsInfo">
261<p>({$WORD_DIARY})を削除するとこの({$WORD_DIARY})に書かれたコメントもすべて削除されます。</p>
262</div>
263({t_form_block m=pc a=page_h_delete_diary})
264<input type="hidden" name="target_c_diary_id" value="({$diary.c_diary_id})" />
265<table>
266<tr><th>日付</th><td>({$diary.r_datetime|date_format:"%Y年%m月%d日"})</td></tr>
267</table>
268<div class="operation">
269<ul class="moreInfo button">
270<li><input type="submit" class="input_submit" value="削除" /></li>
271</ul>
272</div>
273({/t_form_block})
274</div></div>
275({* }}} *})
276
277</div><!-- Center -->
278</div><!-- LayoutB -->
Note: See TracBrowser for help on using the repository browser.