示例#1
0
 public static function applet_settings()
 {
     $settings = array(array('label' => __('Display tasks marked as'), 'name' => 'term', 'type' => 'select', 'values' => array('s' => __('Short-term'), 'l' => __('Long-term'), 'b' => __('Both')), 'default' => 's', 'rule' => array(array('message' => __('Field required'), 'type' => 'required'))));
     $statuses = Utils_CommonDataCommon::get_translated_array('CRM/Status');
     ksort($statuses);
     foreach ($statuses as $status_id => $status_label) {
         $name = "status_{$status_id}";
         $label = __('Display with status: %s', array($status_label));
         $default = $status_id < 3 ? true : false;
         // Open, In progress, On hold
         $settings[] = array('label' => $label, 'name' => $name, 'type' => 'checkbox', 'default' => $default);
     }
     $settings[] = array('label' => __('Related'), 'name' => 'related', 'type' => 'select', 'values' => array(__('Employee'), __('Customer'), __('Both')), 'default' => '0');
     return Utils_RecordBrowserCommon::applet_settings($settings);
 }
示例#2
0
 public static function applet_settings()
 {
     return array_merge(Utils_RecordBrowserCommon::applet_settings(), array());
     //                array('name'=>'conds','label'=>__('Display'),'type'=>'select','default'=>'fav','rule'=>array(array('message'=>__('Field required'), 'type'=>'required')),'values'=>array('fav'=>__('Favorites'),'rec'=>__('Recent')))));
 }
示例#3
0
 public static function applet_settings()
 {
     return Utils_RecordBrowserCommon::applet_settings(array(array('label' => __('Display closed meetings'), 'name' => 'closed', 'type' => 'checkbox', 'default' => false), array('label' => __('Related'), 'name' => 'related', 'type' => 'select', 'values' => array(__('Employee'), __('Customer'), __('Both')), 'default' => '0')));
 }
示例#4
0
 public static function applet_settings()
 {
     return Utils_RecordBrowserCommon::applet_settings(array(array('label' => __('Include missed (past) calls'), 'name' => 'past', 'type' => 'checkbox', 'default' => 1), array('label' => __('Include today calls'), 'name' => 'today', 'type' => 'checkbox', 'default' => 1), array('label' => __('Include future calls'), 'name' => 'future', 'type' => 'select', 'values' => array(0 => __('No'), 1 => __('Tomorrow'), 2 => __('2 days forward'), 7 => __('1 week forward'), -1 => __('All')), 'default' => 0)));
 }