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


PHP dossier::hidden方法代码示例

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


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

示例1: Anc_Account

  * Efface po
  */
 if ($sa == "po_delete") {
     $po = new Anc_Account($cn, $_REQUEST['po_id']);
     $po->delete();
     $sa = "pa_detail";
 }
 // show the detail
 if ($sa == "pa_detail") {
     $new = new Anc_Plan($cn, $_GET['pa_id']);
     $wSa = HtmlInput::hidden("sa", "pa_update");
     $new->get();
     $ret .= '<div class="content">';
     $ret .= '<h2 class="info">' . _("Mise à jour") . '</h2>';
     $ret .= '<form method="post">';
     $ret .= dossier::hidden();
     $ret .= $new->form();
     $ret .= $wSa;
     $ret .= HtmlInput::submit("submit", _("Enregistre"));
     $ret .= HtmlInput::button_anchor(_('Efface'), '', 'remove_analytic_plan', 'onclick="return confirm_box(\'remove_analytic_plan\',\'Effacer ?\',function () {window.location=\'do.php?ac=' . $_REQUEST['ac'] . '&pa_id=' . $_GET['pa_id'] . '&sa=pa_delete&' . $str_dossier . '\';})"', 'smallbutton');
     $ret .= '</form>';
     /**
      * Detail now
      */
     $count = 0;
     $new = new Anc_Plan($cn, $_REQUEST['pa_id']);
     $new->get();
     $array = $new->get_poste_analytique(" order by po_name");
     $ret .= '<div class="content">';
     $ret .= '<table class="table_large">';
     $ret .= "<tr>";
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:anc_pa.inc.php

示例2: form

 function form($p_table = true)
 {
     $wType = new ISelect();
     $wType->name = 'p_type';
     $wType->value = self::$type;
     if (!$p_table) {
         $ret = '    <TR>
              <TD>
              <INPUT TYPE="TEXT" NAME="p_val" SIZE=7>
              </TD>
              <TD>
              <INPUT TYPE="TEXT" NAME="p_lib" size=50>
              </TD>
              <TD>
              <INPUT TYPE="TEXT" NAME="p_parent" size=5>
              </TD>
              <TD>';
         $ret .= $wType->input() . '</TD>';
         return $ret;
     } else {
         $ret = '<TABLE><TR>';
         $ret .= sprintf('<TD>' . _('Numéro de classe') . ' </TD><TD><INPUT TYPE="TEXT" name="p_val" value="%s"></TD>', $this->pcm_val);
         $ret .= "</TR><TR>";
         $ret .= sprintf('<TD>' . _('Libellé') . ' </TD><TD><INPUT TYPE="TEXT" size="70" NAME="p_lib" value="%s"></TD>', h($this->pcm_lib));
         $ret .= "</TR><TR>";
         $ret .= sprintf('<TD>' . _('Classe Parent') . '</TD><TD><INPUT TYPE="TEXT" name="p_parent" value="%s"></TD>', $this->pcm_val_parent);
         $ret .= '</tr><tr>';
         $wType->selected = $this->pcm_type;
         $ret .= "<td> Type de poste </td>";
         $ret .= '<td>' . $wType->input() . '</td>';
         $ret .= "</TR> </TABLE>";
         $ret .= dossier::hidden();
         return $ret;
     }
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:35,代码来源:class_acc_account.php

示例3: form

 function form($p_line = 0)
 {
     $r = "";
     if ($p_line == 0) {
         $p_line = count($this->aAcc_Report_row);
     }
     $r .= dossier::hidden();
     $r .= HtmlInput::hidden('line', $p_line);
     $r .= HtmlInput::hidden('fr_id', $this->id);
     $wForm = new IText();
     $r .= "Nom du rapport : ";
     $r .= $wForm->input('form_nom', $this->name);
     $r .= '<TABLE id="rap1" width="100%">';
     $r .= "<TR>";
     $r .= "<TH> Position </TH>";
     $r .= "<TH> Texte </TH>";
     $r .= "<TH> Formule</TH>";
     $r .= '</TR>';
     $wName = new IText();
     $wName->size = 40;
     $wPos = new IText();
     $wPos->size = 3;
     $wForm = new IText();
     $wForm->size = 35;
     for ($i = 0; $i < $p_line; $i++) {
         $r .= "<TR>";
         $r .= "<TD>";
         $wPos->value = isset($this->aAcc_Report_row[$i]->fo_pos) ? $this->aAcc_Report_row[$i]->fo_pos : $i + 1;
         $r .= $wPos->input("pos" . $i);
         $r .= '</TD>';
         $r .= "<TD>";
         $wName->value = isset($this->aAcc_Report_row[$i]->fo_label) ? $this->aAcc_Report_row[$i]->fo_label : "";
         $r .= $wName->input("text" . $i);
         $r .= '</TD>';
         $r .= '<td>';
         $search = new IPoste("form" . $i);
         $search->size = 50;
         $search->value = isset($this->aAcc_Report_row[$i]->fo_formula) ? $this->aAcc_Report_row[$i]->fo_formula : "";
         $search->label = _("Recherche poste");
         $search->set_attribute('gDossier', dossier::id());
         $search->set_attribute('bracket', 1);
         $search->set_attribute('no_overwrite', 1);
         $search->set_attribute('noquery', 1);
         $search->set_attribute('account', $search->name);
         $search->set_attribute('ipopup', 'ipop_card');
         $r .= $search->input();
         $r .= '</td>';
         $r .= "</TR>";
     }
     $r .= "</TABLE>";
     $wButton = new IButton();
     $wButton->javascript = " rapport_add_row('" . dossier::id() . "')";
     $wButton->label = "Ajout d'une ligne";
     $r .= $wButton->input();
     return $r;
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:56,代码来源:class_acc_report.php

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

示例5: h2

echo HtmlInput::anchor_close('mod_predf_op');
echo h2(_('Modification du nom'), ' class="title"');
echo '
    <form method="POST" onsubmit="save_predf_op(this);return false;">';
$name = new IText('opd_name');
$name->value = $op->od_name;
$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');
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_mod_predf_op.php

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

示例7: alert

$export_pdf .= HtmlInput::hidden('act', "PDF:fiche_balance") . ($export_pdf .= HtmlInput::hidden('start', $_GET['start']));
$export_pdf .= HtmlInput::hidden('end', $_GET['end']);
$export_pdf .= HtmlInput::hidden('histo', $_GET['histo']);
$export_pdf .= HtmlInput::request_to_hidden(array('allcard'));
$export_pdf .= dossier::hidden();
$export_pdf .= HtmlInput::submit('pdf', 'Export en PDF');
$export_pdf .= '</FORM>';
$export_print = HtmlInput::print_window();
$export_csv = '<FORM METHOD="get" ACTION="export.php" style="display:inline">';
$export_csv .= HtmlInput::hidden('cat', $_GET['cat']);
$export_csv .= HtmlInput::hidden('act', 'CSV:fiche_balance');
$export_csv .= HtmlInput::hidden('start', $_GET['start']);
$export_csv .= HtmlInput::hidden('end', $_GET['end']);
$export_csv .= HtmlInput::hidden('histo', $_GET['histo']);
$export_csv .= HtmlInput::request_to_hidden(array('allcard'));
$export_csv .= dossier::hidden();
$export_csv .= HtmlInput::submit('CSV', 'Export en CSV');
$export_csv .= '</FORM>';
/*
 * Date is important is requested balance
 */
if (isDate($_REQUEST['start']) == null || isDate($_REQUEST['end']) == null) {
    echo h2('Date invalide !', 'class="error"');
    alert('Date invalide !');
    return;
}
/*************************************************************************************************************************
 * Balance agée tous
/*************************************************************************************************************************/
if ($_GET['histo'] == 6) {
    require_once NOALYSS_INCLUDE . '/class_balance_age.php';
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:fiche.inc.php

示例8: display

 function display($p_array)
 {
     global $g_parameter, $g_user;
     require_once NOALYSS_INCLUDE . '/class_acc_ledger.php';
     $legder = new Acc_Ledger($this->db, $this->jrn_def_id);
     $legder->nb = $legder->get_min_row();
     if ($p_array != null) {
         extract($p_array);
     }
     $add_js = "";
     $ret = "";
     if ($g_user->check_action(FICADD) == 1) {
         /* Add button */
         $f_add_button = new IButton('add_card');
         $f_add_button->label = _('Créer une nouvelle fiche');
         $f_add_button->set_attribute('ipopup', 'ipop_newcard');
         $f_add_button->set_attribute('jrn', $legder->id);
         $f_add_button->javascript = " this.jrn=\$('p_jrn').value;select_card_type(this);";
         $f_add_button->input();
     }
     $nb_row = isset($nb_item) ? $nb_item : $legder->nb;
     $ret .= HtmlInput::hidden('nb_item', $nb_row);
     $ret .= HtmlInput::hidden('p_jrn', $this->jrn_def_id);
     $ret .= dossier::hidden();
     $ret .= dossier::hidden();
     $ret .= HtmlInput::hidden('jrn_type', $legder->get_type());
     $info = HtmlInput::infobulle(0);
     $info_poste = HtmlInput::infobulle(9);
     if ($g_user->check_action(FICADD) == 1) {
         $ret .= $f_add_button->input();
     }
     $ret .= '<table id="quick_item" style="width:100%">';
     $ret .= '<tr>' . '<th style="text-align:left">Quickcode' . $info . '</th>' . '<th style="text-align:left">' . _('Poste') . $info_poste . '</th>' . '<th style="text-align:left">' . _('Libellé') . '</th>' . '<th style="text-align:left">' . _('Montant') . '</th>' . '<th style="text-align:left">' . _('Débit') . '</th>' . '</tr>';
     for ($i = 0; $i < $nb_row; $i++) {
         // Quick Code
         $quick_code = new ICard('qc_' . $i);
         $quick_code->set_dblclick("fill_ipopcard(this);");
         $quick_code->set_attribute('ipopup', 'ipopcard');
         // name of the field to update with the name of the card
         $quick_code->set_attribute('label', "ld" . $i);
         $quick_code->set_attribute('jrn', $legder->id);
         // name of the field to update with the name of the card
         $quick_code->set_attribute('typecard', 'filter');
         // Add the callback function to filter the card on the jrn
         $quick_code->set_callback('filter_card');
         $quick_code->set_function('fill_data');
         $quick_code->javascript = sprintf(' onchange="fill_data_onchange(\'%s\');" ', $quick_code->name);
         $quick_code->jrn = $legder->id;
         $quick_code->value = isset(${'qc_' . $i}) ? ${'qc_' . $i} : "";
         $label = '';
         if ($quick_code->value != '') {
             $Fiche = new Fiche($legder->db);
             $Fiche->get_by_qcode($quick_code->value);
             $label = $Fiche->strAttribut(ATTR_DEF_NAME);
         }
         // Account
         $poste = new IPoste();
         $poste->name = 'poste' . $i;
         $poste->set_attribute('jrn', $legder->id);
         $poste->set_attribute('ipopup', 'ipop_account');
         $poste->set_attribute('label', 'ld' . $i);
         $poste->set_attribute('account', 'poste' . $i);
         $poste->set_attribute('dossier', Dossier::id());
         $poste->value = isset(${'poste' . $i}) ? ${"poste" . $i} : '';
         $poste->dbl_click_history();
         if ($poste->value != '') {
             $Poste = new Acc_Account($legder->db);
             $Poste->set_parameter('value', $poste->value);
             $label = $Poste->get_lib();
         }
         // Description of the line
         $line_desc = new IText();
         $line_desc->name = 'ld' . $i;
         $line_desc->size = 30;
         $line_desc->value = isset(${"ld" . $i}) ? ${"ld" . $i} : $label;
         // Amount
         $amount = new INum();
         $amount->size = 10;
         $amount->name = 'amount' . $i;
         $amount->value = isset(${'amount' . $i}) ? ${"amount" . $i} : '';
         $amount->javascript = ' onChange="format_number(this);checkTotalDirect()"';
         // D/C
         $deb = new ICheckBox();
         $deb->name = 'ck' . $i;
         $deb->selected = isset(${'ck' . $i}) ? true : false;
         $deb->javascript = ' onChange="checkTotalDirect()"';
         $ret .= '<tr>';
         $ret .= '<td>' . $quick_code->input() . $quick_code->search() . '</td>';
         $ret .= '<td>' . $poste->input() . '<script> document.getElementById(\'poste' . $i . '\').onblur=function(){ if (trim(this.value) !=\'\') {document.getElementById(\'qc_' . $i . '\').value="";}}</script>' . '</td>';
         $ret .= '<td>' . $line_desc->input() . '</td>';
         $ret .= '<td>' . $amount->input() . '</td>';
         $ret .= '<td>' . $deb->input() . '</td>';
         $ret .= '</tr>';
         // If readonly == 1 then show CA
     }
     $ret .= '</table>';
     return $ret;
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:98,代码来源:class_pre_op_advanced.php

示例9: IText

 /*----------------------------------------------------------------------
  * Search a card
  *
  *----------------------------------------------------------------------*/
 case 'fs':
     require_once NOALYSS_INCLUDE . '/class_acc_ledger.php';
     $r = HtmlInput::title_box(_("Détail fiche"), 'search_card');
     $r .= '<form method="GET" onsubmit="this.ctl=\'ipop_card\';search_get_card(this);return false;">';
     $q = new IText('query');
     $q->value = isset($query) ? $query : '';
     $r .= '<span style="margin-left:50px">';
     $r .= _('Fiche contenant') . HtmlInput::infobulle(19);
     $r .= $q->input();
     $r .= HtmlInput::submit('fs', _('Recherche'), "", "smallbutton");
     $r .= '</span>';
     $r .= dossier::hidden() . HtmlInput::hidden('op', 'fs');
     $array = array();
     foreach (array('query', 'inp', 'jrn', 'label', 'typecard', 'price', 'tvaid') as $i) {
         if (isset(${$i})) {
             $r .= HtmlInput::hidden($i, ${$i});
             $sql_array[$i] = ${$i};
         }
     }
     /* what is the type of the ledger */
     $type = "GL";
     if (isset($jrn) && $jrn > 1) {
         $ledger = new Acc_Ledger($cn, $jrn);
         $type = $ledger->get_type();
     }
     $fiche = new Fiche($cn);
     /* Build the SQL and show result */
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_card.php

示例10: sprintf

 $attr = sprintf('this.ctl=\'%s\';', $ipopup);
 $ctl .= '_content';
 $it = new IText('acc_query');
 $it->size = 30;
 $it->value = isset($q) ? $q : '';
 $str_poste = $it->input();
 $str_submit = HtmlInput::submit('sf', _('Recherche'), "", "smallbutton");
 $r = '';
 $r = HtmlInput::anchor_close('search_account');
 $r .= '<div> ' . h2(_('Poste Comptable'), ' class="title"') . '</div>';
 $r .= '<form id="sp" method="get" onsubmit="' . $attr . 'search_get_poste(this);return false;">';
 ob_start();
 require_once NOALYSS_INCLUDE . '/template/account_search.php';
 $r .= ob_get_contents();
 ob_end_clean();
 $r .= dossier::hidden();
 $r .= isset($c) ? HtmlInput::hidden('account', $c) : "";
 $r .= isset($l) ? HtmlInput::hidden('label', $l) : "";
 $r .= isset($j) ? HtmlInput::hidden('jrn', $j) : "";
 $r .= isset($nover) ? HtmlInput::hidden('nover', '1') : "";
 $r .= isset($nosearch) ? HtmlInput::hidden('nosearch', '1') : "";
 $r .= isset($bracket) ? HtmlInput::hidden('bracket', '1') : "";
 $r .= '</form>';
 $sql = "\n\t\tselect pcm_val,pcm_lib,array_to_string(array_agg(j_qcode) , ',') as acode\n\t\tfrom tmp_pcmn left join vw_poste_qcode on (j_poste=pcm_val) ";
 $sep = " where ";
 /* build the sql stmt */
 if (isset($j) && $j > 0 && isNumber($j)) {
     /* create a filter on the ledger */
     $ledger = new Acc_Account_Ledger($cn, 0);
     $fd_id = $ledger->build_sql_account($j);
     if ($fd_id != '') {
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_poste.php

示例11: tr

         $side = 3;
     }
 } else {
     $iside->selected = $side;
 }
 $r .= tr($line . td($iside->input()));
 $r .= '</table>';
 $r .= '</div>';
 $r .= '<div style="float:left;padding-left:100">';
 $r .= HtmlInput::submit('search', 'Rechercher');
 $r .= '</div>';
 $r .= '</form>';
 $r .= '</div>';
 $form = '<div id="result" style="float:top;clear:both">';
 $form .= '<FORM id="letter_form" METHOD="post">';
 $form .= dossier::hidden();
 if (isset($_REQUEST['p_action'])) {
     $form .= HtmlInput::hidden('p_action', $_REQUEST['p_action']);
 }
 if (isset($_REQUEST['sa'])) {
     $form .= HtmlInput::hidden('sa', $_REQUEST['sa']);
 }
 if (isset($_REQUEST['acc'])) {
     $form .= HtmlInput::hidden('acc', $_REQUEST['acc']);
 }
 if (isset($_REQUEST['sc'])) {
     $form .= HtmlInput::hidden('sc', $_REQUEST['sc']);
 }
 if (isset($_REQUEST['sb'])) {
     $form .= HtmlInput::hidden('sb', $_REQUEST['sb']);
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_misc.php

示例12: test_me

 static function test_me()
 {
     $dossier = dossier::id();
     $cn = new Database($dossier);
     if (isset($_POST['go'])) {
         $b = new Anc_Group_Operation($cn);
         $b->get_from_array($_POST);
         return;
     }
     $a = new Anc_Group_Operation($cn);
     echo '<form method="post">';
     echo $a->form();
     echo dossier::hidden();
     echo '<input type="submit" name="go">';
     echo '</form>';
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:16,代码来源:class_anc_group_operation.php

示例13: display_form_periode

 function display_form_periode()
 {
     $str_dossier = dossier::get();
     if ($this->jrn_def_id == 0) {
         $Res = $this->cn->exec_sql("select p_id,to_char(p_start,'DD.MM.YYYY') as date_start,to_char(p_end,'DD.MM.YYYY') as date_end,p_central,p_closed,p_exercice,\n                                     (select count(jr_id) as count_op from jrn where jr_tech_per = p_id) as count_op\n                                     from parm_periode\n                                     order by p_start,p_end");
         $Max = Database::num_row($Res);
         echo '<form id="periode_frm" method="POST" onsubmit="return confirm_box(this,\'Confirmez-vous la fermeture des périodes choisies ?\')" >';
         echo HtmlInput::array_to_hidden(array('ac', 'gDossier', 'jrn_def_id', 'choose'), $_REQUEST);
         echo '<TABLE ALIGN="CENTER">';
         echo "</TR>";
         echo '<th>' . ICheckBox::toggle_checkbox("per_toggle", "periode_frm") . "</th>";
         echo '<TH> Date d&eacute;but </TH>';
         echo '<TH> Date fin </TH>';
         echo '<TH> Exercice </TH>';
         echo "</TR>";
         for ($i = 0; $i < $Max; $i++) {
             $l_line = Database::fetch_array($Res, $i);
             $class = "even";
             if ($i % 2 == 0) {
                 $class = "odd";
             }
             $style = '';
             if ($l_line['p_closed'] == 't') {
                 $style = "color:red";
             }
             echo '<TR class="' . $class . '" style="' . $style . '">';
             echo '<td>';
             if ($l_line['p_closed'] == 'f') {
                 $per_to_close = new ICheckBox('sel_per_close[]');
                 $per_to_close->value = $l_line['p_id'];
                 echo $per_to_close->input();
             }
             echo '</td>';
             echo '<TD ALIGN="CENTER"> ' . $l_line['date_start'] . '</TD>';
             echo '<TD  ALIGN="CENTER"> ' . $l_line['date_end'] . '</TD>';
             echo '<TD  ALIGN="CENTER"> ' . $l_line['p_exercice'] . '</TD>';
             if ($l_line['p_closed'] == 't') {
                 $closed = $l_line['p_central'] == 't' ? '<TD>Centralis&eacute;e</TD>' : '<TD>Ferm&eacute;e</TD>';
                 $change = '<TD></TD>';
                 $remove = sprintf(_('Nombre opérations %d'), $l_line['count_op']);
                 $remove = td($remove, ' class="mtitle" ');
                 $change = td('<A class="mtitle" HREF="javascript:void(0)"' . ' onclick="return confirm_box(null,\'' . _('Confirmez Réouverture') . ' ?\',function() {window.location=\'do.php?ac=' . $_REQUEST['ac'] . '&action=reopen&p_per=' . $l_line['p_id'] . '&' . $str_dossier . '\';} )"> Réouverture</A>', ' class="mtitle"');
             } else {
                 if ($l_line['count_op'] == 0) {
                     $change = HtmlInput::display_periode($l_line['p_id']);
                 } else {
                     $change = "Non modifiable";
                 }
                 $change = td($change, ' class="mtitle" ');
                 $reopen = td("");
                 $remove = '<TD class="mtitle">';
                 if ($l_line['count_op'] == 0) {
                     $go = 'do.php?' . http_build_query(array('ac' => $_REQUEST['ac'], 'action' => 'delete_per', 'p_per' => $l_line['p_id'], 'gDossier' => Dossier::id()));
                     $remove .= '<A class="mtitle" HREF="javascript:void(0)" ' . 'onclick="return confirm_box (null,\'' . _('Confirmez effacement ?') . '\',function() { window.location=\'' . $go . '\'});" >' . ' Efface</A>';
                 } else {
                     $remove .= sprintf(_('Nombre opérations %d'), $l_line['count_op']);
                 }
                 $remove .= '</td>';
             }
             echo $change;
             echo $remove;
             echo '</TR>';
         }
         echo '</table>';
         echo '<p style="text-align:center">';
         echo HtmlInput::hidden("close_per", 1);
         echo HtmlInput::submit('close_per_bt', 'Fermeture des périodes sélectionnées');
         echo '</p>';
         echo '</form>';
         $but = new IButton('show_per_add', 'Ajout d\'une période');
         $but->javascript = "\$('periode_add_div').show();";
         echo $but->input();
         echo '<div class="inner_box" style="width:40%;" id="periode_add_div">';
         echo HtmlInput::title_box("Ajout d'une période", "periode_add_div", "hide");
         echo '<FORM  METHOD="POST">';
         echo dossier::hidden();
         $istart = new IDate('p_date_start');
         $iend = new IDate('p_date_end');
         $iexercice = new INum('p_exercice');
         $iexercice->size = 5;
         echo '<table>';
         echo '<TR> ';
         echo td('Date de début');
         echo td($istart->input());
         echo '</tr><tr>';
         echo td('Date de fin');
         echo td($iend->input());
         echo '</tr><tr>';
         echo td('Exercice');
         echo td($iexercice->input());
         echo '</TABLE>';
         echo HtmlInput::submit('add_per', 'Valider');
         echo '</FORM>';
         echo '</div>';
         echo create_script("\$('periode_add_div').hide();new Draggable('periode_add_div',{starteffect:function()\n                                  {\n                                     new Effect.Highlight(obj.id,{scroll:window,queue:'end'});\n                                  }}\n                         );");
     } else {
         $Res = $this->cn->exec_sql("select p_id,to_char(p_start,'DD.MM.YYYY') as date_start,to_char(p_end,'DD.MM.YYYY') as date_end,status,p_exercice\n                                     from parm_periode join jrn_periode using (p_id) where jrn_def_id=" . $this->jrn_def_id . "\n                                     order by p_start,p_end");
         $Max = Database::num_row($Res);
         $r = $this->cn->exec_sql('select jrn_Def_name from jrn_Def where jrn_Def_id=' . $this->jrn_def_id);
         $jrn_name = Database::fetch_result($r, 0, 0);
//.........这里部分代码省略.........
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:101,代码来源:class_periode.php

示例14: test_me

 static function test_me()
 {
     $cn = new Database(dossier::id());
     $a = new Fiche($cn);
     $select_cat = new ISelect('fd_id');
     $select_cat->value = $cn->make_array('select fd_id,fd_label from fiche_def where frd_id=' . FICHE_TYPE_CLIENT);
     echo '<FORM METHOD="GET"> ';
     echo dossier::hidden();
     echo HtmlInput::hidden('test_select', $_GET['test_select']);
     echo 'Choix de la catégorie';
     echo $select_cat->input();
     echo HtmlInput::submit('go_card', 'Afficher');
     echo '</form>';
     if (isset($_GET['go_card'])) {
         $empty = $a->to_array($_GET['fd_id']);
         print_r($empty);
     }
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:18,代码来源:class_fiche.php

示例15: show_button

 function show_button($p_string = '')
 {
     $r = "";
     $submit = HtmlInput::submit('', '');
     $hidden = new IHidden();
     /* for the export in PDF
         * Not yet needed, the html print should be enough
        $r.= '<form method="GET" action="ca_list_pdf.php" style="display:inline">';
        $r.= $p_string;
        $r.= dossier::hidden();
        $r.= $hidden->input("to",$this->to);
        $r.= $hidden->input("from",$this->from);
        $r.= $hidden->input("pa_id",$this->pa_id);
        $r.= $hidden->input("from_poste",$this->from_poste);
        $r.= $hidden->input("to_poste",$this->to_poste);
        $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("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('act', 'CSV:AncList');
     $r .= HtmlInput::hidden('ac', $_REQUEST['ac']);
     $r .= $p_string;
     $r .= dossier::hidden();
     $r .= HtmlInput::submit('bt_csv', "Export en CSV");
     $r .= '</form>';
     return $r;
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:32,代码来源:class_anc_listing.php


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