phpDocumentor VFront
Administration
[ class tree: VFront ] [ index: VFront ] [ all elements ]

Source for file help.select.php

Documentation is available at help.select.php

  1. <?php
  2. /**
  3.  * File promemoria per l'amministratore
  4.  * che mostra come compilare i campi di tipo select
  5.  * 
  6.  * @package VFront
  7.  * @subpackage Administration
  8.  * @author M.Marcello Verona
  9.  * @copyright 2007 M.Marcello Verona
  10.  * @version 0.90
  11.  * @license http://www.gnu.org/licenses/gpl.html GNU Public License
  12.  */
  13.  
  14.  
  15. include("../inc/conn.php");
  16. include("../inc/layouts.php");
  17.  
  18.  
  19.  
  20.  
  21. echo openLayout1("Opzioni per i campi select",array('sty/lista.css'),'popup');
  22.  
  23. echo "<h1 style=\"margin-top:50px;\">Opzioni per i campi a tendina</h1>";
  24.  
  25. echo "<p>Per utilizzare i campi 'valori definiti' si possono impostare gli elenchi in due modi:</p>
  26.  
  27. <ol>
  28.     <li><strong>Elenco valori</strong><br /><br />
  29.         Si inseriscono, uno per riga i valori desiderati. Ad esempio<br />
  30.         <code>
  31.         Consulente<br />
  32.         Dipendente a tempo indeterminato<br />
  33.         Dipendente a tempo determinato<br />
  34.         </code>
  35.     </li>
  36.     
  37.     <br /><br />
  38.     
  39.     <li><strong>Elenco valori ed etichette</strong><br />
  40.         Si inseriscono, uno per riga la coppia chiave e valore separati dal segno <em>uguale</em>. <br />
  41.         In questo caso verranno inseriti in database i valori, non le etichette. Ad esempio:<br /><br />
  42.         
  43.         <code>
  44.         c=Consulente<br />
  45.         di=Dipendente a tempo indeterminato<br />
  46.         dd=Dipendente a tempo determinato<br />
  47.         </code>
  48.         <br />
  49.         
  50.         Oppure:<br /><br />
  51.         
  52.         <code>
  53.         1=Consulente<br />
  54.         2=Dipendente a tempo indeterminato<br />
  55.         3=Dipendente a tempo determinato<br />
  56.         </code>
  57.     
  58.     </li>
  59. </ol>
  60.  
  61. <br /><br />
  62.  
  63. Il risultato sar&agrave nel primo caso:<br />
  64. <select name=\"test1\">
  65.     <option value=\"Consulente\">Consulente</option>
  66.     <option value=\"Dipendente a tempo indeterminato\">Dipendente a tempo indeterminato</option>
  67.     <option value=\"Dipendente a tempo determinato\">Dipendente a tempo determinato</option>
  68. </select>
  69.  
  70. <br />
  71. <br />
  72. Mentre nel secondo caso (si veda il codice HTML per apprezzare la differenza):<br />
  73. <select name=\"test2\">
  74.     <option value=\"c\">Consulente</option>
  75.     <option value=\"di\">Dipendente a tempo indeterminato</option>
  76.     <option value=\"dd\">Dipendente a tempo determinato</option>
  77. </select>
  78.  
  79. <br />
  80. oppure
  81. <br />
  82. <select name=\"test3\">
  83.     <option value=\"1\">Consulente</option>
  84.     <option value=\"2\">Dipendente a tempo indeterminato</option>
  85.     <option value=\"3\">Dipendente a tempo determinato</option>
  86. </select>
  87.  
  88.  
  89. ";
  90.  
  91.  
  92. echo closeLayout1();
  93.  
  94.  
  95. ?>

Documentation generated on Sat, 22 Sep 2007 11:50:39 +0200 by phpDocumentor 1.4.0a2