本文整理汇总了PHP中html_titleline函数的典型用法代码示例。如果您正苦于以下问题:PHP html_titleline函数的具体用法?PHP html_titleline怎么用?PHP html_titleline使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_titleline函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gettext
echo gettext("Remove Extension");
?>
" onclick="return confirm('<?php
echo gettext("Do you really want to remove the extension from the system?");
?>
')" />
</div>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<?php
html_separator();
?>
<?php
html_separator();
?>
<?php
html_titleline(gettext("Extension") . " " . gettext("Release Notes"));
?>
<tr>
<td class="listt">
<div>
<textarea style="width: 98%;" id="content" name="content" class="listcontent" cols="1" rows="25" readonly="readonly"><?php
unset($lines);
exec("/bin/cat {$config['downloady']['rootfolder']}release_notes.txt", $lines);
foreach ($lines as $line) {
echo $line . "\n";
}
?>
</textarea>
</div>
</td>
</tr>
示例2: gettext
<li class="tabinact"><a href="diag_infos_sockets.php"><span><?php
echo gettext("Sockets");
?>
</span></a></li>
<li class="tabinact"><a href="diag_infos_ups.php"><span><?php
echo gettext("UPS");
?>
</span></a></li>
</ul>
</td>
</tr>
<tr>
<td class="tabcont">
<table width="100%" border="0">
<?php
html_titleline(gettext("RSYNC Client informations"));
?>
<tr>
<td>
<?php
if (!is_array($config['rsync']) || !is_array($config['rsync']['rsyncclient'])) {
?>
<pre><?php
echo gettext("No RSYNC Client configured");
?>
</pre>
<?php
} else {
?>
<pre><?php
echo "<strong>" . gettext("Detected RSYNC remote shares") . ":</strong><br /><br />";
示例3: gettext
<li class="tabinact"><a href="diag_infos_sockets.php"><span><?php
echo gettext("Sockets");
?>
</span></a></li>
<li class="tabinact"><a href="diag_infos_ups.php"><span><?php
echo gettext("UPS");
?>
</span></a></li>
</ul>
</td>
</tr>
<tr>
<td class="tabcont">
<table width="100%" border="0">
<?php
html_titleline(gettext("List of available target name on all configured iSCSI targets"));
?>
<tr>
<td>
<?php
if (0 >= count($a_disk)) {
?>
<pre><?php
echo gettext("iSCSI initiator disabled");
?>
</pre>
<?php
} else {
?>
<pre><?php
foreach ($a_disk as $disk) {
示例4: html_titleline
<tr>
<td class="tabcont">
<table width="100%" border="0">
<?php
html_titleline(gettext("ZFS volume information and status"));
?>
<tr>
<td class="listt">
<pre><span id="zfs_volume_list"><?php
echo zfs_volume_display_list();
?>
</span></pre>
</td>
</tr>
<?php
html_titleline(gettext("ZFS volume properties"));
?>
<tr>
<td class="listt">
<pre><span id="zfs_volume_properties"><?php
echo zfs_volume_display_properties();
?>
</span></pre>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php
include "fend.inc";
示例5: html_titleline_checkbox
?>
<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);
?>
<?php
$a_user = array();
foreach (system_get_user_list() as $userk => $userv) {
$a_user[$userk] = htmlspecialchars($userk);
}
?>
<?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);
示例6: isset
<td class="tabcont">
<?php
$netstat = isset($_POST['resolve']) && $_POST['resolve'] == 'yes' ? 'netstat -rW' : 'netstat -nrW';
list($dummy, $internet, $internet6) = explode("\n\n", shell_exec($netstat));
foreach (array(&$internet, &$internet6) as $tabindex => $table) {
$osver = @exec("/usr/bin/uname -U");
if ($osver >= 1000000) {
$elements = $tabindex == 0 ? 7 : 7;
} else {
$elements = $tabindex == 0 ? 8 : 8;
}
$name = $tabindex == 0 ? 'IPv4' : 'IPv6';
?>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<?php
html_titleline($name, $elements);
foreach (explode("\n", $table) as $row => $line) {
if ($row == 0) {
continue;
}
if ($line == '') {
continue;
}
print "<tr>\n";
$col = 0;
foreach (explode(' ', $line) as $entry) {
if ($entry == '') {
continue;
}
if ($row == 1) {
$class = $col == 0 ? "listhdrlr" : "listhdrr";
示例7: html_titleline
</tr>
<?php
}
?>
</table>
<br />
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<?php
html_titleline(gettext('Options'));
?>
<?php
html_checkbox("leave_autosnapshots", gettext("Leave auto snapshot configuration"), true, gettext("Leave already configured auto snapshots."), "", false);
?>
<?php
html_checkbox("import_disks", gettext("Import disks"), true, gettext("Import disks used in configuration."), "", false);
?>
<?php
html_checkbox("import_disks_overwrite", gettext("Overwrite disks configuration"), false, gettext("Overwrite already configured disks (only affects filesystem value)."), "", false);
?>
</table>
<br />
<div id="submit">
<input type="submit" name="import_config" value="<?php
echo gettext('Synchronize');
示例8: tblrow
tblrow('[' . $i . '] Maximum seen current (A)', $ups['outlet.' . $i . '.current.maximum'], 'A');
tblrow('[' . $i . '] Current value of real power (W)', $ups['outlet.' . $i . '.realpower'], 'W');
tblrow('[' . $i . '] Voltage (V)', $ups['outlet.' . $i . '.voltage'], 'V');
tblrow('[' . $i . '] Power Factor (dimensionless value between 0 and 1)', $ups['outlet.' . $i . '.powerfactor']);
tblrow('[' . $i . '] Crest Factor (dimensionless, equal to or greater than 1)', $ups['outlet.' . $i . '.crestfactor']);
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);
?>
示例9: gettext
</span></a></li>
<li class="tabinact"><a href="disks_raid_graid5_tools.php"><span><?php
echo gettext("Tools");
?>
</span></a></li>
<li class="tabact"><a href="disks_raid_graid5_info.php" title="<?php
echo gettext("Reload page");
?>
" ><span><?php
echo gettext("Information");
?>
</span></a></li>
</ul>
</td></tr>
<tr>
<td class="tabcont">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php
html_titleline(gettext("RAID 5 information and status"));
?>
<tr>
<td class="listt">
<pre><span id="raidinfo"></span></pre>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php
include "fend.inc";
示例10: html_separator
</td>
</tr> -->
<?php
//endfor;
?>
</table>
<?php
// endif;
?>
</td></tr>
<?php
html_separator();
?>
</tr>
<?php
html_titleline("Framework configuration");
$work_dir_type = array('0' => 'Home', '2' => 'Different folder');
if (true == bhyve_zfs_check()) {
$work_dir_type[1] = 'Dataset';
}
html_combobox("work_dir_type", "Working folder", $pconfig['work_dir_type'], $work_dir_type, "Virtual machines will store on dataset", false, false, "clickfix()");
html_text("work_dir_simple", "", "Virtual machines will store at extension home folder");
if (FALSE !== ($datasets_list = bhyve_datasets_list())) {
for ($i = 0; $i < count($datasets_list); ++$i) {
$a_datasets_list[$datasets_list[$i][1]] = $datasets_list[$i][1];
}
html_combobox("work_dir_zfs", "", $pconfig['work_dir'], $a_datasets_list, "Virtual machines will store on dataset", false, false, "clickfix()");
}
?>
<tr id='work_dir_diff_tr'>
<td width='22%' valign='top' class='vncell'><label for='work_dir_diff'></label></td>
示例11: html_folderbox
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>";
?>
<?php
html_text("url", gettext("URL"), $text);
?>
</table>
<div id="submit">
示例12: render_ajax
render_ajax($procinfo);
}
include "fbegin.inc";
?>
<script type="text/javascript">//<![CDATA[
$(document).ready(function(){
var gui = new GUI;
gui.recall(0, 5000, 'status_process.php', null, function(data) {
$('#procinfo').val(data.data);
});
});
//]]>
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="tabcont">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php
html_titleline(gettext("Processes information"));
?>
<tr>
<td class="listt">
<pre><textarea style="width: 98%;" id="procinfo" name="procinfo" class="listcontent" cols="95" rows="30" readonly="readonly"></textarea></pre>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php
include "fend.inc";
示例13: html_passwordbox
?>
<?php
html_passwordbox("directorpassword", gettext("Password"), $pconfig['directorpassword'], '', true, 40);
?>
<?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"));
示例14: gettext
?>
" <?php
echo $readonly;
?>
/><br />
<span class="vexpl"><?php
echo gettext("IPv6 addresses");
?>
</span><br />
</td>
</tr>
<?php
html_separator();
?>
<?php
html_titleline(gettext("Time"));
?>
<?php
html_timezonecombobox("timezone", gettext("Time zone"), $pconfig['timezone'], gettext("Select the location closest to you."), false);
?>
<tr>
<td width="22%" valign="top" class="vncell"><?php
echo gettext("System time");
?>
</td>
<td width="78%" class="vtable">
<input id="systime" size="20" maxlength="20" name="systime" type="text" value="" />
<img src="cal.gif" onclick="showChooser(this, 'systime', 'chooserSpan', 1950, 2020, Date.patterns.Default, true);" alt="" />
<div id="chooserSpan" class="dateChooser select-free" style="display: none; visibility: hidden; width: 160px;"></div><br />
<span class="vexpl"><?php
echo gettext("Enter desired system time directly (format mm/dd/yyyy hh:mm) or use icon to select it.");
示例15: html_separator
html_separator();
?>
<?php
html_titleline_checkbox("ipv6_enable", gettext("IPv6 Configuration"), !empty($pconfig['ipv6_enable']) ? true : false, gettext("Activate"), "enable_change(this)");
?>
<?php
html_combobox("ipv6type", gettext("Type"), $pconfig['ipv6type'], array("Static" => gettext("Static"), "Auto" => gettext("Auto")), "", true, false, "ipv6_type_change()");
?>
<?php
html_ipv6addrbox("ipv6addr", "ipv6subnet", gettext("IP address"), !empty($pconfig['ipv6addr']) ? $pconfig['ipv6addr'] : "", !empty($pconfig['ipv6subnet']) ? $pconfig['ipv6subnet'] : "", "", true);
?>
<?php
html_separator();
?>
<?php
html_titleline(gettext("Advanced Configuration"));
?>
<?php
html_inputbox("mtu", gettext("MTU"), $pconfig['mtu'], gettext("Set the maximum transmission unit of the interface to n, default is interface specific. The MTU is used to limit the size of packets that are transmitted on an interface. Not all interfaces support setting the MTU, and some interfaces have range restrictions."), false, 5);
?>
<!--
<?php
html_checkbox("polling", gettext("Device polling"), $pconfig['polling'] ? true : false, gettext("Enable device polling"), gettext("Device polling is a technique that lets the system periodically poll network devices for new data instead of relying on interrupts. This can reduce CPU load and therefore increase throughput, at the expense of a slightly higher forwarding delay (the devices are polled 1000 times per second). Not all NICs support polling."), false);
?>
-->
<?php
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);
?>