Ignore:
Timestamp:
Nov 29, 2011 4:02:29 PM (12 years ago)
Author:
anonymous
Message:

Output compression for CSS.inc.php. Above/below print for printErrorMessage

File:
1 edited

Legend:

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

    r376 r393  
    174174     * Prints the HTML for displaying error messages.
    175175     *
     176     * @param   string  $above    Additional message to print above error messages (e.g. "Oops!").
     177     * @param   string  $below    Additional message to print below error messages (e.g. "Please fix and resubmit").
    176178     * @access  public
    177179     * @author  Quinn Comendant <quinn@strangecode.com>
    178180     * @since   15 Jul 2005 01:39:14
    179181     */
    180     function printErrorMessages()
     182    function printErrorMessages($above='', $below='')
    181183    {
    182184        $app =& App::getInstance();
    183185        if ($this->anyErrors()) {
    184186            ?><div class="sc-msg" id="sc-msg-formvalidator"><?php
     187            if ('' != $above) {
     188                ?><div class="sc-above"><?php echo oTxt($above); ?></div><?php
     189            }
    185190            foreach ($this->getErrorList() as $e) {
    186191                if ('' != $e['message'] && is_string($e['message'])) {
     
    208213                }
    209214            }
     215            if ('' != $below) {
     216                ?><div class="sc-below"><?php echo oTxt($below); ?></div><?php
     217            }
    210218            ?></div><?php
    211219        }
Note: See TracChangeset for help on using the changeset viewer.