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

source: OpenPNE/trunk/webapp/modules/pc/templates/h_album_insert_dialog.tpl @ 6796

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

#2271:アルバム・アルバム写真が0件の場合はsimpleBoxを表示するようにした

File size: 5.4 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" type="text/css" />
12<script type="text/javascript">
13function insertAlbumURLToTextarea(album_id) {
14    var albumURLBase = "({t_url _absolute=1 _html=0 m=pc a=page_fh_album})";
15    var replace = " " + albumURLBase + "&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: 0 auto; padding: 10px 0;">
37
38<h1 style="font-weight: bold; font-size: 1.2em;">アルバム・アルバム写真の挿入</h1>
39<p>アルバム・アルバム写真を記事に挿入することができます。</p>
40
41({if $total_num})
42({* unknown *})<div class="dparts" style="margin-top: 1em;"><div class="parts">
43({* unknown *})<div class="partsHeading"><h3>({$target_member.nickname})のアルバム</h3></div>
44({* unknown *})
45({* unknown *})({capture name=pager})({strip})
46({* unknown *})<div class="pagerRelative">
47({* unknown *})({if $is_prev})
48({* unknown *})<p class="prev"><a href="({t_url m=pc a=page_h_album_insert_dialog})&amp;page=({$page-1})">前を表示</a></p>
49({* unknown *})({/if})
50({* unknown *})<p class="number">
51({* unknown *})({$total_num})件中 ({$page*$page_size-$page_size+1})件~
52({* unknown *})({if $page_size > $album_list_count})
53({* unknown *})({$album_list_count+$page*$page_size-$page_size})
54({* unknown *})({else})
55({* unknown *})({$page*$page_size})
56({* unknown *})({/if})
57({* unknown *})件を表示
58({* unknown *})</p>
59({* unknown *})({if $is_next})
60({* unknown *})<p class="next"><a href="({t_url m=pc a=page_h_album_insert_dialog})&amp;page=({$page+1})">次を表示</a></p>
61({* unknown *})({/if})
62({* unknown *})</div>
63({* unknown *})({/strip})({/capture})
64({* unknown *})({$smarty.capture.pager|smarty:nodefaults})
65({* unknown *})
66({* unknown *})({foreach from=$target_album_list item=item})
67({* unknown *})<table>
68({* unknown *})<tr>
69({* unknown *})<td rowspan="4" align="center" style="width: 190px; padding: 5px;">
70({* unknown *})<img src="({if $item.album_cover_image})({t_img_url filename=$item.album_cover_image w=180 h=180})({else})({t_img_url_skin filename=no_image w=180 h=180})({/if})" alt="" />
71({* unknown *})<p style="text-align:center; padding: 2px;"><a href="#" onclick="insertAlbumURLToTextarea(({$item.c_album_id}))">アルバムを挿入</a></p>
72({* unknown *})</td>
73({* unknown *})<th style="width:75px; padding: 5px;">タイトル</th>
74({* unknown *})<td style="padding: 5px;" colspan="2">({$item.subject})</td>
75({* unknown *})</tr>
76({* unknown *})<tr>
77({* unknown *})<th style="border-left-width: 1px; padding: 5px;">説明文</th>
78({* unknown *})<td style="padding: 5px;" colspan="2">({$item.description|t_truncate:36:"":3})</td>
79({* unknown *})</tr>
80({* unknown *})<tr>
81({* unknown *})<th style="border-left-width: 1px; padding: 5px;">公開範囲</th>
82({* unknown *})<td style="padding: 5px;" colspan="2">
83({* unknown *})({if $item.public_flag == "public"})
84({* unknown *})全員に公開
85({* unknown *})({elseif $item.public_flag == "friend"})
86({* unknown *})({$WORD_MY_FRIEND})まで公開
87({* unknown *})({elseif $item.public_flag == "private"})
88({* unknown *})公開しない
89({* unknown *})({/if})
90({* unknown *})</td>
91({* unknown *})</tr>
92({* unknown *})<tr>
93({* unknown *})<th style="border-left-width: 1px; padding: 5px;">作成日時</th>
94({* unknown *})<td style="padding: 5px;">({$item.r_datetime|date_format:"%m月%d日 %H:%M"})</td>
95({* unknown *})<td style="padding: 5px; text-align: center;"><a href="({t_url m=pc a=page_h_album_image_insert_dialog})&amp;target_c_album_id=({$item.c_album_id})"><img src="({t_img_url_skin filename=button_shosai})" alt="詳細を見る" /></a></td>
96({* unknown *})</tr>
97({* unknown *})</table>
98({* unknown *})({/foreach})
99({* unknown *})
100({* unknown *})({$smarty.capture.pager|smarty:nodefaults})
101({* unknown *})
102({* unknown *})</div></div>
103({else})
104({* {{{ simpleBox *})
105<div class="dparts simpleBox"><div class="parts">
106<div class="partsHeading"><h3>({$target_member.nickname})のアルバム</h3></div>
107<div class="block">
108<p>まだアルバムがありません。</p>
109</div>
110</div></div>
111({* }}} *})
112({/if})
113
114({* {{{ linkLine *})
115<div class="parts linkLine"><ul class="moreInfo">
116<li><a href="#" onclick="window.close()">ウィンドウを閉じる</a></li>
117</ul></div>
118({* }}} *})
119
120</div><!-- Center -->
121</div><!-- Container -->
122</div><!-- Body -->
123
124
125</body>
126</html>
Note: See TracBrowser for help on using the repository browser.