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

PHP html_combobox函数代码示例

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

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



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


示例16: gettext

}
?>
 />
			        <?php 
echo gettext("Enable ACL inheritance");
?>
			      </td>
			    </tr>
			    <?php 
html_checkbox("storealternatedatastreams", gettext("Store alternate data streams"), !empty($pconfig['storealternatedatastreams']) ? true : false, gettext("Store alternate data streams in Extended Attributes"), "", false);
?>
			    <?php 
html_checkbox("storentfsacls", gettext("Store NTFS acls"), !empty($pconfig['storentfsacls']) ? true : false, gettext("Store NTFS acls in Extended Attributes"), gettext("This will provide NTFS acls without ZFS ACL support such as UFS."), false);
?>
			    <?php 
html_combobox("aiomodule", gettext("AIO module"), $pconfig['aiomodule'], array("aio_pthread" => "aio_pthread", "aio_posix" => "aio_posix"), "", false, false, "");
?>
			    <tr>
			      <td width="22%" valign="top" class="vncell"><?php 
echo gettext("Hosts allow");
?>
</td>
			      <td width="78%" class="vtable">
			        <input name="hostsallow" type="text" class="formfld" id="hostsallow" size="60" value="<?php 
echo htmlspecialchars($pconfig['hostsallow']);
?>
" /><br />
			        <span class="vexpl"><?php 
echo gettext("This option is a comma, space, or tab delimited set of hosts which are permitted to access this share. You can specify the hosts by name or IP number. Leave this field empty to use default settings.");
?>
</span>
开发者ID:BillTheBest,项目名称:OpenNAS,代码行数:31,代码来源:services_samba_share_edit.php


示例17: gettext

?>
					<tr>
						<td valign="top" class="vncellreq"><?php 
echo gettext("Devices");
?>
</td>
						<td class="vtable">
							<div id="devices">
								<?php 
echo gettext("No device selected.");
?>
							</div>
						</td>
					</tr>
					<?php 
html_combobox("device_new", gettext("New Device"), NULL, NULL, "", true);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Send Command!");
?>
" />
				</div>
				<?php 
if ($do_action) {
    echo sprintf("<div id='cmdoutput'>%s</div>", gettext("Command output:"));
    echo '<pre class="cmdoutput">';
    ob_end_flush();
    $action = $pconfig['action'];
    $option = $pconfig['option'];
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:disks_zfs_zpool_tools.php


示例18: html_checkbox

html_checkbox("anonymousbind", gettext("Anonymous bind"), !empty($pconfig['anonymousbind']) ? true : false, gettext("Enable anonymous bind."), "", true, "anonymousbind_change()");
?>
					<?php 
html_inputbox("binddn", gettext("Bind DN"), $pconfig['binddn'], sprintf(gettext("The distinguished name to bind to the directory server, e.g. %s"), "cn=admin,dc=test,dc=org"), true, 40);
?>
					<?php 
html_passwordconfbox("bindpw", "bindpw2", gettext("Bind password"), $pconfig['bindpw'], $pconfig['bindpw2'], gettext("The cleartext credentials with which to bind."), true);
?>
					<?php 
html_inputbox("rootbinddn", gettext("Root bind DN"), $pconfig['rootbinddn'], sprintf(gettext("The distinguished name with which to bind to the directory server, e.g. %s"), "cn=admin,dc=test,dc=org"), true, 40);
?>
					<?php 
html_passwordconfbox("rootbindpw", "rootbindpw2", gettext("Root bind password"), $pconfig['rootbindpw'], $pconfig['rootbindpw2'], gettext("The credentials with which to bind."), true);
?>
					<?php 
html_combobox("pam_password", gettext("Password encryption"), $pconfig['pam_password'], array("clear" => "clear", "crypt" => "crypt", "md5" => "md5", "nds" => "nds", "racf" => "racf", "ad" => "ad", "exop" => "exop"), gettext("The password encryption protocol to use."), true);
?>
					<?php 
html_inputbox("user_suffix", gettext("User suffix"), $pconfig['user_suffix'], sprintf(gettext("This parameter specifies the suffix that is used for users when these are added to the LDAP directory, e.g. %s"), "ou=Users"), true, 20);
?>
					<?php 
html_inputbox("group_suffix", gettext("Group suffix"), $pconfig['group_suffix'], sprintf(gettext("This parameter specifies the suffix that is used for groups when these are added to the LDAP directory, e.g. %s"), "ou=Groups"), true, 20);
?>
					<?php 
html_inputbox("password_suffix", gettext("Password suffix"), $pconfig['password_suffix'], sprintf(gettext("This parameter specifies the suffix that is used for passwords when these are added to the LDAP directory, e.g. %s"), "ou=Users"), true, 20);
?>
					<?php 
html_inputbox("machine_suffix", gettext("Machine suffix"), $pconfig['machine_suffix'], sprintf(gettext("This parameter specifies the suffix that is used for machines when these are added to the LDAP directory, e.g. %s"), "ou=Computers"), true, 20);
?>
					<?php 
html_textarea("auxparam", gettext("Auxiliary parameters"), $pconfig['auxparam'], sprintf(gettext("These parameters are added to %s."), "ldap.conf"), false, 65, 5, false, false);
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:access_ldap.php


示例19: html_inputbox

html_inputbox("kdc", "KDC", $pconfig['kdc'], "", true, 60);
?>
					<?php 
html_inputbox("realms", "Realms", $pconfig['realms'], "", true, 60);
?>
				<tr id="krb5_keytabid" style="display: visible">
						<td width="22%" valign="top" class="vncellreq"><?php 
echo htmlspecialchars("Krb5.keytab");
?>
</td>
						<td width="78%" class="vtable">
							<input name="krb5" type="file" class="formfld" size="40" /><br />
						</td>
					</tr>
				<?php 
html_combobox("type", gettext("Type"), $pconfig['type'], $type, '', true, false, 'toggle_type($(this).val())');
?>
				<?php 
html_inputbox("ldaphostname", gettext("URI"), $pconfig['ldaphostname'], gettext("The space-separated list of URIs for the LDAP server."), true, 60);
?>
				<?php 
html_inputbox("ldapbase", gettext("Base DN"), $pconfig['ldapbase'], sprintf(gettext("The default base distinguished name (DN) to use for searches, e.g. %s"), "dc=test,dc=org"), true, 40);
?>
				<?php 
html_textarea("ldapauxparam", gettext("Ldap auxiliary parameters"), $pconfig['ldapauxparam'], sprintf(gettext("These parameters are added to %s."), "ldap.conf"), false, 65, 5, false, false);
?>
				<?php 
html_textarea("sssdauxparam", gettext("Sss auxiliary parameters"), $pconfig['sssdauxparam'], sprintf(gettext("These parameters are added to %s."), "sssd.conf"), false, 65, 5, false, false);
?>
				<?php 
html_checkbox("sssclearcache", gettext("Clear sss cache"), !empty($pconfig['sssclearcache']) ? true : false, gettext("Clear sss cache on each restart"));
开发者ID:BillTheBest,项目名称:OpenNAS,代码行数:31,代码来源:access_kerberos.php


示例20: print_input_errors

	    	<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
				<?php 
if (!empty($savemsg)) {
    print_inf 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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