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


PHP html_inputbox函数代码示例

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


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

示例1: html_combobox

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);
?>
      </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");
?>
" />
	      <input name="uuid" type="hidden" value="<?php 
echo $pconfig['uuid'];
?>
" />
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_iscsitarget_target_edit.php

示例2: print_input_errors

?>
</span></a></li>
			</ul>
		</td>
	</tr>
	<tr>
		<td class="tabcont">
			<form action="diag_ping.php" method="post" name="iform" id="iform">
				<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
				<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">
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:diag_ping.php

示例3: print_input_errors

    print_input_errors($input_errors);
}
?>
			  <table width="100%" border="0" cellpadding="6" cellspacing="0">
			  	<?php 
html_inputbox("name", gettext("Name"), $pconfig['name'], gettext("This is for information only (not using during iSCSI negotiation)."), true, 20);
?>
					<?php 
html_inputbox("initiatorname", gettext("Initiator name"), $pconfig['initiatorname'], gettext("This name is for example: iqn.2005-01.il.ac.huji.cs:somebody."), true, 60);
?>
			
					<?php 
html_inputbox("targetname", gettext("Target name"), $pconfig['targetname'], sprintf(gettext("This name is for example: %s."), $ex_iscsitarget), true, 60);
?>
					<?php 
html_inputbox("targetaddress", gettext("Target address"), $pconfig['targetaddress'], gettext("This the IP address or DNS name of the iSCSI target."), true, 20);
?>
			  </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");
?>
" />
					<input name="uuid" type="hidden" value="<?php 
echo $pconfig['uuid'];
?>
" />
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:disks_manage_iscsi_edit.php

示例4: print_input_errors

    <td class="tabcont">
      <form action="system_hosts_edit.php" method="post" name="iform" id="iform">
      	<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
        <table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_inputbox("name", gettext("Hostname"), $pconfig['name'], gettext("The host name may only consist of the characters a-z, A-Z and 0-9, - , _ and ."), true, 40);
?>
					<?php 
html_inputbox("address", gettext("IP address"), $pconfig['address'], gettext("The IP address that this hostname represents."), true, 20);
?>
					<?php 
html_inputbox("descr", gettext("Description"), $pconfig['descr'], gettext("You may enter a description here for your reference."), false, 20);
?>
        </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");
?>
" />
					<input name="uuid" type="hidden" value="<?php 
echo $pconfig['uuid'];
?>
" />
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:system_hosts_edit.php

示例5: print_input_errors

		<td class="tabcont">
			<form action="access_users_groups_edit.php" method="post" name="iform" id="iform">
				<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_inputbox("name", gettext("Name"), $pconfig['name'], gettext("Group name."), true, 20, isset($uuid) && FALSE !== $cnid);
?>
					<?php 
html_inputbox("groupid", gettext("Group ID"), $pconfig['groupid'], gettext("Group numeric id."), true, 20, isset($uuid) && FALSE !== $cnid);
?>
					<?php 
html_inputbox("desc", gettext("Description"), $pconfig['desc'], gettext("Group description."), true, 20);
?>
				</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");
?>
" />
					<input name="uuid" type="hidden" value="<?php 
echo $pconfig['uuid'];
?>
" />
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:access_users_groups_edit.php

示例6: gettext

}
?>
 /> <?php 
echo gettext("Suppress non-error messages.");
?>
<br />
						</td>
					</tr>
					<?php 
html_checkbox("perms", gettext("Preserve permissions"), $pconfig['perms'] ? true : false, gettext("This option causes the receiving rsync to set the destination permissions to be the same as the source permissions."), "", false);
?>
					<?php 
html_checkbox("xattrs", gettext("Preserve extended attributes"), $pconfig['xattrs'] ? true : false, gettext("This option causes rsync to update the remote extended attributes to be the same as the local ones."), "", false);
?>
					<?php 
html_inputbox("extraoptions", gettext("Extra options"), $pconfig['extraoptions'], gettext("Extra options to rsync (usually empty).") . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://rsync.samba.org/ftp/rsync/rsync.html"), 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="uuid" type="hidden" value="<?php 
echo $pconfig['uuid'];
?>
" />
					<?php 
if (isset($uuid) && FALSE !== $cnid) {
    ?>
					<input name="Submit" id="execnow" type="submit" class="formbtn" value="<?php 
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_rsyncd_client_edit.php

示例7: html_combobox

}
?>
					<?php 
html_combobox("username", gettext("Username"), $pconfig['username'], $a_user, gettext("Specifies the username which the service will run as."), false);
?>
					<?php 
html_inputbox("umask", gettext("umask"), $pconfig['umask'], gettext("Sets the umask for newly created files to the specified value. The default is zero (anyone can read or write)."), false, 4);
?>
					<?php 
html_inputbox("timeout", gettext("Timeout"), $pconfig['timeout'], gettext("Determine the default timeout, in microseconds, before the first packet is retransmitted. The default is 1000000 (1 second)."), false, 10);
?>
					<?php 
html_inputbox("maxblocksize", gettext("Max. block size"), $pconfig['maxblocksize'], gettext("Specifies the maximum permitted block size. The permitted range for this parameter is from 512 to 65464."), false, 5);
?>
					<?php 
html_inputbox("extraoptions", gettext("Extra options"), $pconfig['extraoptions'], gettext("Extra options (usually empty)."), false, 40);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save and Restart");
?>
" onclick="enable_change(true)" />
				</div>
				<?php 
include "formend.inc";
?>
			</form>
		</td>
	</tr>
</table>
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_tftp.php

示例8: gettext

}
?>
 />
							<?php 
echo gettext("Allow client access to accounts that have null passwords.");
?>
						</td>
					</tr>
					<?php 
html_checkbox("aio", gettext("Asynchronous I/O (AIO)"), $pconfig['aio'] ? true : false, gettext("Enable Asynchronous I/O (AIO)"), "", false, "aio_change()");
?>
					<?php 
html_inputbox("aiorsize", gettext("AIO read size"), $pconfig['aiorsize'], sprintf(gettext("Samba will read from file asynchronously when size of request is bigger than this value. (%d by default)"), 1), true, 30);
?>
					<?php 
html_inputbox("aiowsize", gettext("AIO write size"), $pconfig['aiowsize'], sprintf(gettext("Samba will write to file asynchronously when size of request is bigger than this value. (%d by default)"), 1), true, 30);
?>
					<?php 
/*html_inputbox("aiowbehind", gettext("AIO write behind"), $pconfig['aiowbehind'], "", false, 60);*/
?>
					<?php 
html_textarea("auxparam", gettext("Auxiliary parameters"), $pconfig['auxparam'], sprintf(gettext("These parameters are added to [Global] section of %s."), "smb.conf") . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://us1.samba.org/samba/docs/man/manpages-3/smb.conf.5.html"), false, 65, 5, false, false);
?>
        </table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save and Restart");
?>
" onclick="enable_change(true)" />
				</div>
				<div id="remarks">
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_samba.php

示例9: html_passwordconfbox

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);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save");
?>
" onclick="enable_change(true)" />
				</div>
			</td>
		</tr>
	</table>
	<?php 
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:access_ldap.php

示例10: html_titleline_checkbox

html_titleline_checkbox("ftp_enable", gettext("FTP Proxy"), !empty($pconfig['ftp_enable']) ? true : false, gettext("Enable"), "enable_change(this)");
?>
          <?php 
html_inputbox("ftp_address", gettext("Address"), $pconfig['ftp_address'], "", true, 40);
?>
          <?php 
html_inputbox("ftp_port", gettext("Port"), $pconfig['ftp_port'], "", true, 10);
?>
          <?php 
html_checkbox("ftp_auth", gettext("Authentication"), !empty($pconfig['ftp_auth']) ? true : false, gettext("Enable proxy authentication."), "", false, "proxy_auth_change()");
?>
          <?php 
html_inputbox("ftp_username", gettext("User"), $pconfig['ftp_username'], "", true, 20);
?>
			    <?php 
html_inputbox("ftp_password", gettext("Password"), $pconfig['ftp_password'], "", true, 20);
?>
			  </table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save");
?>
" onclick="enable_change(true)" />
			  </div>
			  <div id="remarks">
			  	<?php 
html_remark("note", gettext("Note"), gettext("If the server is behind a proxy set these parameters to give local services access to the internet via proxy."));
?>
			  </div>
			  <?php 
include "formend.inc";
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:system_proxy.php

示例11: array

$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 
html_inputbox("pwmax", gettext("Maximum frequency"), $pconfig['pwmax'], sprintf("%s %s", gettext("CPU frequency:"), join(", ", $a_freq)) . "<br />" . gettext("Empty as default."), false, 5);
?>
					<?php 
html_inputbox("pwmin", gettext("Minimum frequency"), $pconfig['pwmin'], gettext("Empty as default."), false, 5);
?>
					<?php 
html_checkbox("zeroconf", gettext("Zeroconf/Bonjour"), !empty($pconfig['zeroconf']) ? true : false, gettext("Enable Zeroconf/Bonjour to advertise services of this device"));
?>
					<?php 
html_textarea("motd", gettext("MOTD"), $pconfig['motd'], gettext("Message of the day."), false, 65, 7, false, false);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save");
?>
" />
				</div>
				<?php 
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:system_advanced.php

示例12: html_titleline_checkbox

html_titleline_checkbox("enable", gettext("Digital Audio Access Protocol"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_inputbox("servername", gettext("Server name"), $pconfig['servername'], gettext("This is both the name of the server as advertised via Zeroconf/Bonjour/Rendezvous, and the name of the database exported via DAAP."), true, 20);
?>
					<?php 
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);
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_daap.php

示例13: html_separator

?>

					<?php 
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"));
开发者ID:BillTheBest,项目名称:OpenNAS,代码行数:31,代码来源:services_bacula_storage_daemon.php

示例14: html_checkbox

} else {
    ?>
								<input name="ocs_cacert" type="hidden" value="<?php 
    echo $config['ocsinventory_agent']['ocs_cacert'];
    ?>
" /><br />
								<?php 
    html_checkbox("delete_cacert", gettext("Delete previous CA Certificate"), false, "", "", true);
    ?>
						<?php 
}
?>
						</td>
					</tr>
					<?php 
html_inputbox("tag", gettext("Tag"), $pconfig['tag'], gettext("Mark the machine with the TAG"), false, 40);
?>
					<?php 
html_checkbox("nosoftware", gettext("No software"), !empty($pconfig['nosoftware']) ? true : false, gettext("Do not inventory the software installed on the machine"), false);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save and Restart");
?>
" onclick="enable_change(true)" />
				</div>
				<?php 
include "formend.inc";
?>
			</form>
开发者ID:BillTheBest,项目名称:OpenNAS,代码行数:31,代码来源:services_ocs_inventory_agent.php

示例15: print_input_errors

if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", "", $pconfig['enable'] ? true : false, gettext("Enable"));
?>
					<?php 
html_inputbox("name", gettext("Name"), $pconfig['name'], gettext("Name of the variable."), true, 40);
?>
					<?php 
html_inputbox("value", gettext("Value"), $pconfig['value'], gettext("The value of the variable."), true);
?>
					<?php 
html_inputbox("comment", gettext("Comment"), $pconfig['comment'], 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");
?>
" />
					<input name="uuid" type="hidden" value="<?php 
echo $pconfig['uuid'];
?>
" />
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:system_rcconf_edit.php


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