westdc-zf1/application/default/views/scripts/service/geonetwork.phtml

40 lines
1.1 KiB
PHTML
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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 ?>";
$('#loading').css("width",'100%');
$('.hero-unit').append('<a href="<?= $this->url ?>" class="btn btn-primary">如果没有跳转请点击这里</a>');
},
'beforeSend':function(){
$('#loading').css("width",'40%');
},
'complete':function(){
},
'timeout': 20000,
'error': function(){
$('.hero-unit').append('登陆到Geonetwork失败可能是用户太多造成拥挤请稍后再试或联系管理员');
}
});
</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>