collection_add.htm
2.54 KB
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
<!--{template common/header}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>›</em>
<a href="forum.php?mod=collection">{lang collection}</a> <em>›</em>
<!--{if $op == 'edit'}-->
<a href="forum.php?mod=collection&action=view&ctid={$_G['collection']['ctid']}">{$_G['collection']['name']}</a> <em>›</em>
{lang collection_edit}
<!--{else}-->
{lang collection_create}
<!--{/if}-->
</div>
</div>
<script>
var titlelimit = '$titlelimit';
var desclimit = '$desclimit';
function checklen() {
if(mb_strlen($("formtitle").value) > titlelimit) {
showError({lang collection_title_exceed});
return false;
}
if(mb_strlen($("formdesc").value) > desclimit) {
showError({lang collection_desc_exceed});
return false;
}
return true;
}
</script>
<div id="ct" class="wp cl">
<div class="bm">
<div class="bm_h">
<h2>
<!--{if $op == 'edit'}-->
{lang collection_edit}
<!--{else}-->
{lang collection_create}
<!--{/if}-->
</h2>
</div>
<div class="bm_c">
<form action="forum.php?mod=collection&action=edit" onsubmit="return checklen();" method="POST">
<table cellspacing="0" cellpadding="0" class="tfm">
<tr>
<th>{lang collection_title}</th>
<td><input type="text" value="{$_G['collection']['name']}" name="title" id="formtitle" class="px" /></td>
</tr>
<tr>
<th>{lang collection_desc}</th>
<td><textarea name="desc" id="formdesc" rows="10" class="pt">{$_G['collection']['desc']}</textarea></td>
</tr>
<tr>
<th>{lang collection_keywords}</th>
<td>
<input type="text" value="{$_G['collection']['keyword']}" name="keyword" id="formkeyword" class="px" />
<p class="xg1">{lang collection_keywords_desc}</p>
</td>
</tr>
<tr>
<th></th>
<td>
<input type="hidden" value="1" name="submitcollection" />
<input type="hidden" value="{$op}" name="op" />
<input type="hidden" value="{$ctid}" name="ctid" />
<input type="hidden" name="formhash" id="formhash" value="{FORMHASH}" />
<button type="submit" name="collectionsubmit" class="pn pnc" value="submit"><span><!--{if $op == 'edit'}-->{lang collection_edit}<!--{else}-->{lang collection_create}<!--{/if}--></span></button>
<!--{if $op != 'edit'}-->
<span class="xg1">{lang collection_remain_tips}</span>
<!--{/if}-->
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
<!--{template common/footer}-->