error display window

This commit is contained in:
Serghey Rodin 2013-11-02 16:42:57 +02:00
commit 306907270e
28 changed files with 28 additions and 125 deletions

View file

@ -20,31 +20,7 @@
</select>
<input type="submit" name="ok" value="" class="submenu-button" style="width: 36px;">
</div>
<?php
if (!empty($_SESSION['error_msg'])) {
?>
<div>
<script type="text/javascript">
$(function() {
$( "#dialog:ui-dialog" ).dialog( "destroy" );
$( "#dialog-message" ).dialog({
modal: true,
buttons: {
Ok: function() {
$( this ).dialog( "close" );
}
}
});
});
</script>
<div id="dialog-message" title="Error">
<p><?php echo $_SESSION['error_msg'] ?></p>
</div>
</div>
<?php
unset($_SESSION['error_msg']);
}
?>
<?php display_error_block(); ?>
</td>
</tr>
</table>