Пример #1
0
echo $pageref;
?>
">
<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>
Пример #2
0
 /**
  * @return unknown
  * @param unknown $name
  * @param unknown $current
  * @desc get date data for a Y-m-d selection
  */
 function getdata_date($name, $current)
 {
     $year = date("Y");
     if (!$current) {
         // Set to default
         $current = $mysql_today;
     }
     list($datey, $datem, $dated) = explode('-', $current);
     $result[0]['day'] = formdata::getdata_select($name . 'd', 0, $dated, arrays::genlist(1, 31), 0, 0, 0);
     $result[0]['month'] = formdata::getdata_select($name . 'm', 0, $datem, arrays::genlist(1, 12), 0, 0, 0);
     $result[0]['year'] = formdata::getdata_select($name . 'y', 0, $datey, arrays::genlist(2000, 2006), 0, 0, 0);
     return $result;
 }