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

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

Last change on this file since 7421 was 7421, checked in by ogawa, 12 years ago

#2439:xhtml_style.phpの呼び出しにhash値を付与、Expiresヘッダを出力し、Etagは削除

File size: 5.8 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" dir="ltr">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6<meta http-equiv="Content-Style-Type" content="text/css" />
7<meta http-equiv="Content-Script-Type" content="text/javascript" />
8<script type="text/javascript" src="./js/Selection.js?r7140"></script>
9<script type="text/javascript" src="./js/tiny_mce/tiny_mce_popup.js?r7140"></script>
10<title>({$INC_HEADER_title})</title>
11<link rel="stylesheet" href="({t_url_style})" type="text/css" />
12<script type="text/javascript">
13//<![CDATA[
14function insertAlbumImageURLToTextarea(album_image_id) {
15    var albumURLBase = "({t_url _absolute=1 _html=0 m=pc a=page_fh_album_image_show})";
16    var replace = " " + albumURLBase + "&target_c_album_image_id=" + album_image_id + " ";
17
18    var elm = window.opener.document.getElementById('mce_editor_textarea');
19
20    if (elm.style.display == "none") {
21        tinyMCEPopup.execCommand('mceInsertContent', false, replace);
22    } else {
23        var selection = new Selection(elm);
24
25        var pos = selection.create();
26
27        var head = elm.value.substring(0, pos.start);
28        var tail = elm.value.substring(pos.end, elm.value.length);
29        elm.value =  head + replace + tail;
30    }
31}
32//]]>
33</script>
34</head>
35<body id="pc_page_({$INC_HEADER_page_name})"><div id="Body">
36<div id="Container" style="width: 600px">
37
38<div id="Center" style="width : 580px; margin: 0 auto; padding: 10px 0;">
39
40<h1 style="font-weight: bold; font-size: 1.2em;">アルバム写真の挿入</h1>
41<p>アルバム写真を記事に挿入することができます。</p>
42
43({if $total_num})
44({* {{{ photoTable *})
45<div class="dparts photoTable"><div class="parts">
46<div class="partsHeading"><h3>({$target_member.nickname})({if $type == "f"})さん({/if})のアルバム</h3></div>
47({capture name=pager})({strip})
48<div class="pagerRelative">
49({if $is_prev})<p class="prev"><a href="({t_url m=pc a=page_h_album_image_insert_dialog})&amp;page=({$page-1})({if $target_c_album_id})&amp;target_c_album_id=({$target_c_album_id})({/if})">前を表示</a></p>({/if})
50<p class="number">
51({$total_num})件中 ({$page*$page_size-$page_size+1})件~
52({if $page_size > $album_list_count})
53({$album_list_count+$page*$page_size-$page_size})
54({else})
55({$page*$page_size})
56({/if})
57件を表示
58</p>
59({if $is_next})<p class="next"><a href="({t_url m=pc a=page_h_album_image_insert_dialog})&amp;page=({$page+1})({if $target_c_album_id})&amp;target_c_album_id=({$target_c_album_id})({/if})">次を表示</a></p>({/if})
60</div>
61({/strip})({/capture})
62({$smarty.capture.pager|smarty:nodefaults})
63
64<table>
65<tr class="photo">
66({t_loop from=$target_album_image start=0 num=5})
67<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
68({/t_loop})
69</tr>
70<tr class="text">
71({t_loop from=$target_album_image start=0 num=5})
72<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}))">写真を挿入</a>({/if})</td>
73({/t_loop})
74</tr>
75
76({if $target_album_image[5]})
77<tr class="photo">
78({t_loop from=$target_album_image start=5 num=5})
79<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
80({/t_loop})
81</tr>
82<tr class="text">
83({t_loop from=$target_album_image start=5 num=5})
84<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}))">写真を挿入</a>({/if})</td>
85({/t_loop})
86</tr>
87({/if})
88
89({if $target_album_image[10]})
90<tr class="photo">
91({t_loop from=$target_album_image start=10 num=5})
92<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
93({/t_loop})
94</tr>
95<tr class="text">
96({t_loop from=$target_album_image start=10 num=5})
97<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}))">写真を挿入</a>({/if})</td>
98({/t_loop})
99</tr>
100({/if})
101
102({if $target_album_image[15]})
103<tr class="photo">
104({t_loop from=$target_album_image start=15 num=5})
105<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
106({/t_loop})
107</tr>
108<tr class="text">
109({t_loop from=$target_album_image start=15 num=5})
110<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}))">写真を挿入</a>({/if})</td>
111({/t_loop})
112</tr>
113({/if})
114
115({if $target_album_image[20]})
116<tr class="photo">
117({t_loop from=$target_album_image start=20 num=5})
118<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
119({/t_loop})
120</tr>
121<tr class="text">
122({t_loop from=$target_album_image start=20 num=5})
123<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}))">写真を挿入</a>({/if})</td>
124({/t_loop})
125</tr>
126({/if})
127</table>
128
129({$smarty.capture.pager|smarty:nodefaults})
130</div></div>
131({* }}} *})
132({else})
133({* {{{ simpleBox *})
134<div class="dparts simpleBox"><div class="parts">
135<div class="partsHeading"><h3>({$target_member.nickname})のアルバム</h3></div>
136<div class="block">
137<p>まだアルバム写真がありません。</p>
138</div>
139</div></div>
140({* }}} *})
141({/if})
142
143({* {{{ linkLine *})
144<div class="parts linkLine"><ul class="moreInfo">
145<li><a href="#" onclick="window.close()">ウィンドウを閉じる</a></li>
146<li><a href="({t_url m=pc a=page_h_album_insert_dialog})">アルバム選択に戻る</a></li>
147</ul></div>
148({* }}} *})
149
150</div><!-- Center -->
151</div><!-- Container -->
152</div><!-- Body -->
153
154
155</body>
156</html>
Note: See TracBrowser for help on using the repository browser.