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

source: OpenPNE/trunk/webapp/modules/pc/templates/h_album_image_insert_dialog.tpl @ 6698

Last change on this file since 6698 was 6698, checked in by ebihara, 13 years ago

#2271:アルバム写真をポップアップウィンドウから日記に貼り付けられるようにした

File size: 8.1 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"></script>
9<title>({$INC_HEADER_title})</title>
10<link rel="stylesheet" href="./xhtml_style.php?r=6665" type="text/css" />
11<script type="text/javascript">
12function insertAlbumImageURLToTextarea(album_image_id, album_id) {
13    var albumURLBase = "({t_url _absolute=1 _html=0 m=pc a=page_fh_album_image_show})";
14
15    var elm = window.opener.document.getElementById('mce_editor_textarea');
16    var selection = new Selection(elm);
17
18    var pos = selection.create();
19
20    var replace = albumURLBase + "&target_c_album_image_id=" + album_image_id + "&target_c_album_id=" + album_id;
21    var head = elm.value.substring(0, pos.start);
22    var tail = elm.value.substring(pos.end, elm.value.length);
23    elm.value =  head + replace + tail;
24}
25</script>
26</head>
27<body id="pc_page_({$INC_HEADER_page_name})"><div id="Body">
28<div id="Container" style="width: 600px">
29
30<div id="Center" style="width : 580px; margin: 10px;">
31
32<h1 style="font-weight: bold; font-size: 1.2em;">アルバム写真の挿入</h1>
33<p>アルバム写真を記事に挿入することができます。</p>
34
35({* unknown *})<div class="dparts photoTable"><div class="parts">
36({* unknown *})<div class="partsHeading"><h3>({$target_member.nickname})({if $type == "f"})さん({/if})のアルバム</h3></div>
37({* unknown *})({capture name=pager})({strip})
38({* unknown *})<div class="pagerRelative">
39({* unknown *})({if $is_prev})
40({* unknown *})<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>
41({* unknown *})({/if})
42({* unknown *})<p class="number">
43({* unknown *})({$total_num})件中 ({$page*$page_size-$page_size+1})件~
44({* unknown *})({if $page_size > $album_list_count})
45({* unknown *})({$album_list_count+$page*$page_size-$page_size})
46({* unknown *})({else})
47({* unknown *})({$page*$page_size})
48({* unknown *})({/if})
49({* unknown *})件を表示
50({* unknown *})</p>
51({* unknown *})({if $is_next})
52({* unknown *})<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>
53({* unknown *})({/if})
54({/strip})({/capture})
55({$smarty.capture.pager|smarty:nodefaults})
56<table>
57<tr class="photo">
58({t_loop from=$target_album_image start=0 num=5})
59<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
60({/t_loop})
61</tr>
62<tr class="text">
63({t_loop from=$target_album_image start=0 num=5})
64<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}), ({$item.c_album_id}))">写真を挿入</a>({/if})</td>
65({/t_loop})
66</tr>
67
68({if $target_album_image[5]})
69<tr class="photo">
70({t_loop from=$target_album_image start=5 num=5})
71<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
72({/t_loop})
73</tr>
74<tr class="text">
75({t_loop from=$target_album_image start=5 num=5})
76<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}), ({$item.c_album_id}))">写真を挿入</a>({/if})</td>
77({/t_loop})
78</tr>
79({/if})
80
81({if $target_album_image[10]})
82<tr class="photo">
83({t_loop from=$target_album_image start=10 num=5})
84<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
85({/t_loop})
86</tr>
87<tr class="text">
88({t_loop from=$target_album_image start=10 num=5})
89<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}), ({$item.c_album_id}))">写真を挿入</a>({/if})</td>
90({/t_loop})
91</tr>
92({/if})
93
94({if $target_album_image[15]})
95<tr class="photo">
96({t_loop from=$target_album_image start=15 num=5})
97<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
98({/t_loop})
99</tr>
100<tr class="text">
101({t_loop from=$target_album_image start=15 num=5})
102<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}), ({$item.c_album_id}))">写真を挿入</a>({/if})</td>
103({/t_loop})
104</tr>
105({/if})
106
107({if $target_album_image[20]})
108<tr class="photo">
109({t_loop from=$target_album_image start=20 num=5})
110<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
111({/t_loop})
112</tr>
113<tr class="text">
114({t_loop from=$target_album_image start=20 num=5})
115<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}), ({$item.c_album_id}))">写真を挿入</a>({/if})</td>
116({/t_loop})
117</tr>
118({/if})
119
120({if $target_album_image[25]})
121<tr class="photo">
122({t_loop from=$target_album_image start=25 num=5})
123<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
124({/t_loop})
125</tr>
126<tr class="text">
127({t_loop from=$target_album_image start=25 num=5})
128<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}), ({$item.c_album_id}))">写真を挿入</a>({/if})</td>
129({/t_loop})
130</tr>
131({/if})
132
133({if $target_album_image[30]})
134<tr class="photo">
135({t_loop from=$target_album_image start=30 num=5})
136<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
137({/t_loop})
138</tr>
139<tr class="text">
140({t_loop from=$target_album_image start=30 num=5})
141<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}), ({$item.c_album_id}))">写真を挿入</a>({/if})</td>
142({/t_loop})
143</tr>
144({/if})
145
146({if $target_album_image[35]})
147<tr class="photo">
148({t_loop from=$target_album_image start=35 num=5})
149<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
150({/t_loop})
151</tr>
152<tr class="text">
153({t_loop from=$target_album_image start=35 num=5})
154<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}), ({$item.c_album_id}))">写真を挿入</a>({/if})</td>
155({/t_loop})
156</tr>
157({/if})
158
159({if $target_album_image[40]})
160<tr class="photo">
161({t_loop from=$target_album_image start=40 num=5})
162<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
163({/t_loop})
164</tr>
165<tr class="text">
166({t_loop from=$target_album_image start=40 num=5})
167<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}), ({$item.c_album_id}))">写真を挿入</a>({/if})</td>
168({/t_loop})
169</tr>
170({/if})
171
172({if $target_album_image[45]})
173<tr class="photo">
174({t_loop from=$target_album_image start=45 num=5})
175<td>({if $item})<img src="({t_img_url filename=$item.image_filename w=76 h=76 noimg=no_image})" alt="" />({/if})</td>
176({/t_loop})
177</tr>
178<tr class="text">
179({t_loop from=$target_album_image start=45 num=5})
180<td>({if $item})({$item.image_description})<br /><a href="#" onclick="insertAlbumImageURLToTextarea(({$item.c_album_image_id}), ({$item.c_album_id}))">写真を挿入</a>({/if})</td>
181({/t_loop})
182</tr>
183({/if})
184</table>
185({$smarty.capture.pager|smarty:nodefaults})
186({* unknown *})
187({* unknown *})
188({* unknown *})</div></div>
189({* unknown *})</div></div>
190
191({* {{{ linkLine *})
192<div class="parts linkLine"><ul class="moreInfo">
193<li><a href="#" onclick="window.close()">ウィンドウを閉じる</a></li>
194</ul></div>
195({* }}} *})
196
197</div><!-- Center -->
198</div><!-- Container -->
199</div><!-- Body -->
200
201
202</body>
203</html>
Note: See TracBrowser for help on using the repository browser.