group_create.htm
5.04 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<div class="bm bml" id="main_messaqge">
<div class="bm_h cl">
<h1 class="xs2">{lang group_create_new}
<!--{if $_G['setting']['groupmod']}--> ({lang group_create_mod})<!--{/if}-->
</h1>
</div>
<div class="bm_c">
<form method="post" autocomplete="off" name="groupform" id="groupform" class="s_clear" onsubmit="checkCategory();ajaxpost('groupform', 'returnmessage4', 'returnmessage4', 'onerror');return false;" action="forum.php?mod=group&action=create">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="referer" value="{echo dreferer()}" />
<input type="hidden" name="handlekey" value="creategroup" />
<table cellspacing="0" cellpadding="0" class="tfm" summary="{lang group_create}">
<tbody>
<tr>
<th> </th>
<td>
<style type="text/css">
#returnmessage4 { display: none; color: {NOTICETEXT}; font-weight: bold; }
#returnmessage4.onerror { display: block; }
</style>
<p id="returnmessage4"></p>
</td>
</tr>
<tr>
<th><strong class="rq y">*</strong>{lang group_name}:</th>
<td>
<input type="text" name="name" id="name" class="px" size="36" tabindex="1" value="" autocomplete="off" onBlur="checkgroupname()" tabindex="1" />
<span id="groupnamecheck" class="xi1"></span>
</td>
</tr>
<tr>
<th><strong class="rq y">*</strong>{lang group_category}:</th>
<td>
<select name="parentid" tabindex="2" class="ps" onchange="ajaxget('forum.php?mod=ajax&action=secondgroup&fupid='+ this.value, 'secondgroup');">
<option value="0">{lang choose_please}</option>
$groupselect[first]
</select>
<em id="secondgroup"></em>
<span id="groupcategorycheck" class="xi1"></span>
</td>
</tr>
<tr>
<th>{lang group_description}:</th>
<td>
<script type="text/javascript">
var allowbbcode = allowimgcode = parsetype = 1;
var allowhtml = forumallowhtml = allowsmilies = 0;
</script>
<script type="text/javascript" src="{$_G[setting][jspath]}bbcode.js?{VERHASH}"></script>
<div id="descriptionpreview"></div>
<div class="tedt">
<div class="bar">
<div class="y"><a href="javascript:;" onclick="$('descriptionpreview').innerHTML = bbcode2html($('descriptionmessage').value)">{lang group_description_preview}</a></div>
<!--{eval $seditor = array('description', array('bold', 'color', 'img', 'link'));}-->
<!--{subtemplate common/seditor}-->
</div>
<div class="area">
<textarea id="descriptionmessage" name="descriptionnew" tabindex="3" class="pt" rows="8"></textarea>
</div>
</div>
</tr>
<tr>
<th><strong class="rq y">*</strong>{lang group_perm_visit}:</th>
<td>
<label class="lb"><input type="radio" name="gviewperm" class="pr" tabindex="4" value="1" checked="checked" />{lang group_perm_all_user}</label>
<label class="lb"><input type="radio" name="gviewperm" class="pr" value="0" />{lang group_perm_member_only}</label>
</td>
</tr>
<tr>
<th><strong class="rq y">*</strong>{lang group_join_type}:</th>
<td>
<label class="lb"><input type="radio" name="jointype" class="pr" tabindex="5" value="0" checked="checked" />{lang group_join_type_free}</label>
<label class="lb"><input type="radio" name="jointype" class="pr" value="2" />{lang group_join_type_moderate}</label>
<label class="lb"><input type="radio" name="jointype" class="pr" value="1" />{lang group_join_type_invite}</label>
</td>
</tr>
<tr>
<th> </th>
<td>
<input type="hidden" name="createsubmit" value="true"><button type="submit" class="pn pnc" tabindex="6"><strong>{lang create}</strong></button>
<!--{if $_G['group']['buildgroupcredits']}--> (<strong class="rq">{lang group_create_buildcredits} $_G['group']['buildgroupcredits'] $_G['setting']['extcredits'][$creditstransextra]['unit']{$_G['setting']['extcredits'][$creditstransextra]['title']}</strong>)<!--{/if}-->
</td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
<script type="text/javascript">
function checkgroupname() {
var groupname = trim($('name').value);
ajaxget('forum.php?mod=ajax&forumcheck=1&infloat=creategroup&handlekey=creategroup&action=checkgroupname&groupname=' + (BROWSER.ie && document.charset == 'utf-8' ? encodeURIComponent(groupname) : groupname), 'groupnamecheck');
}
function checkCategory(){
var groupcategory = trim($('fup').value);
if(groupcategory == ''){
$('groupcategorycheck').innerHTML = '{lang group_create_selete_categroy}';
return false;
} else {
$('groupcategorycheck').innerHTML = '';
}
}
<!--{if $_GET['fupid']}-->
ajaxget('forum.php?mod=ajax&action=secondgroup&fupid=$_GET[fupid]<!--{if $_GET[groupid]}-->&groupid=$_GET[groupid]<!--{/if}-->', 'secondgroup');
<!--{/if}-->
if($('name')) {
$('name').focus();
}
</script>