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


PHP html_combobox函数代码示例

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


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

示例1: print_info_box

if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
			  <table width="100%" border="0" cellpadding="6" cellspacing="0">
			    <?php 
html_separator();
?>
			    <?php 
html_titleline(gettext("WebGUI"));
?>
					<?php 
html_inputbox("username", gettext("Username"), $pconfig['username'], gettext("It's recommended to change the default username and password for accessing the WebGUI, enter the username here."), false, 21);
?>
					<?php 
html_combobox("webguiproto", gettext("Protocol"), $pconfig['webguiproto'], array("http" => "HTTP", "https" => "HTTPS"), gettext("Select Hypertext Transfer Protocol (HTTP) or Hypertext Transfer Protocol Secure (HTTPS) for the WebGUI."), false, false, "webguiproto_change()");
?>
					<?php 
html_inputbox("webguiport", gettext("Port"), $pconfig['webguiport'], gettext("Enter a custom port number for the WebGUI if you want to override the default (80 for HTTP, 443 for HTTPS)."), false, 6);
?>
					<?php 
html_inputbox("webguihostsallow", gettext("Hosts allow"), $pconfig['webguihostsallow'], gettext("Space delimited set of IP or CIDR notation that permitted to access the WebGUI. (empty is the same network of LAN interface)"), false, 60);
?>
					<?php 
html_textarea("certificate", gettext("Certificate"), $pconfig['certificate'], gettext("Paste a signed certificate in X.509 PEM format here."), true, 65, 7, false, false);
?>
					<?php 
html_textarea("privatekey", gettext("Private key"), $pconfig['privatekey'], gettext("Paste an private key in PEM format here."), true, 65, 7, false, false);
?>
					<?php 
html_languagecombobox("language", gettext("Language"), $pconfig['language'], gettext("Select the language of the WebGUI."), "", false);
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:system.php

示例2: array

$options = array(0 => gettext("Disabled"), 1 => gettext("Minimum performance, Minimum acoustic output"), 64 => gettext("Medium acoustic output"), 127 => gettext("Maximum performance, maximum acoustic output"));
?>
					<?php 
html_combobox("acoustic", gettext("Acoustic level"), $pconfig['acoustic'], $options, gettext("This allows you to set how loud the drive is while it's operating."), false);
?>
					<?php 
html_checkbox("smart_enable", gettext("S.M.A.R.T."), !empty($pconfig['smart_enable']) ? true : false, gettext("Activate S.M.A.R.T. monitoring for this device."), "", false, "smart_enable_change()");
?>
					<?php 
html_inputbox("smart_extraoptions", gettext("S.M.A.R.T. extra options"), $pconfig['smart_extraoptions'], gettext("Extra options (usually empty).") . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://smartmontools.sourceforge.net/man/smartd.conf.5.html"), false, 40);
?>
					<?php 
$options = get_fstype_list();
?>
					<?php 
html_combobox("fstype", gettext("Preformatted file system"), $pconfig['fstype'], $options, gettext("This allows you to set the file system for preformatted hard disks containing data.") . " " . sprintf(gettext("Leave '%s' for unformated disks and format them using <a href='%s'>format</a> menu."), "Unformated", "disks_init.php"), false);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo isset($uuid) && FALSE !== $cnid ? gettext("Save") : gettext("Add");
?>
" onclick="enable_change(true)" />
					<input name="Cancel" type="submit" class="formbtn" value="<?php 
echo gettext("Cancel");
?>
" />
					<input name="uuid" type="hidden" value="<?php 
echo $pconfig['uuid'];
?>
" />
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:disks_manage_edit.php

示例3: html_inputbox

?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_inputbox("host", gettext("Host"), $host, gettext("Destination host name or IP number."), true, 20);
?>
					<?php 
html_interfacecombobox("interface", gettext("Interface"), !empty($interface) ? $interface : "", gettext("Use the following IP address as the source address in outgoing packets."), true);
?>
					<?php 
$a_count = array();
for ($i = 1; $i <= 10; $i++) {
    $a_count[$i] = $i;
}
?>
					<?php 
html_combobox("count", gettext("Count"), $count, $a_count, gettext("Stop after sending (and receiving) N packets."), true);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Ping");
?>
" />
				</div>
				<?php 
if ($do_ping) {
    echo sprintf("<div id='cmdoutput'>%s</div>", gettext("Command output:"));
    echo '<pre class="cmdoutput">';
    //ob_end_flush();
    $ifaddr = get_interface_addr($interface);
    if ($ifaddr) {
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:diag_ping.php

示例4: html_inputbox

html_inputbox("src", gettext("Source"), $pconfig['src'], gettext("To match any IP address leave this field empty."), false, 40);
?>
					<?php 
html_inputbox("srcport", gettext("Source port"), $pconfig['srcport'], "", false, 5);
?>
					<?php 
html_inputbox("dst", gettext("Destination"), $pconfig['dst'], gettext("To match any IP address leave this field empty."), false, 40);
?>
					<?php 
html_inputbox("dstport", gettext("Destination port"), $pconfig['dstport'], "", false, 5);
?>
					<?php 
html_inputbox("extraoptions", gettext("Options"), $pconfig['extraoptions'], "", false, 40);
?>
					<?php 
html_combobox("direction", gettext("Direction"), $pconfig['direction'], array("in" => gettext("In"), "out" => gettext("Out"), "" => gettext("Any")), "", true);
?>
					<?php 
html_checkbox("log", gettext("Log"), !empty($pconfig['log']) ? true : false, gettext("Log packets that are handled by this rule to syslog."), "", false);
?>
					<?php 
html_inputbox("desc", gettext("Description"), $pconfig['desc'], gettext("You may enter a description here for your reference."), false, 40);
?>
        </table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo isset($uuid) && FALSE !== $cnid ? gettext("Save") : gettext("Add");
?>
" />
					<input name="Cancel" type="submit" class="formbtn" value="<?php 
echo gettext("Cancel");
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:system_firewall_edit.php

示例5: array

	        </select>
	      </td>
	    </tr>
			*/
?>
					<?php 
$options = array("AES" => "AES-XTS", "AES-CBC" => "AES-CBC", "Blowfish" => "Blowfish", "Camellia" => "Camellia", "3DES" => "3DES");
?>
					<?php 
html_combobox("ealgo", gettext("Encryption algorithm"), $pconfig['ealgo'], $options, gettext("Encryption algorithm to use."), true, false, "ealgo_change()");
?>
					<?php 
$options = array("" => gettext("Default"), 128 => "128", 192 => "192", 256 => "256", 448 => "448");
?>
					<?php 
html_combobox("keylen", gettext("Key length"), $pconfig['keylen'], $options, gettext("Key length to use with the given cryptographic algorithm.") . " " . gettext("The default key lengths are: 128 for AES, 128 for Blowfish, 128 for Camellia and 192 for 3DES."), false);
?>
					<?php 
html_passwordconfbox("passphrase", "passphraseconf", gettext("Passphrase"), "", "", "", true);
?>
					<?php 
html_checkbox("init", gettext("Initialize"), $pconfig['init'] ? true : false, gettext("Initialize and encrypt disk."), gettext("This will erase ALL data on your disk! Do not use this option if you want to add an existing encrypted disk."));
?>
			  </table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Add");
?>
" />
					<input name="Cancel" type="submit" class="formbtn" value="<?php 
echo gettext("Cancel");
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:disks_crypt_edit.php

示例6: print_input_errors

				<?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Swap memory"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_combobox("type", gettext("Type"), $pconfig['type'], array("file" => gettext("File"), "device" => gettext("Device")), "", true, false, "type_change()");
?>
					<?php 
html_mountcombobox("mountpoint", gettext("Mount point"), $pconfig['mountpoint'], gettext("Select mount point where to create the swap file."), true);
?>
					<?php 
html_inputbox("size", gettext("Size"), $pconfig['size'], gettext("The size of the swap file in MB."), true, 10);
?>
					<?php 
html_inputbox("devicespecialfile", gettext("Device"), $pconfig['devicespecialfile'], sprintf(gettext("Name of the device to use as swap device, e.g. %s."), "/dev/ad0s3"), true, 20);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save");
?>
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:system_swap.php

示例7: print_input_errors

				<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
				<?php 
if (file_exists($d_sysrebootreqd_path)) {
    print_info_box(get_std_save_message(0));
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_inputbox("name", gettext("Name"), $pconfig['name'], "", true, 20, isset($uuid) && false !== $cnid);
?>
					<?php 
html_combobox("type", gettext("Type"), $pconfig['type'], array("stripe" => gettext("Stripe"), "mirror" => gettext("Mirror"), "raidz1" => gettext("Single-parity RAID-Z"), "raidz2" => gettext("Double-parity RAID-Z"), "raidz3" => gettext("Triple-parity RAID-Z"), "spare" => gettext("Hot Spare"), "cache" => gettext("Cache"), "log" => gettext("Log"), "log-mirror" => gettext("Log (mirror)")), "", true, isset($uuid) && false !== $cnid);
?>
					<?php 
$a_device = array();
foreach ($a_disk as $diskv) {
    $zfsgpt = !empty($diskv['zfsgpt']) ? $diskv['zfsgpt'] : "";
    if (isset($uuid) && false !== $cnid && !(is_array($pconfig['device']) && in_array($diskv['devicespecialfile'], $pconfig['device']))) {
        continue;
    }
    if ((!isset($uuid) || isset($uuid) && false === $cnid) && false !== strip_exists($diskv['devicespecialfile'], $a_vdevice)) {
        continue;
    }
    $a_device[$diskv['devicespecialfile'] . $zfsgpt] = htmlspecialchars("{$diskv['name']}{$zfsgpt} ({$diskv['size']}, {$diskv['desc']})");
}
?>
					<?php 
开发者ID:BillTheBest,项目名称:OpenNAS,代码行数:31,代码来源:disks_zfs_zpool_vdevice_edit.php

示例8: html_checkbox

}
?>
					<?php 
html_checkbox("disablebeep", gettext("System Beep"), !empty($pconfig['disablebeep']) ? true : false, gettext("Disable speaker beep on startup and shutdown"));
?>
					<?php 
html_checkbox("tune_enable", gettext("Tuning"), !empty($pconfig['tune_enable']) ? true : false, gettext("Enable tuning of some kernel variables"));
?>
					<?php 
html_checkbox("powerd", gettext("Power Daemon"), !empty($pconfig['powerd']) ? true : false, gettext("Enable the system power control utility"), gettext("The powerd utility monitors the system state and sets various power control options accordingly."), false, "powerd_change()");
?>
					<?php 
$a_pwmode = array("maximum" => gettext("maximum (highest performance)"), "hiadaptive" => gettext("hiadaptive (high performance)"), "adaptive" => gettext("adaptive (low power consumption)"), "minimum" => gettext("minimum (power saving)"));
?>
					<?php 
html_combobox("pwmode", gettext("Power Mode"), $pconfig['pwmode'], $a_pwmode, gettext("Controls power consumption."), false);
?>
					<?php 
$clocks = @exec("/sbin/sysctl -q -n dev.cpu.0.freq_levels");
$a_freq = array();
if (!empty($clocks)) {
    $a_tmp = preg_split("/\\s/", $clocks);
    foreach ($a_tmp as $val) {
        list($freq, $tmp) = preg_split("/\\//", $val);
        if (!empty($freq)) {
            $a_freq[] = $freq;
        }
    }
}
?>
					<?php 
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:system_advanced.php

示例9: htmlspecialchars

echo htmlspecialchars($pconfig['serverdesc']);
?>
" />
              <br /><?php 
echo gettext("Server description. This can usually be left blank.");
?>
            </td>
          </tr>
          <?php 
html_combobox("doscharset", gettext("Dos charset"), $pconfig['doscharset'], array("CP437" => "CP437", "CP850" => "CP850", "CP852" => "CP852", "CP866" => "CP866", "CP932" => "CP932", "CP1251" => "CP1251", "ASCII" => "ASCII"), "", false);
?>
          <?php 
html_combobox("unixcharset", gettext("Unix charset"), $pconfig['unixcharset'], array("UTF-8" => "UTF-8", "iso-8859-1" => "iso-8859-1", "iso-8859-15" => "iso-8859-15", "gb2312" => "gb2312", "EUC-JP" => "EUC-JP", "ASCII" => "ASCII"), "", false);
?>
          <?php 
html_combobox("loglevel", gettext("Log Level"), $pconfig['loglevel'], array("1" => gettext("Minimum"), "2" => gettext("Normal"), "3" => gettext("Full"), "10" => gettext("Debug")), "", false);
?>
          <tr>
            <td width="22%" valign="top" class="vncell"><?php 
echo gettext("Local Master Browser");
?>
</td>
            <td width="78%" class="vtable">
              <select name="localmaster" class="formfld" id="localmaster">
              <?php 
$types = array(gettext("Yes"), gettext("No"));
$vals = explode(" ", "yes no");
?>
              <?php 
$j = 0;
for ($j = 0; $j < count($vals); $j++) {
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_samba.php

示例10: html_inputbox

html_inputbox("port", gettext("Port"), $pconfig['port'], gettext("Port to listen on. Default iTunes port is 3689."), true, 5);
?>
					<?php 
html_filechooser("dbdir", gettext("Database directory"), $pconfig['dbdir'], gettext("Location where the content database file will be stored."), $g['media_path'], true, 60);
?>
					<?php 
html_folderbox("content", gettext("Content"), $pconfig['content'], gettext("Location of the files to share."), $g['media_path'], true);
?>
					<?php 
html_inputbox("rescaninterval", gettext("Rescan interval"), $pconfig['rescaninterval'], gettext("Scan file system every N seconds to see if any files have been added or removed. Set to 0 to disable background scanning. If background rescanning is disabled, a scan can still be forced from the status page of the administrative web interface."), false, 5);
?>
					<?php 
html_checkbox("alwaysscan", gettext("Always scan"), $pconfig['alwaysscan'] ? true : false, "", gettext("Whether scans should be skipped if there are no users connected. This allows the drive to spin down when no users are connected."), false);
?>
					<?php 
html_combobox("scantype", gettext("Scan type"), $pconfig['scantype'], array("0" => gettext("Normal"), "1" => gettext("Aggressive"), "2" => gettext("Painfully aggressive")), "", false);
?>
					<?php 
html_separator();
?>
					<?php 
html_titleline(gettext("Administrative WebGUI"));
?>
					<?php 
html_passwordbox("admin_pw", gettext("Password"), $pconfig['admin_pw'], sprintf("%s %s", gettext("Password for the administrative pages."), gettext("Default user name is 'admin'.")), true, 20);
?>
					<?php 
$if = get_ifname($config['interfaces']['lan']['if']);
$ipaddr = get_ipaddr($if);
$url = htmlspecialchars("http://{$ipaddr}:{$pconfig['port']}");
$text = "<a href='{$url}' target='_blank'>{$url}</a>";
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_daap.php

示例11: html_inputbox

html_inputbox("name", gettext("Extent Name"), $pconfig['name'], gettext("String identifier of the extent."), true, 30, isset($uuid) && FALSE !== $cnid);
?>
	      <?php 
html_combobox("type", gettext("Type"), $pconfig['type'], array("file" => gettext("File"), "device" => gettext("Device"), "zvol" => gettext("ZFS volume"), "hast" => gettext("HAST volume")), gettext("Type used as extent."), true, false, "type_change()");
?>
	      <?php 
html_filechooser("path", gettext("Path"), $pconfig['path'], sprintf(gettext("File path (e.g. /mnt/sharename/extent/%s) used as extent."), $pconfig['name']), $g['media_path'], true);
?>
	      <?php 
html_combobox("device", gettext("Device"), $pconfig['path'], $a_device, "", true);
?>
	      <?php 
html_combobox("zvol", gettext("ZFS volume"), $pconfig['path'], $a_zvol, "", true);
?>
	      <?php 
html_combobox("hast", gettext("HAST volume"), $pconfig['path'], $a_hast, "", true);
?>
	      <tr id="size_tr">
	        <td width="22%" valign="top" class="vncellreq"><?php 
echo gettext("File size");
?>
</td>
	        <td width="78%" class="vtable">
	          <input name="size" type="text" class="formfld" id="size" size="10" value="<?php 
echo htmlspecialchars($pconfig['size']);
?>
" />
	          <select name="sizeunit" onclick="sizeunit_change()"> 
	            <option value="MB" <?php 
if ($pconfig['sizeunit'] === "MB") {
    echo "selected=\"selected\"";
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:services_iscsitarget_extent_edit.php

示例12: html_combobox

?>
				<tr id='work_dir_diff_tr'>
					<td width='22%' valign='top' class='vncell'><label for='work_dir_diff'></label></td>
					<td width='78%' class='vtable'>
						<input name='work_dir_diff' type='text' class='formfld' id='work_dir_diff' size='67' value='<?php 
echo $pconfig['work_dir'];
?>
' onchange='clickfix()' />
						<input name='work_dir_diffbrowsebtn' type='button' class='formbtn' id='work_dir_diffbrowsebtn' onclick='work_dir_diffifield = form.work_dir_diff; filechooser = window.open("filechooser.php?p="+encodeURIComponent(work_dir_diffifield.value)+"&amp;sd=/mnt", "filechooser", "scrollbars=yes,toolbar=no,menubar=no,statusbar=no,width=550,height=300"); filechooser.ifield = work_dir_diffifield; window.ifield = work_dir_diffifield;' value='...' />
						<br /><span class='vexpl'>Virtual machines will store on any different folder</span>
					</td>
				</tr>
				<?php 
//html_filechooser('work_dir_diff', "", $pconfig['work_dir'], "Virtual machines will store on any different folder", "/mnt", false, "67", false,"clickfix()");
?>
				<?php 
html_combobox("delay", "Delay on boot", $pconfig['delay'], array("1", "2", "3", "4", "5", "6", "7", "8"), "Choise delay time between start machines at boot stage", false, false, "clickfix()");
?>
			</table>
			<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="Save"  />
			</div>
			<?php 
include "formend.inc";
?>
			</form>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";
开发者ID:alexey1234,项目名称:vmbhyve_nas4free,代码行数:31,代码来源:extensions_bhyve.php

示例13: html_separator

html_separator();
?>
					<?php 
foreach ($pconfig['device'] as $id => $device) {
    ?>
						<?php 
    $device_nb = $id + 1;
    ?>
						<?php 
    html_titleline("Device {$device_nb}");
    ?>
						<?php 
    html_inputbox("device[{$id}][name]", gettext("Name"), $pconfig['device'][$id]['name'], sprintf(gettext("Default is %s."), "OPENNAS-DEVICE-default"), true, 40);
    ?>
						<?php 
    html_combobox("device[{$id}][mediatype]", gettext("Media type"), $pconfig['device'][$id]['mediatype'], array_combine($bacula_type, $bacula_type), sprintf(gettext("Default is %s."), "File"), true);
    ?>
						<?php 
    html_filechooser("device_" . $id . "_archivepath", gettext("Archive device"), $pconfig['device'][$id]['archivepath'], '', '/mnt', true);
    ?>
						<?php 
    html_checkbox("device[{$id}][labelmedia]", gettext("Label media"), !empty($pconfig['device'][$id]['labelmedia']), gettext("Labeled the media"));
    ?>
						<?php 
    html_checkbox("device[{$id}][randomaccess]", gettext("Random access"), !empty($pconfig['device'][$id]['randomaccess']), gettext("The Storage daemon will submit a Mount Command before attempting to open the device"));
    ?>
						<?php 
    html_checkbox("device[{$id}][removablemedia]", gettext("Removable media"), !empty($pconfig['device'][$id]['removablemedia']), gettext("This device supports removable media"));
    ?>
						<?php 
    html_checkbox("device[{$id}][alwaysopen]", gettext("Always open"), !empty($pconfig['device'][$id]['alwaysopen']), gettext("Keep the device open"));
开发者ID:BillTheBest,项目名称:OpenNAS,代码行数:31,代码来源:services_bacula_storage_daemon.php

示例14: array

?>
      <?php 
$ag_list = array();
$ag_list['0'] = gettext("None");
foreach ($config['iscsitarget']['authgroup'] as $ag) {
    if ($ag['comment']) {
        $l = sprintf(gettext("Tag%d (%s)"), $ag['tag'], $ag['comment']);
    } else {
        $l = sprintf(gettext("Tag%d"), $ag['tag']);
    }
    $ag_list[$ag['tag']] = htmlspecialchars($l);
}
html_combobox("authgroup", gettext("Auth Group"), $pconfig['authgroup'], $ag_list, gettext("The initiator can access to the target with correct user and secret in specific Auth Group."), false);
?>
      <?php 
html_combobox("digest", gettext("Initial Digest"), $pconfig['digest'], array("Auto" => gettext("Auto"), "Header" => gettext("Header digest"), "Data" => gettext("Data digest"), "Header Data" => gettext("Header and Data digest")), gettext("The initial digest mode negotiated with the initiator."), false);
?>
      <?php 
html_inputbox("queuedepth", gettext("Queue Depth"), $pconfig['queuedepth'], gettext("0=disabled, 1-255=enabled command queuing with specified depth.") . " " . sprintf(gettext("The recommended queue depth is %d."), 32), false, 10);
?>
      <?php 
html_inputbox("inqvendor", gettext("Inquiry Vendor"), $pconfig['inqvendor'], sprintf(gettext("You may specify as SCSI INQUIRY data. Empty as default. (up to %d ASCII chars)"), 8), false, 20);
?>
      <?php 
html_inputbox("inqproduct", gettext("Inquiry Product"), $pconfig['inqproduct'], sprintf(gettext("You may specify as SCSI INQUIRY data. Empty as default. (up to %d ASCII chars)"), 16), false, 20);
?>
      <?php 
html_inputbox("inqrevision", gettext("Inquiry Revision"), $pconfig['inqrevision'], sprintf(gettext("You may specify as SCSI INQUIRY data. Empty as default. (up to %d ASCII chars)"), 4), false, 20);
?>
      <?php 
html_inputbox("inqserial", gettext("Inquiry Serial"), $pconfig['inqserial'], sprintf(gettext("You may specify as SCSI INQUIRY data. Empty as default. (up to %d ASCII chars)"), 16), false, 20);
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_iscsitarget_target_edit.php

示例15: html_combobox

    html_combobox("media", gettext("Media"), $pconfig['media'], array("autoselect" => gettext("Autoselect"), "10baseT/UTP" => "10baseT/UTP", "100baseTX" => "100baseTX", "1000baseTX" => "1000baseTX", "1000baseSX" => "1000baseSX"), "", false, false, "media_change()");
    ?>
											<?php 
    html_combobox("mediaopt", gettext("Duplex"), $pconfig['mediaopt'], array("half-duplex" => "half-duplex", "full-duplex" => "full-duplex"), "", false);
    ?>
											<?php 
    if (!empty($ifinfo['wolevents'])) {
        ?>
											<?php 
        $wakeonoptions = array("off" => gettext("Off"), "wol" => gettext("On"));
        foreach ($ifinfo['wolevents'] as $woleventv) {
            $wakeonoptions[$woleventv] = $woleventv;
        }
        ?>
											<?php 
        html_combobox("wakeon", gettext("Wake On LAN"), $pconfig['wakeon'], $wakeonoptions, "", false);
        ?>
											<?php 
    }
    ?>
											<?php 
    html_inputbox("extraoptions", gettext("Extra options"), $pconfig['extraoptions'], gettext("Extra options to ifconfig (usually empty)."), false, 40);
    ?>
											<?php 
    if (isset($optcfg['wireless'])) {
        wireless_config_print();
    }
    ?>
										</table>
										<div id="submit">
											<input name="index" type="hidden" value="<?php 
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:interfaces_opt.php


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