Changeset 334 for trunk/lib/TemplateGlue.inc.php
- Timestamp:
- May 13, 2008 4:14:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/TemplateGlue.inc.php
r324 r334 57 57 /** 58 58 * Finds the values of an enumeration or set column of a MySQL database, returning them in an array. 59 * Use this to generate a pull-down menu of options or to validate the exist ance59 * Use this to generate a pull-down menu of options or to validate the existence 60 60 * of options. (Quinn 10 Feb 2001) 61 61 * … … 149 149 * @param array $preselected array of preselected values (matching the values in $db_col) 150 150 * @param int $columns number of table columns to print 151 * @param int $flag set to 'allone' for name of input fields to all be the same of a multidimen tional array.151 * @param int $flag set to 'allone' for name of input fields to all be the same of a multidimensional array. 152 152 * @param bool $sort Sort the output. 153 153 */ … … 171 171 } 172 172 173 // Retr eive values of a Set or ENUM database column.173 // Retrieve values of a Set or ENUM database column. 174 174 $values = getSetEnumFieldValues($db_table, $db_col, $sort); 175 175 … … 202 202 } 203 203 if ('allone' == $flag) { 204 // Print a cell with multidimen tioal array checkboxes.204 // Print a cell with multidimensional array checkboxes. 205 205 $html_name = 'dbcol[' . $db_col . '][' . $v . ']'; 206 206 } else { … … 249 249 } 250 250 251 // Retr eive values of a Set or ENUM database column.251 // Retrieve values of a Set or ENUM database column. 252 252 $values = getSetEnumFieldValues($db_table, $db_col, $sort); 253 253 … … 300 300 * @param string $preselected the currently selected value of the menu. compared to the $val_column 301 301 * @param bool $blank leave one blank at the top? 302 * @param string $extra_clause SQL exclude cl uase. Something like "WHERE girls != 'buckteeth'"302 * @param string $extra_clause SQL exclude clause. Something like "WHERE girls != 'buckteeth'" 303 303 */ 304 304 function printSelectForm($db_table, $key_column, $val_column, $preselected, $blank=false, $extra_clause='', $sql_format='SELECT %1$s, %2$s FROM %3$s %4$s') … … 463 463 ?><input type="submit" name="<?php echo oTxt($b['name']) ?>" value="<?php echo oTxt($b['value']); ?>" accesskey="<?php echo oTxt($b['accesskey']); ?>" /><?php 464 464 } else { 465 // For backwards compat ability.465 // For backwards compatibility. 466 466 ?><input type="submit" name="<?php echo oTxt($i) ?>" value="<?php echo oTxt($b); ?>" /><?php 467 467 }
Note: See TracChangeset
for help on using the changeset viewer.