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


PHP html_titleline_checkbox函数代码示例

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


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

示例1: gettext

}
?>
									</td>
						    </tr>
							</table>
							<span class="vexpl"><?php 
echo gettext("Add additional scheduled self-test.");
?>
</span>
						</td>
					</tr>
					<?php 
html_separator();
?>
					<?php 
html_titleline_checkbox("email_enable", gettext("Email report"), !empty($pconfig['email_enable']) ? true : false, gettext("Activate"), "enable_change(this)");
?>
					<?php 
html_inputbox("email_to", gettext("To email"), !empty($pconfig['email_to']) ? $pconfig['email_to'] : "", sprintf("%s %s", gettext("Destination email address."), gettext("Separate email addresses by semi-colon.")), true, 40);
?>
					<?php 
html_checkbox("email_testemail", gettext("Test email"), !empty($pconfig['email_testemail']) ? true : false, gettext("Send a TEST warning email on startup."));
?>
				</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:sdoney,项目名称:nas4free,代码行数:31,代码来源:disks_manage_smart.php

示例2: print_input_errors

	<tr>
		<td class="tabcont">
			<form action="services_nfs.php" method="post" name="iform" id="iform">
				<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
				<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Network File System"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_inputbox("numproc", gettext("Number of servers"), $pconfig['numproc'], gettext("Specifies how many servers to create.") . " " . gettext("There should be enough to handle the maximum level of concurrency from its clients, typically four to six."), false, 2);
?>
					<?php 
html_checkbox("v4enable", gettext("NFSv4"), !empty($pconfig['v4enable']) ? true : false, gettext("Enable NFSv4 server."), "", 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 
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_nfs.php

示例3: print_input_errors

    print_input_errors($input_errors);
}
?>
				<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
				<?php 
if (updatenotify_exists("websrvauth")) {
    print_config_change_box();
}
?>
			  <table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Webserver"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_combobox("protocol", gettext("Protocol"), $pconfig['protocol'], array("http" => "HTTP", "https" => "HTTPS"), "", true, false, "protocol_change()");
?>
					<?php 
html_inputbox("port", gettext("Port"), $pconfig['port'], gettext("TCP port to bind the server to."), true, 5);
?>
					<?php 
html_combobox("runasuser", gettext("Run as"), $pconfig['runasuser'], array("server.username = \"www\"" => "www", "" => "root"), gettext("Set what user the service will run as (www by default). <br><b><font color='red'>NOTE</font>: Running as root is <u>not recommended</u> for security reasons, use it on your own risk!</b></br>"), true);
?>
	
					<?php 
html_textarea("certificate", gettext("Certificate"), $pconfig['certificate'], gettext("Paste a signed certificate in X.509 PEM format here."), true, 76, 7, false, false);
?>
					<?php 
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_websrv.php

示例4: print_error_box

    print_error_box($errormsg);
}
?>
	<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
	<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
	<table width="100%" border="0" cellpadding="6" cellspacing="0">
	<?php 
html_titleline_checkbox("enable", gettext("HAST (Highly Available Storage)"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "");
?>
	<?php 
echo html_text("nodeid", gettext("Node ID"), htmlspecialchars($nodeid));
?>
	<?php 
echo html_text("nodename", gettext("Node Name"), htmlspecialchars($nodename));
?>
	<?php 
$a_vipaddrs = array();
foreach ($a_carp as $carp) {
    $ifinfo = get_carp_info($carp['if']);
    //$a_vipaddrs[] = $carp['vipaddr']." ({$ifinfo['state']},{$ifinfo['advskew']})";
    $a_vipaddrs[] = $carp['vipaddr'] . " ({$ifinfo['state']})";
}
?>
开发者ID:BillTheBest,项目名称:OpenNAS,代码行数:31,代码来源:services_hast.php

示例5: print_input_errors

	<tr>
		<td class="tabcont">
			<form action="services_tftp.php" method="post" name="iform" id="iform">
				<?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("Trivial File Transfer Protocol"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_filechooser("dir", gettext("Directory"), $pconfig['dir'], gettext("The directory containing the files you want to publish. The remote host does not need to pass along the directory as part of the transfer."), $g['media_path'], true, 60);
?>
					<?php 
html_checkbox("allowfilecreation", gettext("Allow new files"), $pconfig['allowfilecreation'] ? true : false, gettext("Allow new files to be created."), gettext("By default, only already existing files can be uploaded."), false);
?>
					<?php 
html_separator();
?>
					<?php 
html_titleline(gettext("Advanced settings"));
?>
					<?php 
html_inputbox("port", gettext("Port"), $pconfig['port'], gettext("The port to listen to. The default is to listen to the tftp port specified in /etc/services."), false, 5);
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_tftp.php

示例6: html_inputbox

html_inputbox("maxconnections", gettext("Max. connections"), $pconfig['maxconnections'], sprintf(gettext("Maximum number of connections in each session (%d by default)."), 8), true, 30, false);
?>
		      <?php 
html_inputbox("firstburstlength", gettext("FirstBurstLength"), $pconfig['firstburstlength'], sprintf(gettext("iSCSI initial parameter (%d by default)."), 65536), true, 30, false);
?>
		      <?php 
html_inputbox("maxburstlength", gettext("MaxBurstLength"), $pconfig['maxburstlength'], sprintf(gettext("iSCSI initial parameter (%d by default)."), 262144), true, 30, false);
?>
		      <?php 
html_inputbox("maxrecvdatasegmentlength", gettext("MaxRecvDataSegmentLength"), $pconfig['maxrecvdatasegmentlength'], sprintf(gettext("iSCSI initial parameter (%d by default)."), 262144), true, 30, false);
?>
		      <?php 
html_separator();
?>
		      <?php 
html_titleline_checkbox("uctlenable", gettext("iSCSI Target Logical Unit Controller"), $pconfig['uctlenable'] ? true : false, gettext("Enable"), "uctlenable_change(false)");
?>
		      <?php 
html_inputbox("uctladdress", gettext("Controller IP address"), $pconfig['uctladdress'], sprintf(gettext("Logical Unit Controller IP address (%s by default)"), "127.0.0.1(localhost)"), true, 30, false);
?>
		      <?php 
html_inputbox("uctlport", gettext("Controller TCP Port"), $pconfig['uctlport'], sprintf(gettext("Logical Unit Controller TCP port (%d by default)"), 3261), true, 15, false);
?>
		      <?php 
html_inputbox("uctlnetmask", gettext("Controller Authorised network"), $pconfig['uctlnetmask'], sprintf(gettext("Logical Unit Controller Authorised network (%s by default)"), "127.0.0.1/8"), true, 30, false);
?>
		      <?php 
html_combobox("uctlauthmethod", gettext("Controller Auth Method"), $pconfig['uctlauthmethod'], array("CHAP" => gettext("CHAP"), "CHAP mutual" => gettext("Mutual CHAP")), gettext("The method can be accepted in the controller."), true);
?>
		      <?php 
$ag_list = array();
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_iscsitarget.php

示例7: print_input_errors

	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	  <tr>
	    <td class="tabcont">
	    	<?php 
if (!empty($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("Active Directory"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
			    <tr>
			      <td width="22%" valign="top" class="vncellreq"><?php 
echo gettext("Domain controller name");
?>
</td>
			      <td width="78%" class="vtable">
			        <input name="domaincontrollername" type="text" class="formfld" id="domaincontrollername" size="20" value="<?php 
echo htmlspecialchars($pconfig['domaincontrollername']);
?>
" />
			      	<br /><span class="vexpl"><?php 
echo gettext("AD or PDC name.");
?>
</span>
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:access_ad.php

示例8: tblrow

            tblrow('[' . $i . '] Apparent power (VA)', $ups['outlet.' . $i . '.power'], 'VA');
        }
        html_separator();
        html_titleline(gettext('NUT Internal Driver Information'));
        tblrow(gettext('Driver used'), $ups['driver.name']);
        tblrow(gettext('Driver version'), $ups['driver.version']);
        tblrow(gettext('Driver version internal'), $ups['driver.version.internal']);
        tblrow(gettext('Parameter xxx (ups.conf or cmdline -x) setting'), $ups['driver.parameter.xxx']);
        tblrow(gettext('Flag xxx (ups.conf or cmdline -x) status'), $ups['driver.flag.xxx']);
        html_separator();
        html_titleline(gettext('Internal Server Information'));
        tblrow(gettext('Server information'), $ups['server.info']);
        tblrow(gettext('Server version'), $ups['server.version']);
        html_separator();
        html_separator();
        html_titleline_checkbox('raw_upsc_enable', 'NUT', $upsc_enable ? true : false, gettext('Show RAW UPS Info'), 'upsc_enable_change()');
        tblrow('RAW info', htmlspecialchars($read), 'pre', 'upsc_raw_command');
        unset($handle);
        unset($read);
        unset($lines);
        unset($status);
        unset($disp_status);
        unset($ups);
    }
    unset($cmd);
    ?>
			  <?php 
}
?>
    	<!-- </table> -->
		<?php 
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:diag_infos_ups.php

示例9: print_input_errors

	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td class="tabcont">
				<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
				<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", sprintf("%s (%s)", gettext("Lightweight Directory Access Protocol"), gettext("Client")), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_inputbox("hostname", gettext("URI"), $pconfig['hostname'], gettext("The space-separated list of URIs for the LDAP server."), true, 60);
?>
					<?php 
html_inputbox("base", gettext("Base DN"), $pconfig['base'], sprintf(gettext("The default base distinguished name (DN) to use for searches, e.g. %s"), "dc=test,dc=org"), true, 40);
?>
					<?php 
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);
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:access_ldap.php

示例10: html_inputbox

html_inputbox("http_port", gettext("Port"), $pconfig['http_port'], "", true, 10);
?>
					<?php 
html_checkbox("http_auth", gettext("Authentication"), !empty($pconfig['http_auth']) ? true : false, gettext("Enable proxy authentication."), "", false, "proxy_auth_change()");
?>
          <?php 
html_inputbox("http_username", gettext("User"), $pconfig['http_username'], "", true, 20);
?>
			    <?php 
html_inputbox("http_password", gettext("Password"), $pconfig['http_password'], "", true, 20);
?>
					<?php 
html_separator();
?>
					<?php 
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);
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:system_proxy.php

示例11: print_input_errors

  <tr>
    <td class="tabcont">
      <form action="services_samba.php" method="post" name="iform" id="iform">
				<?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("Common Internet File System"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_combobox("security", gettext("Authentication"), $pconfig['security'], array("share" => gettext("Anonymous"), "user" => gettext("Local User"), "domain" => gettext("Domain")), "", true, false, "authentication_change()");
?>
          <tr>
            <td width="22%" valign="top" class="vncellreq"><?php 
echo gettext("NetBIOS name");
?>
</td>
            <td width="78%" class="vtable">
              <input name="netbiosname" type="text" class="formfld" id="netbiosname" size="30" value="<?php 
echo htmlspecialchars($pconfig['netbiosname']);
?>
" />
            </td>
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_samba.php

示例12: print_input_errors

    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<?php 
if (!isset($config['system']['zeroconf'])) {
    print_error_box(sprintf(gettext("You have to activate <a href='%s'>Zeroconf/Bonjour</a> to advertise this service to clients."), "system_advanced.php"));
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
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);
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_daap.php

示例13: print_info_box

}
?>
			<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
			<?php 
if (updatenotify_exists("vm")) {
    print_config_change_box();
}
?>
			<table width="100%" border="0" cellpadding="6" cellspacing="0">
			
				<?php 
html_titleline_checkbox("enable", "Bhyve virtual machines", $pconfig['enable'], gettext("Enable"), "clickfix()");
?>
				
				<tr id='machines_tr'><td colspan='2' valign='top' class='vtable'>
					<?php 
//if( isset( $config['thebrig']['rootfolder'])==false):
?>
						<!--	<a title=<?php 
echo gettext("Configure TheBrig please first");
?>
 -->
					<?php 
// elseif( isset( $config['thebrig']['content'])==false):
?>
						<!--	<a title=<?php 
echo gettext("Configure at least one jail first");
开发者ID:alexey1234,项目名称:vmbhyve_nas4free,代码行数:31,代码来源:extensions_bhyve.php

示例14: array_merge

            $enabled = 1;
        }
    }
    ?>
      <?php 
    if (!(isset($uuid) && FALSE !== $cnid)) {
        $a_storage_opt = array_merge(array("-" => gettext("None")), $a_storage_add);
    } else {
        $a_storage_opt = array_merge(array("-" => gettext("None")), $a_storage_edit);
    }
    ?>
      <?php 
    html_separator();
    ?>
			<?php 
    html_titleline_checkbox("{$lenable}", sprintf("%s%d", gettext("LUN"), $i), $enabled ? true : false, gettext("Enable"), "lun_change({$i})");
    ?>
      <?php 
    $index = array_search_ex("{$i}", $pconfig['lunmap'], "lun");
    if (false !== $index) {
        html_combobox("{$lstorage}", gettext("Storage"), $pconfig['lunmap'][$index]['extentname'], $a_storage_opt, sprintf(gettext("The storage area mapped to LUN%d."), $i), true);
    } else {
        html_combobox("{$lstorage}", gettext("Storage"), "-", $a_storage_opt_add, sprintf(gettext("The storage area mapped to LUN%d."), $i), true);
    }
    ?>
      <?php 
}
?>
      <?php 
html_separator();
?>
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_iscsitarget_target_edit.php

示例15: print_input_errors

		</ul>
	</td></tr>
    <tr><td class="tabcont">
        <?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
        <?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
        <table width="100%" border="0" cellpadding="6" cellspacing="0">
            <?php 
html_titleline_checkbox("enable", gettext("OneButtonInstaller"), $pconfig['enable'], gettext("Enable"), "enable_change(false)");
?>
            <?php 
html_text("installation_directory", gettext("Installation directory"), sprintf(gettext("The extension is installed in %s"), $config['onebuttoninstaller']['rootfolder']));
?>
			<?php 
html_filechooser("storage_path", gettext("Common directory"), $pconfig['storage_path'], gettext("Common directory for all extensions (a persistant place where all extensions are/should be - a directory below <b>/mnt/</b>)."), $pconfig['storage_path'], true, 60);
?>
            <?php 
html_checkbox("path_check", gettext("Path check"), $pconfig['path_check'], gettext("If this option is selected no examination of the common directory path will be carried out (whether it was set to a directory below /mnt/)."), "<b><font color='red'>" . gettext("Please use this option only if you know what you are doing!") . "</font></b>", false);
?>
            <?php 
html_checkbox("re_install", gettext("Re-install"), $pconfig['re_install'], gettext("If enabled it is possible to install extensions even if they are already installed."), "<b><font color='red'>" . gettext("Please use this option only if you know what you are doing!") . "</font></b>", false);
?>
            <?php 
html_checkbox("auto_update", gettext("Update"), $pconfig['auto_update'], gettext("Update extensions list automatically."), "", false);
开发者ID:crestAT,项目名称:nas4free-onebuttoninstaller,代码行数:31,代码来源:onebuttoninstaller-config.php


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