<?php include_once tpl('header');?>
<card title="<?php echo $tag;?>任务 - <?php echo setting('webname');?>">
<p align="left">
返回<?php echo backLink('上级');?>|<?php echo memberLink();?>|<?php echo indexLink();?>
<br/>
-----------------
<br/>
<?php echo ilink('任务中心', url('system', array('s'=>'member','c'=>'task')));?>|<?php echo implode('|', $navArray);?>
<br/>
<?php if (!empty($tasks)):?>
    <?php foreach ($tasks as $task):?>
        <?php echo ++$i;?>.<?php echo $task->task->subject;?><br/>
        <b>说明</b>:<?php echo $task->task->description;?>
        <br/>
        奖励:<b><?php echo $task->task->reward.setting('creditname');?></b><br/>
        <?php if (!empty($task->task->factor)):?>
            完成条件:<?php echo $task->task->factor;?><br/>
        <?php endif;?>
        任务地址:<?php echo ilink('点击前往', $task->task->task_url);?><br/>
        -----------------
        <br/>
    <?php endforeach;?>
<?php else:?>
    暂无<?php echo $tag;?>任务<br/>
<?php endif;?>
<?php include_once tpl('footer');?>