don't use setloop for only one message
| | |
| | | $app->uses('listform_actions'); |
| | | |
| | | if(isset($_SESSION['show_warning_msg'])) { |
| | | $app->tpl->setloop('warning', array(array('warning_msg' => '<p>'.$_SESSION['show_warning_msg'].'</p>'))); |
| | | $app->tpl->setVar('warning_msg', $_SESSION['show_warning_msg']); |
| | | unset($_SESSION['show_warning_msg']); |
| | | } |
| | | |
| | |
| | | |
| | | <div class="pnl_toolsarea"> |
| | | <div> |
| | | <tmpl_if name='warning'> |
| | | <tmpl_if name='warning_msg'> |
| | | <div class="systemmonitor-state state-warning"> |
| | | <div class="status"></div> |
| | | <div class="statusMsg"> |
| | | <tmpl_loop name="warning"> |
| | | {tmpl_var name='warning_msg'} |
| | | </tmpl_loop> |
| | | {tmpl_var name='warning_msg'} |
| | | </div> |
| | | </div> |
| | | </tmpl_if> |