check(); $only_plugin=$user->check_dossier(dossier::id()); /* javascript file */ echo js_include('prototype.js'); echo js_include('scriptaculous.js'); echo js_include('effects.js'); echo js_include('controls.js'); echo js_include('dragdrop.js'); echo js_include('acc_ledger.js'); echo js_include('accounting_item.js'); echo js_include('card.js'); echo js_include('compute.js'); echo js_include('compute_direct.js'); echo JS_INFOBULLE; /* 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().HtmlInput::phpsessid(); echo <<
$hidden
EOF; } /* show all the extension we can access */ $a=new ISelect('code'); $a->value=Extension::make_array($cn); /* no plugin available */ if ( count($a->value) == 0 ) {alert(j(_("Aucune extension disponible")));exit;} /* only one plugin available then we don't propose a choice*/ if ( count($a->value==1) ) { $_REQUEST['code']=$a->value[0]['value']; } else { echo '
'; echo $hidden; echo _('Extension').$a->input().HtmlInput::submit('go',_("Choix de l'extension")); echo '
'; echo '
'; } require_once('ext_inc.php');