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

PHP print_select函数代码示例

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

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



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

示例1: print_select

			<br />
			<form name="host_template_contactgroup_add" method="post" action="hosts.php?id=<?php 
                            echo $_GET['id'];
                            ?>
&section=contactgroups">
			<input type="hidden" name="request" value="add_contactgroup_command" />
			<input type="hidden" name="host_manage[contactgroup_add][host_id]" value="<?php 
                            echo $_GET['id'];
                            ?>
" />
			<b>Add New Contact Group:</b> <?php 
                            if (!count($contactgroups_list)) {
                                ?>
<strong>No Contact Groups Available</strong><br /><?php 
                            } else {
                                print_select("host_manage[contactgroup_add][contactgroup_id]", $contactgroups_list, "contactgroup_id", "contactgroup_name", "0");
                                ?>
 <input type="submit" value="Add Contact Group"><br /><?php 
                            }
                            ?>
			<?php 
                            echo $lilac->element_desc("contact_groups", "nagios_hosts_desc");
                            ?>
<br />
			<br />
			</form>
			</td>
		</tr>
		</table>
		<?php 
                        } else {
开发者ID:Evolix,项目名称:lilac,代码行数:31,代码来源:hosts.php


示例2: get_parameter

$status = get_parameter('status', 0);
$search = get_parameter('search', '');
unset($table);
$table->class = 'result_table';
$table->width = '98%';
$table->data = array();
$table->header = array();
$table->style[0] = 'width:60px;text-align:right;';
$table->style[1] = 'width:150px';
$table->style[2] = 'width:60px;text-align:right;';
$table->style[3] = 'width:150px';
$table->style[4] = 'width:100px';
$table->data[0][0] = "<b>" . __('Search') . "</b>";
$table->data[0][1] = print_input_text('search', $search, '', 20, 0, true);
$table->data[0][2] = "<b>" . __('Status') . "</b>";
$table->data[0][3] = print_select($statuses, 'status', $status, '', __('Any'), 0, true);
$table->data[0][4] = print_submit_button(__('Filter'), '', false, 'class="sub search"', true);
$table->data[0][5] = '';
echo '<form method="post">';
print_table($table);
echo '</form>';
unset($table);
// INCIDENT LIST
$table->class = 'result_table listing';
$table->width = '98%';
$table->id = 'incident_search_result_table';
$table->head = array();
$table->head[0] = __('ID');
$table->head[1] = __('Ticket');
$table->head[2] = __('Status') . "<br /><em>" . __('Resolution') . "</em>";
$table->head[3] = __('Priority');
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:incidents.php


示例3: print_search_body

function print_search_body($query, $type, $server = '')
{
    global $rr_types;
    $rr = $rr_types;
    unset($rr['basic']);
    echo '<table  cellpadding="2" cellspacing="0">';
    echo '<tr><td><center><form name search method="GET">';
    echo '<input type="text" maxlength="300" name="query" placeholder="Domain/IP" value="' . $query . '">&nbsp;';
    print_select('type', $rr, 'Type', $type);
    echo '<input type="text" maxlength="100" name="server" placeholder="DNS Server" value="' . $server . '">&nbsp;';
    echo '<input type="submit" value="Search">';
    echo '</form><center><br> ';
}
开发者ID:gavinspearhead,项目名称:passivedns,代码行数:13,代码来源:dig.php


示例4: serialize_in_temp

    serialize_in_temp($filter, $config["id_user"]);
    $buttons .= print_button(__('Export to CSV'), '', false, 'window.open(\'' . 'include/export_csv.php?export_csv_inventory=1' . '\')', 'class="sub csv"', true);
    $buttons .= print_report_button("index.php?sec=inventory&sec2=operation/inventories/inventory&search=1&params={$params}", __('Export to PDF') . "&nbsp;");
    $buttons .= '</div>';
    $all_inventory_status = inventories_get_inventory_status();
    array_unshift($all_inventory_status, __("All"));
    $table_search->data[2][0] = print_select($all_inventory_status, 'inventory_status', $inventory_status, '', '', '', true, false, false, __('Status'));
    $params_associated['input_id'] = 'text-associated_user';
    $params_associated['input_name'] = 'associated_user';
    $params_associated['input_value'] = $associated_user;
    $params_associated['title'] = __('Associated user');
    $params_associated['return'] = true;
    $table_search->data[2][1] = user_print_autocomplete_input($params_associated);
    $companies = get_companies();
    array_unshift($companies, __("All"));
    $table_search->data[2][2] = print_select($companies, 'id_company', $id_company, '', '', 0, true, false, false, __('Associated company'), '', 'width: 200px;');
    $table_search->data[3][0] = "&nbsp;";
    $table_search->colspan[3][0] = 4;
    $table_search->data[4][0] = $buttons;
    $table_search->colspan[4][0] = 4;
    print_table($table_search);
    echo '</form>';
}
$page = (int) get_parameter('page', 1);
switch ($mode) {
    case 'tree':
        inventories_print_tree($sql_search, $sql_search_obj_type, $last_update);
        break;
    case 'list':
        inventories_show_list($sql_search, $sql_search_count, $params, $last_update);
        break;
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:inventory_search.php


示例5: StdClass

    $actions[$act['accion']] = $act['accion'];
}
$table_search = new StdClass();
$table_search->width = '100%';
$table_search->class = 'search-table';
$table_search->style = array();
$table_search->colspan = array();
$table_search->style[0] = 'font-weight: bold';
$table_search->style[1] = 'font-weight: bold';
$table_search->style[2] = 'font-weight: bold';
$table_search->style[3] = 'font-weight: bold';
$table_search->data = array();
$table_search->data[0][0] = __('Search');
$table_search->data[0][0] .= print_input_text("text", $text, "", 25, 100, true);
$table_search->data[1][0] = __('Action');
$table_search->data[1][0] .= print_select($actions, 'action', $action, '', __('Any'), '', true, false, true, '', false, "width:218px;");
$table_search->data[2][0] = __('Date from');
$table_search->data[2][0] .= print_input_text('date_from', $date_from, '', 10, 20, true, '');
$table_search->data[3][0] = __('Date to');
$table_search->data[3][0] .= print_input_text('date_to', $date_to, '', 10, 20, true);
$table_search->data[4][0] = print_submit_button(__('Search'), 'search_btn', false, 'class="sub search"', true);
$where_clause = $where;
$where_clause = str_replace(array("\r", "\n"), '', $where_clause);
$table_search->data[5][0] = print_button(__('Export to CSV'), '', false, 'window.open(\'include/export_csv.php?export_csv_audit=1&where_clause=' . str_replace('"', "\\'", $where_clause) . '\')', 'class="sub"', true);
echo "<div class='divform'>";
echo "<form method=post action ='index.php?sec=godmode&sec2=godmode/setup/audit&text={$text}&action={$action}' >";
print_table($table_search);
echo "</form>";
echo "</div>";
// Pagination
$total_events = get_db_sql("SELECT COUNT(ID_sesion) FROM tsesion {$where}");
开发者ID:articaST,项目名称:integriaims,代码行数:31,代码来源:audit.php


示例6: get_incident_types

$types = get_incident_types();
echo "<h1>" . __('CREATE TICKET') . "</h1>";
echo "<div id=msg-str></div>";
// NEW INCIDENT FORM
echo "<div id='form_file'>";
$table->width = '98%';
$table->class = 'search-table';
$table->id = "incident-editor";
$table->style = array();
$table->data = array();
$table->colspan = array();
$table->colspan[0][0] = 2;
$table->colspan[2][0] = 2;
$table->data[0][0] = print_input_text('title', '', '', 100, 0, true, __('Title'));
$table->data[1][0] = print_select($priorities, 'priority_form', 2, '', '', '', true, false, false, __('Priority'));
$table->data[1][1] = print_select($types, 'id_incident_type', '', 'javascript: show_incident_type_fields(1);', 'Select', '', true, 0, true, __('Ticket type'));
$table->data[2][0] = print_textarea('description', 9, 80, '', '', true, __('Description'));
$action = 'index.php?sec=incidents&sec2=operation/incidents_simple/incidents';
$into_form = print_table($table, true);
$into_form .= '<h3><a href="javascript:toggle_file_addition();">' . __('Add a file') . ' (' . __('Optional') . ')<div style="float:left;"><img id="file_moreless" src="images/sort_down.png" border=0>&nbsp;</div></a></h3>';
$into_form .= '<div id="file_addition" style="display:none"><b>' . __('File') . '</b>';
$into_form .= '___FILE___';
$into_form .= print_input_hidden('create_incident', 1, true);
$into_form .= print_input_hidden('group_id', $group_id, true);
$into_form .= print_textarea('file_description', 2, 10, '', '', true, __('Description'));
$into_form .= "</div>";
$into_form .= "<div style='text-align:right;'>";
$into_form .= print_button(__('Create'), 'create_incident', false, '', 'style="margin-top:4px;" class="action_btn sub next"', true);
$into_form .= "</div>";
echo print_input_file_progress($action, $into_form, 'id="form-add-file"', 'sub next', 'button-create_incident', true, '___FILE___');
echo "</div>";
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:incident_new.php


示例7: array

    $newsletters = array();
}
$newsletter_values = array();
foreach ($newsletters as $news) {
    $newsletter_values[$news['id']] = $news['name'];
}
$newsletter_values[0] = __('Any');
$table->data[0][2] = print_select($newsletter_values, "search_newsletter", $search_newsletter, '', '', '', true, 0, true);
$status_values[0] = __('Show enabled addresses');
$status_values[1] = __('Show disabled addresses');
$status_values[2] = __('Any');
$table->data[0][3] = print_select($status_values, "search_status", $search_status, '', '', '', true, 0, true);
$validated_values[0] = __('Validated');
$validated_values[1] = __('Pending');
$validated_values[2] = __('Any');
$table->data[0][4] = print_select($validated_values, "search_validate", $search_validate, '', '', '', true, 0, true);
$table->data[0][5] = print_submit_button(__('Search'), "search_btn", false, 'class="sub search"', true);
echo '<form method="post" action="">';
print_table($table);
echo '</form>';
$sql = "SELECT * FROM tnewsletter_address {$where_clause} ORDER BY datetime DESC";
$issues = get_db_all_rows_sql($sql);
$count_addresses = count($issues);
echo '<h5>' . __('Total addresses: ') . $count_addresses . '</h5>';
$issues = print_array_pagination($issues, "index.php?sec=customers&sec2=operation/newsletter/address_definition&search_text={$search_text}&search_status={$search_status}&search_newsletter={$search_newsletter}");
if ($issues !== false) {
    $table->width = "90%";
    $table->class = "listing";
    $table->data = array();
    $table->style = array();
    $table->style[0] = 'font-weight: bold';
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:address_definition.php


示例8: list_files

}
$table->data[3][0] .= '</span>';
$banners = list_files('images/group_banners/', 'png', 0, true);
$table->data[3][1] = print_select($banners, "banner", $banner, '', 'None', '', true, false, false, __('Banner'));
$table->data[4][0] = print_input_text('soft_limit', $soft_limit, '', 10, 0, true, __('Tickets Soft limit')) . print_help_tip(__("If it's a standard user it shows the maximum nº of tickets for this group that one user can have opened at the same time. If it's a external user it shows the maximum nº of tickets for this group and user that one user can have opened at the same time"), true);
if ($config['enteprise'] == 1) {
    $table->data[4][1] = print_checkbox('enforce_soft_limit', 1, $enforce_soft_limit, true, __('Enforce soft limit'));
}
$table->data[5][0] = print_input_text('hard_limit', $hard_limit, '', 10, 0, true, __('Tickets Hard limit')) . print_help_tip(__("If it's a standard user it shows the nº of maximum tickets for this group, that one user could have in total (open or closed). If it's a external user it shows the nº of maximum tickets for user, for this group, that one user could have in total (open or closed). When this limit is exceeded, the user will receive a notification in the screen when he try to create a ticket, so he won't be able to create any more."), true);
$slas_aux = get_db_all_rows_sql("SELECT id, name FROM tsla ORDER BY name");
$slas = array();
$slas[0] = __("None");
foreach ($slas_aux as $s) {
    $slas[$s["id"]] = $s["name"];
}
$table->data[5][1] = print_select($slas, 'id_sla', $id_sla, '', '', 0, true, false, false, __('Ticket SLA'));
$table->data[6][0] = print_input_text('inventory_name', $inventory_name, '', 25, 0, true, __('Default Inventory object'), false);
$table->data[6][0] .= "<a href='javascript: show_inventory_search(\"\",\"\",\"\",\"\",\"\",\"\");'>" . '&nbsp;&nbsp;' . __('Search parent') . "</a>";
$table->data[6][0] .= print_input_hidden('id_inventory', $id_inventory, true);
$table->data[6][1] = print_input_text('email_from', $email_from, '', 40, 0, true, __('Email from'));
if ($config['enteprise'] == 1) {
    $table->data[7][0] = print_textarea("email_group", 5, 40, $email_group, '', true, __('Email group') . print_help_tip(__("Place each email address in a new line. You can use regular expresions"), true));
}
echo '<form id="form-configurar_grupo" method="post" action="index.php?sec=users&sec2=godmode/grupos/lista_grupos">';
print_table($table);
enterprise_hook("groups_email_queue_form", array($autocreate_user, $grant_access, $send_welcome, $default_company, $welcome_email, $email_queue, $default_profile, $user_level, $incident_type));
echo '<div class="button" style="width: ' . $table->width . '">';
if ($id) {
    print_submit_button(__('Update'), '', false, 'class="sub upd"');
    print_input_hidden('update_group', 1);
    print_input_hidden('id', $id);
开发者ID:keunes,项目名称:integriaims,代码行数:31,代码来源:configurar_grupo.php


示例9: print_select

                                            ?>
					<h3>Add A Service Filter</h3>
					<div class="shaded">
					<form name="host_manage" method="post" action="host_template.php?id=<?php 
                                            echo $_GET['id'];
                                            ?>
&section=autodiscovery">
					<input type="hidden" name="request" value="host_template_add_autodiscovery_service" />
					<input type="hidden" name="host_template_id" value="<?php 
                                            echo $_GET['id'];
                                            ?>
">

					<p>
					 <strong>Protocol: </strong><?php 
                                            print_select("host_manage[protocol]", $protocol_select, "value", "option");
                                            ?>
 <strong>Port: (Required) </strong><input type="text" size="4" maxlength="40" name="host_manage[port]" />
					</p>
					<p>
					<strong>Name: </strong><input type="text" name="host_manage[name]" size="40" maxlength="255" /><br />
					<?php 
                                            echo $lilac->element_desc("autodiscovery_service_filter_name", "host_template_autodiscovery");
                                            ?>
					</p>
					<p>
					<strong>Product: </strong><input type="text" name="host_manage[product]" size="40" maxlength="255" /> <strong>Version: </strong><input type="text" name="host_manage[version]" size="4" maxlength="255" /><br />
					<?php 
                                            echo $lilac->element_desc("autodiscovery_service_filter_product", "host_template_autodiscovery");
                                            ?>
					</p>
开发者ID:Evolix,项目名称:lilac,代码行数:31,代码来源:host_template.php


示例10: newai_import

function newai_import($fields, $mode = 'table')
{
    global $common_html, $html_etc;
    global $return_sql_line, $db;
    global $columns;
    //print_R($columns);
    global $showlistfieldlist, $showlistfieldlist_key;
    global $foreignkey, $uniquekey, $primarykey;
    $tablename = $fields['table']['name'];
    $SQL = $fields['sql']['SQL'];
    $init = explode('_', $_GET['action']);
    $mark = $init[1];
    if ($uniquekey == '') {
        $uniquekey = $primarykey;
    }
    //print $uniquekey;
    print "<FORM name=form1 action=\"?action=import_" . $mark . "_data\" method=post encType=multipart/form-data>\n";
    print "<input type=hidden name=hidden_str value=''>\n";
    print "<script >";
    print "\nfunction temp_function()\n{\n\n\tvar selectid_str=\"\";\n\t/*\n\tfor(i=0;i<document.all(\"selectid\").length;i++)\n\t\t{\n\n\t\tel=document.all(\"selectid\").item(i);\n\t\tif(el.checked)\n\t\t{  val=el.value;\n         selectid_str+=val + \",\";\n\t\t}\n\t}*/\n\tform1.hidden_str.value=selectid_str;\n\tform1.submit();\n\tvar sbtn=document.getElementsByName('submitbtn');\n\tfor(i=0;i<sbtn.length;i++)\n\t{\n\t\tsbtn[i].value='提交中';\n\t\tsbtn[i].disabled=true;\n\t}\n}\n";
    print "</script>";
    global $tablewidth, $primarykey, $primarykey_index;
    $tablewidth = $tablewidth != "" ? $tablewidth : 450;
    table_begin($tablewidth);
    print_title("数据导入操作,唯一索引限制,多个表示不能同时重复", 3);
    //print_R($common_html['common_html']['contentimport']);
    if ($foreignkey != "") {
        $foreignkey_array = explode(':', $foreignkey);
        $columns_parent = returntablecolumn($foreignkey_array[1]);
        print_R($columns_parent);
        print_select('选择考试名称', $columns[(string) $foreignkey_array[3]], $value, $foreignkey_array[1], $columns_parent[(string) $foreignkey_array[3]], $columns_parent[(string) $foreignkey_array[2]], $colspan = 3, $columns_parent[(string) $foreignkey_array[4]]);
        print_hidden($columns[(string) $foreignkey_array[3]], 'foreignkey');
    }
    print "<TR class=TableData>\n";
    print "<TD noWrap align=middle width=50>唯一索引:</TD>\n";
    print "<TD colspan=2>";
    $uniquekey_array = explode(',', $uniquekey);
    $FieldList = array();
    for ($i = 0; $i < sizeof($uniquekey_array); $i++) {
        $uniquekey_KEY = $uniquekey_array[$i];
        if ($uniquekey_KEY != "") {
            $uniquekey_KEY_ADD = explode(':', $uniquekey_KEY);
            if ($uniquekey_KEY_ADD[1] == "userid") {
                $FieldList[] = $columns["" . $uniquekey_KEY_ADD[0] . ""] . "(自动生成)";
            } else {
                if ($uniquekey_KEY_ADD[1] == "username") {
                    $FieldList[] = $columns["" . $uniquekey_KEY_ADD[0] . ""] . "(自动生成)";
                } else {
                    if ($uniquekey_KEY_ADD[1] == "datetime") {
                        $FieldList[] = $columns["" . $uniquekey_KEY_ADD[0] . ""] . "(自动生成)";
                    } else {
                        $tablenamelang = returnsystemlang($tablename);
                        $FieldList[] = $tablenamelang[$tablename][$columns["" . $uniquekey_KEY_ADD[0] . ""]];
                    }
                }
            }
        }
    }
    //print_R($uniquekey_array);
    //输出不较验主键时的选择列表
    $唯一字段显示文本 = join(',', $FieldList);
    print $唯一字段显示文本;
    print "</TD>\n";
    print "</TR>\n";
    global $importgroup;
    if ($importgroup != "") {
        //print $importgroup;
        print_title('选择要导入的组', 3);
        $importgroupArray = explode(':', $importgroup);
        $showfieldIndex = $importgroupArray[0];
        $showFieldName = $columns[$showfieldIndex];
        $showfieldTableName = $importgroupArray[1];
        $showfieldColumns = returntablecolumn($showfieldTableName);
        $showfieldIndexValue = $importgroupArray[2];
        $showfieldIndexName = $importgroupArray[3];
        $showfieldIndexValue = $showfieldColumns[$showfieldIndexName];
        $showfieldIndexName = $showfieldColumns[$showfieldIndexName];
        print_select('选择要导入的组:', $showFieldName, $value = '', $showfieldTableName, $showfieldIndexValue, $showfieldIndexName, $colspan = 2, $setfieldname = '', $setfieldvalue = '', $setfieldboolean = '');
    }
    /*
    if($tablename == 'customer'){
    	print_title('请您先<a style="color:red;" href="xls_template/客户信息模板.xls">下载模板</a>,编辑完成再进行导入。',3);
    }elseif($tablename == 'supply'){
    	print_title('请您先<a style="color:red;" href="xls_template/供应商信息模板.xls">下载模板</a>,编辑完成再进行导入。',3);
    }elseif($tablename == 'product'){
    	print_title('请您先<a style="color:red;" href="xls_template/商品信息模板.xls">下载模板</a>,编辑完成再进行导入。',3);
    }else{
    	print_title('导入EXCEL格式数据文件,请您直接从导出功能模块下载导入模板',3);
    }
    */
    print_title('导入EXCEL格式数据文件,请您直接从导出功能模块下载导入模板', 3);
    print "<TR class=TableData height=50>\n";
    print "<TD noWrap align=middle >EXCEL格式文件</TD>\n";
    print "<TD colspan=2><input name='uploadfileXLS' type=file size=25 class=SmallInput></TD>\n";
    print "</TR>\n";
    //print_title('导入CSV格式数据文件',3);
    //print "<TR class=TableData height=50>\n";
    //print "<TD noWrap align=middle >MS CSV文件</TD>\n";
    //print "<TD colspan=2><input name='uploadfile' type=file size=25 class=SmallInput></TD>\n";
    //print "</TR>\n";
//.........这里部分代码省略.........
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:101,代码来源:newai_import.php


示例11: editfeeds

 function editfeeds()
 {
     global $purge_intervals;
     global $update_intervals;
     $feed_ids = $this->dbh->escape_string($_REQUEST["ids"]);
     print_notice("Enable the options you wish to apply using checkboxes on the right:");
     print "<p>";
     print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"ids\" value=\"{$feed_ids}\">";
     print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-feeds\">";
     print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"batchEditSave\">";
     print "<div class=\"dlgSec\">" . __("Feed") . "</div>";
     print "<div class=\"dlgSecCont\">";
     /* Category */
     if (get_pref('ENABLE_FEED_CATS')) {
         print __('Place in category:') . " ";
         print_feed_cat_select("cat_id", false, 'disabled="1" dojoType="dijit.form.Select"');
         $this->batch_edit_cbox("cat_id");
     }
     /* FTS Stemming Language */
     if (DB_TYPE == "pgsql") {
         print "<hr/>";
         print __('Language:') . " ";
         print_select("feed_language", "", $this::$feed_languages, 'disabled="1" dojoType="dijit.form.Select"');
         $this->batch_edit_cbox("feed_language");
     }
     print "</div>";
     print "<div class=\"dlgSec\">" . __("Update") . "</div>";
     print "<div class=\"dlgSecCont\">";
     /* Update Interval */
     print_select_hash("update_interval", "", $update_intervals, 'disabled="1" dojoType="dijit.form.Select"');
     $this->batch_edit_cbox("update_interval");
     /* Purge intl */
     if (FORCE_ARTICLE_PURGE == 0) {
         print "<br/>";
         print __('Article purging:') . " ";
         print_select_hash("purge_interval", "", $purge_intervals, 'disabled="1" dojoType="dijit.form.Select"');
         $this->batch_edit_cbox("purge_interval");
     }
     print "</div>";
     print "<div class=\"dlgSec\">" . __("Authentication") . "</div>";
     print "<div class=\"dlgSecCont\">";
     print "<input dojoType=\"dijit.form.TextBox\"\n\t\t\tplaceHolder=\"" . __("Login") . "\" disabled=\"1\"\n\t\t\tname=\"auth_login\" value=\"\">";
     $this->batch_edit_cbox("auth_login");
     print "<hr/> <input dojoType=\"dijit.form.TextBox\" type=\"password\" name=\"auth_pass\"\n\t\t\tplaceHolder=\"" . __("Password") . "\" disabled=\"1\"\n\t\t\tvalue=\"\">";
     $this->batch_edit_cbox("auth_pass");
     print "</div>";
     print "<div class=\"dlgSec\">" . __("Options") . "</div>";
     print "<div class=\"dlgSecCont\">";
     print "<input disabled=\"1\" type=\"checkbox\" name=\"private\" id=\"private\"\n\t\t\tdojoType=\"dijit.form.CheckBox\">&nbsp;<label id=\"private_l\" class='insensitive' for=\"private\">" . __('Hide from Popular feeds') . "</label>";
     print "&nbsp;";
     $this->batch_edit_cbox("private", "private_l");
     print "<br/><input disabled=\"1\" type=\"checkbox\" id=\"include_in_digest\"\n\t\t\tname=\"include_in_digest\"\n\t\t\tdojoType=\"dijit.form.CheckBox\">&nbsp;<label id=\"include_in_digest_l\" class='insensitive' for=\"include_in_digest\">" . __('Include in e-mail digest') . "</label>";
     print "&nbsp;";
     $this->batch_edit_cbox("include_in_digest", "include_in_digest_l");
     print "<br/><input disabled=\"1\" type=\"checkbox\" id=\"always_display_enclosures\"\n\t\t\tname=\"always_display_enclosures\"\n\t\t\tdojoType=\"dijit.form.CheckBox\">&nbsp;<label id=\"always_display_enclosures_l\" class='insensitive' for=\"always_display_enclosures\">" . __('Always display image attachments') . "</label>";
     print "&nbsp;";
     $this->batch_edit_cbox("always_display_enclosures", "always_display_enclosures_l");
     print "<br/><input disabled=\"1\" type=\"checkbox\" id=\"hide_images\"\n\t\t\tname=\"hide_images\"\n\t\t\tdojoType=\"dijit.form.CheckBox\">&nbsp;<label class='insensitive' id=\"hide_images_l\"\n\t\t\tfor=\"hide_images\">" . __('Do not embed images') . "</label>";
     print "&nbsp;";
     $this->batch_edit_cbox("hide_images", "hide_images_l");
     print "<br/><input disabled=\"1\" type=\"checkbox\" id=\"cache_images\"\n\t\t\tname=\"cache_images\"\n\t\t\tdojoType=\"dijit.form.CheckBox\">&nbsp;<label class='insensitive' id=\"cache_images_l\"\n\t\t\tfor=\"cache_images\">" . __('Cache images locally') . "</label>";
     print "&nbsp;";
     $this->batch_edit_cbox("cache_images", "cache_images_l");
     print "<br/><input disabled=\"1\" type=\"checkbox\" id=\"mark_unread_on_update\"\n\t\t\tname=\"mark_unread_on_update\"\n\t\t\tdojoType=\"dijit.form.CheckBox\">&nbsp;<label id=\"mark_unread_on_update_l\" class='insensitive' for=\"mark_unread_on_update\">" . __('Mark updated articles as unread') . "</label>";
     print "&nbsp;";
     $this->batch_edit_cbox("mark_unread_on_update", "mark_unread_on_update_l");
     print "</div>";
     print "<div class='dlgButtons'>\n\t\t\t<button dojoType=\"dijit.form.Button\"\n\t\t\t\tonclick=\"return dijit.byId('feedEditDlg').execute()\">" . __('Save') . "</button>\n\t\t\t<button dojoType=\"dijit.form.Button\"\n\t\t\tonclick=\"return dijit.byId('feedEditDlg').hide()\">" . __('Cancel') . "</button>\n\t\t\t</div>";
     return;
 }
开发者ID:AHinMaine,项目名称:ttrss,代码行数:70,代码来源:feeds.php


示例12: array

$table->class = 'search-table-button';
$table->colspan = array();
$table->data = array();
$incident_reporter_options[0] = __('Disabled');
$incident_reporter_options[1] = __('Enabled');
$language_config = get_db_value('value', 'tconfig', 'token', 'language_code');
$table->data[0][0] = print_select_from_sql('SELECT id_language, name FROM tlanguage ORDER BY name', 'language_code', $language_config, '', '', '', true, false, false, __('Language'));
$table->data[0][1] = print_input_text("sitename", $config["sitename"], '', 30, 50, true, __('Sitename'));
$error_log_options[0] = __('Disabled');
$error_log_options[1] = __('Enabled');
$table->data[1][0] = print_checkbox("error_log", $error_log_options, $config["error_log"], true, __('Enable error log') . print_help_tip(__("This errorlog is on /integria.log"), true));
$table->data[1][1] = print_input_text("timezone", $config["timezone"], '', 15, 30, true, __('Timezone for integria'));
$table->data[2][0] = print_textarea("api_acl", 2, 1, $config["api_acl"], 'style="max-width: 280px;"', true, __('List of IP with access to API') . print_help_tip(__("List of IP (separated with commas which can access to the integria API. Use * for any address (INSECURE!)"), true), false);
$table->data[2][1] = print_input_password("api_password", $config["api_password"], '', 30, 255, true, __('API password'));
$days_of_week = get_days_of_week();
$table->data[4][0] = print_select($days_of_week, "first_day_week", $config["first_day_week"], '', '', '', true, 0, false, __('First day of the week'));
$table->data[4][1] = print_input_text("url_updatemanager", $config["url_updatemanager"], '', 35, 255, true, __('URL update manager'));
$table->data[5][0] = print_input_text("loginhash_pwd", $config["loginhash_pwd"], '', 30, 255, true, __('Loginhash password'));
$table->data[5][1] = print_checkbox("access_protocol", 1, $config["access_protocol"], true, __('Enable HTTPS access'));
$table->data[6][0] = print_input_text("access_port", $config["access_port"], '', 10, 255, true, __('Access port') . print_help_tip(__("Leave blank to use default port (80)"), true));
$table->data[6][1] = print_input_text("access_public", $config["access_public"], '', 30, 50, true, __('Public access to server') . print_help_tip(__("Public IP or name for the server, for example (23.45.67.3 or mydomain.com)"), true));
$csv_standard_encoding = !isset($config['csv_standard_encoding']) ? false : (bool) $config['csv_standard_encoding'];
$table->data[7][0] = print_label(__('CSV encoding type'), '', '', true);
$table->data[7][0] .= __('Excel') . '&nbsp;' . print_radio_button('csv_standard_encoding', 0, '', $csv_standard_encoding, true);
$table->data[7][0] .= print_help_tip(__("The Excel type may not be compatible with other applications"), true);
$table->data[7][0] .= '&nbsp;&nbsp;' . __('Other') . '&nbsp;' . print_radio_button('csv_standard_encoding', 1, '', $csv_standard_encoding, true);
$table->data[7][1] = print_checkbox("enable_update_manager", 1, $config["enable_update_manager"], true, __('Enable update manager updates'));
$table->data[8][0] = print_input_text("max_direct_download", $config["max_direct_download"], '', 10, 255, true, __('Maximum direct download size (MB)'));
$table->data[8][1] = print_input_text("max_file_size", $config["max_file_size"], '', 10, 255, true, __('Max. Upload file size'));
echo "<form name='setup' method='post'>";
print_table($table);
开发者ID:articaST,项目名称:integriaims,代码行数:31,代码来源:setup.php


示例13: print_help_tip

$table->data['id_combo_value'][0] .= print_help_tip(__("Set values separated by comma"), true);
// Add values
if ($global_field) {
    $table->data['id_combo_value'][1] = print_input_text('add_combo_value', $add_combo_value, '', 45, 0, true, __('Add values')) . print_help_tip(__("Set values separated by comma"), true);
}
// Linked values
$sql = "SELECT id, label\n\t\tFROM tincident_type_field\t\n\t\tWHERE id_incident_type = {$id_incident_type}\n\t\t\tAND type = 'linked'";
$parents_result = get_db_all_rows_sql($sql);
if ($parents_result == false) {
    $parents_result = array();
}
$parents = array();
foreach ($parents_result as $result) {
    $parents[$result['id']] = $result['label'];
}
$table->data['id_parent_value'][0] = print_select($parents, 'parent', $parent, '', __('Select parent'), '0', true, 0, true, __("Parent"), $global_field);
$table->data['id_linked_value'][0] = print_textarea('linked_value', 15, 1, $linked_value, '', true, __('Linked value') . integria_help("linked_values", true), $global_field);
if ($global_field) {
    $table->data['id_linked_value'][1] = "";
    $table->data['id_linked_value'][2] = print_textarea('add_linked_value', 15, 1, $add_linked_value, '', true, __('Add values') . integria_help("linked_values", true));
}
// Buttons
if ($add_field) {
    $button = print_input_hidden('add_field', 1, true);
    $button .= print_submit_button(__('Create'), 'create_btn', false, 'class="sub next"', true);
} else {
    if ($update_field) {
        if (!$global_field && ($type != 'linked' || $type != 'combo') || $global_field && ($type == 'linked' || $type == 'combo')) {
            $button = print_input_hidden('update_field', 1, true);
            $button .= print_input_hidden('add_field', 0, true);
            $button .= print_input_hidden('id_field', $id_field, true);
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:incident_type_field.php


示例14: array

}
echo $result_msg;

$table = new stdClass;
$table->width = '100%';
$table->class = 'search-table-button';
$table->data = array ();
$table->colspan = array ();
$table->colspan[1][0] = 2;
$table->colspan[2][0] = 2;
	
$table->data[0][0] = print_input_text ('name', $name, '', 40, 255, true, __('Name'));

$groups = get_user_groups ($config['id_user'], "VR");
$groups[0] = __('None');
$table->data[0][1] = print_select ($groups, "id_group", $id_group, '', '', 0, true, false, false, __('Group'));

$table->data[1][0] = print_textarea ('sql', 10, 100, $sql, '', true, __('Report SQL sentence'));

if (dame_admin ($config['id_user'])) {
	if ($id) {
			$button = print_input_hidden ('update_report', 1, true);
			$button .= print_input_hidden ('id', $id, true);
			$button .= print_submit_button (__('Update'), 'update', false, 'class="sub upd"', true);
	} else {
		$button = print_input_hidden ('create_report', 1, true);
		$button .= print_submit_button (__('Create'), 'create', false, 'class="sub create"', true);
	}
}

echo '<form id="form-inventory_report" method="post">';
开发者ID:articaST,项目名称:integriaims,代码行数:31,代码来源:inventory_reports_detail.php


示例15: get_db_all_rows_sql

	$available_links = get_db_all_rows_sql("SELECT `id`,`name` FROM tinventory WHERE id NOT IN ($id)");
} else {
	$available_links = get_db_all_rows_sql("SELECT `id`,`name` FROM tinventory WHERE id NOT IN ($ids_str)");
}

if ($available_links == false) {
	$available_links = array();
}

$available_inventory = array();
foreach ($available_links as $key => $inventory) {
	$available_inventory[$inventory['id']] = $inventory['name'];
}

if ($write_permission) {
	$url = "index.php?sec=inventory&sec2=operation/inventories/inventory_relationship&add_link=1&id_src=$id&id=$id";

	$data[0] = "<form name=dataedit method=post action='" . $url . "'>";
	$data[0] .= print_select($available_inventory, "link", '', '', __("Select inventory"), 0, true);

	$data[1] = "";

	$data[2] = print_input_image("add_link", "images/add.png", 1, '', true);
	$data[2] .= "</form>";

	array_push ($table->data, $data);
}

print_table($table);
?>
开发者ID:articaST,项目名称:integriaims,代码行数:30,代码来源:inventory_relationship.php


示例16: print_select

function print_select($pid, $depth) {
	global $all_content;

	if (!isset($all_content[$pid])) {
		return;
	}

	foreach ($all_content[$pid] as $row) {
		if (isset($all_content[$row['content_id']])) {
			echo '<option value="'.$row['content_id'].'"';
			if ($_GET['ctid'] == $row['content_id']) {
				echo ' selected="selected"';
			}
			echo '>';
			echo str_repeat('&nbsp;', $depth * 5);
			echo $row['title'].'</option>';

			print_select($row['content_id'], $depth+1);
		}
	}
}
开发者ID:radiocontrolled,项目名称:ATutor,代码行数:21,代码来源:index.php


示例17: array

$row = array();
$row[] = print_input_text("smtp_user", $config["smtp_user"], '', 25, 200, true, __('SMTP User'));
$row[] = print_input_text("smtp_pass", $config["smtp_pass"], '', 25, 200, true, __('SMTP Password'));
$row[] = print_button(__("Test"), 'test_smtp', false, '', 'class="sub"', true) . '<div id="test_smtp_images" style="display: inline;"></div>';
$table->data[] = $row;
$row = array();
$row[] = print_input_text("smtp_queue_retries", $config["smtp_queue_retries"], '', 5, 10, true, __('SMTP Queue retries') . print_help_tip(__("This are the number of attempts the mail queue try to send the mail. Should be high (20-30) if your internet connection have frequent downtimes and near zero if its stable"), true));
$row[] = print_input_text("max_pending_mail", $config["max_pending_mail"], '', 10, 255, true, __('Max pending mail') . print_help_tip(__("Maximum number of queued emails. When this number is exceeded, an alert is activated"), true));
$row[] = print_input_text("batch_newsletter", $config["batch_newsletter"], '', 4, 255, true, __('Max. emails sent per execution') . print_help_tip(__("This means, in each execution of the batch external process (integria_cron). If you set your cron to execute each hour in each execution of that process will try to send this ammount of emails. If you set the cron to run each 5 min, will try this number of mails."), true));
$table->data[] = $row;
$row = array();
$row[] = "<br /><h4>" . __("POP/IMAP Parameters") . "</h4>";
$tabl 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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