19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: admin_application.php,v 1.5 2006-09-07 13:28:39 jp_milcent Exp $ |
// CVS : $Id: admin_application.php,v 1.6 2006-10-06 10:40:51 florian Exp $ |
/** |
* Application gérant les applications de Papyrus |
* |
31,7 → 31,7 |
//Auteur original : |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.5 $ |
*@version $Revision: 1.6 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
93,11 → 93,25 |
$url = $GLOBALS['_GEN_commun']['url'] ; |
$auth = &$GLOBALS['_GEN_commun']['pear_auth'] ; |
isset ($GLOBALS['action']) ? '' : $GLOBALS['action'] = '' ; // On déclare action si elle n'existe pas |
$res=''; |
if (!$auth->getAuth()) { |
return 'Identifiez-vous' ; |
} |
$res .= '<p class="zone_alert">'.ADAP_IDENTIFIEZ_VOUS.'</p>'."\n" ; |
$res .= '<form id="form_connexion" style="clear:both;" class="form_identification" action="' ; |
$res .= $url->getURL(); |
$res .= '" method="post"> |
<fieldset> |
<legend>Identifiez vous</legend> |
<label for="username">Courriel : </label> |
<input type="text" id="username" name="username" maxlength="80" tabindex="1" value="courriel" /> |
<label for="password">Mot de passe : </label> |
<input type="password" id="password" name="password" maxlength="80" tabindex="2" value="mot de passe" /> |
<input type="submit" id="connexion" name="connexion" tabindex="3" value="ok" /> |
</fieldset> |
</form>'; |
return $res ; |
} else { |
// Le lien pour une nouvelle entrée |
$res = '<a href="'.$url->getURL().'&action=nouveau">'.ADAP_AJOUTER.'</a>'."\n<br />" ; |
$res .= '<a href="'.$url->getURL().'&action=nouveau">'.ADAP_AJOUTER.'</a>'."\n<br />" ; |
// traitement de la suppression |
if (isset ($GLOBALS['action']) && $GLOBALS['action'] == 'supprimer') adap_supprimer_application($GLOBALS['id_appl'], $db) ; |
|
151,6 → 165,7 |
$liste->construireListe($tableau_appl) ; |
$res .= $liste->toHTML(); |
return $res ; |
} |
}// Fin de la fonction afficherContenuCorps() |
|
// +------------------------------------------------------------------------------------------------------+ |
162,6 → 177,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.5 2006/09/07 13:28:39 jp_milcent |
* Mise en majuscule des termes SQL et trie des application par ordre alphabétique. |
* |
* Revision 1.4 2005/03/09 10:46:17 jpm |
* Changement d'un nom de fichier. |
* |