23define(
'ALLOWED',TRUE);
24require_once
'../include/constant.php';
25require_once NOALYSS_INCLUDE.
'/class/dossier.class.php';
26include_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
27require_once NOALYSS_INCLUDE.
'/class/acc_ledger.class.php';
28require_once NOALYSS_INCLUDE.
'/class/acc_ledger_search.class.php';
29require_once NOALYSS_INCLUDE.
'/lib/icon_action.class.php';
30require_once NOALYSS_INCLUDE.
'/lib/http_input.class.php';
33if ( ! isset ($_SESSION[SESSION_KEY.
'g_theme']))
35 echo
"<h2>"._(
'Vous êtes déconnecté').
"</h2>";
47require_once NOALYSS_INCLUDE.
'/class/database.class.php';
50$cn=Dossier::connect();
51include_once NOALYSS_INCLUDE .
'/class/noalyss_user.class.php';
59if ( !
$g_user->is_double_identified()) {
66 redirect(
"extension.php?".dossier::get(),0);
71 alert(
_(
'Accès interdit'));
81window.onload=
function ()
91echo
'<div class="content">';
93echo
'<form method="GET">';
95echo HtmlInput::submit(
"viewsearch",
_(
"Recherche"));
100<input
type=
"button" class=
"smallbutton" onclick=
"window.close()" value=
"<?php echo _('Fermer')?>">
108if ( isset (
$_GET[
'viewsearch']))
112 $step=$_SESSION[SESSION_KEY.
'g_pagesize'];
113 $page=
$http->get(
"page",
"number",1);
116 if (count (
$_GET) == 0)
134 $r=HtmlInput::get_to_hidden(array(
'l',
'date_start',
'date_end',
'desc',
'amount_min',
'amount_max',
135 'qcode',
'accounting',
'unpaid',
'gDossier',
'ledger_type',
'tag_option'));
136 if (isset(
$_GET[
'r_jrn'])) {
138 $a_rjrn=
$http->get(
"r_jrn",
"array");
139 foreach ($a_rjrn as $k=>$v) {
142 $r.=HtmlInput::hidden(
'r_jrn['.$k.
']',$v);
146 if (isset(
$_GET[
'tag'])) {
149 foreach (
$aTag as $k=>$v) {
152 $r.=HtmlInput::hidden(
'tag[]',$v);
156 echo
'<form action="export.php" method="get">';
158 echo HtmlInput::hidden(
'act',
'CSV:histo');
159 echo HtmlInput::submit(
'viewsearch',
_(
'Export vers CSV'));
160 echo HtmlInput::hidden(
'p_action',
'ALL');
162 <input
type=
"button" class=
"smallbutton" onclick=
"window.close()" value=
"<?php echo _('Fermer')?>">
MaintenanceMode($p_file)
When you want to prevent users to connect, create a file in noalyss/ (NOALYSS_BASE) with the message ...
html_page_start($p_theme="", $p_script="", $p_script2="")
Default page header for each page.
alert($p_msg, $buffer=false)
alert in javascript
global $g_user
if no group available , then stop
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
_("actif, passif,charge,...")
for($e=0; $e< count($afiche); $e++) exit
load_all_script()
load all the javascript only one time
catch(\Exception $e) $bar
redirect( $p_string, $p_time=0)
redirect with javascript
navigation_bar($p_offset, $p_line, $p_size=0, $p_page=1, $p_javascript="")
Create a navigation_bar (pagesize)