Changeset 393 for trunk/lib/FormValidator.inc.php
- Timestamp:
- Nov 29, 2011 4:02:29 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FormValidator.inc.php
r376 r393 174 174 * Prints the HTML for displaying error messages. 175 175 * 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"). 176 178 * @access public 177 179 * @author Quinn Comendant <quinn@strangecode.com> 178 180 * @since 15 Jul 2005 01:39:14 179 181 */ 180 function printErrorMessages( )182 function printErrorMessages($above='', $below='') 181 183 { 182 184 $app =& App::getInstance(); 183 185 if ($this->anyErrors()) { 184 186 ?><div class="sc-msg" id="sc-msg-formvalidator"><?php 187 if ('' != $above) { 188 ?><div class="sc-above"><?php echo oTxt($above); ?></div><?php 189 } 185 190 foreach ($this->getErrorList() as $e) { 186 191 if ('' != $e['message'] && is_string($e['message'])) { … … 208 213 } 209 214 } 215 if ('' != $below) { 216 ?><div class="sc-below"><?php echo oTxt($below); ?></div><?php 217 } 210 218 ?></div><?php 211 219 }
Note: See TracChangeset
for help on using the changeset viewer.