'; global $theme; $theme_path="themes/".$theme."/"; $image_path=$theme_path."images/"; require_once($theme_path.'layout_utils.php'); $xtpl=new XTemplate ('modules/Settings/EditField.html'); $xtpl->assign("MOD", $mod_strings); $xtpl->assign("APP", $app_strings); $xtpl->assign("FIELDNAME", $fld_name); $xtpl->assign("TABLENAME", $tableName); $xtpl->assign("COLUMNNAME", $columnName); $xtpl->assign("FIELDMODULE", $fld_module); $query = "select * from ".$tableName ;//." order by sortorderid"; $result = $adb->query($query); $fldVal=''; while($row = $adb->fetch_array($result)) { $fldVal .= $row[$columnName]; $fldVal .= "\n"; } $xtpl->assign("FLDVALUES", $fldVal); $xtpl->parse("main"); $xtpl->out("main"); ?>