noalyss Version-9
ajax_min_row.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * NOALYSS is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * NOALYSS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with NOALYSS; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21// Copyright Author Dany De Bontridder danydb@aevalys.eu
22
23/**
24 * @file
25 * @brief return the number of rows for a ledger
26 *
27 */
28if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
29extract($_GET, EXTR_SKIP);
30/* check the parameters */
31foreach ( array('j','ctl') as $a )
32{
33 if ( ! isset(${$a}) )
34 {
35 echo "missing $a";
36 return;
37 }
38}
39
40if ( $g_user->check_jrn($_GET['j'])=='X' ) { echo '{"row":"0"}';exit();}
41
42$row=$cn->get_value('select jrn_deb_max_line from jrn_def where jrn_def_id=$1',array($_GET['j']));
43
44echo '{"row":"'.$row.'"}';
45
46?>
global $g_user
if no group available , then stop
foreach(array( 'j', 'ctl') as $a) if( $g_user->check_jrn($_GET['j'])=='X') $row
$_GET['qcode']
for($e=0; $e< count($afiche); $e++) exit