本文整理汇总了PHP中html_text函数的典型用法代码示例。如果您正苦于以下问题:PHP html_text函数的具体用法?PHP html_text怎么用?PHP html_text使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_text函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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";
开发者ID:kinged007,项目名称:thebrig,代码行数:30,代码来源:extensions_thebrig_tools.php
示例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>
开发者ID:athenasystems,项目名称:athena,代码行数:31,代码来源:add.php
示例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>
开发者ID:athenasystems,项目名称:athena,代码行数:31,代码来源:edit.php
示例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);
开发者ID:crestAT,项目名称:nas4free-onebuttoninstaller,代码行数:31,代码来源:onebuttoninstaller-config.php
示例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";
?>
?>
开发者ID:alexey1234,项目名称:vmbhyve_nas4free,代码行数:29,代码来源:extensions_bhyve_manual.php
示例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>
开发者ID:athenasystems,项目名称:athena,代码行数:31,代码来源:details.php
示例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);
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_samba_ad_init.php
示例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">
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:disks_zfs_snapshot_edit.php
示例9: list_item_func
function list_item_func($x, $y)
{
list_item(html_text($x), $y);
}
开发者ID:nicolas17,项目名称:boincgit-test,代码行数:4,代码来源:docutil.php
示例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']);
开发者ID:athenasystems,项目名称:athena,代码行数:30,代码来源:adds.add.form.php
示例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">
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_samba_ad.php
示例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 />
开发者ID:alexey1234,项目名称:vmbhyve_nas4free,代码行数:31,代码来源:extensions_bhyve_config.php
示例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>
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_daap.php
示例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");
?>
开发者ID:kinged007,项目名称:thebrig,代码行数:31,代码来源:extensions_thebrig_ports.php
示例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");
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:disks_zfs_snapshot_auto_edit.php
示例16: page_head
<?php
require_once "docutil.php";
page_head("Server status XML export");
echo "\nBOINC-based projects offer the following XML export\nat <code>URL/server_status.php</code>.\nThese are generally updated every 10 minutes or so -\ndo not poll more often than that.\nThese can be used to make web sites showing\nthe server status of multiple BOINC projects.\n<p>\n";
echo html_text("\n<server_status>\n <update_time>1128535206</update_time>\n <daemon_status>\n <daemon>\n <host>jocelyn</host>\n <command>BOINC database</command>\n <status>running</status>\n </daemon>\n <daemon>\n <host>castelli</host>\n <command>master science database</command>\n <status>running</status>\n </daemon>\n <daemon>\n <host>klaatu</host>\n <command>data-driven web pages</command>\n <status>disabled</status>\n </daemon>\n <daemon>\n <host>galileo</host>\n <command>feeder</command>\n <status>not running</status>\n </daemon>\n </daemon_status>\n\t<database_file_states>\n <results_ready_to_send>614830</results_ready_to_send>\n <results_in_progress>1208959</results_in_progress>\n <workunits_waiting_for_validation>8</workunits_waiting_for_validation>\n <workunits_waiting_for_assimilation>2</workunits_waiting_for_assimilation>\n <workunits_waiting_for_deletion>4</workunits_waiting_for_deletion>\n <results_waiting_for_deletion>15</results_waiting_for_deletion>\n <transitioner_backlog_hours>0.00083333334</transitioner_backlog_hours>\n </database_file_states>\n</server_status>");
page_tail();
开发者ID:ChristianBeer,项目名称:boinc,代码行数:7,代码来源:server_status.php
示例17: eor
/**
* Decide whether to echo or return. Used by HTML functions
*/
function eor($rstring, $return)
{
if ($return) {
return $rstring;
} else {
html_text($rstring . "\n");
return '';
}
}
开发者ID:HaakonME,项目名称:porticoestate,代码行数:12,代码来源:class.bofilemanager.inc.php
示例18: time
?>
</h3>
<fieldset>
<?php
if (!$r->incept) {
$r->incept = time();
}
// Quotes submitted via Control Panel have no Quote Date initially
$value = date("Y-m-d", $r->incept);
html_dateselect("Date", "incept", $value);
customer_select("Customer", "custid", $r->custid, 0, 'required');
custcontact_select("External Contact", "contactsid", $r->contactsid, $r->custid);
staff_select("Internal Contact", "staffid", $r->staffid);
html_textarea("Quote Description *", "content", $r->content, "body", 'required');
html_text("Price *", "price", $r->price, 'required');
html_textarea("Notes", "notes", $r->notes, "notes");
?>
Making a Quote as Live means it can be seen by customer in the
Customer Control Panel
<?php
$chkd = $r->live ? 1 : 0;
html_checkbox('Make it Live?', 'live', 1, $chkd);
?>
</fieldset>
<fieldset class="buttons"><?php
html_button("Save changes");
?>
开发者ID:athenasystems,项目名称:athena,代码行数:31,代码来源:edit.php
示例19: 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(gettext("Firmware"));
?>
<?php
html_text("Current version", gettext("Current Version:"), sprintf("%s %s (%s)", get_product_name(), get_product_version(), get_product_revision()));
?>
<?php
html_separator();
?>
<?php
if (isset($fwinfo) && $fwinfo) {
html_titleline(gettext("Online version check"));
echo "<tr id='fwinfo'><td class='vtable' colspan='2'>";
echo "{$fwinfo}";
echo "</td></tr>\n";
html_separator();
}
?>
</table>
<?php
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:system_firmware.php
示例20: ok
} else {
ok("delete");
}
###
# mkdir test
$phpgw->vfs->cd();
$result = $phpgw->vfs->mkdir(array('string' => $testfile));
if (!$result) {
fail(__LINE__ . "failed creating collection! returned: {$result}");
} else {
ok("mkdir");
}
$result = $phpgw->vfs->write(array('string' => $testfile . '/' . $testfile . '2', 'content' => $teststring));
if (!$result) {
fail(__LINE__ . " failed writing file into new dir!");
} else {
ok("mkdir : write into dir");
}
###
# rm dir test
$phpgw->vfs->cd();
$result = $phpgw->vfs->rm(array('string' => $testfile));
if (!$result) {
fail(__LINE__ . " failed deleting collection! returned: {$result}");
} else {
ok("delete dir");
}
//html_table_end();
$time = time() - $time1;
html_text("Done in {$time} s");
html_page_close();
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:test_dav.php
注:本文中的html_text函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论