[Logicampus-cvs] logicampus/src/public_html/templates/default header.html.php, 1.2, 1.3
Brought to you by:
trilexcom
From: Mark K <har...@us...> - 2008-08-13 22:08:26
|
Update of /cvsroot/logicampus/logicampus/src/public_html/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31525/public_html/templates/default Modified Files: header.html.php Log Message: Change the way errors are displayed so that it doesn't put HTML before the start HTML tag. Index: header.html.php =================================================================== RCS file: /cvsroot/logicampus/logicampus/src/public_html/templates/default/header.html.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** header.html.php 16 Nov 2006 20:51:30 -0000 1.2 --- header.html.php 13 Aug 2008 22:08:22 -0000 1.3 *************** *** 47,76 **** ! <? if ($t['lc_message']) { ?> ! <!-- div layover for messages should go here --> ! <div class="notice" id="lc_warning"> ! <div style="float:right;margin-right:5px;border-width:2px;border-style:solid;margin-top:3px;" ! onclick="document.getElementById('lc_warning').style.visibility='hidden';">X</div> ! <b><?= $t['lc_message'];?></b> ! <br/> ! <?= $t['lc_message_details'];?> ! <br/> ! <br/> ! </div> ! <? } ?> - <? if ($t['lc_warning']) { ?> - <!-- div layover for messages should go here --> - <div class="warning" id="lc_warning"> - <div style="float:right;margin-right:5px;border-width:2px;border-style:solid;margin-top:3px;" - onclick="document.getElementById('lc_warning').style.visibility='hidden';">X</div> - <b><?= $t['lc_warning'];?></b> - <br/> - <?= $t['lc_warning_details'];?> - <br/> - <br/> - </div> - <? } ?> --- 47,64 ---- + <?php + $sysMessages = $obj->user->getSessionMessages(); + if ( count($sysMessages) ) { + foreach ($sysMessages as $msgType => $msgText) { + echo lcMessageBox($msgText, $msgType); + } + } + if (isset($t['_newPrivMsgs'])) { + echo lcMessageBox('Someone sent you a new private message. Do you want to read them? <a href="'.appurl('pm').'">Yes, take me to my private messages.</a>','q'); + } ! lcSystem::getErrorBox(); ! ?> |