$report= '用户名 QQ 电话号码 电子邮箱 个人主页'.chr(13); foreach( $result as $row ){ $report.= $row['account'].' ="'.$row["qq"].'" ="'.$row["phone"].'" '.$row["email"].' '.$row["blog"].chr(13); } report( $subject, $report ); } */ Output::format($execute); $content = Output::convert($result, $execute, array('attach' => array('avatar'), 'alias' => array('account' => '用户名', 'qq' => 'QQ', 'phone' => '电话号码', 'email' => '电子邮箱', 'blog' => '个人主页', 'avatar' => '用户头像'))); //var_dump( $content ); //exit; //输出数据内容 echo Output::content($content, $execute == 'csv' ? '用户列表' : NULL); } break; ///////////////////////////////////////////// //当前用户状态检查 ///////////////////////////////////////////// //当前用户状态检查 case "session": if ($_G['manager']['id']) { //查询用户最后登录时间 $sql = "SELECT last_login from `sys:admin` WHERE id=" . $_G['manager']['id'] . " AND `state`>0"; //时间 $last = System::$db->getValue($sql); if ($last) { //更新用户最后活动时间 $sql = "UPDATE `sys:admin` SET last_active=" . time() . " WHERE id=" . $_G['manager']['id'];
static public function setContent($text) { self::$content = $text; self::assign("content", self::$content); }