本文整理汇总了PHP中html_button函数的典型用法代码示例。如果您正苦于以下问题:PHP html_button函数的具体用法?PHP html_button怎么用?PHP html_button使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_button函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:e-gob,项目名称:GobiernoTransparente,代码行数:7,代码来源:common-url.php
示例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;
}
开发者ID:rjoverph,项目名称:flip-turn,代码行数:12,代码来源:widgets.class.php
示例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
}
开发者ID:e-gob,项目名称:GobiernoTransparente,代码行数:57,代码来源:common-menuint.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;
}
开发者ID:e-gob,项目名称:GobiernoTransparente,代码行数:12,代码来源:common-multi.php
示例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;
}
开发者ID:e-gob,项目名称:GobiernoTransparente,代码行数:19,代码来源:common-msg.php
示例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']);
}
}
开发者ID:e-gob,项目名称:GobiernoTransparente,代码行数:100,代码来源:common-histo.php
示例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();
开发者ID:gtn,项目名称:mantisbt,代码行数:31,代码来源:account_sponsor_page.php
示例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
}
开发者ID:Val-Git,项目名称:icms2,代码行数:31,代码来源:contact.tpl.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();
开发者ID:Kirill,项目名称:mantisbt,代码行数:31,代码来源:email_queue.php
示例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');
}
}
}
开发者ID:amjadtbssm,项目名称:website,代码行数:8,代码来源:html_api.php
示例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>
开发者ID:rookees,项目名称:icms2,代码行数:31,代码来源:list.tpl.php
示例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');
开发者ID:asphix,项目名称:icms2,代码行数:31,代码来源:image.tpl.php
示例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) {
?>
开发者ID:asphix,项目名称:icms2,代码行数:31,代码来源:list.tpl.php
示例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
}
?>
开发者ID:asphix,项目名称:icms2,代码行数:30,代码来源:notices.tpl.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();
开发者ID:e-gob,项目名称:GobiernoTransparente,代码行数:16,代码来源:personal_historico.php
示例16: html_button
<?php
$this->addBreadcrumb(LANG_USERS_CFG_FIELDS);
$this->addToolButton(array('class' => 'add', 'title' => LANG_CP_FIELD_ADD, 'href' => $this->href_to('fields_add')));
$this->addToolButton(array('class' => 'save', 'title' => LANG_SAVE, 'href' => null, 'onclick' => "icms.datagrid.submit('{$this->href_to('fields_reorder')}')"));
$this->addToolButton(array('class' => 'help', 'title' => LANG_HELP, 'target' => '_blank', 'href' => LANG_HELP_URL_COM_USERS));
?>
<?php
$this->renderGrid($this->href_to('fields_ajax'), $grid);
?>
<div class="buttons">
<?php
echo html_button(LANG_SAVE_ORDER, 'save_button', "icms.datagrid.submit('{$this->href_to('fields_reorder')}')");
?>
</div>
开发者ID:asphix,项目名称:icms2,代码行数:17,代码来源:fields.tpl.php
示例17: unset
} else {
unset($_SESSION['url_ministro_patrimonio']);
}
if (!ereg("^ *\$", $_POST['url_subsecretario_intereses'])) {
$_SESSION['url_subsecretario_intereses'] = $_POST['url_subsecretario_intereses'];
$txt = "<li>Intereses del Subsecretario(a)</li>";
} else {
unset($_SESSION['url_subsecretario_intereses']);
}
if (!ereg("^ *\$", $_POST['url_subsecretario_patrimonio'])) {
$_SESSION['url_subsecretario_patrimonio'] = $_POST['url_subsecretario_patrimonio'];
$txt = "{$txt}<li>Patrimonio del Subsecretario(a)</li>";
} else {
unset($_SESSION['url_subsecretario_patrimonio']);
}
html_header("Sitios externos (actualizado)");
?>
Los enlaces han sido actualizados.
<ul>
<?php
echo $txt;
?>
</ul><br/>
<?php
echo html_button($_SESSION['back']);
?>
<?php
html_footer();
开发者ID:e-gob,项目名称:GobiernoTransparente,代码行数:31,代码来源:url_patrimonio-b.php
示例18: customer_select
if (!isset($_POST['custid'])) {
$_POST['custid'] = 0;
}
if (!isset($_POST['price'])) {
$_POST['price'] = '';
}
if (!isset($_POST['content'])) {
$_POST['content'] = '';
}
if (!isset($_POST['notes'])) {
$_POST['notes'] = '';
}
customer_select("Customer *", "custid", $_POST['custid'], 0, 'required');
html_textarea("Quote Description *", "content", $_POST['content'], "body", 'required');
html_text("Price *", "price", $_POST['price'], 'required');
html_textarea("Internal Notes (not seen by Customer)", "notes", $_POST['notes'], "notes");
?>
</fieldset>
<fieldset class="buttons">
<?php
html_button("Save Quote");
?>
</fieldset>
</form>
<br>
<br>
<?php
include "../tmpl/footer.php";
开发者ID:athenasystems,项目名称:athena,代码行数:31,代码来源:add.php
示例19: html_checkbox
<label id="is_childs">
<?php
echo html_checkbox('is_childs', true);
?>
<?php
echo LANG_CP_PROPS_BIND_RECURSIVE;
?>
</label>
</div>
</form>
<div style="display:none">
<?php
echo html_select('props_list', array_collection_to_list($props, 'id', 'title'));
?>
</div>
<?php
}
?>
<div class="buttons">
<?php
echo html_button(LANG_SAVE_ORDER, 'save_button', "icms.datagrid.submit('{$this->href_to('ctypes', array('props_reorder', $ctype['name']))}')");
?>
</div>
</td>
</tr>
</table>
<?php
}
开发者ID:asphix,项目名称:icms2,代码行数:31,代码来源:ctypes_props.tpl.php
示例20: custom_function_override_print_bug_view_page_custom_buttons
function custom_function_override_print_bug_view_page_custom_buttons($p_bug_id)
{
# Zuerst die lokalierten Buttontexte auslesen
if (lang_get_current() === 'german') {
$t_bfe_clone_issue_button = 'Klon in anderes Projekt...';
$t_bfe_edit_failure_class_button = 'Fehlerklasse bearbeiten...';
} else {
$t_bfe_clone_issue_button = 'Clone To Other Project...';
$t_bfe_edit_failure_class_button = 'Edit Failure Class...';
}
# Wenn Zugriff mindestens onsite developer, dann darf er Issues klonen
if (access_has_project_level(50)) {
echo '<td>';
html_button_bug_clone_to_project($p_bug_id, $t_bfe_clone_issue_button);
echo '</td>';
}
# Wenn Zugriff ändern von Fehlerklasse erlaubt, dann darf er sie ändern
# Aber nur bis Status 'bestätigt' (40=confirmed)
# Und nur für QS-Reporter (30) und ab Entwickler vor Ort (50) aufwärts
if (custom_field_has_write_access(1, $p_bug_id)) {
if (bug_get_field($p_bug_id, 'status') < 40) {
if (access_compare_level(access_get_project_level(), array(30, 50, 55, 70, 90))) {
echo '<td>';
$t_bfe_bugs[] = $p_bug_id;
$t_src = relationship_get_all_src($p_bug_id);
$t_src_count = count($t_src);
$t_dest = relationship_get_all_dest($p_bug_id);
$t_dest_count = count($t_dest);
if ($t_src_count || $t_dest_count) {
# Zunächst die Destination Bug IDs
for ($x = 0; $x < $t_src_count; $x++) {
$t_thisbugid = $t_src[$x]->dest_bug_id;
if (access_has_bug_level(50, $t_thisbugid)) {
$t_bfe_bugs[] = $t_thisbugid;
}
}
# und jetzt die Source Bug IDs
for ($y = 0; $y < $t_dest_count; $y++) {
$t_thisbugid = $t_dest[$y]->src_bug_id;
if (access_has_bug_level(50, $t_thisbugid)) {
$t_bfe_bugs[] = $t_thisbugid;
}
}
}
if (count($t_bfe_bugs) > 1) {
bfe_fehlerklasse_button('bug_actiongroup_page.php', $t_bfe_edit_failure_class_button, $t_bfe_bugs);
} else {
html_button('bug_actiongroup_page.php', $t_bfe_edit_failure_class_button, array('bug_arr[]' => $p_bug_id, 'action' => 'custom_field_1'));
}
echo '</td>';
}
}
}
}
开发者ID:bfekomsthoeft,项目名称:TTS_Praxisprojekt1,代码行数:54,代码来源:custom_functions_inc.php
注:本文中的html_button函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论