Exemplo n.º 1
0
 public function __construct($userGroupInfo, $online, $template)
 {
     if ($userGroupInfo['id'] == 'JobSeeker' || $userGroupInfo['id'] == 'Employer') {
         $this->item = mb_strtolower($userGroupInfo['name'], 'utf8') . 's';
     } else {
         $this->item = '\'' . mb_strtolower($userGroupInfo['name'], 'utf8') . '\' users';
     }
     if ($online == 1) {
         $this->uniqueUrlParams['online'] = array('value' => '1');
     }
     if ($template == 'choose_user.tpl') {
         $this->actionsForSelect = false;
     } else {
         $this->countActionsButtons = 2;
         $this->popUp = true;
         $actionsForSelect = array('activate' => array('name' => 'Activate'), 'deactivate' => array('name' => 'Deactivate'), 'approve' => array('name' => 'Approve', 'isVisible' => $userGroupInfo['approve_user_by_admin']), 'reject' => array('name' => 'Reject', 'isVisible' => $userGroupInfo['approve_user_by_admin']), 'send_activation_letter' => array('name' => 'Send Activation Email'), 'delete' => array('name' => 'Delete'), 'change_product' => array('name' => 'Change Product'), 'ban_ip' => array('name' => 'Ban IP'), 'unban_ip' => array('name' => 'Unban IP'));
         $this->setActionsForSelect($actionsForSelect);
     }
     $fields = array('sid' => array('name' => 'ID'), 'username' => array('name' => 'Username'), 'CompanyName' => array('name' => 'Company Name', 'isVisible' => false), 'FirstName' => array('name' => 'First Name', 'isVisible' => false), 'LastName' => array('name' => 'Last Name', 'isVisible' => false), 'email' => array('name' => 'Email'), 'products' => array('name' => 'Products', 'isSort' => false), 'registration_date' => array('name' => 'Registration Date'), 'active' => array('name' => 'Status'), 'approval' => array('name' => 'Approval Status', 'isVisible' => $userGroupInfo['approve_user_by_admin']));
     if ($userGroupInfo['id'] == 'Employer') {
         $fields['CompanyName']['isVisible'] = true;
     } elseif ($userGroupInfo['id'] == 'JobSeeker') {
         $fields['FirstName']['isVisible'] = true;
         $fields['LastName']['isVisible'] = true;
     }
     $this->setSortingFieldsToPaginationInfo($fields);
     parent::__construct('sid', 'DESC', 10);
 }
Exemplo n.º 2
0
 public function __construct()
 {
     $this->item = 'countries';
     $this->fields = null;
     $actionsForSelect = array('activate' => array('name' => 'Activate'), 'deactivate' => array('name' => 'Deactivate'), 'delete' => array('name' => 'Delete'));
     $this->setActionsForSelect($actionsForSelect);
     parent::__construct(null, null, 20);
 }
 public function __construct()
 {
     $this->item = 'transactions';
     $this->actionsForSelect = array('delete' => 'Delete');
     $fields = array('date' => array('name' => 'Date'), 'transaction_id' => array('name' => 'Transaction Id'), 'username' => array('name' => 'Username'), 'invoice_sid' => array('name' => 'Description'), 'payment_method' => array('name' => 'Payment Method'), 'amount' => array('name' => 'Amount'));
     $this->setSortingFieldsToPaginationInfo($fields);
     parent::__construct('date', 'DESC', 100);
 }
Exemplo n.º 4
0
 public function __construct()
 {
     $this->item = 'payments';
     $this->actionsForSelect = false;
     $this->isCheckboxes = false;
     $fields = array('date' => array('name' => 'Date'), 'gateway' => array('name' => 'Gateway'), 'message' => array('name' => 'Gateway Response'), 'status' => array('name' => 'Status'));
     $this->setSortingFieldsToPaginationInfo($fields);
     parent::__construct('date', 'DESC', 50);
 }
Exemplo n.º 5
0
 public function __construct()
 {
     $this->item = 'ZipCodes';
     $this->countActionsButtons = 2;
     $this->actionsForSelect = array('delete' => 'Delete');
     $fields = array('name' => array('name' => 'Zip Code'), 'longitude' => array('name' => 'Longitude'), 'latitude' => array('name' => 'Latitude'), 'city' => array('name' => 'City'), 'state' => array('name' => 'State'), 'state_code' => array('name' => 'State Code'), 'country_name' => array('name' => 'Country'));
     $this->setSortingFieldsToPaginationInfo($fields);
     parent::__construct('name', 'ASC', 100);
 }
Exemplo n.º 6
0
 public function __construct()
 {
     $this->item = 'invoices';
     $this->countActionsButtons = 2;
     $actionsForSelect = array('paid' => array('name' => 'Mark Paid'), 'unpaid' => array('name' => 'Mark Unpaid'), 'delete' => array('name' => 'Delete'));
     $this->setActionsForSelect($actionsForSelect);
     $fields = array('sid' => array('name' => 'Invoice #'), 'username' => array('name' => 'Customer Name'), 'date' => array('name' => 'Date'), 'payment_method' => array('name' => 'Payment Method'), 'total' => array('name' => 'Total'), 'status' => array('name' => 'Status'));
     $this->setSortingFieldsToPaginationInfo($fields);
     parent::__construct('sid', 'DESC', 10);
 }
Exemplo n.º 7
0
 public function __construct()
 {
     $this->item = 'emails';
     $this->countActionsButtons = 1;
     $this->popUp = true;
     $this->actionsForSelect = array('resend' => 'Resend');
     $fields = array('date' => array('name' => 'Date'), 'subject' => array('name' => 'Subject'), 'email' => array('name' => 'Email'), 'username' => array('name' => 'Username'), 'status' => array('name' => 'Status'));
     $this->setSortingFieldsToPaginationInfo($fields);
     parent::__construct('date', 'DESC', 50);
 }
Exemplo n.º 8
0
 public function __construct()
 {
     $this->item = 'polls';
     $this->countActionsButtons = 2;
     $actionsForSelect = array('activate' => array('name' => 'Activate'), 'deactivate' => array('name' => 'Deactivate'), 'delete' => array('name' => 'Delete'));
     $this->setActionsForSelect($actionsForSelect);
     $fields = array('sid' => array('name' => 'ID'), 'question' => array('name' => 'Poll Question'), 'user_group' => array('name' => 'User Group'), 'start_date' => array('name' => 'Start Date'), 'end_date' => array('name' => 'Expiration Date'), 'status' => array('name' => 'Status'), 'language' => array('name' => 'Language'));
     $this->setSortingFieldsToPaginationInfo($fields);
     parent::__construct('sid', 'DESC', 10);
 }
 public function __construct()
 {
     $this->item = 'guest alerts';
     $this->countActionsButtons = 2;
     $actionsForSelect = array('activate' => array('name' => 'Activate'), 'deactivate' => array('name' => 'Deactivate'), 'confirm' => array('name' => 'Confirm'), 'delete' => array('name' => 'Delete'));
     $this->setActionsForSelect($actionsForSelect);
     $fields = array('sid' => array('name' => 'ID'), 'email' => array('name' => 'Email'), 'alert_type' => array('name' => 'Alert Type', 'isSort' => false), 'email_frequency' => array('name' => 'Email frequency'), 'subscription_date' => array('name' => 'Subscription date'), 'status' => array('name' => 'Status'));
     $this->setSortingFieldsToPaginationInfo($fields);
     parent::__construct('subscription_date', 'DESC', 50);
 }
Exemplo n.º 10
0
 public function __construct()
 {
     $this->item = 'flags';
     $this->popUp = true;
     $actionsForSelect = array('remove' => array('name' => 'Remove Flag'), 'deactivate' => array('name' => 'Deactivate Listing'), 'delete' => array('name' => 'Delete Listing'));
     $this->setActionsForSelect($actionsForSelect);
     $fields = array('sid' => array('name' => 'ID'), 'title' => array('name' => 'Title'), 'active' => array('name' => 'Status'), 'username' => array('name' => 'Listing Owner'), 'flag_user' => array('name' => 'Flagged By'), 'date' => array('name' => 'Flag Date'), 'flag_reason' => array('name' => 'Flag Reason'), 'comment' => array('name' => 'Comment'));
     $this->setSortingFieldsToPaginationInfo($fields);
     parent::__construct('date', 'DESC', 20);
 }
Exemplo n.º 11
0
 public function __construct($categoryId, $catagoryName)
 {
     $this->item = 'news';
     $this->countActionsButtons = 2;
     $this->uniqueUrlParams = array('action' => array('value' => 'edit'), 'category_sid' => array('value' => $categoryId));
     $actionsForSelect = array('activate' => array('name' => 'Activate'), 'deactivate' => array('name' => 'Deactivate'), 'archive' => array('name' => 'Archive'), 'delete' => array('name' => 'Delete'));
     $this->setActionsForSelect($actionsForSelect);
     $fields = array('id' => array('name' => 'ID'), 'title' => array('name' => 'Title'), 'date' => array('name' => 'Publication Date'), 'expiration_date' => array('name' => 'Expiration Date'), 'active' => array('name' => 'Status', 'isVisible' => $this->isVisibleStatusField($catagoryName)), 'link' => array('name' => 'URL'), 'language' => array('name' => 'Language'));
     $this->setSortingFieldsToPaginationInfo($fields);
     parent::__construct('date', 'DESC', 10);
 }
Exemplo n.º 12
0
 public function __construct($listingTypeInfo)
 {
     if ($listingTypeInfo['id'] == 'Job') {
         $fieldUserName = '******';
     } elseif ($listingTypeInfo['id'] == 'Resume') {
         $fieldUserName = '******';
     } else {
         $fieldUserName = '******';
     }
     $this->item = mb_strtolower($listingTypeInfo['name'] . 's', 'utf8');
     $this->countActionsButtons = 3;
     $this->popUp = true;
     $actionsForSelect = array('activate' => array('name' => 'Activate'), 'deactivate' => array('name' => 'Deactivate'), 'delete' => array('name' => 'Delete'), 'approve' => array('name' => 'Approve', 'isVisible' => $listingTypeInfo['waitApprove']), 'reject' => array('name' => 'Reject', 'isVisible' => $listingTypeInfo['waitApprove']), 'modify_date_button' => array('name' => 'Modify Expiration Date'));
     $this->setActionsForSelect($actionsForSelect);
     $fields = array('id' => array('name' => 'ID'), 'Title' => array('name' => 'Title'), 'product' => array('name' => 'Product', 'isSort' => false), 'activation_date' => array('name' => 'Activation Date'), 'expiration_date' => array('name' => 'Expiration Date'), 'username' => array('name' => $fieldUserName), 'views' => array('name' => 'Views'), 'active' => array('name' => 'Status'), 'status' => array('name' => 'Approval Status', 'isVisible' => $listingTypeInfo['waitApprove']));
     $this->setSortingFieldsToPaginationInfo($fields);
     parent::__construct('activation_date', 'DESC', 10);
 }
Exemplo n.º 13
0
 public function __construct()
 {
     $this->item = 'phrases';
     $this->numberOfElementsPageSelect = array(1 => 50, 2 => 100, 3 => 200, 4 => 'all');
     parent::__construct(null, null, 50);
 }