[FX.php List] Sorting via select boxes with FX.php

Jane Chinn Jane.Chinn at cwu.EDU
Fri Apr 29 16:33:54 MDT 2005


Hi,

Does anyone know how to sort a found set in a web page with select 
boxes.  How would you convert the following CDML to FX.php:

  <table width="600" align="center">
     <tr>
       <td height="25"> sort
         by : </td>
       <td height="25">
         <select name="-sortfield">
           <option  selected>-select-
           </option><option>unsorted
           </option><option>peer_roster::LastName
           </option><option>peer_roster::GroupName
           </option><option>peer_roster::Section


         </option></select>
         </td>
       <td height="25"> sort
         order : </td>
       <td height="25">
         <select name="-sortorder">
           <option value="" selected>-select-
           </option><option>ascending
           </option><option>descending
         </option></select>
         </td>
       <td height="25"> return
         : </td>
       <td height="25">
         <select name="-max">
           <option [fmp-if:currentmax.eq.5]selected[/fmp-if]>5
           </option><option [fmp-if:currentmax.eq.10]selected[/fmp-if]>10
           </option><option [fmp-if:currentmax.eq.20]selected[/fmp-if]>20
           </option><option [fmp-if:currentmax.eq.30]selected[/fmp-if]>30
           </option><option [fmp-if:currentmax.eq.50]selected[/fmp-if]>50
           </option><option 
[fmp-if:currentmax.eq.2147483647]selected[/fmp-if]>all
         </option></select>
         </td>
       <input type=hidden name="-format" value="select_evaluator.html" />
						
					
       <td height="25">
         <input type="submit" name="-findall" value="sort records" />
         </td>
     </tr>
   </table>

Many Thanks

Jane



More information about the FX.php_List mailing list