Ejemplo n.º 1
0
<input type="hidden" name="mode" value="preview">
<td colspan="2">

<table border="0" cellpadding="4" cellspacing="0" class="searcher" width="100%">
<tr>
<td colspan="2" class="title">GROUPPRE</td>
</tr>
<tr>
<td width="260">Group name</td>
<td>
<?php 
// get an a-Z type selection box
$selectdata = formdata::getdata_select('initial', 'initial', $initial, arrays::genlist('A', 'Z'), 0, 0, 'initial');
$selectdata = formdata::add_option($selectdata, $initial, 0, 'CHOOSE');
// and display it
formdisplay::display_select($selectdata, 'default');
?>
</td>
</tr>
<tr>
<td>KEYQUERY</td>
<td><input type="text" name="keyword" value="<?php 
echo $keyword;
?>
" style="width:100px"></td>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="submit" value="SEARCH"></td>
</tr>
</table>
Ejemplo n.º 2
0
 /**
  * @return void
  * @param unknown $datedata
  * @param unknown $style
  * @desc  display a set of date boxes
  */
 function display_date($datedata, $style)
 {
     if ($datedata) {
         for ($index = 0; $index < sizeof($datedata); $index++) {
             formdisplay::display_select($datedata[$index]['day'], $style);
             formdisplay::display_select($datedata[$index]['month'], $style);
             formdisplay::display_select($datedata[$index]['year'], $style);
         }
     } else {
         formstyle::input_emptyparameter();
     }
 }