From: <ok...@us...> - 2003-01-07 06:41:07
|
Update of /cvsroot/xoops/xoops2/include In directory sc8-pr-cvs1:/tmp/cvs-serv30675/include Modified Files: functions.php Log Message: added new function xoops_result() for displaying result messages. Its look can be controled by setting div.resultMsg in style sheet Index: functions.php =================================================================== RCS file: /cvsroot/xoops/xoops2/include/functions.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions.php 2 Jan 2003 15:42:12 -0000 1.1 --- functions.php 7 Jan 2003 06:41:04 -0000 1.2 *************** *** 99,102 **** --- 99,119 ---- } + function xoops_result($msg, $title='') + { + echo ' + <div class="resultMsg">'; + if ($title != '') { + echo '<h4>'.$title.'</h4>'; + } + if (is_array($msg)) { + foreach ($msg as $m) { + echo $m.'<br />'; + } + } else { + echo $msg; + } + echo '</div>'; + } + function xoops_confirm($hiddens, $action, $msg, $submit='') { |