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

PHP html_build_select_box函数代码示例

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

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



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

示例1: link_box

function link_box($group_id, $name, $selected = 'xzxzxz')
{
    global $link;
    if (!$link) {
        $link = db_query("SELECT group_id,group_name,register_time FROM groups " . "WHERE  status='A' AND type_id=1 AND group_id != " . $group_id . " " . "AND  group_id NOT IN (SELECT sub_project_id FROM plugin_projects_hierarchy WHERE project_id = " . $group_id . " )" . " AND group_id NOT IN (SELECT project_id FROM plugin_projects_hierarchy WHERE sub_project_id = " . $group_id . " )");
    }
    return html_build_select_box($link, $name, $selected, false);
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:8,代码来源:hierarchy_utils.php


示例2: role_box

function role_box($group_id, $name, $selected = 'xzxzxz')
{
    global $roleres;
    if (!$roleres) {
        $roleres = db_query("SELECT role_id,role_name \n\t\t\tFROM role WHERE group_id='{$group_id}'");
    }
    return html_build_select_box($roleres, $name, $selected, false);
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:8,代码来源:role_utils.php


示例3: get_canned_responses

/**
 * get_canned_responses() - Get an HTML select-box of canned responses
 */
function get_canned_responses()
{
    global $canned_response_res;
    if (!$canned_response_res) {
        $canned_response_res = db_query("SELECT response_id, response_title FROM canned_responses");
    }
    return html_build_select_box($canned_response_res, 'response_id');
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:11,代码来源:canned_responses.php


示例4: getLanguageSelectionPopup

/**
 * GForge Trove Browsing Facility
 *
 * Copyright 2004 Guillaume Smet / Open Wide
 * http://gforge.org/
 *
 * @version   $Id$
 *
 * This file is part of GForge.
 *
 * GForge is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * GForge 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 General Public License
 * along with GForge; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
function getLanguageSelectionPopup($alreadyDefined = array())
{
    $where = '';
    if (!empty($alreadyDefined)) {
        $where = ' WHERE language_id NOT IN(' . implode(',', $alreadyDefined) . ')';
    }
    $res = db_query('SELECT * FROM supported_languages' . $where . ' ORDER BY name ASC');
    return html_build_select_box($res, 'language_id', 'xzxz', false);
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:33,代码来源:utils.php


示例5: people_skill_year_box

function people_skill_year_box($name = 'skill_year_id', $checked = 'xyxy')
{
    global $PEOPLE_SKILL_YEAR;
    if (!$PEOPLE_SKILL_YEAR) {
        //will be used many times potentially on a single page
        $sql = "SELECT * FROM people_skill_year";
        $PEOPLE_SKILL_YEAR = db_query($sql);
    }
    return html_build_select_box($PEOPLE_SKILL_YEAR, $name, $checked);
}
开发者ID:nterray,项目名称:tuleap,代码行数:10,代码来源:people_utils.php


示例6: display_groups_option

function display_groups_option($group_id = false, $checkedval = 'xyxy')
{
    if (!$group_id) {
        exit_no_group();
    } else {
        $query = "select doc_group, groupname " . "from doc_groups " . "where group_id = {$group_id} " . "order by groupname";
        $result = db_query($query);
        echo html_build_select_box($result, 'doc_group', $checkedval);
    }
    //end else
}
开发者ID:nterray,项目名称:tuleap,代码行数:11,代码来源:doc_utils.php


示例7: report_time_category_box

function report_time_category_box($name = 'category', $selected = false)
{
    global $report_time_category_res;
    if (!$report_time_category_res) {
        $report_time_category_res = db_query("SELECT * FROM rep_time_category");
    }
    return html_build_select_box($report_time_category_res, $name, $selected, false);
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:8,代码来源:report_utils.php


示例8: getStringFromServer

echo '

</head>
<body>
<h1>' . $feedback . '</h1>

<table border="3" cellpadding="4" rules="groups" frame="box" width="100%" class="tablecontent">
	<form action="' . getStringFromServer('PHP_SELF') . '?func=query&group_id=' . $group_id . '&atid=' . $ath->getID() . '" method="post">
	<input type="hidden" name="form_key" value="' . form_generate_key() . '">
	<tr>
		<td>
			<input type="submit" name="submit" value="' . _('Save Changes') . '" />
		</td>
		<td>';
if (db_numrows($res) > 0) {
    echo html_build_select_box($res, 'query_id', $query_id, false) . '';
}
echo '
		</td>
	</tr>
	<tr class="tablecontent">
		<td>
		<input type="radio" name="query_action" value="1" ' . (!$query_id ? 'checked' : '') . '>' . _('Name and Save Query') . '<br />';
if (db_numrows($res) > 0) {
    echo '
		<input type="radio" name="query_action" value="4">' . _('Load Query') . '<br />';
}
if ($query_id) {
    echo '
		<input type="radio" name="query_action" value="3" checked>' . _('Update Query') . '<br />
		<input type="radio" name="query_action" value="5">' . _('Delete Query') . '';
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:query.php


示例9: snippet_edit_snippet_details

function snippet_edit_snippet_details($id)
{
    global $Language;
    $sql = "SELECT * FROM snippet WHERE snippet_id='{$id}'";
    $result = db_query($sql);
    echo '
	<FORM ACTION="" METHOD="POST" enctype="multipart/form-data">
	<INPUT TYPE="HIDDEN" NAME="post_changes" VALUE="y">
	<P>
	<TABLE WIDTH="100%" BORDER="0" CELLSPACING="1" CELLPADDING="2">

	<TR><TD COLSPAN="2">
        <B>' . $Language->getText('snippet_browse', 'title') . '</B>&nbsp;
	<INPUT TYPE="TEXT" NAME="snippet_name" SIZE="45" MAXLENGTH="60" VALUE="' . db_result($result, 0, 'name') . '">
	</TD></TR>

	<TR><TD><B>' . $Language->getText('snippet_utils', 'type') . '</B><BR>
		' . html_build_select_box(snippet_data_get_all_types(), 'snippet_type', db_result($result, 0, 'type'), false) . '
        </TD><TD><B>' . $Language->getText('snippet_package', 'category') . '</B><BR>
		' . html_build_select_box(snippet_data_get_all_categories(), 'snippet_category', db_result($result, 0, 'category'), false) . '
	</TD></TR>

	<TR><TD><B>' . $Language->getText('snippet_utils', 'license') . '</B><BR>
		' . html_build_select_box(snippet_data_get_all_licenses(), 'snippet_license', db_result($result, 0, 'license'), false) . '
        </TD><TD><B>' . $Language->getText('snippet_package', 'language') . '</B><BR>
		' . html_build_select_box(snippet_data_get_all_languages(), "snippet_language", db_result($result, 0, 'language'), false) . '
	</TD></TR>

	<TR><TD COLSPAN="2">&nbsp;<BR>
	<B>' . $Language->getText('snippet_package', 'description') . '</B><BR>
	    <TEXTAREA NAME="snippet_description" ROWS="5" COLS="45" WRAP="SOFT">' . db_result($result, 0, 'description') . '</TEXTAREA>
	</TD></TR>

	<TR><TD COLSPAN="2" ALIGN="center">
		<B>' . $Language->getText('snippet_add_snippet_to_package', 'all_info_complete') . '</B>
		<BR>
		<INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="' . $Language->getText('global', 'btn_submit') . '">
	</TD></TR>
	</TABLE>
	</FORM>
        <HR>
';
}
开发者ID:nterray,项目名称:tuleap,代码行数:43,代码来源:snippet_utils.php


示例10: license_selectbox

function license_selectbox($title = 'license_id', $selected = 'xzxz')
{
    $res = db_query("SELECT license_id, license_name FROM licenses ORDER BY license_name");
    return html_build_select_box($res, $title, $selected, false);
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:5,代码来源:license.php


示例11: bug_status_box

function bug_status_box($name = 'bug_status_id', $checked = 'xyxy', $text_100 = 'None')
{
    /*
    	Returns a select box populated with the pre-defined bug statuses
    */
    $result = bug_data_get_statuses();
    return html_build_select_box($result, $name, $checked, true, $text_100);
}
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:8,代码来源:bug_utils.php


示例12: array

        $monthArrayVals = array();
        for ($i = 1; $i <= 12; $i++) {
            array_push($monthArrayVals, $i < 10 ? "0" . $i : $i);
            array_push($monthArray, date("M", mktime(0, 0, 0, $i, 1, 1980)));
        }
        /* add skills. */
        echo '<h2>' . _('Add a new skill') . '</h2>';
        echo _('You can enter new skills you have acquired here. Please enter the start and finish dates as accurately as possible.') . '<br />' . '<span class="required-field">' . _('All fields are required!') . '</span>';
        echo '<form action="' . getStringFromServer('PHP_SELF') . '" METHOD="POST">';
        echo ' <input type="hidden" name="form_key" value="' . form_generate_key() . '">';
        $cell_data = array();
        $cell_data[] = array(_('Type'));
        $cell_data[] = array(_('Start Date'));
        $cell_data[] = array(_('End Date'));
        echo "<table border=0 >" . $HTML->multiTableRow('', $cell_data, TRUE);
        echo "<tr>" . "<td>" . html_build_select_box($skills, "type", 1, false, "") . "</td>" . "<td>" . html_build_select_box_from_arrays($monthArrayVals, $monthArray, "startM", date("m"), false, "") . html_build_select_box_from_arrays($yearArray, $yearArray, "startY", 0, false, "") . "</td>" . "<td>" . html_build_select_box_from_arrays($monthArrayVals, $monthArray, "endM", date("m"), false, "") . html_build_select_box_from_arrays($yearArray, $yearArray, "endY", 0, false, "") . "</td>" . "</tr>" . "</table>" . "<table border=0 >";
        $cell_data = array();
        $cell_data[] = array(_('Title (max 100 characters)'));
        echo $HTML->multiTableRow('', $cell_data, TRUE);
        echo "<tr>" . "<td><input type=text name=\"title\" size=100></td>" . "</tr>";
        $cell_data = array();
        $cell_data[] = array(_('Keywords (max 255 characters)'));
        echo $HTML->multiTableRow('', $cell_data, TRUE);
        echo "<tr>" . "<td><textarea name=\"keywords\" rows=\"3\" cols=\"85\" wrap=\"soft\"></textarea></td>" . "</tr>" . "<tr>" . "<td><input type=submit name=\"AddSkill\" value=\"" . _('Add This Skill') . "\"></td>" . "</tr>" . "</table>";
        echo '</form>';
        echo '<h2>' . _('Edit/Delete Your Skills') . '</h2>
		<table border="0" width="100%">';
        echo '<form action="' . getStringFromServer('PHP_SELF') . '" METHOD="POST">';
        displayUserSkills(user_getid(), 1);
        echo '</form>';
        echo '</table>';
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:editprofile.php


示例13: html_build_select_box

	<TR><TD COLSPAN="2"><B>' . $Language->getText('snippet_browse', 'title') . ':</B><BR>
		<INPUT TYPE="TEXT" NAME="name" SIZE="45" MAXLENGTH="60">
	</TD></TR>

	<TR><TD COLSPAN="2"><B>' . $Language->getText('snippet_package', 'description') . '</B><BR>
		<TEXTAREA NAME="description" ROWS="5" COLS="45" WRAP="SOFT"></TEXTAREA>
	</TD></TR>

	<TR>
	<TD><B>' . $Language->getText('snippet_package', 'language') . '</B><BR>
		' . html_build_select_box(snippet_data_get_all_languages(), 'language') . '
	</TD>

	<TD><B>' . $Language->getText('snippet_package', 'category') . '</B><BR>
		' . html_build_select_box(snippet_data_get_all_categories(), 'category') . '
	</TD>
	</TR>
 
	<TR><TD COLSPAN="2"><B>' . $Language->getText('snippet_addversion', 'version') . '</B><BR>
		<INPUT TYPE="TEXT" NAME="version" SIZE="10" MAXLENGTH="15">
	</TD></TR>
  
	<TR><TD COLSPAN="2" ALIGN="center">
		<B>' . $Language->getText('snippet_add_snippet_to_package', 'all_info_complete') . '</B>
		<BR>
		<INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="' . $Language->getText('global', 'btn_submit') . '">
	</TD></TR>

	</TABLE>';
    snippet_footer(array());
开发者ID:nterray,项目名称:tuleap,代码行数:30,代码来源:package.php


示例14: commits_tags_box

function commits_tags_box($group_id, $name = '_tag', $checked = 'xzxz', $text_100 = 'None')
{
    $sql = "SELECT unix_group_name from groups where group_id={$group_id}";
    $result = db_query($sql);
    $projectname = db_result($result, 0, 'unix_group_name');
    $sql = "select distinct stickytag, stickytag from cvs_checkins, cvs_repositories where cvs_checkins.repositoryid=cvs_repositories.id AND cvs_repositories.repository='/cvsroot/" . $projectname . "'";
    $result = db_query($sql);
    return html_build_select_box($result, $name, $checked, true, $text_100);
}
开发者ID:pombredanne,项目名称:tuleap,代码行数:9,代码来源:commit_utils.php


示例15: handle_multi_edit

function handle_multi_edit($skill_ids)
{
    global $HTML;
    $numSkills = count($skill_ids);
    $SQL = "select * from skills_data where skills_data_id in(" . (int) $skill_ids[0];
    for ($i = 1; $i < $numSkills; $i++) {
        $SQL .= ", " . (int) $skill_ids[$i];
    }
    $SQL .= ")";
    $result = db_query($SQL);
    $rows = db_numrows($result);
    if (!$result || $rows < 1) {
        echo db_error();
    } else {
        $sql = "SELECT * FROM skills_data_types WHERE type_id > 0";
        $skills = db_query($sql);
        if (!$skills || db_numrows($skills) < 1) {
            echo db_error();
            $feedback .= _('User fetch FAILED');
            echo '<h2>' . _('No Such User') . '<h2>';
        }
        $yearArray = array();
        for ($years = date("Y"); $years >= 1980; $years--) {
            array_push($yearArray, $years);
        }
        $monthArray = array();
        $monthArrayVals = array();
        for ($i = 1; $i <= 12; $i++) {
            array_push($monthArrayVals, $i < 10 ? "0" . $i : $i);
            array_push($monthArray, date("M", mktime(0, 0, 0, $i, 1, 1980)));
        }
        for ($i = 0; $i < $rows; $i++) {
            $start = db_result($result, $i, 'start');
            $finish = db_result($result, $i, 'finish');
            $startY = substr($start, 0, 4);
            $startM = substr($start, 4, 2);
            $finishY = substr($finish, 0, 4);
            $finishM = substr($finish, 4, 2);
            echo '<table border="0">' . '<tr ' . $HTML->boxGetAltRowStyle($i + 1) . '>' . '<td><h3>' . db_result($result, $i, 'title') . '</h3></td></tr>' . '<tr><td>' . '<table border="0" >' . '<tr class="tableheading">' . '<td >' . _('Type') . '</td>' . '<td >' . _('Start Date') . '</td>' . '<td >' . _('End Date') . '</td>' . '</tr>';
            echo '<tr ' . $HTML->boxGetAltRowStyle($i + 1) . '>' . '<td>' . html_build_select_box($skills, 'type[]', db_result($result, $i, 'type'), false, '') . '</td>' . '<td>' . html_build_select_box_from_arrays($monthArrayVals, $monthArray, 'startM[]', $startM, false, '') . html_build_select_box_from_arrays($yearArray, $yearArray, 'startY[]', $startY, false, '') . '</td>' . '<td>' . html_build_select_box_from_arrays($monthArrayVals, $monthArray, 'endM[]', $finishM, false, '') . html_build_select_box_from_arrays($yearArray, $yearArray, 'endY[]', $finishY, false, '') . '</td>' . '</tr>' . '</table>' . '</td></tr>' . '<tr ' . $HTML->boxGetAltRowStyle($i + 1) . '><td>' . '<table border="0">' . '<tr class="tableheading">' . '<td>' . _('Title (max 100 characters)') . '</td>' . '</tr>' . '<tr>' . '<td><input type="hidden" name="skill_edit[]" value="' . db_result($result, $i, 'skills_data_id') . '" />' . '<input type="text" name="title[]" size="100" value="' . db_result($result, $i, 'title') . '" /></td>' . '</tr>' . '<tr>' . '<td class="tableheading">' . _('Keywords (max 255 characters)') . '</td>' . '</tr>' . '<tr>' . '<td><textarea name="keywords[]" rows="3" cols="85" wrap="soft">' . db_result($result, $i, 'keywords') . '</textarea></td>' . '</tr>' . '</table>';
            '</td></tr>';
            echo '</table><br />';
        }
    }
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:45,代码来源:skills_utils.php


示例16: support_status_box

function support_status_box($name = 'status_id', $checked = 'xzxz', $text_100 = 'None')
{
    $result = support_data_get_statuses();
    return html_build_select_box($result, $name, $checked, true, $text_100);
}
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:5,代码来源:support_utils.php


示例17: _

    $status_box = $ath->statusBox('_status', $_status, true, _('Any'));
}
echo '
<table width="100%" border="0">';
echo '
	<tr>';
/*
	Logged in users get the option of seeing a power-browse box
*/
if (session_loggedin()) {
    echo '<td rowspan="2">';
    echo '<form action="' . getStringFromServer('PHP_SELF') . '?group_id=' . $group_id . '&atid=' . $ath->getID() . '" method="post">';
    echo '<input type="hidden" name="power_query" value="1">';
    $res = db_query("SELECT artifact_query_id,query_name \n\tFROM artifact_query WHERE user_id='" . user_getid() . "' AND group_artifact_id='" . $ath->getID() . "'");
    if (db_numrows($res) > 0) {
        echo html_build_select_box($res, 'query_id', $af->getDefaultQuery(), false) . '<br />
		<input type="submit" name="run" value="' . _('Power Query') . '"></input>
		<strong><a href="javascript:admin_window(\'' . util_make_url('/tracker/?func=query&group_id=' . $group_id . '&atid=' . $ath->getID()) . '\')">' . _('Build Query') . '</a></strong>';
    } else {
        echo '<strong>
		<a href="javascript:admin_window(\'' . util_make_url('/tracker/?func=query&group_id=' . $group_id . '&atid=' . $ath->getID()) . '\')">' . _('Build Query') . '</a></strong>';
    }
    echo '
		</form>
		</td>';
}
echo '
	<form action="' . getStringFromServer('PHP_SELF') . '?group_id=' . $group_id . '&atid=' . $ath->getID() . '" method="post">
	<input type="hidden" name="set" value="custom" />
	<td>' . _('Assignee') . '<br />' . $tech_box . '</td>' . '<td>' . _('Status') . '<br />' . $status_box . '</td>';
echo '
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:browse.php


示例18: display_groups_option

    }
    echo '</textarea></td>
			</tr>

			<tr>
			<th>Group doc belongs in:</th>
        	<td>';
    display_groups_option($group_id, $row['doc_group']);
    echo '	</td>
				</tr>

				<tr>
				<th>State:</th>
				<td>';
    $res_states = db_query("select * from doc_states;");
    echo html_build_select_box($res_states, 'stateid', $row['stateid']);
    echo '
       		</td>
			</tr>

		</table>

		<input type="hidden" name="docid" value="' . $row['docid'] . '">
		<input type="submit" value="Submit Edit">

		</form>';
    docman_footer($params);
} elseif (strstr($mode, "groupdelete")) {
    $query = "select docid " . "from doc_data " . "where doc_group = " . $doc_group . "";
    $result = db_query($query);
    if (db_numrows($result) < 1) {
开发者ID:BackupTheBerlios,项目名称:berlios,代码行数:31,代码来源:index.php


示例19: getStringFromServer

    echo getStringFromServer('PHP_SELF');
    ?>
"
	method="get" /><input type="hidden" name="week"
	value="<?php 
    echo $week;
    ?>
" />
<table>
	<tr>
		<td><strong><?php 
    echo _('Task Manager Project');
    ?>
:</strong></td>
		<td><?php 
    echo html_build_select_box($respm, 'group_project_id', false, false);
    ?>
</td>
		<td><input type="submit" name="submit"
			value="<?php 
    echo _('Next');
    ?>
" /></td>
	</tr>
</table>
</form>
<p>
<h3>Change Week</h3>
<p>
<form action="<?php 
    echo getStringFromServer('PHP_SELF');
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:timeadd.php


示例20: html_get_ccode_popup

/**
 * html_get_ccode_popup() - Pop up box of supported country_codes.
 *
 * @param		string	The title of the popup box.
 * @param		string	Which element of the box is to be selected.
 * @return	string	The html select box.
 */
function html_get_ccode_popup($title = 'ccode', $selected = 'xzxz')
{
    $res = db_query("SELECT ccode,country_name FROM country_code ORDER BY country_name");
    return html_build_select_box($res, $title, $selected, false);
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:12,代码来源:html.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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