本文整理汇总了PHP中html_text函数的典型用法代码示例。如果您正苦于以下问题:PHP html_text函数的具体用法?PHP html_text怎么用?PHP html_text使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_text函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: html_separator
<?php
html_separator();
html_titleline(gettext("rc.conf.local Migrator"));
?>
<?php
html_filechooser("oldconfig", gettext("Path to source"), $pconfig['oldconfig'], sprintf(gettext("If you want convert old rc.conf.local to TheBrig application, please add path to it."), $pconfig['name']), "/mnt/", false);
html_text($confconv, gettext("Convert and download xml"), '<input name="submit" type="submit" value="Convert">');
?>
<?php
html_separator();
html_titleline(gettext("Jail Archiver"));
?>
<?php
html_filechooser("fname", gettext("Path to folder"), $pconfig['fname'], sprintf(gettext("If you want archive old jail or any another folder choose it. It will be compressed and stored in " . $config['thebrig']['rootfolder'] . "work/."), $pconfig['fname']), "/mnt/", false);
html_text($confconv, gettext("Compress and save"), '<input name="submit" type="submit" value="Compress">');
?>
</table>
</td>
<?php
include "formend.inc";
?>
</form>
</tr>
</table>
<?php
include "fend.inc";
示例2: html_text
html_text("First Name *", "fname", $_POST['fname']);
html_text("Surname", "sname", $_POST['sname']);
?>
<h3>Company Details</h3>
<?php
html_text("Company Name", "co_name", $_POST['co_name']);
if (!isset($_POST['custid'])) {
$_POST['custid'] = $_GET['custid'];
}
customer_select("Or", "custid", $_POST['custid']);
if (!isset($_POST['suppid'])) {
$_POST['suppid'] = $_GET['suppid'];
}
supplier_select("Or", "suppid", $_POST['suppid']);
html_text("Role", "role", $_POST['role']);
include "/srv/athenace/lib/shared/adds.add.form.php";
html_textarea("Notes", "notes", $_POST['notes'], "body");
?>
</fieldset>
<fieldset class="buttons">
<?php
html_button("Save changes");
?>
or <a href="/contacts/" class="cancel" title="Cancel">Cancel</a>
</fieldset>
示例3: html_text
&go=y"
enctype="multipart/form-data" method="post">
<fieldset>
<?php
html_text("First Name", "fname", $r->fname, 'required');
html_text("Surname", "sname", $r->sname);
html_text("Company Name", "co_name", $r->co_name);
customer_select("Customer", "custid", $r->custid);
supplier_select("Supplier", "suppid", $r->suppid);
html_text("Role", "role", $r->role);
html_textarea("Notes", "notes", $r->notes, "notes");
include "/srv/athenace/lib/shared/adds.edit.form.php";
?>
</fieldset>
<fieldset class="buttons">
<?php
html_button("Save changes");
?>
or <a href="/contacts/" class="cancel" title="Cancel">Cancel</a>
</fieldset>
示例4: print_input_errors
<?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);
?>
<?php
html_checkbox("show_beta", gettext("Beta releases"), $pconfig['show_beta'], gettext("If enabled, extensions in beta state will be shown in the extensions list."), "", false);
示例5: html_text
<li class="tabinact"><a href="extensions_bhyve_config.php"><span><?php
echo "Extension config";
?>
</span></a></li>
<li class="tabact"><a href="extensions_bhyve_manual.php"><span><?php
echo "VM Manual";
?>
</span></a></li>
</span> </a>
</li>
</ul>
</td></tr>
<tr>
<td class="tabcont">
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<?php
html_text("my", "Notes for extemsion", file_get_contents($config['bhyve']['homefolder'] . "/conf/ext/my.txt"));
html_text('text5', "Manual", file_get_contents($config['bhyve']['homefolder'] . "/conf/ext/vm.html"));
?>
</table>
</td>
</tr>
</table>
<?php
include "fend.inc";
?>
?>
示例6: html_text
echo $staffid;
?>
&go=y"
enctype="multipart/form-data" method="post">
<fieldset>
<ol>
<?php
// id, fname, sname, add1, add2, city, county, dob
echo '<li id=subtitle><h3>Personal Details</h3></li>';
html_text("First Name *", "fname", $r->fname);
html_text("Family Name", "sname", $r->sname);
html_text("Job Title", "jobtitle", $r->jobtitle);
include "/srv/athenace/lib/shared/adds.edit.form.php";
?>
</ol>
</fieldset>
<fieldset class="buttons">
<?php
html_button("Save changes");
?>
or <a href="/staff/" class="cancel" title="Cancel">Cancel</a>
</fieldset>
示例7: print_info_box
}
?>
<?php
if (!empty($savemsg)) {
print_info_box($savemsg);
}
?>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<?php
html_titleline(gettext("Samba Active Directory Domain Controller"));
?>
<?php
html_text("hostname", gettext("Hostname"), htmlspecialchars($hostname));
?>
<?php
html_text("netniosname", gettext("NetBIOS name"), htmlspecialchars($netbiosname));
?>
<?php
html_inputbox("dns_forwarder", gettext("DNS forwarder"), $pconfig['dns_forwarder'], "", true, 40);
?>
<?php
html_inputbox("dns_domain", gettext("DNS domain"), $pconfig['dns_domain'], "", true, 40);
?>
<?php
html_inputbox("netbios_domain", gettext("NetBIOS domain"), $pconfig['netbios_domain'], "", true, 40);
?>
<?php
//html_text("realm", gettext("Kerberos realm"), htmlspecialchars($realm));
?>
<?php
html_passwordconfbox("password", "password_confirm", gettext("Admin password"), "", "", gettext("Generate password if leave empty."), true);
示例8: print_error_box
print_error_box($errormsg);
}
?>
<?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_text("snapshot", gettext("Snapshot"), htmlspecialchars($pconfig['snapshot']));
?>
<?php
$a_action = array("clone" => gettext("Clone"), "delete" => gettext("Delete"));
?>
<?php
html_combobox("action", gettext("Action"), $pconfig['action'], $a_action, "", true, false, "action_change()");
?>
<?php
html_inputbox("newpath", gettext("Path"), $pconfig['newpath'], "", true, 30);
?>
<?php
html_checkbox("recursive", gettext("Recursive"), !empty($pconfig['recursive']) ? true : false, gettext("Deletes the recursive snapshot."), "", false);
?>
</table>
<div id="submit">
示例9: list_item_func
function list_item_func($x, $y)
{
list_item(html_text($x), $y);
}
示例10: array
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
$addDetails = array('add1', 'add2', 'add3', 'city', 'county', 'country', 'postcode', 'tel', 'mob', 'fax', 'email', 'web', 'facebook', 'twitter', 'linkedin');
foreach ($addDetails as $field) {
if (!isset($_POST[$field])) {
$_POST[$field] = '';
}
}
echo '<h3>Contact Details</h3>';
html_text("Tel", "tel", $_POST['tel']);
html_text("Fax", "fax", $_POST['fax']);
html_text("Mobile", "mob", $_POST['mob']);
html_text("Email", "email", $_POST['email']);
echo '<h3>Address</h3>';
html_text("Address", "add1", $_POST['add1']);
html_text(" ", "add2", $_POST['add2']);
html_text(" ", "add3", $_POST['add3']);
html_text("City", "city", $_POST['city']);
html_text("County", "county", $_POST['county']);
html_text("Country", "country", $_POST['country']);
html_text("Postcode", "postcode", $_POST['postcode']);
html_text("Web", "web", $_POST['web']);
html_text("Facebook", "facebook", $_POST['facebook']);
html_text("Twitter", "twitter", $_POST['twitter']);
html_text("Linkedin", "linkedin", $_POST['linkedin']);
示例11: html_text
html_text("netniosname", gettext("NetBIOS name"), htmlspecialchars($netbiosname));
?>
<?php
html_inputbox("dns_forwarder", gettext("DNS forwarder"), $pconfig['dns_forwarder'], "", false, 40);
?>
<?php
html_text("dns_domain", gettext("DNS domain"), htmlspecialchars($pconfig['dns_domain']));
?>
<?php
html_text("netbios_domain", gettext("NetBIOS domain"), htmlspecialchars($pconfig['netbios_domain']));
?>
<?php
html_text("path", gettext("Path"), htmlspecialchars($pconfig['path']));
?>
<?php
html_text("fstype", gettext("Fileserver"), htmlspecialchars($pconfig['fstype']));
?>
<?php
html_checkbox("user_shares", gettext("User shares"), !empty($pconfig['user_shares']) ? true : false, gettext("Append user defined shares"), "", false);
?>
<?php
html_textarea("auxparam", gettext("Auxiliary parameters"), $pconfig['auxparam'], sprintf(gettext("These parameters are added to [Global] section of %s."), "smb4.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");
?>
" />
</div>
<div id="remarks">
示例12: html_titleline
</table>
<?php
include "formend.inc";
?>
</form>
</td>
</tr>
<?php
if (false == is_file("/tmp/bhyve.install")) {
?>
<tr><td colspan='2' class='list' height='6'></td></tr>
<form action="exec.php" method="post" name="iform" id="iform" >
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<?php
html_titleline(gettext("Update Availability"));
html_text($confconv, gettext("Current Status"), "The latest version on GitHub is: " . $git_ver . "<br /><br />Your version is: " . bhyve_VERSION);
?>
<tr>
<td width="22%" valign="top" class="vncell">Update your installation </td>
<td width="78%" class="vtable">
<?php
echo "Click below to download and install the latest version.";
?>
<br />
<div id="submit_x">
<input id="bhyve_update" name="bhyve_update" type="submit" class="formbtn" value="Update" onClick="return confirm('<?php
echo "Bhyve will stop, and the latest version will download. Are you sure you want to continue?";
?>
');" /><br />
示例13: html_separator
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">
<input name="Submit" type="submit" class="formbtn" value="<?php
echo gettext("Save and Restart");
?>
" onclick="onsubmit_content(); enable_change(true)" />
</div>
<div id="remarks">
<?php
html_remark("note", gettext("Note"), sprintf(gettext("You have to activate <a href='%s'>Zeroconf/Bonjour</a> to advertise this service to clients."), "system_advanced.php"));
?>
</div>
</td>
</tr>
示例14: exec
exec("fetch -o /tmp/pub.ssl http://portsnap.freebsd.org/pub.ssl");
// Uses openssl to verify the "latest.ssl" snapshot using the portsnap public key, and then
// converts that from an epoch second to a usable date.
$most_date = exec("date -j -r `" . $brig_root . "conf/bin/openssl rsautl -pubin -inkey " . "/tmp/pub.ssl -verify < " . "/tmp/latest.ssl | cut -f 2 -d '|'`");
exec("rm /tmp/latest.ssl");
// Get rid of the latest tag
exec("rm /tmp/pub.ssl");
// Get rid of the latest tag
// We need to check if we have ever extracted a snapshot successfully
if (file_exists($brig_root . "conf/ports/.portsnap.INDEX")) {
$extractdate = date("D M d H:i:s T Y", filemtime($brig_root . "conf/ports/.portsnap.INDEX"));
} else {
$extractdate = "Never";
}
html_titleline(gettext("Portstree"));
html_text($confconv, gettext("Current Status"), gettext("The latest snapshot available for download is dated: ") . $most_date . "<br /><br />" . gettext("You have downloaded a snapshot that was released: ") . $tagdate . "<br /><br />" . gettext("The last time you applied a downloaded snapshot was: ") . $extractdate);
// We have never gotten a tag before - we need to fetch and extract a copy first
if ($tagdate === "Never") {
?>
<tr>
<td width="22%" valign="top" class="vncell">Fetch and Extract the
tree </td>
<td width="78%" class="vtable"><?php
echo gettext("The first step to using a central ports tree is to fetch and extract the snapshot of the ports tree. <br /><b>This step should only need to be done the very first time, as it will overwrite anything in the ports tree directory!</b>");
?>
<br />
<div id="submit_x">
<input id="finstall" name="port_op" type="submit"
class="formbtn" value="<?php
echo gettext("Fetch & Install");
?>
示例15: array
$a_pathlist = array();
foreach ($a_path as $pathv) {
$a_pathlist[$pathv['path']] = htmlspecialchars($pathv['path']);
}
?>
<?php
html_combobox("path", gettext("Path"), $pconfig['path'], $a_pathlist, "", true);
?>
<?php
html_inputbox("name", gettext("Name"), $pconfig['name'], "", true, 40);
?>
<?php
html_checkbox("recursive", gettext("Recursive"), !empty($pconfig['recursive']) ? true : false, gettext("Creates the recursive snapshot."), "", false);
?>
<?php
html_text("type", gettext("Type"), htmlspecialchars($pconfig['type']));
?>
<?php
html_combobox("timehour", gettext("Schedule time"), $pconfig['timehour'], $a_timehour, "", true);
?>
<?php
html_combobox("lifetime", gettext("Life time"), $pconfig['lifetime'], $a_lifetime, "", true);
?>
</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");