viewthread_activity.htm
7.37 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<div class="mbn">
<!--{if $activity['thumb']}--><img src="$activity['thumb']" width="{if $activity[width] > 230}230{else}$activity[width]{/if}" /><!--{else}--><img src="{IMGDIR}/nophoto.gif" width="230" height="230" /><!--{/if}-->
<dl>
<dt>{lang activity_type}: <strong>$activity[class]</strong></dt>
<dt>{lang activity_starttime}:
<!--{if $activity['starttimeto']}-->
{lang activity_start_between}
<!--{else}-->
$activity[starttimefrom]
<!--{/if}-->
</dt>
<dt>{lang activity_space}: $activity[place]</dt>
<dt>{lang gender}:
<!--{if $activity['gender'] == 1}-->
{lang male}
<!--{elseif $activity['gender'] == 2}-->
{lang female}
<!--{else}-->
{lang unlimited}
<!--{/if}-->
</dt>
<!--{if $activity['cost']}-->
<dt>{lang activity_payment}: $activity[cost] {lang payment_unit}</dt>
<!--{/if}-->
</dl>
<!--{if !$_G['forum_thread']['is_archived']}-->
<dl class="mtn">
<dt>{lang activity_already}:
<em>$allapplynum</em> {lang activity_member_unit}
<!--{if $post['invisible'] == 0 && ($_G['forum_thread']['authorid'] == $_G['uid'] || (in_array($_G['group']['radminid'], array(1, 2)) && $_G['group']['alloweditactivity']) || ( $_G['group']['radminid'] == 3 && $_G['forum']['ismoderator'] && $_G['group']['alloweditactivity']))}-->
<span class="xi1">{lang activity_mod}</span>
<!--{/if}-->
</dt>
</dl>
<dl>
<!--{if $activity['number']}-->
<dt>{lang activity_about_member}:
$aboutmembers {lang activity_member_unit}
</dt>
<!--{/if}-->
<!--{if $activity['expiration']}-->
<dt>{lang post_closing}: $activity[expiration]</dt>
<!--{/if}-->
<dt>
<!--{if $post['invisible'] == 0}-->
<!--{if $applied && $isverified < 2}-->
<p class="xg1 xs1"><!--{if !$isverified}-->{lang activity_wait}<!--{else}-->{lang activity_join_audit}<!--{/if}--></p>
<!--{if !$activityclose}-->
<!--{/if}-->
<!--{elseif !$activityclose}-->
<!--{if $isverified != 2}-->
<!--{else}-->
<p class="pns mtn">
<input value="{lang complete_data}" name="ijoin" id="ijoin" />
</p>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
</dt>
</dl>
<!--{/if}-->
</div>
<div id="postmessage_$post[pid]" class="postmessage">$post[message]</div>
<!--{if $_G['uid'] && !$activityclose && (!$applied || $isverified == 2)}-->
<div id="activityjoin" class="bm mtn">
<div class="bm_c pd5">
<div class="xw1">{lang activity_join}</div>
<!--{if $_G['forum']['status'] == 3 && helper_access::check_module('group') && $isgroupuser != 'isgroupuser'}-->
<p>{lang activity_no_member}</p>
<p><a href="forum.php?mod=group&action=join&fid=$_G[fid]" class="xi2">{lang activity_join_group}</a></p>
<!--{else}-->
<form name="activity" id="activity" method="post" autocomplete="off" action="forum.php?mod=misc&action=activityapplies&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]{if $_GET['from']}&from=$_GET['from']{/if}&mobile=yes" >
<input type="hidden" name="formhash" value="{FORMHASH}" />
<!--{if $_G['setting']['activitycredit'] && $activity['credit'] && !$applied}--><p class="xi1">{lang activity_need_credit} $activity[credit] {$_G['setting']['extcredits'][$_G['setting']['activitycredit']][title]}</p><!--{/if}-->
<!--{if $activity['cost']}-->
<p>{lang activity_paytype} <label><input class="pr" type="radio" value="0" name="payment" id="payment_0" checked="checked" />{lang activity_pay_myself}</label> <label><input class="pr" type="radio" value="1" name="payment" id="payment_1" />{lang activity_would_payment} </label> <input name="payvalue" size="3" class="txt_s" /> {lang payment_unit}</p>
<!--{/if}-->
<!--{if !empty($activity['ufield']['userfield'])}-->
<!--{loop $activity['ufield']['userfield'] $fieldid}-->
<!--{if $settings[$fieldid][available]}-->
<strong>$settings[$fieldid][title]<span class="xi1">*</span></strong>
$htmls[$fieldid]
<!--{/if}-->
<!--{/loop}-->
<!--{/if}-->
<!--{if !empty($activity['ufield']['extfield'])}-->
<!--{loop $activity['ufield']['extfield'] $extname}-->
$extname<input type="text" name="$extname" maxlength="200" class="txt" value="{if !empty($ufielddata)}$ufielddata[extfield][$extname]{/if}" />
<!--{/loop}-->
<!--{/if}-->
{lang leaveword}<textarea name="message" maxlength="200" cols="28" rows="1" class="txt">$applyinfo[message]</textarea>
<div class="o pns">
<!--{if $_G['setting']['activitycredit'] && $activity['credit'] && checklowerlimit(array('extcredits'.$_G['setting']['activitycredit'] => '-'.$activity['credit']), $_G['uid'], 1, 0, 1) !== true}-->
<p class="xi1">{$_G['setting']['extcredits'][$_G['setting']['activitycredit']][title]} {lang not_enough}$activity['credit']</p>
<!--{else}-->
<input type="hidden" name="activitysubmit" value="true">
<em class="xi1" id="return_activityapplies"></em>
<button type="submit" ><span>{lang submit}</span></button>
<!--{/if}-->
</div>
</form>
<script type="text/javascript">
function succeedhandle_activityapplies(locationhref, message) {
showDialog(message, 'notice', '', 'location.href="' + locationhref + '"');
}
</script>
<!--{/if}-->
</div>
</div>
<!--{elseif $_G['uid'] && !$activityclose && $applied}-->
<div id="activityjoincancel" class="bm mtn">
<div class="bm_c pd5">
<div class="xw1">{lang activity_join_cancel}</div>
<form name="activity" method="post" autocomplete="off" action="forum.php?mod=misc&action=activityapplies&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]{if $_GET['from']}&from=$_GET['from']{/if}">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<p>
{lang leaveword}<input type="text" name="message" maxlength="200" class="px" value="" />
</p>
<p class="mtn">
<button type="submit" name="activitycancel" value="true"><span>{lang submit}</span></button>
</p>
</form>
</div>
</div>
<!--{/if}-->
<!--{if $applylist}-->
<div class="bm ptn pbn xs1">
<div class="bm_c">
<p class="pd5">{lang activity_new_join} ($applynumbers {lang activity_member_unit})</p>
<table class="dt" cellpadding="5" cellspacing="5">
<tr>
<th > </th>
<!--{if $activity['cost']}-->
<th >{lang activity_payment}</th>
<!--{/if}-->
<th>{lang activity_jointime}</th>
</tr>
<!--{loop $applylist $apply}-->
<tr>
<td>
<a target="_blank" href="home.php?mod=space&uid=$apply[uid]">$apply[username]</a>
</td>
<!--{if $activity['cost']}-->
<td><!--{if $apply[payment] >= 0}-->$apply[payment] {lang payment_unit}<!--{else}-->{lang activity_self}<!--{/if}--></td>
<!--{/if}-->
<td>$apply[dateline]</td>
</tr>
<!--{/loop}-->
</table>
</div>
</div>
<!--{/if}-->