コード例 #1
0
ファイル: FieldsMetaData.php プロジェクト: omusico/windcrm
 function get_list_view_data()
 {
     $data = parent::get_list_view_data();
     $data['VNAME'] = translate($this->vname, $this->custom_module);
     $data['NAMELINK'] = '<input class="checkbox" type="checkbox" name="remove[]" value="' . $this->id . '">&nbsp;&nbsp;<a href="index.php?module=Studio&action=wizard&wizard=EditCustomFieldsWizard&option=EditCustomField&record=' . $this->id . '" >';
     return $data;
 }
コード例 #2
0
 function get_list_view_data()
 {
     $data = parent::get_list_view_data();
     $data['LABEL'] = translate($this->label, $this->custom_module);
     $data['NAMELINK'] = '<a href="index.php?module=Studio&action=wizard&wizard=EditCustomFieldsWizard&option=EditCustomField&record=' . $this->id . '" class="listViewTdLinkS1">';
     return $data;
 }
コード例 #3
0
ファイル: Basic.php プロジェクト: klr2003/sourceread
 function get_list_view_data()
 {
     global $action;
     if (isset($this->currency_id) && ($action == 'DetailView' || $action == "SubPanelViewer")) {
         global $locale, $current_language, $current_user, $mod_strings, $app_list_strings, $sugar_config;
         $app_strings = return_application_language($current_language);
         $params = array();
         $temp_array = $this->get_list_view_array();
         $params = array('currency_id' => $this->currency_id, 'convert' => true);
         foreach ($temp_array as $field => $value) {
             $fieldLow = strToLower($field);
             if (!empty($this->field_defs[$fieldLow]) && $this->field_defs[$fieldLow]['type'] == 'currency') {
                 $temp_array[$field] = currency_format_number($this->{$fieldLow}, $params);
             }
         }
         return $temp_array;
     } else {
         return parent::get_list_view_data();
     }
 }
コード例 #4
0
 function get_list_view_data()
 {
     global $current_language;
     $the_array = parent::get_list_view_data();
     $app_list_strings = return_app_list_strings_language($current_language);
     $mod_strings = return_module_language($current_language, 'Bugs');
     $this->set_release();
     // The new listview code only fetches columns that we're displaying and not all
     // the columns so we need these checks.
     $the_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
     if (!empty($this->priority)) {
         $the_array['PRIORITY'] = $app_list_strings['bug_priority_dom'][$this->priority];
     }
     if (!empty($this->status)) {
         $the_array['STATUS'] = $app_list_strings['bug_status_dom'][$this->status];
     }
     $the_array['RELEASE'] = $this->release_name;
     if (!empty($this->type)) {
         $the_array['TYPE'] = $app_list_strings['bug_type_dom'][$this->type];
     }
     $the_array['BUG_NUMBER'] = $this->bug_number;
     $the_array['ENCODED_NAME'] = $this->name;
     return $the_array;
 }
コード例 #5
0
ファイル: Bug.php プロジェクト: omusico/sugar_work
 function get_list_view_data()
 {
     global $current_language;
     $the_array = parent::get_list_view_data();
     $app_list_strings = return_app_list_strings_language($current_language);
     $mod_strings = return_module_language($current_language, 'Bugs');
     $this->set_release();
     // The new listview code only fetches columns that we're displaying and not all
     // the columns so we need these checks.
     $the_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
     $the_array['PRIORITY'] = empty($this->priority) ? "" : (!isset($app_list_strings[$this->field_name_map['priority']['options']][$this->priority]) ? $this->priority : $app_list_strings[$this->field_name_map['priority']['options']][$this->priority]);
     $the_array['STATUS'] = empty($this->status) ? "" : (!isset($app_list_strings[$this->field_name_map['status']['options']][$this->status]) ? $this->status : $app_list_strings[$this->field_name_map['status']['options']][$this->status]);
     $the_array['TYPE'] = empty($this->type) ? "" : (!isset($app_list_strings[$this->field_name_map['type']['options']][$this->type]) ? $this->type : $app_list_strings[$this->field_name_map['type']['options']][$this->type]);
     $the_array['RELEASE'] = $this->release_name;
     $the_array['BUG_NUMBER'] = $this->bug_number;
     $the_array['ENCODED_NAME'] = $this->name;
     return $the_array;
 }
コード例 #6
0
ファイル: Currency.php プロジェクト: sacredwebsite/SuiteCRM
 function get_list_view_data()
 {
     $this->conversion_rate = format_number($this->conversion_rate, 10, 10);
     $data = parent::get_list_view_data();
     return $data;
 }
コード例 #7
0
ファイル: WorkFlow.php プロジェクト: jglaine/sugar761-ent
 function get_list_view_data()
 {
     global $app_strings, $mod_strings;
     global $app_list_strings;
     global $current_user;
     $temp_array = parent::get_list_view_data();
     $temp_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
     $temp_array['TYPE'] = $app_list_strings['wflow_type_dom'][$this->type];
     $temp_array['BASE_MODULE'] = $app_list_strings['moduleList'][$this->base_module];
     $temp_array['LIST_ORDER'] = $this->list_order_y;
     $temp_array['HREF_DELETE'] = "index.php?action=Delete&module=WorkFlow&record=" . $this->id . "";
     if (empty($this->status)) {
         $this->status = "Inactive";
     }
     if ($this->status == 1 || $this->status == "checked") {
         $this->status = "Active";
     }
     $temp_array['STATUS'] = $app_list_strings['oc_status_dom'][$this->status];
     return $temp_array;
 }
コード例 #8
0
 function get_list_view_data()
 {
     global $app_strings, $mod_strings;
     global $app_list_strings;
     global $current_user;
     if (empty($this->exportable)) {
         $this->exportable = "0";
     }
     $temp_array = parent::get_list_view_data();
     $temp_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
     $temp_array['OUTPUT_DEFAULT'] = $app_list_strings['dataset_output_default_dom'][$this->output_default];
     $temp_array['LIST_ORDER_Y'] = $this->list_order_y;
     $temp_array['EXPORTABLE'] = $this->exportable;
     $temp_array['HEADER'] = $this->header;
     $temp_array['QUERY_NAME'] = $this->query_name;
     $temp_array['REPORT_NAME'] = $this->report_name;
     return $temp_array;
 }
コード例 #9
0
ファイル: ReportMaker.php プロジェクト: jglaine/sugar761-ent
 function get_list_view_data()
 {
     global $timedate;
     global $app_strings, $mod_strings;
     global $app_list_strings;
     global $current_user;
     if (empty($this->published)) {
         $this->published = "0";
     }
     $temp_array = parent::get_list_view_data();
     $temp_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
     $temp_array['ID'] = $this->id;
     //report scheduling
     if (isset($this->schedule_id) && $this->active == 1) {
         $is_scheduled_img = SugarThemeRegistry::current()->getImage('scheduled_inline.png', 'border="0" align="absmiddle"', null, null, '.gif', $mod_strings['LBL_SCHEDULE_EMAIL']);
         $is_scheduled = $timedate->to_display_date_time($this->next_run);
     } else {
         $is_scheduled_img = SugarThemeRegistry::current()->getImage('unscheduled_inline.png', 'border="0" align="absmiddle"', null, null, '.gif', $mod_strings['LBL_SCHEDULE_EMAIL']);
         $is_scheduled = $mod_strings['LBL_NONE'];
     }
     $temp_array['IS_SCHEDULED'] = $is_scheduled;
     $temp_array['IS_SCHEDULED_IMG'] = $is_scheduled_img;
     return $temp_array;
 }
コード例 #10
0
ファイル: DataSet.php プロジェクト: jglaine/sugar761-ent
 function get_list_view_data()
 {
     global $app_strings, $mod_strings;
     global $app_list_strings;
     global $current_user;
     global $focus;
     if (empty($this->exportable)) {
         $this->exportable = "0";
     }
     $temp_array = parent::get_list_view_data();
     $temp_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
     $temp_array['OUTPUT_DEFAULT'] = $app_list_strings['dataset_output_default_dom'][isset($this->output_default) && !empty($this->output_default) ? $this->output_default : 'table'];
     $temp_array['LIST_ORDER_Y'] = $this->list_order_y;
     $temp_array['EXPORTABLE'] = $this->exportable;
     $temp_array['HEADER'] = $this->header;
     $temp_array['QUERY_NAME'] = $this->query_name;
     $temp_array['REPORT_NAME'] = $this->report_name;
     if (SugarACL::checkAccess('DataSets', 'edit')) {
         $temp_array['UP_BUTTON'] = $this->getButton('uparrow_inline', 'LNK_UP', array('module' => 'DataSets', 'action' => 'Save', 'data_set_id' => $this->id, 'direction' => 'Up'), $focus);
         $temp_array['DOWN_BUTTON'] = $this->getButton('downarrow_inline', 'LNK_DOWN', array('module' => 'DataSets', 'action' => 'Save', 'data_set_id' => $this->id, 'direction' => 'Up'), $focus);
         $temp_array['EDIT_BUTTON'] = $this->getButton('edit_inline', 'LNK_EDIT', array('module' => 'DataSets', 'action' => 'EditView', 'record' => $this->id), $focus);
     }
     return $temp_array;
 }
コード例 #11
0
 function get_list_view_data()
 {
     global $app_list_strings;
     $temp_array = parent::get_list_view_data();
     $temp_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
     $temp_array['STATUS'] = !empty($this->status) ? $app_list_strings['product_template_status_dom'][$this->status] : "";
     $temp_array['TAX_CLASS_NAME'] = !empty($this->tax_class) ? $app_list_strings['tax_class_dom'][$this->tax_class] : "";
     $temp_array['PRICING_FORMULA_NAME'] = !empty($this->pricing_formula) ? $app_list_strings['pricing_formula_dom'][$this->pricing_formula] : "";
     $temp_array['ENCODED_NAME'] = $this->name;
     $temp_array['URL'] = $this->website;
     $temp_array['CATEGORY'] = $this->category_id;
     $temp_array['CATEGORY_NAME'] = $this->category_name;
     $temp_array['TYPE_NAME'] = $this->type_name;
     $temp_array['QTY_IN_STOCK'] = $this->qty_in_stock;
     return $temp_array;
 }
コード例 #12
0
 function get_list_view_data()
 {
     global $app_strings, $mod_strings;
     global $app_list_strings;
     global $current_module_strings;
     global $current_user;
     include 'modules/WorkFlowAlerts/MetaArray.php';
     $temp_array = parent::get_list_view_data();
     //Grab event
     include_once 'include/ListView/ProcessView.php';
     $workflow_object = $this->get_workflow_object();
     $workflow_object = $workflow_object->get_parent_object();
     $ProcessView = new ProcessView($workflow_object, $this);
     $ProcessView->local_strings = $current_module_strings;
     $prev_display_text = $ProcessView->get_prev_text("AlertsCreateStep1", $this->user_type);
     if ($prev_display_text === false) {
         if (empty($this->hasError)) {
             $this->hasError = true;
             echo '<p class="error"><b>' . translate('LBL_ALERT_ERRORS') . '</b></p>';
         }
         $prev_display_text = '<span class="error">' . translate('LBL_RECIPIENT_ERROR') . '</span>';
     }
     unset($ProcessView);
     $temp_array['STATEMENT'] = "<i>" . $current_module_strings['LBL_LIST_STATEMENT_CONTENT'] . "</i>";
     $temp_array['STATEMENT2'] = "<b>" . $prev_display_text . "</b>";
     if ($this->user_type == "specific_user" || $this->user_type == "specific_team" || $this->user_type == "specific_role" || $this->user_type == "login_user") {
         $temp_array['ACTION'] = 'CreateStep1';
     } else {
         $temp_array['ACTION'] = 'CreateStep2';
     }
     $temp_array['FIELD_VALUE'] = $this->field_value;
     return $temp_array;
 }