myvesta/web/templates/scripts.html
2023-06-12 15:38:39 +02:00

76 lines
2.3 KiB
HTML

<script type="text/javascript" src="/js/jquery-1.7.2.min.js?<?=JS_LATEST_UPDATE?>"></script>
<script type="text/javascript" src="/js/jquery.cookie.js?<?=JS_LATEST_UPDATE?>"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.20.custom.min.js?<?=JS_LATEST_UPDATE?>"></script>
<script type="text/javascript" src="/js/hotkeys.js?<?=JS_LATEST_UPDATE?>"></script>
<script type="text/javascript" src="/js/events.js?<?=JS_LATEST_UPDATE?>"></script>
<script type="text/javascript" src="/js/app.js?<?=JS_LATEST_UPDATE?>"></script>
<script type="text/javascript" src="/js/init.js?<?=JS_LATEST_UPDATE?>"></script>
<script type="text/javascript" src="/js/i18n.js.php?<?=JS_LATEST_UPDATE?>"></script>
<script type="text/javascript" src="/js/templates.js?<?=JS_LATEST_UPDATE?>"></script>
<script type="text/javascript" src="/js/jquery.finder.js?<?=JS_LATEST_UPDATE?>"></script>
<script type="text/javascript" src="/js/fix.js?v=<?=JS_LATEST_UPDATE?>"></script>
<script>
hover_menu = function() {}
$(function() {
hover_menu();
$( ".l-separator" ).remove();
$( ".io-log div" ).removeClass();
});
</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'])):
?>
<div>
<script>
$(function() {
$('#dialog:ui-dialog').dialog('destroy');
$('#dialog-message').dialog({
modal: true,
buttons: {
Ok: function() {
$(this).dialog('close');
}
},
create: function() {
$(this)
.closest('.ui-dialog')
.find('.ui-button:first')
.addClass('submit');
}
});
});
</script>
<div id="dialog-message" title="">
<p><?=htmlentities($_SESSION['error_msg'])?></p>
</div>
</div>
<?php
unset($_SESSION['error_msg']);
endif;
?>