40 lines
1.0 KiB
PHTML
Executable File
40 lines
1.0 KiB
PHTML
Executable File
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
?>
|
|
<?php if(!empty($this->login)) { ?>
|
|
<script type="text/javascript">
|
|
$.ajax({
|
|
'type': "POST",
|
|
'url': "<?= $this->login?>",
|
|
'data': $("#newsadd").serialize(),
|
|
'success': function(data){
|
|
window.location.href="<?= $this->url ?>";
|
|
},
|
|
'beforeSend':function(){
|
|
$('#loading').css("width",'40%');
|
|
},
|
|
'complete':function(){
|
|
window.location.href="<?= $this->url ?>";
|
|
$('#loading').css("width",'100%');
|
|
$('.hero-unit').append('<a href="<?= $this->url ?>" class="btn btn-primary">如果没有跳转请点击这里</a>');
|
|
},
|
|
'timeout': 20000,
|
|
'error': function(){
|
|
|
|
}
|
|
});
|
|
</script>
|
|
<?php }else {?>
|
|
<script>
|
|
var url = "<?= $this->url ?>";
|
|
$(location).attr("href",url);
|
|
</script>
|
|
<?php } ?>
|
|
<div class="row-fluit">
|
|
<div class="hero-unit">
|
|
<h2>系统正在为您跳转......</h2>
|
|
<div class="progress progress-striped active">
|
|
<div class="bar" id="loading" style="width:20%;"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|