/**
 * 获取时间参数
 * @return integer 0/管理员ID
 */
function time_trans($the_time)
{   $time = $the_time;
    $now_time = time();
    $show_time = strtotime($the_time);
    $the_time = $now_time - $show_time;
    if($the_time < 60){
        return $the_time.'秒前';
    }else if($the_time < 3600){
        return floor($the_time/60).'分钟前';
    }else if($the_time < 86400) {
        return floor($the_time/3600).'小时前';
    }else if($the_time < 259200) {//3天内
        return floor($the_time / 86400) . '天前';
    }else{
        return $time;
    }
}