Files
luos/gulliver/bin/tasks/templates/usersList.php.tpl

31 lines
946 B
Smarty
Raw Normal View History

2010-12-02 23:34:41 +00:00
<?php
$G_MAIN_MENU = '{projectName}';
$G_SUB_MENU = 'users';
$G_ID_MENU_SELECTED = 'USERS';
$G_ID_SUB_MENU_SELECTED = 'USERS';
$con = Propel::getConnection('rbac');
$sql = "SELECT USR_UID, USR_USERNAME, USR_FIRSTNAME, USR_LASTNAME, USR_EMAIL, USR_STATUS FROM RBAC_USERS";
2010-12-02 23:34:41 +00:00
$stmt = $con->createStatement();
$rs = $stmt->executeQuery($sql, ResultSet::FETCHMODE_ASSOC);
$rs->next();
$row = $rs->getRow();
$rows[] = array ( 'uid' => 'char', 'name' => 'char', 'age' => 'integer', 'balance' => 'float' );
while ( is_array ( $row ) ) {
if ( is_array( $row) ) $rows[] = $row;
$rs->next();
$row = $rs->getRow();
}
$_DBArray['user'] = $rows;
$_SESSION['_DBArray'] = $_DBArray;
2017-08-08 09:53:00 -04:00
2010-12-02 23:34:41 +00:00
$c = new Criteria ('dbarray');
$c->setDBArrayTable('user');
2010-12-02 23:34:41 +00:00
$G_PUBLISH = new Publisher;
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'users/usersList', $c );
G::RenderPage('publish');