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


PHP HtmlInput::hidden方法代码示例

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


在下文中一共展示了HtmlInput::hidden方法的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: _

echo HtmlInput::hidden('p_id', $profile->p_id);
echo HtmlInput::hidden('save_name', 1);
require_once "template/profile.php";
echo HtmlInput::submit("save_namebt", _("Modifier"));
echo '</form>';
if ($profile->p_id > 0) {
    echo '<form method="POST" id="profile_clone_frm" onsubmit="return confirm_box(this,\'' . _("vous confirmez") . '\')">';
    echo _('Vous pouvez aussi copier ce profil et puis le corriger');
    echo HtmlInput::hidden('p_id', $profile->p_id);
    echo HtmlInput::hidden('clone', 1);
    echo HtmlInput::submit("clonebt", "Copier");
    echo '</form>';
    echo '<form method="POST" id="delete_profile_frm" onsubmit="return confirm_box(this,\'' . _("vous confirmez") . '\')">';
    echo _('Effacer ce profil');
    echo HtmlInput::hidden('p_id', $profile->p_id);
    echo HtmlInput::hidden('delete_profil', 1);
    echo HtmlInput::submit("delete_profil", _("Effacer ce profil"));
    echo '</form>';
    echo '</div>';
    echo '<div class="myfieldset"  style="display:none" id="profile_menu_div">';
    //Menu / Module /plugin in this profile
    echo "<h1 class=\"legend\">" . _("Menu") . "</h2>";
    $profile_menu = new Profile_Menu($cn);
    $profile_menu->p_id = $p_id;
    $profile_menu->display_profile_menu_detail();
    echo '</div>';
    echo '<div class="myfieldset"  style="display:none" id="profile_print_div">';
    echo "<h1 class=\"legend\">" . _("Impression") . "</h1>";
    $profile_menu->printing();
    echo $add_impression;
    echo '</div>';
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_get_profile.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: _

        $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

示例5: test_me

 function test_me()
 {
     $cn = new Database(dossier::id());
     $anco = new Anc_Operation($cn);
     $j_id = 200;
     $anco->j_id = $j_id;
     $array = $anco->get_by_jid($j_id);
     $a = $anco->to_request($array, 1);
     echo '<form>';
     echo dossier::hidden();
     echo HtmlInput::hidden('j_id', $j_id);
     echo HtmlInput::hidden('test_select', $_REQUEST['test_select']);
     echo $anco->display_table(1, 15002, 0);
     echo '<input type="submit" name="save">';
     echo '</form>';
     if (isset($_REQUEST['save'])) {
         echo "to_save";
         var_dump($_REQUEST);
     }
     var_dump($a);
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:21,代码来源:class_anc_operation.php

示例6: ICheckbox

        if ($this->content[$i]['j_id'] == $p_jid) {
            continue;
        }
        if ($jnt_id == $this->content[$i]['letter'] && $i >= $linked_limit) {
            continue;
        }
        $check = new ICheckbox('ck[]', $this->content[$i]['j_id']);
        if ($jnt_id == $this->content[$i]['letter'] && $i < $linked_limit) {
            $check->selected = true;
        } else {
            $check->selected = false;
        }
        if ($this->content[$i]['letter'] < 0 || $check->selected == true) {
            echo $check->input();
        }
        echo HtmlInput::hidden('letter_j_id[]', $this->content[$i]['j_id']);
        ?>
</td>
<td>
<?php 
        $letter = $this->content[$i]['letter'] < 0 ? " " : strtoupper(base_convert($this->content[$i]['letter'], 10, 36));
        echo $letter;
        ?>
</td>
<td> <?php 
        echo smaller_date($this->content[$i]['j_date_fmt']);
        ?>
 </td>
<?php 
        $r = sprintf('<A class="detail" style="text-decoration:underline"  HREF="javascript:viewOperation(\'%s\',\'%s\')" >%s</A>', $this->content[$i]['jr_id'], $gDossier, $this->content[$i]['jr_internal']);
        ?>
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:letter_prop.php

示例7: http_build_query

        echo HtmlInput::hidden('ac', $_REQUEST['ac']);
        $href = http_build_query(array('ac' => $_REQUEST['ac'], 'gDossier' => $_REQUEST['gDossier']));
        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();
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:forecast.inc.php

示例8: test_me

 static function test_me()
 {
     if (isset($_GET['result'])) {
         ob_start();
         $cn = new Database(dossier::id());
         $a = new Acc_Bilan($cn);
         $a->get_request_get();
         $a->load();
         $form = $a->file_open_form();
         $a->compute_formula($form);
         fclose($form);
         // open the form
         $templ = $a->file_open_template();
         $r = $a->generate_odt($templ);
         fclose($templ);
         ob_end_clean();
         $a->send($r);
     } else {
         $cn = new Database(dossier::id());
         $a = new Acc_Bilan($cn);
         $a->get_request_get();
         echo '<form method="get">';
         echo $a->display_form();
         echo HtmlInput::hidden('test_select', $_GET['test_select']) . dossier::hidden();
         echo HtmlInput::submit('result', 'Sauve');
         echo '</form>';
     }
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:28,代码来源:class_acc_bilan.php

示例9: Fiche

echo '</tr>';
for ($e = 0; $e < count($obj->det->array); $e++) {
    $row = '';
    $q = $obj->det->array[$e];
    $fiche = new Fiche($cn, $q['qp_fiche']);
    $view_card_detail = HtmlInput::card_detail($fiche->strAttribut(ATTR_DEF_QUICKCODE), "", ' class="line" ');
    $row = td($view_card_detail);
    $sym_tva = '';
    if ($g_parameter->MY_TVA_USE == 'Y' && $q['qp_vat_code'] != '') {
        /* retrieve TVA symbol */
        $tva = new Acc_Tva($cn, $q['qp_vat_code']);
        $tva->load();
        $sym_tva = h($tva->get_parameter('label'));
    }
    $input = new ISpan("e_march" . $q['j_id'] . "_label");
    $hidden = HtmlInput::hidden("j_id[]", $q['j_id']);
    $input->value = $fiche->strAttribut(ATTR_DEF_NAME);
    $row .= td($input->input() . $hidden);
    $row .= td($sym_tva, 'style="text-align:center"');
    $pu = 0;
    if ($q['qp_quantite'] != 0) {
        $pu = bcdiv($q['qp_price'], $q['qp_quantite']);
    }
    $row .= td(nbm($pu), 'class="num"');
    $row .= td(nbm($q['qp_quantite']), 'class="num"');
    $no_ded = $q['qp_nd_amount'];
    $row .= td(nbm($q['qp_dep_priv']), 'style="text-align:right"');
    $row .= td(nbm($no_ded), ' style="text-align:right"');
    $htva = $q['qp_price'];
    $row .= td(nbm($htva), 'class="num"');
    $tvac = bcadd($htva, $q['qp_vat']);
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:operation_detail_ach.php

示例10: 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

示例11: isset

    echo '<h2>' . "Exercice " . $g_user->get_exercice() . '</h2>';
    echo dossier::hidden();
    $a = isset($_GET['query']) ? $_GET['query'] : "";
    printf(_('Recherche') . ' <input class="input_text" type="text" name="query" value="%s">', $a);
    echo HtmlInput::request_to_hidden(array('ac'));
    $choice_cat = HtmlInput::default_value_request("choice_cat", 1);
    if ($choice_cat == 1) {
        $sel_card = new ISelect('cat');
        $sel_card->value = $cn->make_array('select fd_id, fd_label from fiche_def ' . ' where  frd_id=$1 ' . ' order by fd_label ', 1, array(FICHE_TYPE_ADM_TAX));
        $sel_card->selected = isset($_GET['cat']) ? $_GET['cat'] : -1;
        $sel_card->javascript = ' onchange="submit(this);"';
        echo _('Catégorie :') . $sel_card->input();
    } else {
        $cat = HtmlInput::default_value_request('cat', '');
        echo HtmlInput::hidden("cat", $cat);
        echo HtmlInput::hidden('choice_cat', 0);
    }
    echo Dossier::hidden();
    ?>
    <input type="submit" class="button" name="submit_query" value="<?php 
    echo _('recherche');
    ?>
">
	 <input type="hidden" name="p_action" value="adm">
                                                                     </form>
                                                                     </div>
                                                                     <?php 
    $adm = new Admin($cn);
    $search = isset($_GET['query']) ? $_GET['query'] : "";
    $sql = "";
    if (isset($_GET['cat'])) {
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:adm.inc.php

示例12: td

 * some variable are already defined $cn, $g_user ...
 *
 */
//-----------------------------------------------------
// Show the jrn and date
//-----------------------------------------------------
require_once NOALYSS_INCLUDE . '/class_database.php';
require_once NOALYSS_INCLUDE . '/class_ipopup.php';
global $g_user;
//-----------------------------------------------------
// Form
//-----------------------------------------------------
echo '<div class="content">';
echo '<FORM action="?" METHOD="GET">';
echo HtmlInput::hidden('ac', $_REQUEST['ac']);
echo HtmlInput::hidden('type', 'poste');
echo dossier::hidden();
echo '<TABLE><TR>';
$span = new ISpan();
$w = new IPoste('poste_id');
$w->set_attribute('ipopup', 'ipop_account');
$w->set_attribute('label', 'poste_id_label');
$w->set_attribute('account', 'poste_id');
$w->table = 0;
$w->value = isset($_REQUEST['poste_id']) ? $_REQUEST['poste_id'] : "";
$w->label = "Choisissez le poste";
print td('Choisissez un poste ') . td($w->input());
echo td($span->input('poste_id_label'));
echo '</tr><tr>';
$w_poste = new ICard('f_id');
$w_poste->table = 0;
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:impress_poste.inc.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: button_choice_ledger

 /**
  * 
  * @param type $p_array indice
  *   - div div name
  *   - type ALL, VEN, ACH or ODS
  *   - all_type 1 yes 0 no
  * 
  */
 static function button_choice_ledger($p_array)
 {
     extract($p_array);
     $bledger_param = json_encode(array('dossier' => $_REQUEST['gDossier'], 'type' => $type, 'all_type' => $all_type, 'div' => $div, 'class' => 'inner_box'));
     $bledger_param = str_replace('"', "'", $bledger_param);
     $bledger = new ISmallButton('l');
     $bledger->label = _("choix des journaux");
     $bledger->javascript = " show_ledger_choice({$bledger_param})";
     $f_ledger = $bledger->input();
     $hid_jrn = "";
     if (isset($_REQUEST[$div . 'nb_jrn'])) {
         for ($i = 0; $i < $_REQUEST[$div . 'nb_jrn']; $i++) {
             if (isset($_REQUEST[$div . "r_jrn"][$i])) {
                 $hid_jrn .= HtmlInput::hidden($div . 'r_jrn[' . $i . ']', $_REQUEST[$div . "r_jrn"][$i]);
             }
         }
         $hid_jrn .= HtmlInput::hidden($div . 'nb_jrn', $_REQUEST[$div . 'nb_jrn']);
     } else {
         $hid_jrn = HtmlInput::hidden($div . 'nb_jrn', 0);
     }
     echo $f_ledger;
     echo '<span id="ledger_id' . $div . '">';
     echo $hid_jrn;
     echo '</span>';
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:33,代码来源:class_html_input.php

示例15: Database

require_once NOALYSS_INCLUDE . '/class_iconcerned.php';
global $g_user, $g_parameter;
$cn = new Database(dossier::id());
$id_predef = isset($_REQUEST['p_jrn_predef']) ? $_REQUEST['p_jrn_predef'] : -1;
$id_ledger = isset($_REQUEST['p_jrn']) ? $_REQUEST['p_jrn'] : $id_predef;
$ledger = new Acc_Ledger($cn, $id_ledger);
$first_ledger = $ledger->get_first('ODS');
$ledger->id = $ledger->id == -1 ? $first_ledger['jrn_def_id'] : $id_ledger;
// check if we can write in the ledger
if ($g_user->check_jrn($ledger->id) == 'X') {
    alert(_("Vous ne pouvez pas écrire dans ce journal, contacter votre administrateur"));
    return;
}
echo '<div style="position:absolute" class="content">';
echo '<div id="predef_form">';
echo HtmlInput::hidden('p_jrn_predef', $ledger->id);
$op = new Pre_op_ods($cn);
$op->set('ledger', $ledger->id);
$op->set('ledger_type', "ODS");
$op->set('direct', 't');
$url = http_build_query(array('action' => 'use_opd', 'p_jrn_predef' => $ledger->id, 'ac' => $_REQUEST['ac'], 'gDossier' => dossier::id()));
echo $op->form_get('do.php?' . $url);
echo '</div>';
echo '<div id="jrn_name_div">';
echo '<h2 id="jrn_name" style="display:inline">' . $ledger->get_name() . '</h2>';
echo '</div>';
// Show the predef operation
// Don't forget the p_jrn
$p_post = $_POST;
if (isset($_GET['action']) && !isset($_POST['correct'])) {
    if ($_GET['action'] == 'use_opd') {
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:operation_ods_new.inc.php


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