'doList', 'view' => 'doView', 'back' => 'doBack'); function exec($Doc) { $this->Doc = $Doc; $this->DBObj = SiteMap::getObj('BattleDonation/Admin/Obj.php', Qs_Request::getRequestValue('id')); parent::exec(); } function _doListBind(DB_List &$list) { $list->ipp = 999999; $list->tableAttribs['id'] = 'battle-donation-grid'; $list->def_order_by = 'amount desc'; $list->activeAmounts = $this->DBObj->getActiveAmounts(); $list->maxAmount = $this->DBObj->getMaxAmount(); $list->minAmount = $this->DBObj->getMinAmount(); $list->tpl = BASE_PATH . '/tpl/BattleDonation/Admin/list.tpl'; $list->insertColLast( 'amount', array( 'title' => 'Amount', 'order_by' => 'amount', 'attribs' => array('width' => 70), 'tpl' => DB_LIST_CELL_MONEY, 'params' => array('amount') ) ); $list->insertColLast( 'contributor_name', array( 'title' => 'Contributor Name', 'order_by' => 'amount', 'tpl' => DB_LIST_CELL_TEXT, 'params' => array('contributor_name') ) ); $list->insertColLast( 'contributor_email', array( 'title' => 'Contributor Email', 'attribs' => array('align' => 'center'), 'order_by' => 'amount', 'tpl' => DB_LIST_CELL_EMAIL, 'params' => array('contributor_email') ) ); $list->insertColLast( 'added', array( 'title' => 'Date/Time', 'attribs' => array('align' => 'center'), 'order_by' => 'added', 'date_format' => '%m/%d/%Y %l:%M %p', 'tpl' => DB_LIST_CELL_DATE, 'params' => array('added') ) ); $list->addOptionsColumn( 'options', array( 'actions' => 'view' ) ); } function addLink() { } function doView() { $this->DBObj->initFromDB(); $item = $this->DBObj->getData(); if (empty($item)) { $this->Doc->display404(); return false; } $item['tpl'] = 'BattleDonation/Admin/view.tpl'; $this->Doc->addItem($item); } }