<?php echo $this->fetch('header.html'); ?>
<div class="row">
<div class="span12">
<h1>每日签到</h1>
<div class="well">
赶紧来签到领取积分、金币吧，连续几天签到就领几次积分哦，如果间断就从重新开始，亲们加油哦！

</div>
 

<form method="post" action="/index.php?m=checkin&a=save" class="form form-inline">
 <div class="input-append s_face">
<label  >心情&nbsp;&nbsp;</label>
<?php $_from = $this->_var['mood_list']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('k', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['k'] => $this->_var['c']):
?>
<label class="radio">
<input type="radio"   name="mood" checked value="<?php echo $this->_var['k']; ?>"><i class="mood_face " style="background-position: left -<?php echo $this->_var['k']*30; ?>px;" title="<?php echo $this->_var['c']; ?>"></i> &nbsp; 
</label>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
<input type="text" name="content" class=" span4"  >

<button class="btn btn-danger" type="submit">保存</button>
</div>
</form>
<?php if ($this->_var['data']): ?>
<table class="table table-bordered">
<?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
<tr>
<td><img src="<?php echo $this->_var['c']['user_head']; ?>.100x100.jpg" style="width:50px" />
<?php echo $this->_var['c']['nickname']; ?>:<i class="mood_face " style="background-position: left -<?php echo $this->_var['c']['mood']*30; ?>px;" title="<?php echo $this->_var['mood_list'][$this->_var['c']['mood']]; ?>"></i> <?php echo $this->_var['c']['content']; ?> <?php echo date("Y-m-d H:i:s",$this->_var['c']['dateline']); ?></td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
<?php endif; ?>
</div>
</div>
<?php echo $this->fetch('footer.html'); ?>