<?php foreach ($warnings as $w): ?>
<div class="admin-warnings">
    <ul>
        <li><?php echo $w ?></li>
    </ul>
</div>
<?php endforeach; ?>
<?php foreach ($notice as $w): ?>
<div class="admin-notice">
    <ul>
        <li><?php echo $w ?></li>
    </ul>
</div>
<?php endforeach; ?>