初始版本
This commit is contained in:
51
application/views/settings/backup.php
Executable file
51
application/views/settings/backup.php
Executable file
@@ -0,0 +1,51 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var DOMAIN = document.domain;
|
||||
var WDURL = "";
|
||||
var SCHEME= "<?php echo sys_skin()?>";
|
||||
try{
|
||||
document.domain = 'youshang.com';
|
||||
}catch(e){
|
||||
}
|
||||
//ctrl+F5 增加版本号来清空iframe的缓存的
|
||||
$(document).keydown(function(event) {
|
||||
/* Act on the event */
|
||||
if(event.keyCode === 116 && event.ctrlKey){
|
||||
var defaultPage = Public.getDefaultPage();
|
||||
var href = defaultPage.location.href.split('?')[0] + '?';
|
||||
var params = Public.urlParam();
|
||||
params['version'] = Date.parse((new Date()));
|
||||
for(i in params){
|
||||
if(i && typeof i != 'function'){
|
||||
href += i + '=' + params[i] + '&';
|
||||
}
|
||||
}
|
||||
defaultPage.location.href = href;
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.backup-status{margin: 10px 0 20px;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper setting-wrap">
|
||||
<div class="mod-toolbar-top cf">
|
||||
<a class="ui-btn ui-btn-sp fl mrb" id="start-backup" herf="#">开始备份</a>
|
||||
<!--<a class="ui-btn fl" id="auto-backup" herf="#">自动备份</a>-->
|
||||
<a herf="#" class="ui-btn fl local-recover" id="localRecover">上传本地备份</a>
|
||||
</div>
|
||||
<div class="grid-wrap">
|
||||
<div id="backup-status" class="backup-status"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>statics/js/dist/backup.js?ver=20140430"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user