Index: trunk/kernel/include/config.php =================================================================== diff -u -r2578 -r2644 --- trunk/kernel/include/config.php (.../config.php) (revision 2578) +++ trunk/kernel/include/config.php (.../config.php) (revision 2644) @@ -197,6 +197,8 @@ var $NextItem=NULL; var $Section; + var $DisplayOrder = null; + var $TabIndex = 0; function clsConfigAdminItem($config_name=NULL) @@ -220,6 +222,7 @@ $this->default_value = $rs->fields["VariableValue"]; $this->ValueList=$rs->fields["ValueList"]; $this->Section = $rs->fields["Section"]; + $this->DisplayOrder = $rs->fields['DisplayOrder']; } } @@ -428,6 +431,7 @@ $i->ValueList = $data["ValueList"]; $i->ValidationRules = isset($data['validaton']) ? $data['validaton'] : ''; $i->Section = $data["Section"]; + $i->DisplayOrder = $data['DisplayOrder']; if(strlen($last)>0) { Index: trunk/admin/config/edit_config.php =================================================================== diff -u -r2578 -r2644 --- trunk/admin/config/edit_config.php (.../edit_config.php) (revision 2578) +++ trunk/admin/config/edit_config.php (.../edit_config.php) (revision 2644) @@ -145,7 +145,14 @@ foreach($Items as $c) { print "\n"; - print " ".$c->GetPrompt()."\n"; + print " ".$c->GetPrompt(); + + if( IsDebugMode() ) + { + echo '
['.$c->DisplayOrder.'] '.$c->name.''; + } + + print "
\n"; print " ".$c->ItemFormElement().""; if(is_object($c->NextItem)) {