当前位置: 首页>>代码示例>>PHP>>正文


PHP get_select_options_with_id函数代码示例

本文整理汇总了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函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


注:本文中的get_select_options_with_id函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。