|
|
|
@ -8,6 +8,7 @@
|
|
|
|
|
$("#startButton").click(function() {
|
|
|
|
|
batch_update_cache(idList[index]);
|
|
|
|
|
});
|
|
|
|
|
batch_get_backup(idList[index]);
|
|
|
|
|
|
|
|
|
|
function batch_update_cache(infoId) {
|
|
|
|
|
var $statusLabel = $("#status" + infoId);
|
|
|
|
@ -23,6 +24,25 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function batch_get_backup(infoId) {
|
|
|
|
|
var $backupLabel = $("#backup" + infoId);
|
|
|
|
|
$backupLabel.html("\u7a0d\u7b49...");
|
|
|
|
|
$.get("/info.php/welcome/get_info_backup_id/" + infoId,
|
|
|
|
|
function(result) {
|
|
|
|
|
console.info(result);
|
|
|
|
|
if (result.status == 'success') {
|
|
|
|
|
$backupLabel.html(result.username + ', ' + result.datetime + ', ' + result.logId);
|
|
|
|
|
$backupLabel.attr('href', '/info.php/information/backup_content/' + result.logId);
|
|
|
|
|
} else {
|
|
|
|
|
$backupLabel.html('无');
|
|
|
|
|
}
|
|
|
|
|
index++;
|
|
|
|
|
if (index < idList.length) {
|
|
|
|
|
batch_get_backup(idList[index]);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function update_content(infoId) {
|
|
|
|
@ -49,7 +69,7 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<th class="span1">#ID</th>
|
|
|
|
|
<th class="span9">URL</th>
|
|
|
|
|
<th class="span2">备份</th>
|
|
|
|
|
<th class="span5">备份</th>
|
|
|
|
|
<th class="span2">操作</th>
|
|
|
|
|
<th class="span2"><button id="startButton">开始批量</button></th>
|
|
|
|
|
</tr>
|
|
|
|
@ -62,7 +82,7 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<td data-id='<?php echo $info->is_id; ?>'><?php echo $info->is_id; ?></td>
|
|
|
|
|
<td class="cache_url"><?php echo $info->ic_url; ?></td>
|
|
|
|
|
<td><?php echo $last_backup->log_id; ?><a href="/info.php/information/backup_content/<?php echo $info->is_id; ?>);">查看</a></td>
|
|
|
|
|
<td><a target="_blank" id="backup<?php echo $info->is_id; ?>" href="javascript:;">查看</a></td>
|
|
|
|
|
<td><a href="javascript:update_content(<?php echo $info->is_id; ?>);">GO</a></td>
|
|
|
|
|
<td id="status<?php echo $info->is_id; ?>"><i class="icon-refresh"></i></td>
|
|
|
|
|
</tr>
|
|
|
|
@ -71,12 +91,4 @@
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="span1">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|