Пример #1
0
 public function init()
 {
     Doo::loadClassAt('Category', 'default');
     Doo::loadClassAt('City', 'default');
     BookController::$dataTableUrl = adminAppUrl('operation/book/dataTable');
     BookController::$addUrl = adminAppUrl('operation/book/add');
     BookController::$modUrl = adminAppUrl('operation/book/mod?id=');
     BookController::$delUrl = adminAppUrl('operation/book/del?id=');
     BookController::$city = '<select class="m-wrap" name="city" id="city-element"><option value="0">' . L('全部城市') . '</option>' . City::cateToOption($this->getUrlVar('city'), 1) . '</select>';
 }