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

PHP get_select_options_with_id_separate_key函数代码示例

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

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



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

示例1: 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.   This method expects the option list to have keys and values.  The keys are the ids.  The values is an array of the datas
 * 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_with_id(&$option_list, $selected_key, $advsearch = 'false')
{
    global $log;
    $log->debug("Entering get_select_options_with_id () method ...");
    $log->debug("Exiting get_select_options_with_id  method ...");
    return get_select_options_with_id_separate_key($option_list, $option_list, $selected_key, $advsearch);
}
开发者ID:Pengzw,项目名称:c3crm,代码行数:16,代码来源:CommonUtils.php


示例2: 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.   This method expects the option list to have keys and values.  The keys are the ids.  The values are the display strings.
 * 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_with_id($option_list, $selected_key)
{
    return get_select_options_with_id_separate_key($option_list, $option_list, $selected_key);
}
开发者ID:razorinc,项目名称:sugarcrm-example,代码行数:13,代码来源:utils.php


示例3: getGroupsWithSelectOptions

 /**
  * Returns <option> markup with the contents of Group users
  * @param array $groups default empty array
  * @return string HTML options
  */
 function getGroupsWithSelectOptions($groups = array())
 {
     $r = $this->db->query('SELECT id, user_name FROM users WHERE users.is_group = 1 AND deleted = 0', true);
     if (is_resource($r)) {
         while ($a = $this->db->fetchByAssoc($r)) {
             $groups[$a['id']] = $a['user_name'];
         }
     }
     $selectOptions = get_select_options_with_id_separate_key($groups, $groups, $this->group_id);
     return $selectOptions;
 }
开发者ID:netconstructor,项目名称:sugarcrm_dev,代码行数:16,代码来源:InboundEmail.php


示例4: addStatusMulti

    function addStatusMulti($displayname, $varname, $options)
    {
        global $app_strings, $app_list_strings;
        if (!isset($options['']) && !isset($options['0'])) {
            $new_options = array();
            $new_options[''] = '';
            foreach ($options as $key => $value) {
                $new_options[$key] = $value;
            }
            $options = $new_options;
        }
        $options = get_select_options_with_id_separate_key($options, $options, '', true);
        // cn: added "mass_" to the id tag to diffentieate from the status id in StoreQuery
        $html = '<td scope="row" width="15%">' . $displayname . '</td>
			 <td><select id="mass_' . $varname . '" name="' . $varname . '[]" size="5" MULTIPLE>' . $options . '</select></td>';
        return $html;
    }
开发者ID:nartnik,项目名称:sugarcrm_test,代码行数:17,代码来源:MassUpdate.php


示例5: unset

    unset($domMailBoxType['pick']);
    unset($domMailBoxType['createcase']);
} else {
    unset($domMailBoxType['bounce']);
}
$isDuplicate = isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true';
if ($isDuplicate) {
    $GLOBALS['log']->debug("isDuplicate found - duplicating record of id: " . $focus->id);
    $origin_id = $focus->id;
    $focus->id = "";
}
$GLOBALS['log']->info("InboundEmail Edit View");
/* End standard EditView setup logic */
/* Start custom setup logic */
// status drop down
$status = get_select_options_with_id_separate_key($app_list_strings['user_status_dom'], $app_list_strings['user_status_dom'], $focus->status);
// default MAILBOX value
if (empty($focus->mailbox)) {
    $mailbox = 'INBOX';
} else {
    $mailbox = $focus->mailbox;
}
// service options breakdown
$tls = '';
$notls = '';
$cert = '';
$novalidate_cert = '';
$ssl = '';
if (!empty($focus->service)) {
    // will always have 2 values: /tls || /notls and /validate-cert || /novalidate-cert
    $exServ = explode('::', $focus->service);
开发者ID:NALSS,项目名称:SuiteCRM,代码行数:31,代码来源:EditView.php


示例6: array

        //Leon bug 20739
        $beanListDupDisp = array();
        foreach ($beanListDup as $m => $p) {
            $beanListDupDisp[$m] = isset($app_list_strings['moduleList'][$m]) ? $app_list_strings['moduleList'][$m] : $p;
        }
        asort($beanListDupDisp, SORT_STRING);
        $_SESSION['reassignRecords']['assignedModuleListCache'] = $beanListDup;
        $_SESSION['reassignRecords']['assignedModuleListCacheDisp'] = $beanListDupDisp;
    }
    $selected = array();
    if (!empty($_SESSION['reassignRecords']['modules'])) {
        foreach ($_SESSION['reassignRecords']['modules'] as $key => $mod) {
            $selected[] = $key;
        }
    }
    echo get_select_options_with_id_separate_key($_SESSION['reassignRecords']['assignedModuleListCacheDisp'], $_SESSION['reassignRecords']['assignedModuleListCacheDisp'], $selected);
    ?>
</select>
<BR>
</td>
</tr>
<tr>
<td>
<?php 
    foreach ($moduleFilters as $modFilter => $fieldArray) {
        $display = !empty($fieldArray['display_default']) && $fieldArray['display_default'] == true ? "block" : "none";
        //Leon bug 20739
        $t_mod_strings = return_module_language($GLOBALS['current_language'], $modFilter);
        echo "<div id=\"reassign_{$modFilter}\" style=\"display:{$display}\">\n";
        echo "<h5 style=\"padding-left:0px; margin-bottom:4px;\">{$app_list_strings['moduleList'][$modFilter]} ", " {$mod_strings_users['LBL_REASS_FILTERS']}</h5>\n";
        foreach ($fieldArray['fields'] as $meta) {
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:31,代码来源:reassignUserRecords.php


示例7: 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.   This method expects the option list to have keys and values.  The keys are the ids.  The values is an array of the datas
 * 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.
 */
function get_select_options_with_id(&$option_list, $selected_key, $advsearch = 'false')
{
    global $log;
    $log->debug("Entering and Exiting get_select_options_with_id (" . print_r($option_list, true) . "," . $selected_key . "," . $advsearch . ") method ...");
    return get_select_options_with_id_separate_key($option_list, $option_list, $selected_key, $advsearch);
}
开发者ID:jgjermeni,项目名称:corebos,代码行数:14,代码来源:CommonUtils.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP get_selected函数代码示例发布时间:2022-05-15
下一篇:
PHP get_select_options_with_id函数代码示例发布时间: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