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>'; }
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>';
// 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>';
$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>
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); }
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']); ?>
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();
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>'; } }
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']);
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>'; }
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'])) {
* 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;
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;
/** * * @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>'; }
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') {
new Draggable($('add_todo_list'),{}); </script> <form method="post"> <?php $wDate = new IDate('p_date_todo'); $wDate->id = 'p_date_todo'; $wTitle = new IText('p_title'); $wDesc = new ITextArea('p_desc'); $wDesc->heigh = 5; $wDesc->width = 40; echo HtmlInput::title_box("Note", "add_todo_list", "hide"); echo _("Date") . " " . $wDate->input() . '<br>'; echo _("Titre") . " " . $wTitle->input() . '<br>'; echo _("Description") . "<br>" . $wDesc->input() . '<br>'; echo dossier::hidden(); echo HtmlInput::hidden('tl_id', 0); echo HtmlInput::submit('save_todo_list', _('Sauve'), 'onClick="Effect.Fold(\'add_todo_list\');return true;"'); echo HtmlInput::button('hide', _('Annuler'), 'onClick="Effect.Fold(\'add_todo_list\');return true;"'); ?> </form> </div> <script type="text/javascript" language="javascript" charset="utf-8"> function display_detail(div) { $(div).style.display="block"; // $(div).style.top=calcy('150')+'px'; //Effect.Grow(div,{}); } try { var array=Array('customer_now_div','customer_late_div','supplier_now_div','supplier_late_div','action_now_div','action_late_div'); var i=0;
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; }
* * some variable are already defined $cn, $g_user ... * */ //----------------------------------------------------- // Show the jrn and date //----------------------------------------------------- require_once NOALYSS_INCLUDE . '/class_database.php'; global $g_user; //----------------------------------------------------- // Form //----------------------------------------------------- echo '<div class="content">'; echo '<FORM action="?" METHOD="GET">'; echo HtmlInput::hidden('ac', $_REQUEST['ac']); echo HtmlInput::hidden('type', 'gl_comptes'); echo dossier::hidden(); echo '<TABLE><TR>'; $cn = new Database(dossier::id()); $periode = new Periode($cn); $a = $periode->get_limit($g_user->get_exercice()); // $a is an array $first_day = $a[0]->first_day(); $last_day = $a[1]->last_day(); // filter on period $date_from = new IDate('from_periode'); $date_to = new IDate('to_periode'); $year = $g_user->get_exercice(); $date_from->value = isset($_REQUEST['from_periode']) && isDate($_REQUEST['from_periode']) != 0 ? $_REQUEST['from_periode'] : $first_day; $date_to->value = isset($_REQUEST['to_periode']) && isDate($_REQUEST['to_periode']) != 0 ? $_REQUEST['to_periode'] : $last_day; echo td(_('Depuis') . $date_from->input());
$msg = '<span class="notice">' . _("Attention : effacera les données qui y sont liées") . ' </span>'; $r .= td($remove->input() . $msg); } else { $select_type->readOnly = true; $desc->readOnly = true; $size->readOnly = true; $extra->readOnly = true; $r .= td($desc->input() . HtmlInput::hidden('type[]', '')); $r .= td($select_type->input()); $r .= td($size->input()); $r .= td($extra->input()); $r .= td(""); } echo tr($r); } $desc->readOnly = false; $select_type->readOnly = false; $size->readOnly = false; $extra->readOnly = false; $desc->value = ''; $select_type->selected = -1; $r = td(HtmlInput::hidden('ad_id[]', '0')); $r .= td($desc->input()); $r .= td($select_type->input()); $r .= td($size->input()); $r .= td($extra->input()); echo tr($r); echo '</table>'; echo HtmlInput::submit('save', _('Sauver')); echo '</form>'; echo '</div>';
<form id="tag_detail_frm" method="POST" > <?php /* * 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>
public function show_letter($p_jid) { $j_debit = $this->db->get_value('select j_Debit from jrnx where j_id=$1', array($p_jid)); $amount_init = $this->db->get_value('select j_montant from jrnx where j_id=$1', array($p_jid)); $this->get_filter($p_jid); // retrieve jnt_letter.id $sql = "select distinct(jl_id) from jnt_letter left outer join letter_deb using (jl_id) left outer join letter_cred using (jl_id)\n where letter_deb.j_id = \$1 or letter_cred.j_id=\$2"; $a_jnt_id = $this->db->get_array($sql, array($p_jid, $p_jid)); if (count($a_jnt_id) == 0) { $jnt_id = -2; } else { $jnt_id = $a_jnt_id[0]['jl_id']; } $this->get_linked($jnt_id); ob_start(); require_once NOALYSS_INCLUDE . '/template/letter_prop.php'; $r = ob_get_contents(); ob_end_clean(); $r .= HtmlInput::hidden('j_id', $p_jid); $r .= HtmlInput::hidden('jnt_id', $jnt_id); return $r; }
return; } /************************************************************************************************************************* * Balance en-cours /*************************************************************************************************************************/ if ($_GET['histo'] == 7) { require_once NOALYSS_INCLUDE . '/class_balance_age.php'; $bal = new Balance_Age($cn); $export_csv = '<FORM METHOD="get" ACTION="export.php" style="display:inline">'; $export_csv .= HtmlInput::request_to_hidden(array('gDossier', 'ac', 'p_let', 'p_date_start')); $export_csv .= HtmlInput::hidden('p_date_start', $_GET['start']); $export_csv .= HtmlInput::hidden('act', 'CSV:balance_age'); $export_csv .= HtmlInput::hidden('p_let', 'unlet'); $export_csv .= HtmlInput::hidden('p_type', 'X'); $export_csv .= HtmlInput::hidden('cat', $_GET['cat']); $export_csv .= HtmlInput::hidden('all', $allcard); $export_csv .= HtmlInput::submit('csv', _('Export CSV')); $export_csv .= '</FORM><p></p>'; if ($allcard == 0) { echo $export_csv; $bal->display_category($_GET['start'], $_GET['cat'], 'unlet'); echo $export_csv; } else { echo $export_csv; $a_cat = $cn->get_array("select fd_id from vw_fiche_def where ad_id=" . ATTR_DEF_ACCOUNT . " order by fd_label asc"); $nb_cat = count($a_cat); for ($i = 0; $i < $nb_cat; $i++) { $bal->display_category($_GET['start'], $a_cat[$i]['fd_id'], 'unlet'); } echo $export_csv; }
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');
echo "<H2 class=\"error\">L'utilisateur n'a pas accès à ce dossier</H2>"; echo "<p> Impossible de modifier cet utilisateur dans cet écran, il faut passer par\n\t\t\tl'écran administration -> utilisateur.\n\t\t\t</p>"; echo $return; $action = ""; return; } //-------------------------------------------------------------------------------- // Show access for journal //-------------------------------------------------------------------------------- $Res = $cn->exec_sql("select jrn_def_id,jrn_def_name from jrn_def " . " order by jrn_def_name"); $sec_User = new User($cn, $_GET['user_id']); echo '<form method="post">'; $sHref = sprintf('export.php?act=PDF:sec&user_id=%s&' . $str_dossier, $_GET['user_id']); echo dossier::hidden(); echo HtmlInput::hidden('action', 'sec'); echo HtmlInput::hidden('user_id', $_GET['user_id']); $i_profile = new ISelect('profile'); $i_profile->value = $cn->make_array("select p_id,p_name from profile\n\t\t\torder by p_name"); $i_profile->selected = $sec_User->get_profile(); echo "<p>"; echo _("Profil") . " " . $i_profile->input(); echo "</p>"; echo '<Fieldset><legend>Journaux </legend>'; echo '<table>'; $MaxJrn = Database::num_row($Res); $jrn_priv = new ISelect(); $array = array(array('value' => 'R', 'label' => 'Uniquement lecture'), array('value' => 'W', 'label' => 'Lecture et écriture'), array('value' => 'X', 'label' => 'Aucun accès')); for ($i = 0; $i < $MaxJrn; $i++) { /* set the widget */ $l_line = Database::fetch_array($Res, $i); echo '<TR> ';
} $sub_action = "list"; $cn->commit(); Follow_Up::show_action_list($cn, $base); if (isset($act->ag_ref)) { echo hb(_('Action ') . $act->ag_ref . _(' effacée')); } return; } //-------------------------------------------------------------------------------- // Show a list of the action if ($sub_action == "list") { // Add a button to export to Csv echo '<form method="GET" style="display:inline;" ACTION="export.php">'; echo HtmlInput::request_to_hidden(array("closed_action", "remind_date_end", "remind_date", "sag_ref", "remind_date", "only_internal", "state", "gDossier", "qcode", "start_date", "end_date", "ag_id", "ag_dest_query", "tdoc", "action_query", "date_start", "date_end", "hsstate", "searchtag")); echo HtmlInput::hidden("act", "CSV:ActionGestion"); echo HtmlInput::submit("follow_up_csv", "Export CSV", '', 'smallbutton'); echo "</form>"; Follow_Up::show_action_list($cn, $base); } //-------------------------------------------------------------------------------- // Save Follow_Up // Stage 2 : Save a NEW action + Files and generate eventually a document //-------------------------------------------------------------------------------- if ($sub_action == "save_action_st2") { $act = new Follow_Up($cn); $act->fromArray($_POST); try { $act->d_id = 0; $act->md_id = isset($_POST['gen_doc']) ? $_POST['gen_doc'] : 0; $act->verify();
* @brief * @param type $name Descriptionara */ echo HtmlInput::title_box("Poste comptable", "acc_update", "hide"); ?> <span id="acc_update_info" class="notice"></span> <form method="post" id="acc_update_frm_id" onsubmit="pcmn_save();return false;"> <table style="width:100%"> <?php $r = td(_('Poste comptable'), 'style="width:20em;width:15rem;text-align:right"') . td($val->input()); echo tr($r); $r = td(_('Description'), 'style="width:auto;text-align:right"') . td($lib->input()); echo tr($r); $r = td(_('Parent'), 'style="width:auto;text-align:right"') . td($parent->input()); echo tr($r); $r = td(_('Type'), 'style="width:auto;text-align:right"') . td($type->input()); echo tr($r); ?> </table> <?php echo HtmlInput::hidden('p_oldu', $pcmn_val); echo HtmlInput::hidden('p_action', $action); echo dossier::hidden(); $checkbox = new ICheckBox("delete_acc"); echo _('Cocher pour effacer') . " " . $checkbox->input(); echo '<hr>'; echo HtmlInput::submit('update', _('Sauve')); echo HtmlInput::button('hide', _('Annuler'), 'onClick="$(\'acc_update\').hide();return true;"'); ?> </form>
static function test_me() { $cn = new Database(dossier::id()); $a = new Acc_Report($cn); print_r($a->get_list()); $array = array("text0" => "test1", "form0" => "7%", "text1" => "test2", "form1" => "6%", "fr_id" => 110, "form_nom" => "Tableau"); $a->from_array($array); print_r($a); echo '<form method="post">'; echo $a->form(10); echo HtmlInput::submit('update', 'Enregistre'); /* Add a line should be a javascript see comptanalytic */ // $r.= '<INPUT TYPE="submit" value="Ajoute une ligne" name="add_line">'; echo HtmlInput::submit('del_form', 'Efface ce rapport'); echo HtmlInput::hidden('test_select', $_REQUEST['test_select']); echo "</FORM>"; if (isset($_POST['update'])) { $b = new Acc_Report($cn); $b->from_array($_POST); echo '<hr>'; print_r($b); } }
* * You should have received a copy of the GNU General Public License * along with NOALYSS; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Revision$ */ // Copyright Author Dany De Bontridder danydb@aevalys.eu /** * @file * @brief show the result of a search into a inner windows * */ ?> <form onsubmit="set_action_related('fresultaction');return false;" id="fresultaction"> <?php echo HtmlInput::hidden('ctlc', $_GET['ctlc']); ?> <?php echo HtmlInput::submit("save_action", _("Mettre à jour")); if (isset($limit)) { ?> <h2 class="notice">Recherche limitée à <?php echo $limit; ?> résultats</h2> <?php } ?> <table class="result">
$per = new Periode($cn, $obj->det->jr_tech_per); if ($per->is_closed() == 0 && $owner->MY_STRICT == 'N' && $g_user->check_action(RMOPER) == 1) { $remove = new IButton('Effacer'); $remove->label = _('Effacer'); $remove->javascript = "return confirm_box(null,'Vous confirmez effacement ?',function () {removeOperation('" . $obj->det->jr_id . "'," . dossier::id() . ",'" . $div . "')})"; echo $remove->input(); } $reverse = new IButton('bext' . $div); $reverse->label = _('Extourner'); $reverse->javascript = "g('ext" . $div . "').style.display='block'"; echo $reverse->input(); echo '</p>'; echo '</form>'; echo '<div id="ext' . $div . '" class="inner_box" style="position:relative;top:-150px;display:none">'; $date = new IDate('ext_date'); $r = "<form id=\"form_" . $div . "\" onsubmit=\"return false;\">"; $r .= HtmlInput::hidden('jr_id', $_REQUEST['jr_id']) . HtmlInput::hidden('div', $div) . dossier::hidden() . HtmlInput::hidden('act', 'reverseop'); $r .= HtmlInput::title_box(_('Extourner'), 'ext' . $div, 'hide'); $r .= "<p>"; $r .= _("Extourner une opération vous permet de l'annuler par son écriture inverse"); $r .= "</p>"; $r .= _("entrez une date") . " :" . $date->input(); $r .= '<p style="text-align:center">'; $r .= HtmlInput::submit('x', 'accepter', 'onclick="confirm_box($(\'form_' . $div . '\'),\'Vous confirmez ? \',function () {$(\'form_' . $div . '\').divname=\'' . $div . '\';reverseOperation($(\'form_' . $div . '\'))}); return false"'); $r .= "</p>"; $r .= '</form>'; echo $r; echo '</div>'; } else { echo '</p>'; }
$class = ' style="text-decoration:line-through"'; } $row .= td(nbm($tva_amount_nd), 'class="num" ' . $class); $row .= td(nbm($q['qp_vat']), 'class="num" ' . $class); $row .= td(nbm($tvac), 'class="num"'); } $total_tvac = bcadd($total_tvac, $tvac); $total_htva = bcadd($htva, $total_htva); /* Analytic accountancy */ if ($owner->MY_ANALYTIC != "nu") { $poste = $fiche->strAttribut(ATTR_DEF_ACCOUNT); if (preg_match('/^(6|7)/', $poste)) { $anc_op = new Anc_Operation($cn); $anc_op->j_id = $q['j_id']; $anc_op->in_div = $div; echo HtmlInput::hidden('op[]', $anc_op->j_id); /* compute total price */ bcscale(2); $str_anc .= '<tr>'; $str_anc .= td($qcode); $str_anc .= td(nbm($htva)); $str_anc .= $anc_op->display_table(1, $htva, $div); } else { $row .= td(''); } } $class = $e % 2 == 0 ? ' class="even"' : 'class="odd"'; echo tr($row, $class); } if ($owner->MY_TVA_USE == 'Y') { $row = td(_('Total'), ' style="font-style:italic;text-align:right;font-weight: bolder;width:auto" colspan="6"');