factorized button definitions
[brisk.git] / web / index.php
index 7848aa5..a982dcf 100644 (file)
@@ -59,8 +59,8 @@ $mlang_room = array( 'userpassuse'  => array('it' => 'Il tuo nickname è g
                      'reas_cloud'   => array('it' => 'La connessione dai computer di una cloud non è ammessa.',
                                              'en' => 'Connection from cloud computers is not allowed.'),
 
-                     'btn_enter'    => array('it' => 'entra',
-                                             'en' => 'enter'),
+                     'btn_enter'    => array('it' => 'Entra.',
+                                             'en' => 'Enter.'),
                      'passwarn'     => array('it' => 'Se non hai ancora una password, lascia il campo in bianco ed entra.',
                                              'en' => 'If you don\'t have a password, leave blank the field and enter.'),
                      'browwarn'     => array('it' => 'Se qualcosa non funziona prova a ricaricare la pagina con <b>Ctrl + F5</b><br><br>Se non riesci più ad entrare nel nuovo Brisk e prima ci riuscivi potrebbe essere un problema di antivirus,<br>guarda la <a class=\'flat\' style=\'background-color: white; font-weight: bold;\' target=\'_blank\' href=\'http://www.alternativeoutput.it/blog/doku.php?id=brisk:guida_agli_antivirus\'>pagina sugli antivirus</a> per maggiori informazioni su come configurarlo.<br><br>Se ancora non funziona nulla contatta <a class=\'flat\' style=\'background-color: white; font-weight: bold;\' href=\'mailto:brisk@alternativeoutput.it\'>l\'amministratore del sito</a>.',
@@ -77,6 +77,8 @@ $mlang_room = array( 'userpassuse'  => array('it' => 'Il tuo nickname &egrave; g
                                              'en' => 'Reset.'),
                      'btn_prefs_close' => array('it' => 'Chiudi.',
                                              'en' => 'Close.'),
+                     'btn_prefs_send'  => array('it' => 'Invia.',
+                                             'en' => 'Send.'),
                      'tit_tabl'     => array('it' => 'Tavolo ',
                                              'en' => 'Table '),
                      'tit_stat'     => array('it' => 'imposta lo stato del tuo utente',
@@ -226,10 +228,6 @@ $mlang_room = array( 'userpassuse'  => array('it' => 'Il tuo nickname &egrave; g
                                              'en' => 'Send a message to the administrator:'),
                      'mesgtoadm_sub'=> array('it' => 'soggetto:',
                                              'en' => 'subject:'),
-                     'btn_send'     => array('it' => 'Invia.',
-                                             'en' => 'Send.'),
-                     'btn_close'    => array('it' => 'Chiudi.',
-                                             'en' => 'Close.')
                      );
 
 require_once("briskin5/Obj/briskin5.phh");
@@ -1098,14 +1096,32 @@ window.onload = function() {
     <form accept-charset="utf-8" method="post" action="" onsubmit="return j_login_manager(this);">
     <input id="passid_private" name="pass_private" type="hidden" value="">
     <table class="login">
-    <tr><td>user:</td>
+    <tr><td>nickname:</td>
     <td><input id="nameid" class="input_text" name="name" type="text" size="24" maxlength="12" value=""></td></tr>
-    <tr><td>pwd:</td>
+    <tr><td>password:</td>
     <td><input id="passid" class="input_text" name="pass" type="password" size="24" maxlength="64" value=""></td></tr>
     <tr><td colspan="2"><input id="sub" value="<?php echo $mlang_room['btn_enter'][$G_lang];?>" type="submit" class="button"></td></tr>
     </table>
     </form><br>
-    <b><?php echo $mlang_room['passwarn'][$G_lang];?></b><br><br>
+
+    <?php echo $mlang_room['passwarn'][$G_lang];?><br><br>
+
+         <button onclick="$('apprentice_div').style.display = 'inline-block';">Vuoi ottenere un accesso da apprendista ?</button><br><br>
+             <div id="apprentice_div" style="display: none; background-color: #ffd780; border: 1px solid #ffae00; padding: 8px;">
+         <br>
+         Inserisci il tuo nickname e il tuo indirizzo e-mail.<br>
+         Il tuo nickname non può essere più lungo di 12 caratteri, <br>deve essere composto soltanto da lettere non accentate e numeri,<br>senza ripetere lo stesso carattere per più di 3 volte consecutive.<br><br>
+    <form accept-charset="utf-8" method="post" action="" onsubmit="return j_new_apprentice(this);">
+    <input type="hidden" name="new_apprentice" value="666">
+    <table class="login">
+    <tr><td>nickname:</td>
+    <td><input id="nameid" class="input_text" name="cli_name" type="text" size="24" maxlength="12" value=""></td></tr>
+    <tr><td>e-mail:</td>
+    <td><input id="emailid" class="input_text" name="cli_email" type="text" size="24" maxlength="512" value=""></td></tr>
+    <tr><td colspan="2"><input id="sub" value="<?php echo $mlang_room['btn_send'][$G_lang];?>" type="submit" class="button"></td></tr>
+    </table>
+    </form></div>
+         <br><br>
 <?php echo $mlang_room['browwarn'][$G_lang];?><br>
     </div>
     <br><br><br><br>