|
|
@@ -16,30 +16,7 @@
|
|
|
</script>
|
|
|
|
|
|
<?php
|
|
|
-// Dialogs
|
|
|
-// todo: display all the dialogs?
|
|
|
-
|
|
|
-if (!empty($_SESSION['look_alert'])):
|
|
|
-?>
|
|
|
- <script>
|
|
|
- $(function() {
|
|
|
- $('#dialog:ui-dialog').dialog('destroy');
|
|
|
- $('#dialog-message').dialog({
|
|
|
- modal: true,
|
|
|
- buttons: {
|
|
|
- Ok: function() {
|
|
|
- $(this).dialog('close');
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
- </script>
|
|
|
- <div id="dialog-message" title="<?=__('Welcome')?>">
|
|
|
- <p class="confirmation"><?=__('LOGGED_IN_AS', $_SESSION['look'])?></p>
|
|
|
- </div>
|
|
|
-<?php
|
|
|
- unset($_SESSION['look_alert']);
|
|
|
-elseif (!empty($_SESSION['error_msg'])):
|
|
|
+if (!empty($_SESSION['error_msg'])):
|
|
|
?>
|
|
|
<div>
|
|
|
<script>
|