~sahana-relief-team/sahana-agasti/trunk

« back to all changes in this revision

Viewing changes to inc/lib_form.inc

  • Committer: Ajay Kumar
  • Date: 2009-11-18 18:39:37 UTC
  • Revision ID: kumar@ajuonline-20091118183937-z0nnn1erdrdebknr
mergeĀ fromĀ Gavin

Show diffs side-by-side

added added

removed removed

Lines of Context:
457
457
        tabindex="<?php echo ++$shn_tabindex?>">
458
458
        <?php
459
459
        if($extra_opts["sort"]==true){
460
 
                $q="select * from field_options where field_name='$opt_field' order by option_code";
 
460
                $sort=$extra_opts['sort'];              
 
461
                $q="select * from field_options where field_name='" . $opt_field . "' order by " . $sort;
461
462
        } else{
462
463
                $q="select * from field_options where field_name='$opt_field'";
463
464
        }