Exemplo n.º 1
0
 public function main($templateVarList)
 {
     $rendering = array();
     $language = $this->getSentences();
     $userList = parent::getUser();
     $nickname = $userList ? $userList[rand(0, parent::countUser() - 1)]->nickname : '';
     $chitipensa = $nickname !== '' ? '<a href="' . $this->config[0]->url_index . '/profile/' . $nickname . '.html">' . $nickname . '</a>!' : $language['notfound'];
     $rendering['postmenu'] = $templateVarList['postmenu'] . '<div align="center">' . $language['presentation'] . $chitipensa . '</div>';
     return $rendering;
 }
Exemplo n.º 2
0
				<p><span class="label">WaveBook</span> compte déjà plusieurs milliers d'utilisateurs ayant partagé des millions de fichiers ! A qui le tour ?</p>
				<p>
					<?php 
for ($i = 0; $i < count($ruser); $i++) {
    $list_avatars = Avatar::getAvatarsByUserId($ruser[$i]->id);
    echo '<img src="' . $list_avatars[0]->getMiniatureLink() . '" class="img-polaroid avatar-little" alt="' . $ruser[$i]->vorname . ' ' . $ruser[$i]->name . ' est sur Wavebook !" title="' . $ruser[$i]->vorname . ' ' . $ruser[$i]->name . '  est sur Wavebook !" \\> ';
}
?>
				</p>
			</div>
		  </div>
		  <div class="span4">
			<div style="padding-left:10px;">
				<h3>Statistiques</h3>
				<p>Il y a <span style="font-size:15px;font-weight:bold;"><?php 
echo User::countUser();
?>
</span> utilisateurs qui ont partagés <span style="font-size:15px;"><?php 
echo File::countFiles();
?>
</span> fichiers.</p>
			</div>
		  </div>
		  <div class="span4">
			<div style="padding-left:10px;">
				<h3>Pas encore inscrit ?</h3>
				<a href="<?php 
echo url('home/register');
?>
" class="btn btn-large btn-primary"><i class="icon-plus-sign icon-white"></i> Inscription rapide</a>
			</div>
Exemplo n.º 3
0
<?php

$param["at"] = $tools->sql_injection_anti($_GET['at']);
if (empty($param["at"])) {
    $param["at"] = 0;
}
$param["limit"] = 50;
$param['account'] = $_SESSION['account'];
include_once LIB_PATH . "Table/User.class.php";
$tb_user = new User();
$counts = $tb_user->countUser();
$tpl->counts = $counts;
$pageBar['url'] = "index.php?page=user/list&at=";
$pageBar['current'] = floor($param["at"]);
// 當前頁數
$pageBar['pageNums'] = ceil($counts / $param["limit"]);
// 總頁數
$pageBar['rowNums'] = floor($counts);
// 總筆數
$tpl->pageBar = $pageBar;
$offset = $param["at"] * $param["limit"];
$list = $tb_user->listUser($offset, $param["limit"]);
/*
if ($list) {
    foreach ($list as $key => $value) {
        $date = $value['log_time'];



    }    
}