2013-04-25 05:17:39 +00:00
|
|
|
|
<?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){
|
2018-02-07 04:43:55 +00:00
|
|
|
|
window.location.href="<?= $this->url ?>";
|
|
|
|
|
$('#loading').css("width",'100%');
|
|
|
|
|
$('.hero-unit').append('<a href="<?= $this->url ?>" class="btn btn-primary">如果没有跳转请点击这里</a>');
|
2013-04-25 05:17:39 +00:00
|
|
|
|
},
|
|
|
|
|
'beforeSend':function(){
|
2013-04-25 07:58:13 +00:00
|
|
|
|
$('#loading').css("width",'40%');
|
2013-04-25 05:17:39 +00:00
|
|
|
|
},
|
|
|
|
|
'complete':function(){
|
2018-02-07 04:43:55 +00:00
|
|
|
|
|
2013-04-25 05:17:39 +00:00
|
|
|
|
},
|
|
|
|
|
'timeout': 20000,
|
|
|
|
|
'error': function(){
|
2018-02-07 04:43:55 +00:00
|
|
|
|
$('.hero-unit').append('登陆到Geonetwork失败,可能是用户太多造成拥挤,请稍后再试或联系管理员');
|
2013-04-25 05:17:39 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
<?php }else {?>
|
|
|
|
|
<script>
|
|
|
|
|
var url = "<?= $this->url ?>";
|
|
|
|
|
$(location).attr("href",url);
|
|
|
|
|
</script>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<div class="row-fluit">
|
2013-04-25 07:58:13 +00:00
|
|
|
|
<div class="hero-unit">
|
|
|
|
|
<h2>系统正在为您跳转......</h2>
|
|
|
|
|
<div class="progress progress-striped active">
|
|
|
|
|
<div class="bar" id="loading" style="width:20%;"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-04-25 05:17:39 +00:00
|
|
|
|
</div>
|