Ignore:
Timestamp:
May 13, 2008 4:14:53 AM (16 years ago)
Author:
quinn
Message:

Fixed lots of misplings. I'm so embarrassed! ;P

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/TemplateGlue.inc.php

    r324 r334  
    5757/**
    5858 * 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 existance
     59 * Use this to generate a pull-down menu of options or to validate the existence
    6060 * of options. (Quinn 10 Feb 2001)
    6161 *
     
    149149 * @param  array  $preselected   array of preselected values (matching the values in $db_col)
    150150 * @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 multidimentional array.
     151 * @param  int    $flag          set to 'allone' for name of input fields to all be the same of a multidimensional array.
    152152 * @param  bool   $sort          Sort the output.
    153153 */
     
    171171    }
    172172
    173     // Retreive values of a Set or ENUM database column.
     173    // Retrieve values of a Set or ENUM database column.
    174174    $values = getSetEnumFieldValues($db_table, $db_col, $sort);
    175175
     
    202202        }
    203203        if ('allone' == $flag) {
    204             // Print a cell with multidimentioal array checkboxes.
     204            // Print a cell with multidimensional array checkboxes.
    205205            $html_name = 'dbcol[' . $db_col . '][' . $v . ']';
    206206        } else {
     
    249249    }
    250250
    251     // Retreive values of a Set or ENUM database column.
     251    // Retrieve values of a Set or ENUM database column.
    252252    $values = getSetEnumFieldValues($db_table, $db_col, $sort);
    253253
     
    300300 * @param  string $preselected      the currently selected value of the menu. compared to the $val_column
    301301 * @param  bool   $blank            leave one blank at the top?
    302  * @param  string $extra_clause     SQL exclude cluase. Something like "WHERE girls != 'buckteeth'"
     302 * @param  string $extra_clause     SQL exclude clause. Something like "WHERE girls != 'buckteeth'"
    303303 */
    304304function printSelectForm($db_table, $key_column, $val_column, $preselected, $blank=false, $extra_clause='', $sql_format='SELECT %1$s, %2$s FROM %3$s %4$s')
     
    463463                ?><input type="submit" name="<?php echo oTxt($b['name']) ?>" value="<?php echo oTxt($b['value']); ?>" accesskey="<?php echo oTxt($b['accesskey']); ?>" /><?php
    464464            } else {
    465                 // For backwards compatability.
     465                // For backwards compatibility.
    466466                ?><input type="submit" name="<?php echo oTxt($i) ?>" value="<?php echo oTxt($b); ?>" /><?php
    467467            }
Note: See TracChangeset for help on using the changeset viewer.