public function input($p_name = null, $p_value = null) { $this->name = $p_name == null ? $this->name : $p_name; $this->value = $p_value == null ? $this->value : $p_value; if ($this->readOnly == true) { return $this->display(); } $this->id = $this->id == "" ? $this->name : $this->id; $r = sprintf("\n <INPUT class=\"smallbutton\" TYPE=\"button\" onClick=\"search_action(" . dossier::id() . ",'%s')\" value=\"?\">\n <INPUT TYPE=\"text\" style=\"color:black;background:lightyellow;border:solid 1px grey;\" NAME=\"%s\" ID=\"%s\" VALUE=\"%s\" SIZE=\"8\" readonly>\n\t\t\t\t <INPUT class=\"smallbutton\" TYPE=\"button\" onClick=\"\$('%s').value=''\" value=\"X\">\n\n ", $this->id, $this->name, $this->id, $this->value, $this->id); return $r; }
/** * Display the content of a profile menu for printing * @param type $resource * @param type $p_id */ function sub_menu($resource, $p_id) { if (Database::num_row($resource) != 0) { //// // If there are submenus $gDossier = dossier::id(); echo '<td>'; for ($e = 0; $e < Database::num_row($resource); $e++) { $menu = Database::fetch_array($resource, $e); $me_code = $menu['me_code']; $me_code_dep = $menu['me_code_dep']; $mp_type = $menu['p_type_display']; $me_menu = $menu['me_menu']; $me_desc = $menu['me_description']; $me_def = $menu['pm_default'] == '1' ? '<span class="notice" style="display:inline">Défaut</span>' : ''; ?> <li id="sub<?php echo $menu['pm_id']; ?> "> <?php echo $me_menu; ?> <?php echo $me_desc; ?> <?php echo $me_def; ?> <?php $ret2 = $this->cn->exec_sql("\n SELECT pm_id,\n pm.me_code,\n me_code_dep,\n p_id,\n p_order,\n p_type_display,\n pm_default,\n pm_desc,\n me_menu,\n me_description\n FROM profile_menu as pm\n join profile_menu_type on (p_type_display=pm_type)\n join menu_ref as mr on (mr.me_code=pm.me_code)\n where\n p_id=\$1 and me_code_dep=\$2\n order by p_order asc\n ", array($p_id, $me_code)); ?> <span> <?php echo HtmlInput::anchor(SMALLX, "", sprintf(" onclick = \"remove_sub_menu(%d,%d)\"", Dossier::id(), $menu['pm_id']), 'class="tinybutton"'); ?> </span> <?php echo "</li>"; } //end loop e echo '</ul>'; } // end if }
echo h($array[$i]['r_city']); ?> </td> <td> <?php echo h($array[$i]['r_country']); ?> </td> <td> <?php echo h($array[$i]['r_phone']); ?> </td> <td> <?php $js = ' onclick="stock_repo_change(\'' . dossier::id() . '\',\'' . $array[$i]['r_id'] . '\')"'; echo HtmlInput::button("mod", _("Modifier"), $js); ?> </td> </tr> <?php } ?> </table> <?php echo HtmlInput::button("show_add_depot_d", "Ajout d'un dépot", "onclick=\"\$('add_depot_d').show();\""); ?> <div id="add_depot_d" class="inner_box" style="display:none"> <?php echo HtmlInput::title_box("Ajouter un dépôt", "add_depot_d", "hide");
static function test_me() { // call the page with ?gDossier=14 $a = new Database(dossier::id()); $bal = new Anc_Balance_Simple($a); $bal->get_request(); echo '<form method="GET">'; echo $bal->display_form(); echo '</form>'; if (isset($_GET['result'])) { echo $bal->show_button("", ""); echo "<h1>HTML</h1>"; echo $bal->display_html(); echo "<h1>CSV</h1>"; echo $bal->display_csv(); /* echo "<h1>pdf</h1>"; */ /* echo $bal->display_pdf(); */ } }
require_once NOALYSS_INCLUDE . '/class_dossier.php'; require_once NOALYSS_INCLUDE . '/ac_common.php'; require_once NOALYSS_INCLUDE . '/constant.php'; require_once NOALYSS_INCLUDE . '/function_javascript.php'; require_once NOALYSS_INCLUDE . '/class_extension.php'; require_once NOALYSS_INCLUDE . '/class_html_input.php'; require_once NOALYSS_INCLUDE . '/class_iselect.php'; require_once NOALYSS_INCLUDE . '/constant.security.php'; require_once NOALYSS_INCLUDE . '/class_user.php'; echo '<div class="topmenu">'; @html_page_start($_SESSION['g_theme']); $cn = new Database(dossier::id()); global $g_user; $g_user = new User($cn); $g_user->check(); $only_plugin = $g_user->check_dossier(dossier::id()); /* javascript file */ echo load_all_script(); /* show all the extension we can access */ $a = new ISelect('plugin_code'); $a->value = Extension::make_array($cn); $a->selected = isset($_REQUEST['plugin_code']) ? strtoupper($_REQUEST['plugin_code']) : ''; /* no plugin available */ if (count($a->value) == 0) { alert(j(_("Aucune extension disponible"))); exit; } /* only one plugin available then we don't propose a choice*/ if (count($a->value) == 1) { $_REQUEST['plugin_code'] = $a->value[0]['value']; }
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); } }
/*! \file * \brief Send a report in PDF */ if (!defined('ALLOWED')) { die('Appel direct ne sont pas permis'); } include_once "class_acc_report.php"; include_once "ac_common.php"; require_once NOALYSS_INCLUDE . '/class_database.php'; include_once "class_impress.php"; require_once NOALYSS_INCLUDE . '/class_user.php'; require_once NOALYSS_INCLUDE . '/header_print.php'; require_once NOALYSS_INCLUDE . '/class_dossier.php'; require_once NOALYSS_INCLUDE . '/class_acc_report.php'; require_once NOALYSS_INCLUDE . '/class_pdf.php'; $gDossier = dossier::id(); $cn = new Database($gDossier); extract($_GET); $ret = ""; $Form = new Acc_Report($cn, $form_id); $Libelle = sprintf("%s ", $Form->get_name()); $pdf = new PDF($cn); $pdf->setDossierInfo($Libelle); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetAuthor('NOALYSS'); $pdf->setTitle("Rapport " . $Libelle, true); // Step ?? //-- $step = HtmlInput::default_value_get("p_step", 0); if ($step == 0) {
static function test_me() { require 'class_user.php'; global $g_user; $cn = new Database(dossier::id()); $g_user = new User($cn); $a = new Acc_Balance($cn); $a->get_row(163, 175, 1); var_dump($a); }
" value="<?php echo h($aAttachedFile[$i]['d_description']); ?> "> <?php $js = sprintf("update_document('%s','%s')", dossier::id(), $aAttachedFile[$i]['d_id']); echo HtmlInput::button('save_desc' . $aAttachedFile[$i]['d_id'], _('Sauve'), 'onclick="' . $js . '"', 'smallbutton'); ?> </span> <?php } else { ?> </span> <?php } $rmDoc = sprintf("return confirm_box(null,'" . _('Voulez-vous effacer le document') . " %s' , function(){remove_document('%s','%s');});", $aAttachedFile[$i]['d_filename'], dossier::id(), $aAttachedFile[$i]['d_id']); ?> </td> <td> <?php if ($p_view != 'READ') { ?> <a class="line" id="<?php echo "ac" . $aAttachedFile[$i]['d_id']; ?> " href="javascript:void(0)" onclick="<?php echo $rmDoc; ?> "><?php echo _("Effacer"); ?>
$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; $w_poste->jrn = 0; echo td("Ou Choisissez la fiche"); $w_poste->set_attribute('label', 'f_id_label'); $w_poste->set_attribute('ipopup', 'ipop_card'); $w_poste->set_attribute('gDossier', dossier::id()); $w_poste->set_attribute('typecard', 'all'); $w_poste->set_function('fill_data'); $w_poste->set_dblclick("fill_ipopcard(this);"); $w_poste->value = isset($_REQUEST['f_id']) ? $_REQUEST['f_id'] : ""; print td($w_poste->input() . $w_poste->search()); echo td($span->input('f_id_label')); print '</TR>'; print '<TR>'; $date_from = new IDate('from_periode'); $date_to = new IDate('to_periode'); $year = $g_user->get_exercice(); $date_from->value = isset($_REQUEST['from_periode']) ? $_REQUEST['from_periode'] : "01.01." . $year; $date_to->value = isset($_REQUEST['to_periode']) ? $_REQUEST['to_periode'] : "31.12." . $year; echo td(_('Depuis') . $date_from->input()); echo td(_('Jusque ') . $date_to->input());
static function test_me() { $a = new Database(dossier::id()); $bal = new Anc_Balance_Double($a); $bal->get_request(); echo '<form method="GET">'; echo $bal->display_form(); echo '</form>'; if (isset($_GET['result'])) { echo $bal->show_button("", ""); echo "<h1>HTML</h1>"; echo $bal->display_html(); echo "<h1>CSV</h1>"; echo $bal->display_csv(); } }
/** * * @param type $p_operation_jr_id action_gestion_operation.ago_id */ static function button_action_remove_operation($p_operation) { $rmOperation = sprintf("javascript:confirm_box(null,'" . _('Voulez-vous effacer cette relation ') . "',function () {remove_operation('%s','%s');});", dossier::id(), $p_operation); $js = '<a class="tinybutton" id="acop' . $p_operation . '" href="javascript:void(0)" onclick="' . $rmOperation . '">' . SMALLX . '</a>'; return $js; }
static function test_me() { $cn = new Database(dossier::id()); $a = new Acc_Report_Row(); $array = array("text0" => "test1", "form0" => "7%", "text1" => "test2", "form1" => "6%"); $a->db = $cn; $b = $a->from_array($array); print_r($b); echo $a->get_info(); }
$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') { // get data from predef. operation $op = new Pre_op_advanced($cn); $p_post = null; if (isset($_REQUEST['pre_def']) && $_REQUEST['pre_def'] != '') { $op->set_od_id($_REQUEST['pre_def']);
require_once NOALYSS_INCLUDE . '/class_dossier.php'; require_once NOALYSS_INCLUDE . '/class_pre_operation.php'; // Check if the needed field does exist extract($_GET); foreach (array('l', 't', 'd', 'gDossier') as $a) { if (!isset(${$a})) { echo "error {$a} is not set "; exit; } } $cn = new Database(dossier::id()); $op = new Pre_operation_detail($cn); $op->set('ledger', $l); $op->set('ledger_type', $t); $op->set('direct', $d); $url = http_build_query(array('action' => 'use_opd', 'p_jrn_predef' => $l, 'ac' => $_GET['ac'], 'gDossier' => dossier::id())); $html = ""; $html .= HtmlInput::title_box(_("Modèle d'opérations"), 'modele_op_div', 'hide'); $html .= $op->show_button('do.php?' . $url); $html = escape_xml($html); header('Content-type: text/xml; charset=UTF-8'); echo <<<EOF <?xml version="1.0" encoding="UTF-8"?> <data> <code></code> <value>{$html}</value> </data> EOF; ?>
require_once NOALYSS_INCLUDE . '/class_user.php'; require_once NOALYSS_INCLUDE . '/class_acc_report.php'; require_once NOALYSS_INCLUDE . '/class_periode.php'; require_once NOALYSS_INCLUDE . '/user_menu.php'; require_once NOALYSS_INCLUDE . '/class_dossier.php'; require_once NOALYSS_INCLUDE . '/class_todo_list.php'; require_once NOALYSS_INCLUDE . '/class_itextarea.php'; require_once NOALYSS_INCLUDE . '/class_calendar.php'; require_once NOALYSS_INCLUDE . '/class_acc_ledger.php'; require_once NOALYSS_INCLUDE . '/class_follow_up.php'; echo '<div class="content">'; global $g_user; /* others report */ $cal = new Calendar(); $cal->get_preference(); $obj = sprintf("{gDossier:%d,invalue:'%s',outdiv:'%s','distype':'%s'}", dossier::id(), 'per', 'calendar_zoom_div', 'cal'); $Operation = new Follow_Up($cn); $last_operation = $Operation->get_today(); $late_operation = $Operation->get_late(); $Ledger = new Acc_Ledger($cn, 0); $last_ledger = array(); $last_ledger = $Ledger->get_last(20); // Supplier late and now $supplier_now = $Ledger->get_supplier_now(); $supplier_late = $Ledger->get_supplier_late(); // Customer late and now $customer_now = $Ledger->get_customer_now(); $customer_late = $Ledger->get_customer_late(); ob_start(); require_once NOALYSS_INCLUDE . '/template/dashboard.php'; $ret = ob_get_contents();
<td class="num box"> <?php echo nbm($last_ledger[$i]['jr_montant']); ?> </td> </tr> <?php } ?> </table> </div> <div id="last_operation_management_div" class="box"> <?php echo HtmlInput::title_box(_('Suivi'), "last_operation_management_div", 'zoom', 'onclick="action_show(' . dossier::id() . ')"'); ?> <?php require_once NOALYSS_INCLUDE . '/class_follow_up.php'; $gestion = new Follow_Up($cn); $array = $gestion->get_last(MAX_ACTION_SHOW); $len_array = count($array); ?> <table style="width: 100%"> <?php for ($i = 0; $i < $len_array; $i++) { ?> <tr class=" <?php echo $i % 2 == 0 ? 'even' : 'odd'; ?> ">
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); }
* - cred card for the debit only if j is set * - deb card for the debit only if j is set * - filter card for debit and credit only if j OR type is set * - list of fd_id * */ $jrn = !isset($_REQUEST['j']) ? -1 : $_REQUEST['j']; $filter_card = ""; $cn = new Database(dossier::id()); $d = $_REQUEST['e']; $filter_card = ''; require_once 'class_user.php'; global $g_user; $g_user = new User($cn); $g_user->check(); $g_user->check_dossier(dossier::id()); set_language(); if ($d == 'all') { $filter_card = ''; } else { if (strpos($d, 'sql]') == true) { $filter_card = str_replace('[sql]', " and ", $d); } else { $filter_card = "and fd_id in ({$d})"; } } if ($jrn != -1) { switch ($d) { case 'cred': $filter_jrn = $cn->make_list("select jrn_def_fiche_cred from jrn_def where jrn_def_id=\$1", array($jrn)); $filter_card = $filter_jrn != "" ? " and fd_id in ({$filter_jrn})" : ' and false ';
static function test_me() { $_SESSION['g_user'] = '******'; $_SESSION['g_pass'] = '******'; global $g_user; $cn = new Database(dossier::id()); $g_user = new User($cn); $a = new Acc_Operation($cn); $a->jr_id = 1444; $b = $a->get_quant(); var_dump($b); }
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>'; } }
static function test_me() { $cn = new Database(dossier::id()); $a = new Acc_Tva($cn); echo $a->get_info(); $a->set_parameter("id", 1); $a->load(); $a->set_parameter("id", 0); $a->set_parameter("rate", "0.2222"); $a->set_parameter("label", "test"); $a->save(); $a->load(); print_r($a); $a->set_parameter("comment", "un cht'it test"); $a->save(); $a->load(); print_r($a); $a->delete(); }
static function test_me() { $cn = new Database(dossier::id()); }
/** * show the module * @global $g_user * @param $module the $_REQUEST['ac'] exploded into an array * @param $idx the index of the array : the AD code is splitted into an array thanks the slash */ function show_menu($module) { if ($module == 0) { return; } static $level = 0; global $g_user; $cn = Dossier::connect(); /** * Show the submenus */ $amenu = $cn->get_array("\n select \n pm_id,\n me_code,\n pm_id_dep,\n me_file,\n me_javascript,\n me_url,\n me_menu,\n me_description,\n me_description_etendue\n from profile_menu \n join menu_ref using (me_code) \n where pm_id_dep=\$1 and p_id=\$2\n\t order by p_order", array($module, $g_user->get_profile())); // There are submenuS, so show them if (!empty($amenu) && count($amenu) > 1) { $a_style_menu = array('topmenu', 'menu2', 'menu3'); if ($level > count($a_style_menu)) { $style_menu = 'menu3'; } else { $style_menu = $a_style_menu[$level]; } require 'template/menu.php'; } elseif (count($amenu) == 1) { if (trim($amenu[0]['me_url']) != "" || trim($amenu[0]['me_file']) != "" || trim($amenu[0]['me_javascript']) != "") { echo '<div class="topmenu">'; echo h2info(_($amenu[0]['me_menu'])); echo '</div>'; $module = $amenu[0]['pm_id']; } else { $url = $_REQUEST['ac'] . '/' . $amenu[0]['me_code']; echo '<a href="do.php?gDossier=' . Dossier::id() . '&ac=' . $url . '">'; echo _($amenu[0]['me_menu']); echo '</a>'; $level++; return; } } // There is no submenu or only one if (empty($amenu) || count($amenu) == 1) { $file = $cn->get_array("select me_file,me_parameter,me_javascript,me_type\n\t\tfrom menu_ref\n\t\tjoin profile_menu using (me_code)\n\t\tjoin profile_user using (p_id)\n\t\twhere\n\t\tpm_id=\$1 and\n\t\tuser_name=\$2 and\n\t\t(me_file is not null or trim(me_file) <>'' or\n\t\tme_javascript is not null or trim (me_javascript) <> '')", array($module, $g_user->login)); if (count($file) == 0) { return; } if ($file[0]['me_file'] != "") { if ($file[0]['me_parameter'] !== "") { // if there are paramter put them in superglobal $array = compute_variable($file[0]['me_parameter']); put_global($array); } if (DEBUG) { echo $file[0]['me_file'], " param : ", $file[0]['me_parameter']; } /* * Log the file we input to put in the folder test-noalyss for replaying it */ if (LOGINPUT) { $file_loginput = fopen($_ENV['TMP'] . '/scenario-' . $_SERVER['REQUEST_TIME'] . '.php', 'a+'); fwrite($file_loginput, "include '" . $file[0]['me_file'] . "';"); fwrite($file_loginput, "\n"); fclose($file_loginput); } // if file is not a plugin, include the file, otherwise // include the plugin launcher if ($file[0]['me_type'] != 'PL') { require_once $file[0]['me_file']; } else { require 'extension_get.inc.php'; } exit; } if ($file[0]['me_javascript'] != '') { $js = str_replace('<DOSSIER>', dossier::id(), $file[0]['me_javascript']); echo create_script($js); } } $level++; }
* This file is part of NOALYSS. * * NOALYSS is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * NOALYSS is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * 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 */ // Copyright Author Dany De Bontridder danydb@aevalys.eu /*!\file * \brief export the operation in pdf */ if (!defined('ALLOWED')) { die('Appel direct ne sont pas permis'); } header('Pragma: public'); header('Content-type: application/csv'); header('Content-Disposition: attachment;filename="ca_bal_simple.csv"', FALSE); require_once NOALYSS_INCLUDE . '/class_anc_balance_simple.php'; $cn = new Database(dossier::id()); $bal = new Anc_Balance_Simple($cn); $bal->get_request(); echo $bal->display_csv();
function display_form($p_hidden = "") { /* if there is no analytic plan return */ $pa = new Anc_Plan($this->db); if ($pa->count() == 0) { echo '<div class="content">'; echo '<h2 class="error">' . _('Aucun plan défini') . '</h2>'; echo '</div>'; return; } $from = new IDate('from', 'from'); $from->size = 10; $from->value = $this->from; $to = new IDate('to', 'to'); $to->value = $this->to; $to->size = 10; $from_poste = new IAncCard('from_poste', 'from_poste'); $from_poste->size = 10; $from_poste->plan_ctl = 'pa_id'; $from_poste->value = $this->from_poste; $to_poste = new IAncCard('to_poste', 'to_poste'); $to_poste->value = $this->to_poste; $to_poste->size = 10; $hidden = new IHidden(); $r = dossier::hidden(); $r .= $hidden->input("result", "1"); $r .= HtmlInput::request_to_hidden(array('ac')); $r .= $p_hidden; $plan = new Anc_Plan($this->db); $plan_id = new ISelect("pa_id"); $plan_id->value = $this->db->make_array("select pa_id, pa_name from plan_analytique order by pa_name"); $plan_id->selected = $this->pa_id; $choose_from = new IButton(); $choose_from->name = _("Choix Poste"); $choose_from->label = _("Recherche"); $choose_from->javascript = "onClick=search_ca(" . dossier::id() . ",'from_poste','pa_id')"; $choose_to = new IButton(); $choose_to->name = _("Choix Poste"); $choose_to->label = _("Recherche"); $choose_to->javascript = "onClick=search_ca(" . dossier::id() . ",'to_poste','pa_id')"; $r .= HtmlInput::request_to_hidden(array('ac')); ob_start(); ?> <table> <tr> <td> <?php echo _('Depuis'); echo HtmlInput::infobulle(37); ?> </td> <td> <?php echo $from->input(); ?> </td> </tr> <tr> <td> <?php echo _('Jusque'); echo HtmlInput::infobulle(37); ?> </td> <td> <?php echo $to->input(); ?> </td> </tr> </table> <span style="padding:5px;margin:5px;display:block;"> <?php echo _("Plan Analytique :") . $plan_id->input(); echo HtmlInput::infobulle(42); ?> </span> <?php $r .= ob_get_clean(); $r .= _("Entre l'activité ") . $from_poste->input(); $r .= $choose_from->input(); $r .= _(" et l'activité ") . $to_poste->input(); $r .= $choose_to->input(); $r .= '</span>'; return $r; }
<?php /** * if you can write */ if ($access == 'W') { echo HtmlInput::submit('save', _('Sauver'), 'onClick="return verify_ca(\'popup\');"'); $owner = new Own($cn); if ($owner->MY_ANALYTIC != 'nu') { echo '<input type="button" class="smallbutton" value="' . _('verifie CA') . '" onClick="verify_ca(\'' . $div . '\');">'; } $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");
$histo = new ISelect('histo'); $histo->value = array(array('value' => -1, 'label' => _('Liste')), array('value' => 0, 'label' => _('Historique')), array('value' => 1, 'label' => _('Historique Lettré')), array('value' => 6, 'label' => _('Historique Lettré et montants différents')), array('value' => 2, 'label' => _('Historique non Lettré')), array('value' => 3, 'label' => _('Résumé')), array('value' => 4, 'label' => _('Balance')), array('value' => 6, 'label' => _('Balance âgée')), array('value' => 7, 'label' => _('Balance âgée en-cours')), array('value' => 5, 'label' => _('Balance non soldée'))); $histo->javascript = 'onchange="if (this.value==3 || this.value==-1) { g("trstart").style.display="none";g("trend").style.display="none";g("allcard").style.display="none";} else {g("trstart").style.display="";g("trend").style.display="";g("allcard").style.display="";}"'; $histo->selected = isset($_GET['histo']) ? $_GET['histo'] : -1; $str_histo = $histo->input(); echo '<div class="content">'; echo '<FORM method="GET">'; echo dossier::hidden(); echo HtmlInput::hidden('ac', $_GET['ac']); require_once NOALYSS_INCLUDE . '/template/impress_cat_card.php'; echo HtmlInput::submit('cat_display', _('Recherche')); echo '</FORM>'; $search_card = new IText('card_search'); $search_card_js = sprintf('onclick="boxsearch_card(\'%d\')"', dossier::id()); ?> <div id="box_search_card"> <?php echo _('Recherche de fiche'); ?> <?php echo HtmlInput::infobulle(18); ?> :<?php echo $search_card->input(); ?> <?php echo HtmlInput::button_anchor(_("Chercher"), "javascript:void(0)", "", $search_card_js, 'smallbutton'); ?>
static function test_me() { $cn = new Database(dossier::id()); $rap = new Acc_Reconciliation($cn); var_dump($rap->get_reconciled_amount('', false)); }
</th> </tr> <?php for ($i = 0; $i < count($this->content); $i++) { $class = ""; $class = $i % 2 == 0 ? "odd" : "even"; ?> <tr <?php echo "class=\"{$class}\""; ?> > <td> <?php $letter = $this->content[$i]['letter'] == -1 ? " aucun lettrage " : strtoupper(base_convert($this->content[$i]['letter'], 10, 36)); $js = "this.gDossier=" . dossier::id() . ";this.j_id=" . $this->content[$i]['j_id'] . ";this.obj_type='" . $this->object_type . "'" . ";dsp_letter(this)"; ?> <A class="detail" style="text-decoration: underline" href="javascript:void(0)" onclick="<?php echo $js; ?> "><?php echo $letter; if ($this->content[$i]['letter_diff'] != 0) { echo $g_failed; } ?> </A> </td> <td> <?php echo smaller_date($this->content[$i]['j_date_fmt']); ?>