/** * 首页 * */ public function actionIndex() { parent::_acl('match_index'); $model = new Match(); $criteria = new CDbCriteria(); $count = $model->count($criteria); $pages = new CPagination($count); $pages->pageSize = 10; $criteria->limit = $pages->pageSize; $criteria->offset = $pages->currentPage * $pages->pageSize; $result = $model->findAll($criteria); $this->render('index', array('datalist' => $result, 'pagebar' => $pages)); }
tournaments here, and your ratings for Pauper Magic will also be calculated.</p> <p> <div class="alpha grid_5"> <b>Some good starting points:</b> <ul> <li> <a href="eventreport.php"> See a list of recent events </a> </li> <li> <a href="decksearch.php"> Search for decks with a certain card </a> </li> <ul> <b>Random statistics about Gatherling:</b> <ul> <li> There are <?php echo Deck::uniqueCount(); ?> unique decks. </li> <li> We have recorded <?php echo Match::count(); ?> matches from <?php echo Event::count(); ?> events.</li> <li> There are <?php echo Player::activeCount(); ?> active players in gatherling. (<?php echo Player::verifiedCount(); ?> verified) </li> </ul> </div> <div class="grid_5 omega">