mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Move display_error_block() to footer.html
This commit is contained in:
parent
e16e92278b
commit
d1b1f97ff4
55 changed files with 78 additions and 224 deletions
|
@ -268,36 +268,6 @@ function send_email($to,$subject,$mailtext,$from) {
|
|||
mail($to, $subject, $message, $header);
|
||||
}
|
||||
|
||||
function display_error_block() {
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo '
|
||||
<div>
|
||||
<script type="text/javascript">
|
||||
$(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>'."\n";
|
||||
unset($_SESSION['error_msg']);
|
||||
}
|
||||
}
|
||||
|
||||
function list_timezones() {
|
||||
$tz = new DateTimeZone('HAST');
|
||||
$timezone_offsets['HAST'] = $tz->getOffset(new DateTime);
|
||||
|
|
|
@ -13,7 +13,6 @@ if ($user == 'admin') {
|
|||
}
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data,true);
|
||||
display_error_block();
|
||||
|
||||
// Render page
|
||||
render_page($user, $TAB, '*/list_user');
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -32,11 +32,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -30,11 +30,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -29,11 +29,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -51,11 +51,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block() ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -72,11 +72,7 @@
|
|||
</table>
|
||||
<!-- -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block() ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -42,11 +42,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -32,11 +32,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -45,11 +45,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -30,11 +30,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -42,11 +42,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -50,11 +50,7 @@
|
|||
</table>
|
||||
<!-- -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block() ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -49,11 +49,7 @@
|
|||
</table>
|
||||
<!-- -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block() ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -37,11 +37,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -41,11 +41,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div -->
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -23,9 +23,6 @@
|
|||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<? display_error_block() ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -36,9 +36,6 @@
|
|||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -37,11 +37,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -35,11 +35,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -54,11 +54,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -38,17 +38,14 @@
|
|||
</select>
|
||||
</div>
|
||||
<input type="submit" class="l-sort-toolbar__filter-apply" value=""/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- -->
|
||||
</div>
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
<!-- /.l-separator -->
|
||||
|
|
|
@ -8,12 +8,44 @@
|
|||
<script type="text/javascript" src="/js/templates.js?1446554103"></script>
|
||||
<script src="/js/jquery.finder.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){ hover_menu(); });
|
||||
$(function() {
|
||||
hover_menu();
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
@include($JS_FILE);
|
||||
?>
|
||||
|
||||
<?php
|
||||
if (!empty($_SESSION['error_msg'])):
|
||||
?>
|
||||
<div>
|
||||
<div id="dialog-message" title="">
|
||||
<p><?=htmlentities($_SESSION['error_msg'])?></p>
|
||||
</div>
|
||||
<script>
|
||||
$('#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>
|
||||
<?php
|
||||
unset($_SESSION['error_msg']);
|
||||
endif;
|
||||
?>
|
||||
|
||||
<div title="Confirmation" class="confirmation-text-redirect hidden">
|
||||
<p class="confirmation"><?=__('LEAVE_PAGE_CONFIRMATION')?></p>
|
||||
</div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<? display_error_block() ?>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
|
|
|
@ -52,11 +52,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block(); ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
|
||||
|
|
|
@ -36,19 +36,14 @@
|
|||
</select>
|
||||
</div>
|
||||
<input type="submit" class="l-sort-toolbar__filter-apply" value=""/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<? display_error_block() ?>
|
||||
|
||||
<!-- /.l-sort -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="l-separator"></div>
|
||||
<!-- /.l-separator -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue