From 148f634aeb10bc28cecdecd0bc6706550bc2cbc2 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 29 Oct 2011 01:10:13 +0000 Subject: [PATCH] #423: Changement affichage plugin --- html/extension.php | 42 ++---------------------------------------- include/ext_inc.php | 2 +- 2 files changed, 3 insertions(+), 41 deletions(-) diff --git a/html/extension.php b/html/extension.php index 4408bba44..4874a5f9c 100644 --- a/html/extension.php +++ b/html/extension.php @@ -34,7 +34,7 @@ require_once ('class_html_input.php'); require_once('class_iselect.php'); require_once ('constant.security.php'); require_once ('class_user.php'); - +echo '
'; @html_page_start($_SESSION['g_theme']); $cn=new Database(dossier::id()); $user=new User($cn); @@ -46,45 +46,7 @@ $only_plugin=$user->check_dossier(dossier::id()); echo load_all_script(); /* show button to return to access */ -echo "

".dossier::name()."

"; -if ( $only_plugin != 'P' ) -{ - // user with only plugin cannot go back to the dashboard - /* return button */ - $msg=_('Retour au tableau de bord'); - $hidden=dossier::hidden(); - echo ' -
-
'. - $hidden; - echo HtmlInput::button_anchor(_('Préférence'),'user_pref.php'); - echo ' - -
-
- '; - - -} -else -{ - $msg=_('Retour accueil'); - ?> -
-
- -
-
- value=Extension::make_array($cn); @@ -105,7 +67,7 @@ if ( count($a->value)==1 ) else { echo '
'; - echo $hidden; + echo Dossier::hidden(); echo _('Extension').$a->input().HtmlInput::submit('go',_("Choix de l'extension")); echo '
'; echo '
'; diff --git a/include/ext_inc.php b/include/ext_inc.php index ce8a029cc..797149c21 100644 --- a/include/ext_inc.php +++ b/include/ext_inc.php @@ -15,7 +15,7 @@ if (isset($_REQUEST['plugin_code']) ) exit(); } /* show name of extension */ - echo '
'; + echo '
'; echo '

'.$ext->get_parameter('name').'

';