• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_select_options_with_id函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_select_options_with_id函数的典型用法代码示例。如果您正苦于以下问题:PHP get_select_options_with_id函数的具体用法?PHP get_select_options_with_id怎么用?PHP get_select_options_with_id使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_select_options_with_id函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getReminderTime

function getReminderTime($focus, $field, $value, $view)
{
    global $current_user, $app_list_strings;
    $reminder_t = -1;
    if (!empty($_REQUEST['full_form']) && !empty($_REQUEST['reminder_time'])) {
        $reminder_t = $_REQUEST['reminder_time'];
    } else {
        if (isset($focus->reminder_time)) {
            $reminder_t = $focus->reminder_time;
        } else {
            if (isset($value)) {
                $reminder_t = $value;
            }
        }
    }
    if ($view == 'EditView' || $view == 'MassUpdate' || $view == "SubpanelCreates" || $view == "QuickCreate") {
        global $app_list_strings;
        $html = '<select id="reminder_time" name="reminder_time">';
        $html .= get_select_options_with_id($app_list_strings['reminder_time_options'], $reminder_t);
        $html .= '</select>';
        return $html;
    }
    if ($reminder_t == -1) {
        return "";
    }
    return translate('reminder_time_options', '', $reminder_t);
}
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:27,代码来源:CallHelper.php


示例2: get_select_options

/**
 * THIS FUNCTION IS DEPRECATED AND SHOULD NOT BE USED; USE get_select_options_with_id()
 * Create HTML to display select options in a dropdown list.  To be used inside
 * of a select statement in a form.
 * param $option_list - the array of strings to that contains the option list
 * param $selected - the string which contains the default value
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 */
function get_select_options(&$option_list, $selected, $advsearch = 'false')
{
    global $log;
    $log->debug("Entering get_select_options (" . $option_list . "," . $selected . "," . $advsearch . ") method ...");
    $log->debug("Exiting get_select_options  method ...");
    return get_select_options_with_id($option_list, $selected, $advsearch);
}
开发者ID:hbsman,项目名称:vtigercrm-5.3.0-ja,代码行数:17,代码来源:CommonUtils.php


示例3: process

 function process()
 {
     global $current_user, $timedate, $app_list_strings, $current_language, $mod_strings;
     $mod_strings = return_module_language($current_language, 'ProjectTask');
     parent::process();
     if ($this->viaAJAX) {
         // override for ajax call
         $this->ss->assign('saveOnclick', "onclick='if(check_form(\"projectTaskQuickCreate\")) return SUGAR.subpanelUtils.inlineSave(this.form.id, \"projecttask\"); else return false;'");
         $this->ss->assign('cancelOnclick', "onclick='return SUGAR.subpanelUtils.cancelCreate(\"subpanel_projecttask\")';");
     }
     $this->ss->assign('viaAJAX', $this->viaAJAX);
     $this->javascript = new javascript();
     $this->javascript->setFormName('projectTaskQuickCreate');
     $focus = new ProjectTask();
     $this->javascript->setSugarBean($focus);
     $this->javascript->addAllFields('');
     $this->ss->assign('additionalScripts', $this->javascript->getScript(false));
     $this->ss->assign("STATUS_OPTIONS", get_select_options_with_id($app_list_strings['project_task_status_options'], $focus->status));
     $json = getJSONobj();
     ///////////////////////////////////////
     ///
     /// SETUP PARENT POPUP
     $popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'projectTypeQuickCreate', 'field_to_name_array' => array('id' => 'parent_id', 'name' => 'parent_name'));
     $encoded_parent_popup_request_data = $json->encode($popup_request_data);
     $this->ss->assign('encoded_parent_popup_request_data', $encoded_parent_popup_request_data);
     $popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'projectTaskQuickCreate', 'field_to_name_array' => array('id' => 'account_id', 'name' => 'account_name'));
     $encoded_popup_request_data = $json->encode($popup_request_data);
     $this->ss->assign('encoded_popup_request_data', $encoded_popup_request_data);
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:29,代码来源:ProjectTaskQuickCreate.php


示例4: get_new_record_form

/**
 * Create HTML form to enter a new record with the minimum necessary fields.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 */
function get_new_record_form()
{
    global $app_strings;
    global $app_list_strings;
    global $mod_strings;
    global $currentModule;
    global $current_user;
    global $timedate;
    $the_form = get_left_form_header($mod_strings['LBL_NEW_FORM_TITLE']);
    $form = new XTemplate('modules/Campaigns/Forms.html');
    $module_select = empty($_REQUEST['module_select']) ? '' : $_REQUEST['module_select'];
    $form->assign('MOD', $mod_strings);
    $form->assign('APP', $app_strings);
    $form->assign('THEME', SugarThemeRegistry::current()->__toString());
    $form->assign("JAVASCRIPT", get_set_focus_js() . get_validate_record_js());
    $form->assign("STATUS_OPTIONS", get_select_options_with_id($app_list_strings['campaign_status_dom'], "Planning"));
    $form->assign("TYPE_OPTIONS", get_select_options_with_id($app_list_strings['campaign_type_dom'], ""));
    $form->assign("USER_ID", $current_user->id);
    $form->assign("TEAM_ID", sprintf('<input type="hidden" name="team_id" value="%s">', $current_user->default_team));
    $form->assign("CALENDAR_LANG", "en");
    $form->assign("USER_DATEFORMAT", '(' . $timedate->get_user_date_format() . ')');
    $form->assign("CALENDAR_DATEFORMAT", $timedate->get_cal_date_format());
    $form->parse('main');
    $the_form .= $form->text('main');
    $focus = BeanFactory::getBean('Campaigns');
    $javascript = new javascript();
    $javascript->setFormName('quick_save');
    $javascript->setSugarBean($focus);
    $javascript->addRequiredFields('');
    $jscript = $javascript->getScript();
    $the_form .= $jscript . get_left_form_footer();
    return $the_form;
}
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:39,代码来源:Forms.php


示例5: getReminderTime

function getReminderTime($focus, $field, $value, $view)
{
    global $current_user, $app_list_strings;
    $reminder_t = -1;
    if (!empty($_REQUEST['reminder_interval'])) {
        $reminder_t = $_REQUEST['reminder_interval'];
    } else {
        if (isset($focus->reminder_interval)) {
            $reminder_t = $focus->reminder_interval;
        } else {
            if (isset($value)) {
                $reminder_t = $value;
            }
        }
    }
    if ($view == 'EditView' || $view == 'MassUpdate') {
        global $app_list_strings;
        $html = '<select id="reminder_interval" name="reminder_interval">';
        $html .= get_select_options_with_id($app_list_strings['oqc_reminder_interval_options'], $reminder_t);
        $html .= '</select>';
        return $html;
    }
    if ($reminder_t == -1) {
        return "";
    }
    //  $GLOBALS['log']->error("Reminder value is ". var_export($reminder_t,true));
    return translate('oqc_reminder_interval_options', '', $reminder_t);
}
开发者ID:santara12,项目名称:OpenQuotesAndContracts,代码行数:28,代码来源:Reminder.php


示例6: process

 function process()
 {
     global $current_user, $timedate, $app_list_strings, $current_language, $mod_strings;
     $mod_strings = return_module_language($current_language, 'Contracts');
     parent::process();
     if ($this->viaAJAX) {
         // override for ajax call
         $this->ss->assign('saveOnclick', "onclick='if(check_form(\"contractsQuickCreate\")) return SUGAR.subpanelUtils.inlineSave(this.form.id, \"contracts\"); else return false;'");
         $this->ss->assign('cancelOnclick', "onclick='return SUGAR.subpanelUtils.cancelCreate(\"subpanel_contracts\")';");
     }
     $this->ss->assign('viaAJAX', $this->viaAJAX);
     $this->javascript = new javascript();
     $this->javascript->setFormName('contractsQuickCreate');
     $focus = BeanFactory::getBean('Contracts');
     $this->javascript->setSugarBean($focus);
     $this->javascript->addAllFields('');
     $status_options = isset($focus->status) ? get_select_options_with_id($app_list_strings['contract_status_dom'], $focus->status) : get_select_options_with_id($app_list_strings['contract_status_dom'], '');
     $this->ss->assign('STATUS_OPTIONS', $status_options);
     $json = getJSONobj();
     $popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'contractsQuickCreate', 'field_to_name_array' => array('id' => 'account_id', 'name' => 'account_name'));
     $encoded_popup_request_data = $json->encode($popup_request_data);
     $this->ss->assign('encoded_popup_request_data', $encoded_popup_request_data);
     $popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'contractsQuickCreate', 'field_to_name_array' => array('id' => 'team_id', 'name' => 'team_name'));
     $this->ss->assign('encoded_team_popup_request_data', $json->encode($popup_request_data));
     $this->ss->assign('additionalScripts', $this->javascript->getScript(false));
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:26,代码来源:ContractsQuickCreate.php


示例7: get_xtemplate_data

 function get_xtemplate_data()
 {
     $return_array = array();
     global $current_user;
     foreach ($this->column_fields as $field) {
         $return_array[strtoupper($field)] = $this->{$field};
     }
     if (is_admin($current_user)) {
         $select = translate('DROPDOWN_PLACEMENT', 'iFrames');
         $return_array['PLACEMENT_SELECT'] = get_select_options_with_id($select, $return_array['PLACEMENT']);
     } else {
         $select = translate('DROPDOWN_PLACEMENT', 'iFrames');
         $shortcut = array('shortcut' => $select['shortcut']);
         $return_array['PLACEMENT_SELECT'] = get_select_options_with_id($shortcut, '');
     }
     if (is_admin($current_user)) {
         $select = translate('DROPDOWN_TYPE', 'iFrames');
         $return_array['TYPE_SELECT'] = get_select_options_with_id($select, $return_array['TYPE']);
     } else {
         $select = translate('DROPDOWN_TYPE', 'iFrames');
         $personal = array('personal' => $select['personal']);
         $return_array['TYPE_SELECT'] = get_select_options_with_id($personal, '');
     }
     if (!empty($select[$return_array['PLACEMENT']])) {
         $return_array['PLACEMENT'] = $select[$return_array['PLACEMENT']];
     }
     return $return_array;
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:28,代码来源:iFrame.php


示例8: get_bookingroom_editview

 function get_bookingroom_editview()
 {
     global $app_list_strings;
     $sql = "select * from roombookingsline where roombooking_id ='" . $this->id . "' AND deleted =0";
     $result = $this->db->query($sql);
     $html = '';
     while ($row = $this->db->fetchByAssoc($result)) {
         if (!empty($row['currency'])) {
             $currency = get_select_options_with_id($app_list_strings['currency_dom'], $row['currency']);
         } else {
             $currency = get_select_options_with_id($app_list_strings['currency_dom'], '');
         }
         $html .= '<tr>';
         $html .= '<td class="dataField" align="center"><input type="text" name="type[]" id="type" value="' . $row['type'] . '"/></td>';
         $html .= '<td class="dataField" align="center"><input type="text" name="quantity[]" id="quantity" value="' . $row['quantity'] . '"/>
                     <input type="hidden" name="deleted[]" id="deleted" class="deleted" value="0"><input type="hidden" name="roombooking_line_id[]" id="roombooking_line_id" value="' . $row['id'] . '"></td>';
         $html .= '<td class="dataField" align="center"><input type="text" name="price[]" id="price" value="' . $row['price'] . '"/>
                     <select id="currency" name="currency[]">' . $currency . '</select></td>';
         $html .= '<td class="dataField" align="center"><input type="text" id=\'check_in\' name=\'check_in[]\' class="datePicker" value="' . date('d/m/Y', strtotime($row['check_in'])) . '"/></td>';
         $html .= '<td class="dataField" align="center"><input type="text" id=\'check_out\' name=\'check_out[]\' class="datePicker" value="' . date('d/m/Y', strtotime($row['check_out'])) . '"/></td>';
         $html .= '<td class="dataField" align="center">';
         $html .= '<input type="button" class="btnAddRow"  value="Add Row"/>';
         $html .= '<input type="button" class="btnDelRow" value="Delete Row"/>';
         $html .= '</td>';
         $html .= '</tr>';
     }
     return $html;
 }
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:28,代码来源:RoomBookings.php


示例9: display

 public function display()
 {
     global $app_list_strings;
     $modules = Reports_Utils::available_modules();
     foreach ($modules as $key => &$val) {
         if (isset($app_list_strings['moduleList'][$key])) {
             $val = $app_list_strings['moduleList'][$key];
         }
     }
     asort($modules);
     if (isset($_REQUEST['report_module']) and !empty($_REQUEST['report_module'])) {
         $cur_module = $_REQUEST['report_module'];
     } else {
         $ind = array_keys($modules);
         $cur_module = $ind[0];
     }
     $this->ss->assign('AVAILABLE_MODULES', get_select_options_with_id($modules, $cur_module));
     $related_modules = Reports_Utils::getRelatedModules($cur_module);
     $related_modules[''] = '';
     asort($related_modules);
     $this->ss->assign('RELATED_MODULES', get_select_options_with_id($related_modules, ''));
     $module_fields = Reports_Utils::getModuleFields($cur_module);
     asort($module_fields);
     $this->ss->assign('MODULE_FIELDS', get_select_options_with_id($module_fields, ''));
     $module_fields = Reports_Utils::getModuleFields($cur_module);
     asort($module_fields);
     $this->ss->assign('MODULE_FIELDS', get_select_options_with_id($module_fields, ''));
     $custom_fields = Reports_Utils::getReportCustomFields($cur_module);
     $this->ss->assign('CUSTOM_FIELDS', get_select_options_with_id($custom_fields, ''));
     $this->ev->process();
     echo $this->ev->display($this->showTitle);
 }
开发者ID:omusico,项目名称:sugar_work,代码行数:32,代码来源:view.showcode.php


示例10: displayOptions

 public function displayOptions()
 {
     ob_start();
     global $current_language, $app_list_strings;
     $mod_strings = return_module_language($current_language, 'AOR_Reports');
     $optionsSmarty = new Sugar_Smarty();
     $optionsSmarty->assign('MOD', $mod_strings);
     $optionsSmarty->assign('id', $this->id);
     $optionsSmarty->assign('dashletTitle', $this->title);
     $optionsSmarty->assign('aor_report_id', $this->report->id);
     $optionsSmarty->assign('aor_report_name', $this->report->name);
     $optionsSmarty->assign('onlyCharts', $this->onlyCharts);
     $charts = array();
     if (!empty($this->report->id)) {
         foreach ($this->report->get_linked_beans('aor_charts', 'AOR_Charts') as $chart) {
             $charts[$chart->id] = $chart->name;
         }
     }
     $conditions = getConditionsAsParameters($this->report, $this->params);
     $optionsSmarty->assign('parameters', $conditions);
     $chartOptions = get_select_options_with_id($charts, $this->charts);
     $optionsSmarty->assign('chartOptions', $chartOptions);
     $optionsTemplate = get_custom_file_if_exists('modules/AOR_Reports/Dashlets/AORReportsDashlet/dashletConfigure.tpl');
     ob_clean();
     return $optionsSmarty->fetch($optionsTemplate);
 }
开发者ID:omusico,项目名称:suitecrm-docker,代码行数:26,代码来源:AORReportsDashlet.php


示例11: preDisplay

 public function preDisplay()
 {
     global $app_list_strings;
     echo "<style type='text/css'>";
     //readfile('modules/AOR_Reports/css/edit.css');
     readfile('modules/AOR_Reports/js/jqtree/jqtree.css');
     echo "</style>";
     if (!is_file('cache/jsLanguage/AOR_Fields/' . $GLOBALS['current_language'] . '.js')) {
         require_once 'include/language/jsLanguage.php';
         jsLanguage::createModuleStringsCache('AOR_Fields', $GLOBALS['current_language']);
     }
     echo '<script src="cache/jsLanguage/AOR_Fields/' . $GLOBALS['current_language'] . '.js"></script>';
     if (!is_file('cache/jsLanguage/AOR_Conditions/' . $GLOBALS['current_language'] . '.js')) {
         require_once 'include/language/jsLanguage.php';
         jsLanguage::createModuleStringsCache('AOR_Conditions', $GLOBALS['current_language']);
     }
     echo '<script src="cache/jsLanguage/AOR_Conditions/' . $GLOBALS['current_language'] . '.js"></script>';
     echo '<script src="include/javascript/yui3/build/yui/yui-min.js"></script>';
     echo "<script>";
     echo "sort_by_values = \"" . trim(preg_replace('/\\s+/', ' ', get_select_options_with_id($app_list_strings['aor_sort_operator'], ''))) . "\";";
     echo "total_values = \"" . trim(preg_replace('/\\s+/', ' ', get_select_options_with_id($app_list_strings['aor_total_options'], ''))) . "\";";
     echo "format_values = \"" . trim(preg_replace('/\\s+/', ' ', get_select_options_with_id($app_list_strings['aor_format_options'], ''))) . "\";";
     echo "</script>";
     $fields = $this->getFieldLines();
     echo "<script>var fieldLines = " . json_encode($fields) . "</script>";
     $conditions = $this->getConditionLines();
     echo "<script>var conditionLines = " . json_encode($conditions) . "</script>";
     $charts = $this->getChartLines();
     echo "<script>var chartLines = " . json_encode($charts) . ";</script>";
     parent::preDisplay();
 }
开发者ID:switcode,项目名称:SuiteCRM,代码行数:31,代码来源:view.edit.php


示例12: process

 function process()
 {
     global $current_user, $timedate, $app_list_strings, $current_language, $mod_strings;
     $mod_strings = return_module_language($current_language, 'Opportunities');
     $json = getJSONobj();
     parent::process();
     list($num_grp_sep, $dec_sep) = get_number_seperators();
     $this->ss->assign('NUM_GRP_SEP', $num_grp_sep);
     $this->ss->assign('DEC_SEP', $dec_sep);
     $this->ss->assign('CURRENCY_ID', $current_user->getPreference('currency'));
     $this->ss->assign("SALES_STAGE_OPTIONS", get_select_options_with_id($app_list_strings['sales_stage_dom'], ''));
     $this->ss->assign("LEAD_SOURCE_OPTIONS", get_select_options_with_id($app_list_strings['lead_source_dom'], ''));
     $this->ss->assign('prob_array', $json->encode($app_list_strings['sales_probability_dom']));
     if ($this->viaAJAX) {
         // override for ajax call
         $this->ss->assign('saveOnclick', "onclick='if(check_form(\"opportunitiesQuickCreate\")) return SUGAR.subpanelUtils.inlineSave(this.form.id, \"opportunities\"); else return false;'");
         $this->ss->assign('cancelOnclick', "onclick='return SUGAR.subpanelUtils.cancelCreate(\"subpanel_opportunities\")';");
     }
     $this->ss->assign('viaAJAX', $this->viaAJAX);
     $this->javascript = new javascript();
     $this->javascript->setFormName('opportunitiesQuickCreate');
     $focus = new Opportunity();
     $this->javascript->setSugarBean($focus);
     $this->javascript->addAllFields('');
     $this->ss->assign('additionalScripts', $this->javascript->getScript(false));
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:26,代码来源:OpportunitiesQuickCreate.php


示例13: get_new_record_form

/**
 * Create HTML form to enter a new record with the minimum necessary fields.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 */
function get_new_record_form()
{
    if (!ACLController::checkAccess('Bugs', 'edit', true)) {
        return '';
    }
    global $mod_strings;
    global $app_strings;
    global $app_list_strings;
    global $mod_strings;
    global $theme;
    global $current_user;
    $seedRelease = new Release();
    $lbl_required_symbol = $app_strings['LBL_REQUIRED_SYMBOL'];
    $lbl_default_status = $app_list_strings['bug_status_default_key'];
    $lbl_subject = $mod_strings['LBL_SUBJECT'];
    $lbl_save_button_title = $app_strings['LBL_SAVE_BUTTON_TITLE'];
    $lbl_save_button_key = $app_strings['LBL_SAVE_BUTTON_KEY'];
    $lbl_save_button_label = $app_strings['LBL_SAVE_BUTTON_LABEL'];
    $user_id = $current_user->id;
    $priority_options = get_select_options_with_id($app_list_strings['bug_priority_dom'], $app_list_strings['bug_priority_default_key']);
    $release_options = get_select_options_with_id($seedRelease->get_releases(TRUE, "Active"), "");
    $type_options = get_select_options_with_id($app_list_strings['bug_type_dom'], $app_list_strings['bug_type_default_key']);
    $the_form = get_left_form_header($mod_strings['LBL_NEW_FORM_TITLE']);
    $the_form .= <<<EOQ

\t\t<form name="BugSave" onSubmit="return check_form('BugSave')" method="POST" action="index.php">
\t\t\t<input type="hidden" name="module" value="Bugs">
\t\t\t<input type="hidden" name="record" value="">

\t\t\t<input type="hidden" name="status" value="{$lbl_default_status}">
\t\t\t<input type="hidden" name="assigned_user_id" value='{$user_id}'>
\t\t\t<input type="hidden" name="action" value="Save">




\t\t{$lbl_subject}&nbsp;<span class="required">{$lbl_required_symbol}</span><br>
\t\t<p><input name='name' type="text" size='20' maxlength="255"value=""><br>
 \t\t{$mod_strings['LBL_TYPE']}&nbsp;<br>
\t\t<select name='type' >{$type_options}</select><br>
\t\t{$mod_strings['LBL_RELEASE']}&nbsp;<br>
\t\t<select name='found_in_release' >{$release_options}</select><br>
\t\t{$mod_strings['LBL_PRIORITY']}&nbsp;<br>
\t\t<select name='priority' >{$priority_options}</select>
</p><p>\t\t<input title="{$lbl_save_button_title}" accessKey="{$lbl_save_button_key}" class="button" type="submit" name="button" value="  {$lbl_save_button_label}  " ></p>

\t\t</form>
EOQ;
    require_once 'include/javascript/javascript.php';
    require_once 'modules/Bugs/Bug.php';
    $javascript = new javascript();
    $javascript->setFormName('BugSave');
    $javascript->setSugarBean(new Bug());
    $javascript->addRequiredFields('');
    $the_form .= $javascript->getScript();
    $the_form .= get_left_form_footer();
    return $the_form;
}
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:64,代码来源:Forms.php


示例14: process

 function process()
 {
     global $current_user, $timedate, $app_list_strings, $current_language, $mod_strings;
     $mod_strings = return_module_language($current_language, 'ProductComponents');
     $format = new Format();
     parent::process();
     if ($this->viaAJAX) {
         // override for ajax call
         $this->ss->assign('saveOnclick', "onclick='if(check_form(\"productComponentsQuickCreate\")) return SUGAR.subpanelUtils.inlineSave(this.form.id, \"productcomponents\"); else return false;'");
         $this->ss->assign('cancelOnclick', "onclick='return SUGAR.subpanelUtils.cancelCreate(\"subpanel_productcomponents\")';");
     }
     $this->ss->assign('viaAJAX', $this->viaAJAX);
     $this->javascript = new javascript();
     $this->javascript->setFormName('productComponentsQuickCreate');
     $focus = new ProductComponents();
     $this->javascript->setSugarBean($focus);
     $this->javascript->addAllFields('');
     $app_list_strings['products_format_options'] = $format->Get_Dropdown_Data();
     $this->ss->assign('additionalScripts', $this->javascript->getScript(false));
     $this->ss->assign('run_style_options', get_select_options_with_id($app_list_strings['layout_type_options'], ''));
     $this->ss->assign('type_options', get_select_options_with_id($app_list_strings['type_options'], $focus->type));
     $this->ss->assign('color_side_a', get_select_options_with_id($app_list_strings['color_side_a'], $focus->color_side_a));
     $this->ss->assign('color_side_b', get_select_options_with_id($app_list_strings['color_side_b'], $focus->color_side_b));
     $this->ss->assign("STATUS_OPTIONS", get_select_options_with_id($app_list_strings['project_task_status_options'], $focus->status));
     $this->ss->assign("FORMAT_OPTIONS", get_select_options_with_id($app_list_strings['products_format_options'], $focus->format));
     $this->ss->assign("RUN_FORMAT_OPTIONS", get_select_options_with_id($app_list_strings['products_format_options'], $focus->format));
     $this->ss->assign("BLEED_FORMAT_OPTIONS", get_select_options_with_id($app_list_strings['products_format_options'], $focus->format));
     $ppref = 'PRD';
     $pnumber = $focus->get_pnum();
     $number_suf = $focus->generate_number();
     $this->ss->assign('number_pref', $ppref);
     $this->ss->assign('pnum', $pnumber);
     $this->ss->assign('number_suf', $number_suf);
     $this->ss->assign("LAYOUTROWS", $focus->getLayoutRow(new Layoutline(), 0, true, true));
     //$this->ss->parse("main.row1");
     $json = getJSONobj();
     ///////////////////////////////////////
     ///
     /// SETUP PARENT POPUP
     $popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'projectTypeQuickCreate', 'field_to_name_array' => array('id' => 'parent_id', 'name' => 'parent_name'));
     $encoded_parent_popup_request_data = $json->encode($popup_request_data);
     $this->ss->assign('encoded_parent_popup_request_data', $encoded_parent_popup_request_data);
     $popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'productComponentsQuickCreate', 'field_to_name_array' => array('id' => 'paperid', 'pname' => 'paper'));
     $this->ss->assign('encoded_paper_popup_request_data', $json->encode($popup_request_data));
     //machines popup
     /*	$popup_request_data = array(
     			'call_back_function' => 'set_return',
     			'form_name' => 'productComponentsQuickCreate',
     			'field_to_name_array' => array(
     				'id' => 'machine_id',
     				'name' => 'machine',
     			),
     		);
     	
     		$encoded_popup_request_data = $json->encode($popup_request_data);
     		$this->ss->assign('encoded_machine_popup_request_data', $encoded_popup_request_data);        
     		*/
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:58,代码来源:ProductComponentsQuickCreate.php


示例15: displayOptions

 function displayOptions()
 {
     $this->processDisplayOptions();
     require_once 'modules/Documents/Document.php';
     $types = getDocumentsExternalApiDropDown();
     $this->currentSearchFields['doc_type']['input'] = '<select size="3" multiple="true" name="doc_type[]">' . get_select_options_with_id($types, empty($this->filters['doc_type']) ? '' : $this->filters['doc_type']) . '</select>';
     $this->configureSS->assign('searchFields', $this->currentSearchFields);
     return $this->configureSS->fetch($this->configureTpl);
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:9,代码来源:MyDocumentsDashlet.php


示例16: displayOptions

 function displayOptions()
 {
     $this->processDisplayOptions();
     $seedRelease = new Release();
     $this->currentSearchFields['fixed_in_release']['input'] = '<select multiple="true" size="3" name="fixed_in_release[]">' . get_select_options_with_id($seedRelease->get_releases(false, "Active"), empty($this->filters['fixed_in_release']) ? '' : $this->filters['fixed_in_release']) . '</select>';
     $this->currentSearchFields['found_in_release']['input'] = '<select multiple="true" size="3" name="found_in_release[]">' . get_select_options_with_id($seedRelease->get_releases(false, "Active"), empty($this->filters['found_in_release']) ? '' : $this->filters['found_in_release']) . '</select>';
     $this->configureSS->assign('searchFields', $this->currentSearchFields);
     return $this->configureSS->fetch($this->configureTpl);
 }
开发者ID:klr2003,项目名称:sourceread,代码行数:9,代码来源:MyBugsDashlet.php


示例17: edit_display

 function edit_display($line, SugarBean $bean = null, $params = array())
 {
     global $app_list_strings;
     $modules = $app_list_strings['aow_moduleList'];
     $checked = 'CHECKED';
     if (isset($params['relate_to_workflow']) && !$params['relate_to_workflow']) {
         $checked = '';
     }
     $html = "<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
     $html .= "<tr>";
     $html .= '<td id="name_label" scope="row" valign="top">' . translate("LBL_RECORD_TYPE", "AOW_Actions") . ':<span class="required">*</span>&nbsp;&nbsp;';
     $html .= "<select name='aow_actions_param[" . $line . "][record_type]' id='aow_actions_param_record_type" . $line . "'  onchange='show_crModuleFields({$line});'>" . get_select_options_with_id($modules, $params['record_type']) . "</select></td>";
     $html .= '<td id="relate_label" scope="row" valign="top">' . translate("LBL_RELATE_WORKFLOW", "AOW_Actions") . ':&nbsp;&nbsp;';
     $html .= "<input type='hidden' name='aow_actions_param[" . $line . "][relate_to_workflow]' value='0' >";
     $html .= "<input type='checkbox' id='aow_actions_param[" . $line . "][relate_to_workflow]' name='aow_actions_param[" . $line . "][relate_to_workflow]' value='1' {$checked}></td>";
     $html .= "</tr>";
     $html .= "<tr>";
     $html .= '<td colspan="4" scope="row"><table id="crLine' . $line . '_table" width="100%"></table></td>';
     $html .= "</tr>";
     $html .= "<tr>";
     $html .= '<td colspan="4" scope="row"><input type="button" tabindex="116" style="display:none" class="button" value="' . translate("LBL_ADD_FIELD", "AOW_Actions") . '" id="addcrline' . $line . '" onclick="add_crLine(' . $line . ')" /></td>';
     $html .= "</tr>";
     $html .= "<tr>";
     $html .= '<td colspan="4" scope="row"><table id="crRelLine' . $line . '_table" width="100%"></table></td>';
     $html .= "</tr>";
     $html .= "<tr>";
     $html .= '<td colspan="4" scope="row"><input type="button" tabindex="116" style="display:none" class="button" value="' . translate("LBL_ADD_RELATIONSHIP", "AOW_Actions") . '" id="addcrrelline' . $line . '" onclick="add_crRelLine(' . $line . ')" /></td>';
     $html .= "</tr>";
     if (isset($params['record_type']) && $params['record_type'] != '') {
         require_once "modules/AOW_WorkFlow/aow_utils.php";
         $html .= "<script id ='aow_script" . $line . "'>";
         $html .= "cr_fields[" . $line . "] = \"" . trim(preg_replace('/\\s+/', ' ', getModuleFields($params['record_type']))) . "\";";
         $html .= "cr_relationships[" . $line . "] = \"" . trim(preg_replace('/\\s+/', ' ', getModuleRelationships($params['record_type']))) . "\";";
         $html .= "cr_module[" . $line . "] = \"" . $params['record_type'] . "\";";
         if (isset($params['field'])) {
             foreach ($params['field'] as $key => $field) {
                 if (is_array($params['value'][$key])) {
                     $params['value'][$key] = json_encode($params['value'][$key]);
                 }
                 $html .= "load_crline('" . $line . "','" . $field . "','" . str_replace(array("\r\n", "\r", "\n"), " ", $params['value'][$key]) . "','" . $params['value_type'][$key] . "');";
             }
         }
         if (isset($params['rel'])) {
             foreach ($params['rel'] as $key => $field) {
                 if (is_array($params['rel_value'][$key])) {
                     $params['rel_value'][$key] = json_encode($params['rel_value'][$key]);
                 }
                 $html .= "load_crrelline('" . $line . "','" . $field . "','" . $params['rel_value'][$key] . "','" . $params['rel_value_type'][$key] . "');";
             }
         }
         $html .= "</script>";
     }
     return $html;
 }
开发者ID:omusico,项目名称:windcrm,代码行数:54,代码来源:actionCreateRecord.php


示例18: display_field_lines

/**
 * Advanced OpenReports, SugarCRM Reporting.
 * @package Advanced OpenReports for SugarCRM
 * @copyright SalesAgility Ltd http://www.salesagility.com
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
 * along with this program; if not, see http://www.gnu.org/licenses
 * or write to the Free Software Foundation,Inc., 51 Franklin Street,
 * Fifth Floor, Boston, MA 02110-1301  USA
 *
 * @author SalesAgility <[email protected]>
 */
function display_field_lines($focus, $field, $value, $view)
{
    global $mod_strings, $app_list_strings;
    $html = '';
    if (!is_file('cache/jsLanguage/AOR_Fields/' . $GLOBALS['current_language'] . '.js')) {
        require_once 'include/language/jsLanguage.php';
        jsLanguage::createModuleStringsCache('AOR_Fields', $GLOBALS['current_language']);
    }
    $html .= '<script src="include/javascript/yui3/build/yui/yui-min.js"></script>';
    $html .= '<script src="cache/jsLanguage/AOR_Fields/' . $GLOBALS['current_language'] . '.js"></script>';
    if ($view == 'EditView') {
        $html .= '<script src="modules/AOR_Fields/fieldLines.js"></script>';
        $html .= '<script></script>';
        $html .= "<table border='0' cellspacing='4' width='100%' id='fieldLines'></table>";
        $html .= "<div style='padding-top: 10px; padding-bottom:10px;'>";
        $html .= "<input type=\"button\" tabindex=\"116\" class=\"button\" value=\"" . $mod_strings['LBL_ADD_FIELD'] . "\" id=\"btn_FieldLine\" onclick=\"insertFieldLine()\" disabled/>";
        $html .= "</div>";
        $html .= "<script>";
        $html .= "sort_by_values = \"" . trim(preg_replace('/\\s+/', ' ', get_select_options_with_id($app_list_strings['aor_sort_operator'], ''))) . "\";";
        $html .= "</script>";
        if (isset($focus->report_module) && $focus->report_module != '') {
            require_once "modules/AOW_WorkFlow/aow_utils.php";
            $html .= "<script>";
            $html .= "report_rel_modules = \"" . trim(preg_replace('/\\s+/', ' ', getModuleRelationships($focus->report_module))) . "\";";
            $html .= "report_module = \"" . $focus->report_module . "\";";
            $html .= "document.getElementById('btn_FieldLine').disabled = '';";
            if ($focus->id != '') {
                $sql = "SELECT id FROM aor_fields WHERE aor_report_id = '" . $focus->id . "' AND deleted = 0 ORDER BY field_order ASC";
                $result = $focus->db->query($sql);
                while ($row = $focus->db->fetchByAssoc($result)) {
                    $field_name = new AOR_Field();
                    $field_name->retrieve($row['id']);
                    $field_name->module_path = unserialize(base64_decode($field_name->module_path));
                    $html .= "report_fields = \"" . trim(preg_replace('/\\s+/', ' ', getModuleFields(getRelatedModule($focus->report_module, $field_name->module_path[0])))) . "\";";
                    $field_item = json_encode($field_name->toArray());
                    $html .= "loadFieldLine(" . $field_item . ");";
                }
            }
            $html .= "report_fields = \"" . trim(preg_replace('/\\s+/', ' ', getModuleFields($focus->report_module))) . "\";";
            $html .= "</script>";
        }
    } else {
        if ($view == 'DetailView') {
            /*$html .= '<script src="include/SugarCharts/Jit/js/sugarCharts.js"></script>';
            
                    $html .= '<script language="javascript" type="text/javascript" src="include/MySugar/javascript/MySugar.js"></script>';
                    $html .= '<script language="javascript" type="text/javascript" src="include/SugarCharts/Jit/js/Jit/jit.js"></script>';
                    $html .= '<script language="javascript" type="text/javascript" src="include/SugarCharts/Jit/js/sugarCharts.js"></script>';
                    $html .= '<script language="javascript" type="text/javascript" src="include/SugarCharts/Jit/js/mySugarCharts.js"></script>';*/
            $html .= $focus->build_group_report(0) . '<br />';
        }
    }
    return $html;
}
开发者ID:omusico,

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_select_options_with_id_separate_key函数代码示例发布时间:2022-05-15
下一篇:
PHP get_select_options_array函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap