Plugins  LAST
 All Data Structures Files Functions Variables Pages
ajax.php
Go to the documentation of this file.
1 <?php
2 /*
3  * Copyright 2010 De Bontridder Dany <dany@alchimerys.be>
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 <?php
22 
23 require_once('coprop-constant.php');
24 require_once NOALYSS_INCLUDE.'/lib/class_database.php';
25 
26 extract($_GET);
27 global $cn;
28 $html = '';
29 $extra = '';
30 $ctl = '';
31 switch ($act)
32 {
33  case 'addkey':
34  require_once 'include/ajax_add_key.php';
35  break;
36  case 'modkey':
37  require_once 'include/ajax_mod_key.php';
38  break;
39  case 'removekey':
40  require_once 'include/ajax_remove_key.php';
41  break;
42  case 'buddisplay':
43  require_once 'include/ajax_bud_display.php';
44  break;
45  case 'budadd':
46  $bud_id=0;
47  require_once 'include/ajax_bud_display.php';
48  break;
49  case 'removebudget':
50  $cn->exec_sql("delete from coprop.budget where b_id=$1",array($bud_id));
51  break;
52  default:
53 
54  var_dump($_GET);
55 }
56 ?>
$act
Definition: ajax.php:5
$html
Definition: ajax.php:32
global $cn
Definition: ajax.php:27
$ctl
Definition: ajax.php:31
$extra
Definition: ajax.php:33