Source for file AdminAddAuthor.php
Documentation is available at AdminAddAuthor.php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | MCMS: a PHP Content Management System for creating accessible sites. |
// | Copyright (C) 2005 Silvio Moioli |
// | This program is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation; either version 2 of the License, or |
// | (at your option) any later version. |
// | This program is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | You should have received a copy of the GNU General Public License |
// | along with this program; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
// +----------------------------------------------------------------------+
// | Authors: Silvio Moioli <silvio at moioli dot net> www.moioli.net |
// +----------------------------------------------------------------------+
/** Importa la classe di base per l'interfaccia utente (autore) */
require_once $_SERVER["DOCUMENT_ROOT"]. "/admin/lib/view/AdminPage.php";
/** Importa la libreria per semplificare l'aggiunta di tag XML */
require_once $_SERVER["DOCUMENT_ROOT"]. "/admin/lib/view/Tagger.php";
* La pagina con il form per l'aggiunta di un nuovo autore.
* @author Silvio Moioli <silvio at moioli dot net>
/** @var string nome proposto all'utente per questo autore */
/** @var string cognome proposto all'utente per questo autore */
/** @var string nickname proposto all'utente per questo autore */
/** @var string email proposta all'utente per questo autore */
/** @var string password proposta all'utente per questo autore */
* Cambia il nome proposto all'utente per questa sezione
* @param string $defaultName il nuovo titolo
* Cambia il cognome proposto all'utente per questa sezione
* @param string $defaultSurname il nuovo titolo
* Cambia il nickname proposto all'utente per questa sezione
* @param string $defaultNick il nuovo titolo
* Cambia l'indirizzo email proposto all'utente per questa sezione
* @param string $defaultEmail il nuovo titolo
* Ritorna il titolo (in XHTML) di questa pagina.
* @return string una stringa XHTML rappresentante il titolo della pagina
$title = a("do.php?goTo=AdminIndex", "Login al Progettista").
* Ritorna un array di stringhe XHTML relative al menu (barra di navigazione)
* @return array vettore di stringhe XHTML rappresentante il menu della pagina
$menuEntries = array(p(a("do.php?goTo=AdminIndex",
"Login al Progettista")));
* Ritorna il contenuto (XHTML) del corpo di questa pagina.
* @return string la stringa XHTML rappresentante il corpo della pagina
$contents = h1("Ci sono anch'io!");
$contents .= p("Il Progettista è sempre lieto di ricevere
nuove persone che lavorino ai suoi siti. Ti chiede solo qualche
dettaglio personale, per identificarti poi sulle pagine che
$contents .= "Per favore, immetti il tuo:". br();
$form .= "Nickname Internet o soprannome: ". input("text", "nick",
$form .= "Password per MCMS: ". input("password", "password",
$form .= b("ATTENZIONE:"). " quando ti verrà richiesto, inserisci
questa password per accedere al Progettista!". br();
$form .= p("Quando hai finito, clicca sul bottone qui sotto:". submit());
$contents .= form("do.php?action=addAuthor&goTo=AdminMain",
|