当前位置: 首页>>代码示例>>PHP>>正文


PHP HtmlInput::submit方法代码示例

本文整理汇总了PHP中HtmlInput::submit方法的典型用法代码示例。如果您正苦于以下问题:PHP HtmlInput::submit方法的具体用法?PHP HtmlInput::submit怎么用?PHP HtmlInput::submit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HtmlInput的用法示例。


在下文中一共展示了HtmlInput::submit方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: export_stock_summary_list_form

 function export_stock_summary_list_form()
 {
     echo '<form style="display:inline"  method="GET" action="export.php">';
     echo HtmlInput::get_to_hidden(array("gDossier", "state_exercice"));
     echo HtmlInput::hidden('act', 'CSV:StockResmList');
     echo HtmlInput::submit('stockresm', 'Export CSV');
     echo '</form>';
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:8,代码来源:class_stock.php

示例2: isset

        $p_post = null;
        if (isset($_REQUEST['pre_def']) && $_REQUEST['pre_def'] != '') {
            $op->set_od_id($_REQUEST['pre_def']);
            $p_post = $op->compute_array();
        }
    }
}
$p_msg = isset($p_msg) ? $p_msg : "";
print '<p class="notice">' . $p_msg . '</p>';
echo '<form method="post"  class="print">';
echo dossier::hidden();
echo HtmlInput::request_to_hidden(array('ac'));
echo $ledger->input($p_post);
echo '<div style="position:absolute;width:40%;right:20px">';
echo '<table class="info_op">' . '<tr>' . td(_('Débit')) . '<td id="totalDeb"></td>' . td(_('Crédit')) . ' <td id="totalCred"></td>' . td(_('Difference')) . ' <td id="totalDiff"></td>';
echo '</table>';
echo '</div>';
$iconcerned = new IConcerned('jrn_concerned');
$iconcerned->amount_id = "totalDeb";
echo "Opération rapprochée : " . $iconcerned->input();
echo '<p>';
echo HtmlInput::button('add', _('Ajout d\'une ligne'), 'onClick="quick_writing_add_row()"');
echo HtmlInput::submit('summary', _('Sauvez'));
echo '</p>';
echo '</form>';
echo "<script>checkTotalDirect();</script>";
echo create_script(" update_name()");
if ($g_parameter->MY_DATE_SUGGEST == 'Y') {
    echo create_script(" get_last_date()");
}
echo '</div>';
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:operation_ods_new.inc.php

示例3: list

    // Count nb of line
    $max_line = $cn->count_sql($sql);
    list($count, $a) = $ledger->list_operation($sql, $offset, 0);
    $bar = navigation_bar($offset, $max_line, $step, $page);
    echo $bar;
    echo $a;
    echo $bar;
    /*
     * Export to csv
     */
    $r = HtmlInput::get_to_hidden(array('l', 'date_start', 'date_end', 'desc', 'amount_min', 'amount_max', 'qcode', 'accounting', 'unpaid', 'gDossier', 'ledger_type'));
    if (isset($_GET['r_jrn'])) {
        foreach ($_GET['r_jrn'] as $k => $v) {
            $r .= HtmlInput::hidden('r_jrn[' . $k . ']', $v);
        }
    }
    echo '<form action="export.php" method="get">';
    echo $r;
    echo HtmlInput::hidden('act', 'CSV:histo');
    echo HtmlInput::submit('viewsearch', _('Export vers CSV'));
    echo HtmlInput::hidden('p_action', 'ALL');
    ?>
    <input type="button" class="smallbutton" onclick="window.close()" value="<?php 
    echo _('Fermer');
    ?>
">

<?php 
    echo '</form>';
}
echo '</div>';
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:recherche.php

示例4: _

 </td>
			</tr>
			<tr>
				<td> <?php 
echo _("Montant inférieur ou égal à");
?>
  </td>
				<td> <?php 
echo $wamount_end->input();
?>
 </td>
			</tr>

			<tr>
				<td> <?php 
echo _("Direction");
?>
 </td>
				<td> <?php 
echo $wdirection->input();
?>
 </td>
			</tr>
		</table>
		<?php 
echo HtmlInput::submit("search_histo_b", _("Recherche"));
?>
	</form>
</div>

开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:29,代码来源:stock_histo_search.php

示例5: _

        $last--;
    }
}
echo $last;
?>
</td>
</tr>
<tr>
<td>
<?php 
echo _("Redémarrer la séquence (laisser à 0 pour ne pas changer)");
?>
</td>
<td>
<?php 
$pj = new INum('seq');
$pj->value = 0;
echo $pj->input();
?>
</td>
</tr>

</table>
<?php 
echo HtmlInput::hidden('p_action', 'document');
echo dossier::hidden();
echo HtmlInput::hidden('sa', 'mod_template');
echo HtmlInput::hidden('id', $doc->md_id);
echo HtmlInput::submit("mod", _('Sauver'));
?>
</form>
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:modele_document.php

示例6: ITextarea

$name->size = 60;
echo "Nom =" . $name->input();
$opd_description = new ITextarea('od_description');
$opd_description->style = ' class="itextarea" style="width:30em;height:4em;vertical-align:top"';
$opd_description->value = $op->od_description;
echo '<p>';
echo _("Description (max 50 car.)");
echo $opd_description->input();
echo '</p>';
echo dossier::hidden() . HtmlInput::hidden('od_id', $_GET['id']);
echo "<hr>";
//////////////////////////////////////////////////////////////////////////////
// Detail operation
//////////////////////////////////////////////////////////////////////////////
echo $op->display();
echo HtmlInput::submit('save', _('Sauve'));
echo HtmlInput::button('close', _('Annuler'), 'onclick="removeDiv(\'mod_predf_op\')"');
echo '</form>';
$html1 = ob_get_contents();
ob_end_clean();
$html = escape_xml($html1);
if (headers_sent()) {
    echo $html1;
} else {
    header('Content-type: text/xml; charset=UTF-8');
}
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
<ctl>mod_predf_op</ctl>
<code>{$html}</code>
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_mod_predf_op.php

示例7: _

        echo '<a style="display:inline" class="smallbutton" href="do.php?' . $href . '">' . _('Retour') . '</a>';
        echo '</form>';
        echo '</div>';
        echo '</div>';
        return;
    } catch (Exception $e) {
        echo "<div class=\"error\"><p>" . _("Erreur") . " : " . $e->getMessage() . '</p><p>' . _('Vous devez corriger') . '</p></div>';
        $anc = new Anticipation($cn, $_GET['f_id']);
        echo '<div class="content">';
        /* display a blank form for name and category */
        echo '<form method="post" action="?">';
        echo dossier::hidden();
        echo HtmlInput::hidden('sa', 'mod');
        echo HtmlInput::hidden('ac', $_REQUEST['ac']);
        echo $anc->form_cat();
        echo HtmlInput::submit('mod_cat_save', _('Sauver'));
        echo '</form>';
        echo '</div>';
    }
}
/* * ********************************************************************
 * Display menu
 *
 *
 * ******************************************************************** */
// display button add and list of forecast to display
if ($sa == 'list') {
    $aForecast = Forecast::load_all($cn);
    $menu = array();
    $get_dossier = dossier::get();
    echo '<div class="content">';
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:forecast.inc.php

示例8: show_button

 function show_button($p_string = "")
 {
     $r = "";
     $r .= '<form method="GET" action="export.php" style="display:inline">';
     $r .= $p_string;
     $r .= HtmlInput::hidden("to", $this->to);
     $r .= HtmlInput::hidden("act", "PDF:AncBalDouble");
     $r .= HtmlInput::hidden("from", $this->from);
     $r .= HtmlInput::hidden("pa_id", $this->pa_id);
     $r .= HtmlInput::hidden("from_poste", $this->from_poste);
     $r .= HtmlInput::hidden("to_poste", $this->to_poste);
     $r .= HtmlInput::hidden("pa_id2", $this->pa_id2);
     $r .= HtmlInput::hidden("from_poste2", $this->from_poste2);
     $r .= HtmlInput::hidden("to_poste2", $this->to_poste2);
     $r .= dossier::hidden();
     $r .= HtmlInput::submit('bt_pdf', "Export en PDF");
     $r .= '</form>';
     $r .= '<form method="GET" action="export.php"  style="display:inline">';
     $r .= HtmlInput::hidden("to", $this->to);
     $r .= HtmlInput::hidden("act", "CSV:AncBalDouble");
     $r .= HtmlInput::hidden("from", $this->from);
     $r .= HtmlInput::hidden("pa_id", $this->pa_id);
     $r .= HtmlInput::hidden("from_poste", $this->from_poste);
     $r .= HtmlInput::hidden("to_poste", $this->to_poste);
     $r .= HtmlInput::hidden("pa_id2", $this->pa_id2);
     $r .= HtmlInput::hidden("from_poste2", $this->from_poste2);
     $r .= HtmlInput::hidden("to_poste2", $this->to_poste2);
     $r .= $p_string;
     $r .= dossier::hidden();
     $r .= HtmlInput::submit('bt_csv', "Export en CSV");
     $r .= '</form>';
     return $r;
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:33,代码来源:class_anc_balance_double.php

示例9: save_tag

    /*
     * save via javascript and don't reload page
     */
} else {
    ?>
    <form id="tag_detail_frm" method="POST" onsubmit="return save_tag();">
<?php 
}
?>
        
    <?php 
echo dossier::hidden();
echo HtmlInput::hidden('t_id', $_GET['tag']);
echo HtmlInput::hidden('ac', $_GET['ac']);
$data = $tag->data;
require_once 'template/tag_detail.php';
echo HtmlInput::submit("save_tag_sb", "Valider");
?>
</form>
<?php 
$response = ob_get_clean();
$html = escape_xml($response);
header('Content-type: text/xml; charset=UTF-8');
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
<ctl></ctl>
<code>{$html}</code>
</data>
EOF;
exit;
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_tag_detail.php

示例10: td

echo td(_('Depuis le poste')) . td($from_poste->input());
echo '</tr>';
echo '<tr>';
echo td(_("Jusqu'au poste")) . td($to_poste->input());
echo '</tr>';
echo '<tr>';
echo td(_('Uniquement les opérations non lettrées'));
echo td($letter->input());
echo '</tr>';
echo '<tr>';
echo td(_('Uniquement les comptes non soldés'));
echo td($solded->input());
echo '</tr>';
//
echo '</TABLE>';
print HtmlInput::submit('bt_html', _('Visualisation'));
echo '</FORM>';
echo '<hr>';
echo '</div>';
//-----------------------------------------------------
// If print is asked
// First time in html
// after in pdf or cvs
//-----------------------------------------------------
if (isset($_REQUEST['bt_html'])) {
    require_once NOALYSS_INCLUDE . '/class_acc_account_ledger.php';
    echo '<div class="content">';
    echo Acc_Account_Ledger::HtmlTableHeader("gl_comptes");
    echo '</div>';
    $sql = 'select pcm_val from tmp_pcmn ';
    $cond_poste = '';
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:impress_gl_comptes.inc.php

示例11: input_new

 function input_new()
 {
     $single = new Tool_Uos("dup");
     echo '<form method="post" style="display:inline">';
     echo $single->hidden();
     echo HtmlInput::hidden("p_action", "fiche");
     echo dossier::hidden();
     echo $this->input();
     //    CreateCategory($cn,$search);
     echo HtmlInput::submit("add_modele", _("Sauve"));
     echo '</FORM>';
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:12,代码来源:class_fiche_def.php

示例12: Acc_Report

    $rapport = new Acc_Report($cn);
    $aRapport = $rapport->make_array();
    $aRapport[] = array("value" => 0, "label" => _('Aucun mini rapport'));
    $wRapport = new ISelect();
    $wRapport->name = "minirap";
    $wRapport->selected = $g_user->get_mini_report();
    $wRapport->value = $aRapport;
    echo $wRapport->input();
    echo '<span class="notice">' . _('Le mini rapport est un rapport qui s\'affiche  sur votre page d\'accueil') . '</span>';
    echo '</fieldset>';
}
echo '<fieldset  style="margin: 1%">';
echo '<legend>' . _('Langue') . '</legend>';
echo _('Selectionnez votre langue');
$aLang = array(array(_('Français'), 'fr_FR.utf8'), array(_('Anglais'), 'en_US.utf8'), array(_('Néerlandais'), 'nl_NL.utf8'));
echo '<select name="lang" id="l">';
for ($i = 0; $i < count($aLang); $i++) {
    $sel = "";
    if ($aLang[$i][1] == $_SESSION['g_lang']) {
        $sel = " selected ";
    }
    printf('<option value="%s" %s>%s</option>', $aLang[$i][1], $sel, $aLang[$i][0]);
}
echo '</select>';
echo '</fieldset>';
echo '<p style="text-align:center">';
echo HtmlInput::button_close('preference_div');
echo HtmlInput::submit("set_preference", _("Valider"));
echo '</p>';
echo '</form>';
echo "</DIV>";
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_preference.php

示例13: _

echo '<li>' . $radio->input() . _('Opérations rapprochées avec des montants identiques') . '</li>';
$radio->selected = $choice == 3 ? true : false;
$radio->value = 3;
echo '<li>' . $radio->input() . _('Opérations non rapprochées') . '</li>';
echo '</ol>';
echo HtmlInput::submit('vis', _('Visualisation'));
echo '</form>';
echo '<hr>';
echo '</div>';
echo '</div>';
echo '<div class="content">';
if (!isset($_GET['vis'])) {
    return;
}
$acc_reconciliation = new Acc_Reconciliation($cn);
$acc_reconciliation->a_jrn = $r_jrn;
$acc_reconciliation->start_day = $dstart->value;
$acc_reconciliation->end_day = $dend->value;
$array = $acc_reconciliation->get_data($choice);
$gDossier = Dossier::id();
?>
<form method="get" action="export.php">
    <?php 
echo HtmlInput::get_to_hidden(array('ac', 'gDossier', 'p_end', 'p_start', 'choice', 'r_jrn'));
echo HtmlInput::hidden('act', 'CSV:Reconciliation');
echo HtmlInput::submit("csv_bt", "Export CSV");
?>
</form>
<?php 
require_once NOALYSS_INCLUDE . '/template/impress_reconciliation.php';
return;
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:impress_rec.inc.php

示例14: select_ledger

 /**
  * return the html code to create an hidden div and a button
  * to show this DIV. This contains all the available ledgers
  * for the user in READ or RW
  *@param $selected is an array of checkbox
  *@param $div div suffix
  *@note the choosen ledger are stored in the array r_jrn (_GET)
  */
 static function select_ledger($p_type, $p_selected, $div = '')
 {
     global $g_user;
     $r = '';
     /* security : filter ledger on user */
     $p_array = $g_user->get_ledger($p_type, 3);
     ob_start();
     /* create a hidden div for the ledger */
     echo '<div id="div_jrn' . $div . '" >';
     echo HtmlInput::title_box(_("Journaux"), $div . "jrn_search");
     echo '<div style="padding:5px">';
     echo '<form method="GET" id="' . $div . 'search_frm" onsubmit="return hide_ledger_choice(\'' . $div . 'search_frm\')">';
     echo HtmlInput::hidden('nb_jrn', count($p_array));
     echo _('Filtre ') . HtmlInput::filter_table($div . 'tb_jrn', '0,1,2', 2);
     echo '<table class="result" id="' . $div . 'tb_jrn">';
     echo '<tr>';
     echo th(_('Nom'));
     echo th(_('Description'));
     echo th(_('Type'));
     echo '</tr>';
     echo '<tr>';
     echo '<td>';
     echo HtmlInput::button('sel_' . $div, _('Inverser la sélection'), ' onclick = "toggle_checkbox(\'' . "{$div}search_frm" . '\')"');
     echo '</td>';
     echo '</tr>';
     for ($e = 0; $e < count($p_array); $e++) {
         $row = $p_array[$e];
         $r = new ICheckBox($div . 'r_jrn' . $e, $row['jrn_def_id']);
         $idx = $row['jrn_def_id'];
         if ($p_selected != null && in_array($row['jrn_def_id'], $p_selected)) {
             $r->selected = true;
         }
         $class = $e % 2 == 0 ? ' class="even" ' : ' class="odd" ';
         echo '<tr ' . $class . '>';
         echo '<td style="white-space: nowrap">' . $r->input() . $row['jrn_def_name'] . '</td>';
         echo '<td >' . $row['jrn_def_description'] . '</td>';
         echo '<td >' . $row['jrn_def_type'] . '</td>';
         echo '</tr>';
     }
     echo '</table>';
     echo HtmlInput::hidden('div', $div);
     echo HtmlInput::submit('save', _('Valider'));
     echo HtmlInput::button_close($div . "jrn_search");
     echo '</form>';
     echo '</div>';
     echo '</div>';
     $ret = ob_get_contents();
     ob_end_clean();
     return $ret;
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:58,代码来源:class_html_input.php

示例15: header

        echo $dom->saveXML();
        return;
    }
    if ($g_user->check_action(SHARENOTE) == 0) {
        header('Content-type: text/xml; charset=UTF-8');
        $dom = new DOMDocument('1.0', 'UTF-8');
        $tl_id = $dom->createElement('content', _("Accès interdit"));
        $dom->appendChild($tl_id);
        echo $dom->saveXML();
        return;
    }
    ob_start();
    echo HtmlInput::title_box(_('Liste utilisateurs'), "shared_" . $id);
    $todo->display_user();
    echo '<p style="text-align:center">';
    echo HtmlInput::submit('close' . $id, 'Ferme', " onclick=\"\$('shared_{$id}').remove();\"");
    echo '</p>';
    $result = ob_get_clean();
    //
    // output the XML
    header('Content-type: text/xml; charset=UTF-8');
    $dom = new DOMDocument('1.0', 'UTF-8');
    $tl_id = $dom->createElement('content', escape_xml($result));
    $dom->appendChild($tl_id);
    echo $dom->saveXML();
    return;
}
////////////////////////////////////////////////////////////////////////////////
// Share the note with someone or remove it
////////////////////////////////////////////////////////////////////////////////
if ($ac == "set_share") {
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_todo_list.php


注:本文中的HtmlInput::submit方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。