-
Notifications
You must be signed in to change notification settings - Fork 11
/
album_edit_body.tpl
84 lines (78 loc) · 2.12 KB
/
album_edit_body.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{JS_MENU}
<!-- BEGIN switch_user_logged_in -->
<div id="pun-visit" class="clearfix">
<ul>
<li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>
<li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
</ul>
<p>{LOGGED_AS}. {LAST_VISIT_DATE}</p>
</div>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<div id="pun-visit">
<p>{L_NOT_CONNECTED} {L_LOGIN_REGISTER}</p>
</div>
<!-- END switch_user_logged_out -->
<div class="pun-crumbs">
<p class="crumbs"><a href="{U_INDEX}"><span>{L_INDEX}</span></a><strong>{NAV_CAT_DESC}</strong></p>
</div>
<script type="text/javascript">
<!--
function checkAlbumForm() {
formErrors = false;
if (document.editform.pic_title.value.length < 2)
{
formErrors = "{L_UPLOAD_NO_TITLE}";
}
else if (document.editform.pic_desc.value.length > {S_PIC_DESC_MAX_LENGTH})
{
formErrors = "{L_DESC_TOO_LONG}";
}
if (formErrors)
{
alert(formErrors);
return false;
}
else
{
return true;
}
}
//-->
</script>
<div class="main">
<div class="main-head"><h1 class="page-title">{L_EDIT_PIC_INFO}</h1></div>
<div class="main-content">
<form name="editform" action="{S_ALBUM_ACTION}" method="post" onsubmit="return checkAlbumForm()" class="frm-form">
<fieldset class="frm-set">
<dl>
<dt><label>{L_PIC_TITLE}</label></dt>
<dd><input class="inputbox" type="text" name="pic_title" value="{PIC_TITLE}" /></dd>
</dl>
<dl>
<dt>
<label>{L_PIC_DESC}</label><br />
<span class="italic">{L_PLAIN_TEXT_ONLY}<br />{L_MAX_LENGTH}: <b>{S_PIC_DESC_MAX_LENGTH}</b></span>
</dt>
<dd><textarea class="inputbox" cols="60" rows="4" name="pic_desc">{PIC_DESC}</textarea><br /></dd>
</dl>
<!-- BEGIN move_to_category -->
<dl>
<dt><label>{L_MOVE_TO_CATEGORY}</label></dt>
<dd>{S_CATEGORY_SELECT}</dd>
</dl>
<!-- END move_to_category -->
</fieldset>
<fieldset class="frm-set">
<dl class="frm-buttons">
<dt> </dt>
<dd>
<input type="reset" value="{L_RESET}" class="button2" />
<input type="submit" name="submit" value="{L_SUBMIT}" class="button2" />
</dd>
</dl>
</fieldset>
</form>
</div>
</div>
<br />