コード例 #1
0
ファイル: PlacesView.php プロジェクト: amanai/next24
 public function __construct()
 {
     $this->depends = array('geo_type' => array(), 'country' => array('geo_type'), 'city' => array('country'), 'geo_subtype' => array('city'), 'geo_place' => array('geo_subtype'));
     parent::__construct();
     $this->_js_files[] = 'blockUI.js';
     $this->_js_files[] = 'ajax.js';
     $this->_js_files[] = 'places.js';
     $this->_css_files[] = 'gobjects.css';
 }
コード例 #2
0
ファイル: BookmarksController.php プロジェクト: amanai/next24
 public function AllowDenyCategoryAction()
 {
     $request = Project::getRequest();
     $category = new BookmarksCategoryModel();
     $category->load($request->id);
     $category->active = $request->type;
     if ($request->rename) {
         $category->name = $request->name;
     }
     if ($category->save()) {
         // -- Отправка сообщения
         $admin = new UserModel();
         $admin->loadAdmin();
         $view = new BaseSiteView();
         $view->setTemplate('mail', 'bookmarks_category_allowdeny.tpl.php');
         $view->assign('category', $category);
         $view->assign('type', $request->type);
         $view->assign('comment', $request->comment);
         $body = $view->parse();
         $message = new MessagesModel();
         $message->sendMessage($admin->id, $category->user_id, 'Ответ на запрос на создание категории в закладках', $body);
         // ---------------------
     }
     $this->_view->CloseCategoryForm();
     $this->_view->parse();
 }
コード例 #3
0
ファイル: GroupsView.php プロジェクト: amanai/next24
 public function __construct()
 {
     parent::__construct();
 }