{template header}
<!--{if empty($infloat)}-->
	{subtemplate header_nofloat}
<!--{/if}-->

<div class="float">
<div class="floatbox" style="height: 410px">
	<h3 class="float_ctrl">
		<em id="return_$handlekey"><!--{if $thread['authorid'] == $discuz_uid}-->{lang activity_applylist_manage}<!--{else}-->{lang activity_applylist}<!--{/if}--></em>
		<span>
			<!--{if !empty($infloat)}--><a href="javascript:;" class="float_close" onclick="floatwin('close_$handlekey')" title="{lang close}">{lang close}</a><!--{/if}-->
		</span>
	</h3>
	<form id="applylistform" method="post" action="misc.php?action=activityapplylist&tid=$tid&applylistsubmit=yes&infloat=yes" onsubmit="ajaxpost('applylistform', 'return_$handlekey', 'return_$handlekey', 'onerror');return false;">
	<input type="hidden" name="formhash" value="{FORMHASH}" />
	<input type="hidden" name="operation" value="" />
	<!--{if !empty($infloat)}--><input type="hidden" name="handlekey" value="$handlekey" /><!--{/if}-->
	<div class="floatwrap">
	<!--{if !empty($uid) && $thread['authorid'] == $discuz_uid}-->
		{eval $apply = $applylist[0];}
		<input type="hidden" name="applyidarray[]" value="$apply[applyid]" />
		<table class="list" cellspacing="0" cellpadding="0">
			<tr>
				<th>{lang activity_join_members}</th>
				<td><a target="_blank" href="space.php?uid=$apply[uid]">$apply[username]</a></td>
			</tr>
			<tr>
				<th>{lang activity_linkman}</th>
				<td>$apply[contact]</td>
			</tr>
			<tr>
				<th>{lang leaveword}</th>
				<td>$apply[message]</td>
			</tr>
			<tr>
				<th>{lang activity_payment}</th>
				<td><!--{if $apply[payment] >= 0}-->$apply[payment] {lang payment_unit}<!--{else}-->{lang activity_self}<!--{/if}--></td>
			</tr>
			<tr>
				<th>{lang activity_jointime}</th>
				<td>$apply[dateline]</td>
			</tr>

			<tr class="btns">
				<th>&nbsp;</th>
				<!--{if $operation == 'delete'}-->
					<td><button type="submit" value="true" name="applylistsubmit" onclick="$('applylistform').operation.value='delete';">{lang delete}</button></td>
				<!--{else}-->
					<td><button class="submit" type="submit" value="true" name="applylistsubmit">{lang confirm}</button></td>
				<!--{/if}-->
			</tr>
		</table>
		</div>
	<!--{else}-->
		<table class="list" cellspacing="0" cellpadding="5">
			<thead>
				<tr>
					<!--{if $thread['authorid'] == $discuz_uid}--><td>&nbsp;</td><!--{/if}-->
					<td>{lang activity_join_members}</td>
					<!--{if $thread['authorid'] == $discuz_uid}--><td>{lang activity_linkman}</td><!--{/if}-->
					<td>{lang leaveword}</td>
					<td>{lang activity_payment}</td>
					<td>{lang activity_jointime}</td>
					<!--{if $thread['authorid'] == $discuz_uid}--><td>{lang status}</td><!--{/if}-->
				</tr>
			</thead>
			<!--{loop $applylist $apply}-->
				<tr>
					<!--{if $thread['authorid'] == $discuz_uid}-->
						<td><input class="checkbox" type="checkbox" name="applyidarray[]" value="$apply[applyid]" /></td>
					<!--{/if}-->
					<td><a target="_blank" href="space.php?uid=$apply[uid]">$apply[username]</a></td>
					<!--{if $thread['authorid'] == $discuz_uid}-->
						<td><input type="text" size="10" class="txt" value="$apply[contact]" readonly="readonly" /></td>
					<!--{/if}-->
					<td><input type="text" size="15" class="txt" value="$apply[message]" readonly="readonly" /></td>
					<td><!--{if $apply[payment] >= 0}-->$apply[payment] {lang payment_unit}<!--{else}-->{lang activity_self}<!--{/if}--></td>
					<td>$apply[dateline]</td>
					<!--{if $thread['authorid'] == $discuz_uid}-->
						<td><!--{if $apply[verified]}-->{lang activity_allow_join}<!--{else}-->{lang activity_cant_audit}<!--{/if}--></td>
					<!--{/if}-->
				</tr>
			<!--{/loop}-->
		</table>
		</div>
		<!--{if $thread['authorid'] == $discuz_uid}-->
			<div class="postbox">
			<label><input class="checkbox header" type="checkbox" name="chkall" onclick="checkall(this.form, 'applyid')" /> {lang checkall}</label>&nbsp;&nbsp;
			<button type="submit" value="true" name="applylistsubmit" onclick="$('applylistform').operation.value='delete';">{lang delete}</button>&nbsp;&nbsp;
			<button class="submit" type="submit" value="true" name="applylistsubmit">{lang confirm}</button>
			</div>
		<!--{/if}-->
	<!--{/if}-->
	</form>
</div>
</div>

<!--{if !empty($infloat)}-->
<script type="text/javascript" reload="1">
function submithandle_$handlekey(locationhref) {
	ajaxget('viewthread.php?tid=$tid&viewpid=$pid', 'post_$pid');
	floatwinreset = 1;
	floatwin('close_$handlekey');
}
</script>
<!--{/if}-->

<!--{if empty($infloat)}-->
	{subtemplate footer_nofloat}
<!--{/if}-->
{template footer}