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

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

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

#2271:アルバム小窓・アルバム写真小窓をプレビューモードのエディタへ貼れるようにした

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