Beispiel #1
0
 /**
  *
  * Contruct that checks you are loged in before nothing else happens!
  */
 function __construct(Request $request, Response $response)
 {
     if (Theme::get('premium') != 1) {
         Alert::set(Alert::INFO, __('Upgrade your Open Classifieds site to activate this feature.'));
     }
     parent::__construct($request, $response);
 }
 function __construct(Request $request, Response $response)
 {
     parent::__construct($request, $response);
     //forcing a filter
     if (Core::request('filter__id_forum') === NULL) {
         $this->_filter_post['id_forum'] = 'NOT NULL';
     }
 }
 function __construct(Request $request, Response $response)
 {
     if (Theme::get('premium') != 1) {
         Alert::set(Alert::INFO, __('Upgrade your Yclas site to activate this feature.'));
     }
     $this->_filter_fields = array('id_user' => 'INPUT', 'expire_date' => 'DATE', 'created' => 'DATE', 'id_plan' => array('type' => 'SELECT', 'table' => 'plans', 'key' => 'id_plan', 'value' => 'seoname'), 'status' => array(0 => 'Inactive', 1 => 'Active'));
     parent::__construct($request, $response);
 }
Beispiel #4
0
 function __construct(Request $request, Response $response)
 {
     parent::__construct($request, $response);
     $this->_buttons_actions = array(array('url' => Route::url('oc-panel', array('controller' => 'order')) . '?filter__id_user='******'title' => 'orders', 'class' => 'btn btn-xs btn-default', 'icon' => 'fa fa-credit-card'), array('url' => Route::url('oc-panel', array('controller' => 'user', 'action' => 'spam')) . '/', 'title' => 'spam', 'class' => 'btn btn-xs btn-warning', 'icon' => 'glyphicon glyphicon-fire'));
     //for OC display ads
     if (class_exists('Model_Ad')) {
         array_unshift($this->_buttons_actions, array('url' => Route::url('oc-panel', array('controller' => 'ad')) . '?filter__id_user='******'title' => 'ads', 'class' => 'btn btn-xs btn-success', 'icon' => 'fa fa-th'));
     }
     //for OE display tickets
     if (class_exists('Model_Ticket')) {
         array_unshift($this->_buttons_actions, array('url' => Route::url('oc-panel', array('controller' => 'support', 'action' => 'index')) . '?filter__id_user='******'title' => 'support', 'class' => 'btn btn-xs btn-info', 'icon' => 'fa fa-comment'));
     }
 }
Beispiel #5
0
 function __construct(Request $request, Response $response)
 {
     $this->_filter_fields = array('id_user' => 'INPUT', 'pay_date' => 'DATE', 'created' => 'DATE', 'paymethod' => array('type' => 'DISTINCT', 'table' => 'orders', 'field' => 'paymethod'), 'id_product' => Model_Order::products(), 'status' => Model_Order::$statuses);
     parent::__construct($request, $response);
     $this->_buttons_actions = array(array('url' => Route::url('oc-panel', array('controller' => 'order', 'action' => 'pay')) . '/', 'title' => __('Mark as paid'), 'class' => '', 'icon' => 'fa fa-fw fa-usd'), array('url' => Route::url('oc-panel', array('controller' => 'profile', 'action' => 'order')) . '/', 'title' => __('See order'), 'class' => '', 'icon' => 'fa fa-fw fa-search'));
 }
Beispiel #6
0
 function __construct(Request $request, Response $response)
 {
     parent::__construct($request, $response);
     $this->_buttons_actions = array(array('url' => Route::url('oc-panel', array('controller' => 'user')) . '?filter__id_role=', 'title' => 'users', 'class' => 'btn btn-xs btn-default', 'icon' => 'fa fa-users'));
 }
Beispiel #7
0
 function __construct(Request $request, Response $response)
 {
     parent::__construct($request, $response);
     $this->_buttons_actions = array(array('url' => Route::url('oc-panel', array('controller' => 'profile', 'action' => 'order')) . '/', 'title' => 'see order', 'class' => 'btn btn-xs btn-success', 'icon' => 'glyphicon glyphicon-search'));
 }