本文整理汇总了PHP中html_button函数的典型用法代码示例。如果您正苦于以下问题:PHP html_button函数的具体用法?PHP html_button怎么用?PHP html_button使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_button函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: formularioURL
function formularioURL($titulo, $mensaje, $sv, $anex = "")
{
$defurl = isset($_SESSION[$sv]) ? $_SESSION[$sv] : "";
//if($defurl=='SI')$defurl=''; //Parche feo
$ret = "\n\n<form action='url-proc.php' method='post' name='form_{$sv}'>\n\n <input type='hidden' name='titulo' value='{$titulo}'/>\n <input type='hidden' name='mensaje' value='{$mensaje}'/>\n <input type='hidden' name='sv' value='{$sv}'/>\n\n <input type='text' name='url' value='{$defurl}' size='40'/>\n <input type='button' value='Verificar' onclick='window.open(form_{$sv}.url.value, \"_NEW\", \"width=550,height=400\");' />\n <input type='submit' value='Actualizar' />\n {$anex}\n\n</form>\n\n<br/><br/>" . html_button($_SESSION['back']);
return $ret;
}
示例2: getHomeButton
/**
* Get Home buttons
*
* @return object - HTML Home button.
*/
function getHomeButton()
{
$home = html_button("button", "Home");
$home->set_tag_attribute("onclick", "javascript:document.location='/';");
$home->set_style("margin: 10px; vertical-align: middle; width: 90px;");
return $home;
}
示例3: formMenuIntermedio
function formMenuIntermedio($items, $sv, $titulo1, $msg1)
{
?>
A continuación se presenta el formulario para la
generación de páginas intermedias.
<!-- Formulario para el directorio -->
<br/><br/>
<form name="frm" method="POST" action="histo-proc.php">
<input type="submit" value="Generar página" />
<br/><br/>
<?php
echo "<input type='hidden' name='titulo' value='" . $titulo1 . "'/>\n";
echo "<input type='hidden' name='sv' value='" . $sv . "'/>\n";
echo "<input type='hidden' name='archivo' value='" . $sv . '.html' . "'/>\n";
//Valores anuales
echo "<table class='tabla'><tr><th>Título: </th><th colspan='3'>";
echo acentosHTML("<input type='text' size='60' name='tit1' value='" . $titulo1 . "'/></th></tr>\n");
echo "<tr><td>Mensaje: </td><td colspan='3'>";
echo acentosHTML("<textarea cols='50' rows='3' name='mensaje'>" . $msg1 . "</textarea></td></tr>\n");
//for($y=$_POST['desde_ano'];$y<=$para_ano;$y++) {
// echo "<tr><td>Opción $y: </td><td><input type='text' size='30' name='opc[]' value='Año $y'/></td>";
// echo "<td>Enlace: </td><td><input type='text' size='30' name='lnk[]' value='$y/$url1'/></td></tr>\n";
//}
foreach ($items as $key => $val) {
echo '<tr>';
echo '<td>Opción</td>';
echo '<td><input type="text" name="opc[]" value="' . $key . '"/></td>';
echo '<td>Enlace</td>';
echo '<td><input type="text" name="lnk[]" value="' . $val . '"/></td>';
echo '</tr>';
}
echo "</table><br/><br/>\n";
?>
<input type="submit" value="Generar página" />
<br/><br/><?php
echo html_button($_SESSION['back']);
?>
</form>
<?php
}
示例4: formularioMultipagina
function formularioMultipagina($titulo, $msg1, $msg2, $cols, $links, $nombre, $sv, $backto, $headings = "", $footnotes = NULL, $str_enlace = array(), $str_noenlace = array(), $showbackbtn = true)
{
$lnk = implode(",", $links);
$str_enlace = implode(",", $str_enlace);
$str_noenlace = implode(",", $str_noenlace);
$retStr = "\n <form method='post' action='multi-list.php' enctype='multipart/form-data'>\n\n <input type='hidden' name='nombre' value='{$nombre}' />\n <input type='hidden' name='titulo' value='{$titulo}' />\n <input type='hidden' name='msg1' value='{$msg1}' />\n <input type='hidden' name='msg2' value='{$msg2}' />\n <input type='hidden' name='sv' value='{$sv}' />\n <input type='hidden' name='cols' value='{$cols}' />\n <input type='hidden' name='links' value='{$lnk}' />\n <input type='hidden' name='str_enlace' value='{$str_enlace}' />\n <input type='hidden' name='str_noenlace' value='{$str_noenlace}' />\n <input type='hidden' name='backto' value='{$backto}' />\n <input type='hidden' name='headings' value='{$headings}' />\n\n <input type='file' name='archivo' />\n <select name='tipo'>\n <option value='excel' selected>CSV generado por Excel</option>\n <option value='calc'>CSV generado por OpenOffice</option>\n </select>\n <br/>" . ($footnotes !== NULL ? "<br />Notas a pie de página<br /><textarea rows='10' cols='60' name='footnotes'>" . $footnotes . "</textarea>" : "<input type='hidden' name='footnotes' value='' />") . "<br /><br />\n <input type='submit' value='Procesar' />";
if ($showbackbtn) {
$retStr .= "<br/><br/>" . html_button($_SESSION['back']);
}
$retStr .= "</form>";
return $retStr;
}
示例5: formularioExcepcion
function formularioExcepcion($opciones, $titulo, $sv, $archivo, $textarea_readonly = false)
{
if ($textarea_readonly) {
$textarea_readonly = 'readonly="readonly"';
} else {
$textarea_readonly = '';
}
$url_main = isset($_GET['g']) ? "generar.php" : "main.php";
$ret = "\n\n <!-- -->\n<form method='post' action='msg-proc.php' name='frm_{$sv}'>\n\n <input type='hidden' name='titulo' value='{$titulo}' />\n <input type='hidden' name='sv' value='{$sv}' />\n <input type='hidden' name='archivo' value='{$archivo}' />";
if ($opciones) {
$ret .= "Textos predefinidos: \n\t <select name='sel' onchange='frm_{$sv}.texto.value=frm_{$sv}.sel.value;'>\n\t <option value=''>-- Elija un texto --</option>\n\t";
foreach ($opciones as $k => $v) {
$ret = $ret . acentosHTML(" <option value='{$v}'>{$k}</option>\n");
}
$ret = $ret . " </select><br/>";
}
$ret .= "<textarea " . $textarea_readonly . " name=\"texto\" cols=\"40\" rows=\"6\"></textarea><br/>\n <input type=\"submit\" value=\"Procesar\" />\n</form>\n<br/><br/>\n" . html_button($_SESSION['back']);
return $ret;
}
示例6: formHistorico
function formHistorico($archivo1, $titulo1, $msg1, $opc1, $archivo2, $titulo2, $msg2, $opc2, $sv, $defano = 2006, $boton = 1)
{
global $para_mes, $para_ano;
$tit1 = "";
$url1 = "";
foreach ($opc1 as $k => $v) {
$tit1 = "{$tit1},{$k}";
$url1 = "{$url1},{$v}";
}
$tit1 = substr($tit1, 1);
$url1 = substr($url1, 1);
$tit2 = "";
$url2 = "";
foreach ($opc2 as $k => $v) {
$tit2 = "{$tit2},{$k}";
$url2 = "{$url2},{$v}";
}
$tit2 = substr($tit2, 1);
$url2 = substr($url2, 1);
?>
<form method="POST" action="histo-form1.php" name="frm<?php
echo $sv;
?>
">
<input type="hidden" name="archivo1" value="<?php
echo acentosHTML($archivo1);
?>
"/>
<input type="hidden" name="titulo1" value="<?php
echo acentosHTML($titulo1);
?>
"/>
<input type="hidden" name="msg1" value="<?php
echo acentosHTML($msg1);
?>
"/>
<input type="hidden" name="url1" value="<?php
echo acentosHTML($url1);
?>
"/>
<input type="hidden" name="tit1" value="<?php
echo acentosHTML($tit1);
?>
"/>
<input type="hidden" name="sv" value="<?php
echo $sv;
?>
"/>
<table class="tabla">
<tr>
<td><b>Desde qué año se inicia el directorio:</b><br/>
El directorio histórico comenzará en dicho año e
incluirá entradas hasta el <?php
echo $para_ano;
?>
.
<?php
if ($defano == 2006) {
echo "<br/>La publicación de esta información se realiza a partir del año 2006 conforme al Instructivo Presidencial N° 008 (04/12/2006) sobre Transparencia Activa.";
}
?>
</td>
<td valign="top">
<select name="desde_ano">
<?php
for ($i = 2006; $i <= $para_ano; $i++) {
echo " <option value='{$i}' " . ($i == $defano ? "selected" : "") . ">Año {$i}</option>\n";
}
?>
</select>
</td>
</tr>
<tr>
<?php
if (isset($_SESSION[$sv])) {
echo " <th align='left'> (Este directorio histórico ya ha sido generado)</th>";
} else {
echo " <td> </td>";
}
?>
<td><input type="submit" value="Siguiente paso" />
</td>
</tr>
</table><br/>
</form>
<?php
if ($boton == 1) {
echo html_button($_SESSION['back']);
}
}
示例7: lang_get
<tr>
<td colspan="5"> </td>
<!-- Update Button -->
<td colspan="3">
<input type="hidden" name="buglist" value="<?php
echo $t_hidden_bug_list;
?>
" />
<input type="submit" class="button" value="<?php
echo lang_get('update_sponsorship_button');
?>
" />
</td>
</tr>
</table>
</form>
</div>
<?php
}
# end sponsored issues
?>
<br />
<div>
<?php
html_button('account_sponsor_page.php', lang_get($t_show_all ? 'sponsor_hide' : 'sponsor_show'), array('show_all' => $t_show_all ? 0 : 1));
?>
</div>
<?php
html_page_bottom();
示例8: html_input
<?php
echo html_input('hidden', 'contact_id', $contact['id']);
?>
<?php
echo html_csrf_token();
?>
<div class="editor">
<?php
echo html_editor('content');
?>
</div>
<div class="buttons">
<span id="error_wrap"></span>
<span class="ctrenter_hint">ctrl+enter</span>
<?php
echo html_button(LANG_SEND, 'send', 'icms.messages.send()');
?>
</div>
</form>
<?php
}
}
}
?>
</div>
</div>
<?php
}
示例9: email_queue_get
} else {
$t_email_data = email_queue_get((int) $f_to);
// check if email was found. This can fail if another request picks up the email first and sends it.
echo 'Sending email...<br />';
if ($t_email_data !== false) {
if (!email_send($t_email_data)) {
echo 'Email Not Sent - Deleting from queue<br />';
email_queue_delete($t_email_data->email_id);
} else {
echo 'Email Sent<br />';
}
} else {
echo 'Email not found in queue<br />';
}
}
}
}
$t_ids = email_queue_get_ids();
if (count($t_ids) > 0) {
echo '<table><tr><th>' . lang_get('id') . '</th><th>' . lang_get('email') . '</th><th>' . lang_get('timestamp') . '</th><th>Send Or Delete</th></tr>';
foreach ($t_ids as $t_id) {
$row = email_queue_get($t_id);
echo '<tr><td>' . $row->email_id . '</td><td>' . $row->email . '</td><td>' . date(config_get('complete_date_format'), $row->submitted) . '</td><td>', html_button('email_queue.php', 'Send Or Delete', array('send' => $row->email_id)), '</td></tr>';
}
echo '</table>';
html_button('email_queue.php', 'Send All', array('send' => 'all'));
html_button('email_queue.php', 'Send Or Delete All', array('send' => 'sendordelall'));
} else {
echo 'Email Queue Empty';
}
html_page_bottom();
示例10: html_button_wiki
function html_button_wiki($p_bug_id)
{
if (ON == config_get('wiki_enable')) {
if (access_has_bug_level(config_get('update_bug_threshold'), $p_bug_id)) {
html_button('wiki.php', lang_get_defaulted('Wiki'), array('id' => $p_bug_id, 'type' => 'issue'), 'get');
}
}
}
示例11: html_input
echo html_input('text', 'author_email', $email);
?>
</div>
</div>
<?php
}
?>
<?php
echo $user->is_logged ? html_editor('content') : html_textarea('content');
?>
<div class="buttons">
<?php
echo html_button(LANG_PREVIEW, 'preview', 'icms.comments.preview()');
?>
<?php
echo html_button(LANG_SEND, 'submit', 'icms.comments.submit()');
?>
</div>
<div class="loading">
<?php
echo LANG_LOADING;
?>
</div>
</form>
<?php
} else {
?>
<p><?php
printf(LANG_COMMENTS_LOW_KARMA, cmsUser::getPermissionValue('comments', 'karma'));
?>
</p>
示例12: html_button
<style>
* { font-family: sans-serif; font-size: 14px; }
#image_preview { padding:15px; }
#image_preview .button { margin-bottom: 5px; }
#image_preview .image img { width:100%; }
</style>
<div id="image_preview">
<div class="button">
<?php
echo html_button(LANG_CANCEL, "cancel", "cancel()");
?>
</div>
<div class="image">
<img src="<?php
echo $url;
?>
">
</div>
</div>
<script>
parent.fileclick('<?php
echo $url;
?>
');
function cancel(){
parent.fileclick('');
window.location.href = '<?php
echo $this->href_to('upload');
示例13: html_input
?>
<?php
echo html_input('hidden', 'pt', $profile_type);
?>
<?php
echo html_input('hidden', 'pi', $profile_id);
?>
<?php
echo html_editor('content');
?>
<div class="buttons">
<?php
echo html_button(LANG_PREVIEW, 'preview', 'icms.wall.preview()');
?>
<?php
echo html_button(LANG_SEND, 'submit', 'icms.wall.submit()');
?>
</div>
<div class="loading">
<?php
echo LANG_LOADING;
?>
</div>
</form>
</div>
<div id="entries_list">
<?php
if (!$entries) {
?>
示例14: foreach
?>
</div>
<div class="content"><?php
echo $notice['content'];
?>
</div>
<?php
if ($notice['actions']) {
?>
<div class="buttons">
<?php
foreach ($notice['actions'] as $name => $action) {
?>
<?php
echo html_button($action['title'], $name, "icms.messages.noticeAction({$notice['id']}, '{$name}')", array('class' => 'button-small'));
?>
<?php
}
?>
</div>
<?php
}
?>
</div>
<?php
}
?>
示例15: html_header
<?php
require_once "common-histo.php";
$_SESSION['back'] = "personal_historico.php";
html_header("Directorio Histórico de Dotación de Personal");
echo acentosHTML("\nEsta funcionalidad le permitirá construir el\ndirectorio histórico de dotación de personal\nde su Organismo.\n<br/><br/>");
echo "<h2>Dotación de Planta</h2>";
formHistorico("planta_historico.html", "Directorio Anual de Dotación de Planta", "Este directorio organiza la dotación de personal de planta por año.", array("Dotación de personal de planta" => "per_planta.html"), "", "", "", array(), "planta_historico", 2006, 0);
echo "<h2>Dotación a Contrata</h2>";
formHistorico("contrata_historico.html", "Directorio Anual de Dotación a Contrata", "Este directorio organiza la dotación de personal a contrata por año.", array("Dotación de personal a contrata" => "per_contrata.html"), "", "", "", array(), "contrata_historico", 2006, 0);
echo "<h2>Dotación a Honorarios</h2>";
formHistorico("honorarios_historico.html", "Directorio Anual de Dotación a Honorarios", "Este directorio organiza la dotación de personal a honorarios por año.", array("Dotación de personal a honorarios" => "per_honorarios.html"), "", "", "", array(), "honorarios_historico", 2006, 0);
echo "<h2>Otras Contrataciones sujetas al Código del Trabajo</h2>";
formHistorico("codtrabajo_historico.html", "Directorio Anual de Otras Contrataciones sujetas al Código del Trabajo", "Este directorio organiza las demás contrataciones sujetas al Código del Trabajo, por año.", array("Otras contrataciones sujetas al Código del Trabajo" => "per_otros.html"), "", "", "", array(), "codtrabajo_historico", 2009, 0);
echo html_button("main.php");
html_footer();