Plugins  LAST
 All Data Structures Files Functions Variables Pages
index.php
Go to the documentation of this file.
1 <?php
2 /*
3  * This file is part of NOALYSS.
4  *
5  * NOALYSS is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * NOALYSS is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with NOALYSS; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 /* $Revision$ */
20 
21 // Copyright (c) 2002 Author Dany De Bontridder dany@alchimerys.be
22 
23 /*!\file
24  * \brief modify a operation
25  */
27 $version_plugin=SVNINFO;
28 Extension::check_version(6910);
29 $str=new IConcerned("jr_id");
30 $str->value=(isset($_GET['jr_id']))?strtoupper($_GET['jr_id']):'';
31 $str->value=(isset($_GET['ext_jr_id']))?strtoupper($_GET['ext_jr_id']):$str->value;
32 echo '<div style="float:right"><a class="mtitle" style="font-size:140%" href="http://wiki.noalyss.eu/doku.php?id=modification_d_operation" target="_blank">Aide</a>'.
33 '<span style="font-size:0.8em;color:red;display:inline">vers:SVNINFO</span>'.
34 '</div>';
35 
36 
37 
38 ?>
39 <FORM METHOD="GET">
40  <?php echo HtmlInput::extension().dossier::hidden();?>
41  <?php echo HtmlInput::hidden('ac',$_REQUEST['ac']);?>
42 <?php echo _("Code interne de l'opération à modifier") ?>
43  <?php echo $str->input()?>
44  <?php
45 
46  echo HtmlInput::submit('seek','retrouver')?>
47 </FORM>
48 <hr>
49 <?php
50 $action=(isset ($_REQUEST['action']))?$_REQUEST['action']:'end';
51 
52  if ( ! isset ($_REQUEST['action']) && isset($_GET['seek'])) {
53  /* retrieve and show the accounting */
54  if ( trim($_GET['jr_id'])=='') {
55  alert(_('Aucune opération demandé')); exit;}
56  /* retrieve and display operation */
57  require_once('modop_display.php');
58  exit();
59  }
60 
61 
62 /* we need to confirm it */
63 if ( $action=='confirm' ) {
64  require_once('modop_confirm.php');
65  exit();
66 }
67 /* we can now save it */
68 if ($action=='save') {
69  require_once ('modop_save.php');
70  exit();
71 }
72 ?>
73 
global $version_plugin
Definition: index.php:22
$action
Definition: show_import.php:84
$_REQUEST['sa']
Definition: index.php:68
$str
Definition: index.php:29