noalyss Version-9
extension_choice.inc.php
Go to the documentation of this file.
1<?php
2//This file is part of NOALYSS and is under GPL
3//see licence.txt
4
5if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
6require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
7require_once NOALYSS_INCLUDE.'/constant.php';
8require_once NOALYSS_INCLUDE.'/lib/function_javascript.php';
9require_once NOALYSS_INCLUDE.'/constant.security.php';
10echo '<div class="topmenu">';
11@html_page_start($_SESSION[SESSION_KEY.'g_theme']);
12
14global $g_user;
15$g_user=new Noalyss_user($cn);
16$g_user->check();
18
19
20/* javascript file */
21echo load_all_script();
22
23/* show all the extension we can access */
24$a=new ISelect('plugin_code');
26$a->selected=(isset($_REQUEST['plugin_code']))?strtoupper($_REQUEST['plugin_code']):'';
27
28/* no plugin available */
29if ( count($a->value) == 0 )
30{
31 alert(j(_("Aucune extension disponible")));
32 exit;
33}
34
35/* only one plugin available then we don't propose a choice*/
36if ( count($a->value)==1 )
37{
38 $_REQUEST['plugin_code']=$a->value[0]['value'];
39}
40echo '</div>';
41/*else
42{
43 if (!isset($_REQUEST['ac'])) echo_warning ("ac non positionné");
44 echo '<form method="get" action="do.php">';
45 echo Dossier::hidden();
46 echo HtmlInput::request_to_hidden(array('plugin_code','ac'));
47 echo _('Extension').$a->input().HtmlInput::submit('go',_("Choix de l'extension"));
48 echo '</form>';
49 echo '<hr>';
50}*/
51
52//if ( isset($_REQUEST['plugin_code']))
53// require_once NOALYSS_INCLUDE.'/extension_get.inc.php';
54?>
html_page_start($p_theme="", $p_script="", $p_script2="")
Default page header for each page.
Definition: ac_common.php:275
j($p_string)
escape correctly php string to javascript
Definition: ac_common.php:96
alert($p_msg, $buffer=false)
alert in javascript
Definition: ac_common.php:738
$_REQUEST['ac']
$input_from id
Definition: balance.inc.php:63
static connect()
static make_array($cn)
make an array of the available plugin for the current user
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
for($e=0; $e< count($afiche); $e++) exit
global $g_user
load_all_script()
load all the javascript only one time