Changeset 413 for trunk/lib/App.inc.php
- Timestamp:
- Oct 2, 2012 1:57:05 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r410 r413 492 492 * Prints the HTML for displaying raised messages. 493 493 * 494 * @param string $above Additional message to print above error messages (e.g. "Oops!"). 495 * @param string $below Additional message to print below error messages (e.g. "Please fix and resubmit"). 496 * @param string $print_gotohash_js Print a line of javascript that scrolls the browser window down to view any error messages. 497 * @param string $hash The #hashtag to scroll to. 494 498 * @access public 495 499 * @author Quinn Comendant <quinn@strangecode.com> 496 500 * @since 15 Jul 2005 01:39:14 497 501 */ 498 function printRaisedMessages( )502 function printRaisedMessages($above='', $below='', $print_gotohash_js=false, $hash='sc-msg') 499 503 { 500 504 if (!$this->running) { … … 506 510 if (!empty($messages)) { 507 511 ?><div id="sc-msg" class="sc-msg"><?php 512 if ('' != $above) { 513 ?><div class="sc-above"><?php echo oTxt($above); ?></div><?php 514 } 508 515 foreach ($messages as $m) { 509 516 if (error_reporting() > 0 && $this->getParam('display_errors') && isset($m['file']) && isset($m['line'])) { … … 530 537 } 531 538 } 539 if ('' != $below) { 540 ?><div class="sc-below"><?php echo oTxt($below); ?></div><?php 541 } 532 542 ?></div><?php 543 if ($print_gotohash_js) { 544 ?> 545 <script type="text/javascript"> 546 /* <![CDATA[ */ 547 window.location.hash = '#<?php echo urlencode($hash); ?>'; 548 /* ]]> */ 549 </script> 550 <?php 551 } 533 552 } 534 553 $this->clearRaisedMessages();
Note: See TracChangeset
for help on using the changeset viewer.