//判断是否今天登陆过
< if condition = "$vo.login_time gt strtotime(date('Y-m-d'))" >今天登陆过</ if >
//判断是否空值或0
< eq name = "vo.end_time" value = "0" >
不是 0
< else />
大于0显示
</ eq >
//时间戳转换
{ $vo . login_time | date = "Y-m-d H:i:s" , ###}
//U方法直接回首页
{: U ( '/index' )} 或 {: U ( '/index' )}
//U方法跨模块
{: U ( 'admin/xxxx/xxxx' )}
//下拉表单自动选中
< select id = "tid" name = 'tid' >
< volist name = "list" id = "vo" >
< option value = "{$vo.id}"
< eq name = "vo.id" value = "$_GET['id']" > selected < /eq> >
{$vo.name}</ option >
< /volist>
</ select >
< if condition = "$vo.login_time gt strtotime(date('Y-m-d'))" >今天登陆过</ if >
//判断是否空值或0
< eq name = "vo.end_time" value = "0" >
不是 0
< else />
大于0显示
</ eq >
//时间戳转换
{ $vo . login_time | date = "Y-m-d H:i:s" , ###}
//U方法直接回首页
{: U ( '/index' )} 或 {: U ( '/index' )}
//U方法跨模块
{: U ( 'admin/xxxx/xxxx' )}
//下拉表单自动选中
< select id = "tid" name = 'tid' >
< volist name = "list" id = "vo" >
< option value = "{$vo.id}"
< eq name = "vo.id" value = "$_GET['id']" > selected < /eq> >
{$vo.name}</ option >
< /volist>
</ select >