<!--{block writedata}-->
<!--{if $randtask}-->
<style type="text/css">
<!--
	.requestmsg { }
		.requestmsg h6 { font-weight: 700; *margin-top: -15px; }
		.requestmsg img { float: left; margin-right: 6px; width: 74px; height: 74px; }
		.side li.requestmsg a { float: left; width: 47px; height: 22px; line-height: 22px; background: url({IMGDIR}/requestbtn.gif) no-repeat; color: #EEE; text-align: center; }
		.requestmsg p { margin:0 0 6px 80px; line-height: 1.3em; }
-->
</style>
	<div class="sidebox">
	<h4>社区任务</h4>
	<ul class="textinfolist">
		<li class="requestmsg">
		<img src="$randtask[icon]" alt="$randtask[name]" />
		<h6>$randtask[name]</h6>
		<p>奖励：
			<!--{if $randtask['reward'] == 'credit'}-->{lang credits}
			<!--{elseif $randtask['reward'] == 'magic'}-->{lang magics_title}
			<!--{elseif $randtask['reward'] == 'medal'}-->{lang medals}
			<!--{elseif $randtask['reward'] == 'invite'}-->{lang invite_code}
			<!--{elseif $randtask['reward'] == 'group'}-->{lang usergroup}<!--{/if}-->		
		</p>
		<p><a href="task.php?action=view&id=$randtask[taskid]&amp;from=taskindex">领取</a></p>
		</li>
	</ul>
	</div>
<!--{/if}-->
<!--{/block}-->