fix <meta charset="utf-8">

master
LMR 10 months ago
parent a7a7ae5c0f
commit 089c8c10a6

@ -3,6 +3,7 @@
<head>
<title>更新静态页-v1.0a</title>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="//int.mycht.cn/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<script type="text/javascript" src="//int.mycht.cn/js/jquery.js"></script>
@ -84,11 +85,11 @@
//file = encodeURI(file);
current.find('.msg_wait').css('color', 'red').html('更新中');
$.ajax({
url: '<?php echo ($cache_api); ?>',
url: '<?php echo($cache_api); ?>',
dataType: 'json',
type: 'POST',
data: {
'<?php echo ($post_para); ?>': file
'<?php echo($post_para); ?>': file
},
success: function (data) {
star = star + step;
@ -109,7 +110,7 @@
var num_zero = 1;
function count_num(num) {
$('#count_num').html('已更新' + num + '个页面 进度' + (Math.ceil(num * 100 / <?php echo (count($file)); ?>)) + '% ').show();
$('#count_num').html('已更新' + num + '个页面 进度' + (Math.ceil(num * 100 / <?php echo(count($file)); ?>)) + '% ').show();
num_zero++;
}
});
@ -123,7 +124,7 @@
<li class="active dropdown mr10">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
站点:
<?php echo ($this->config->item('site_code')); ?>
<?php echo($this->config->item('site_code')); ?>
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
@ -167,16 +168,16 @@
</ul>
</li>
<span class="mt12 label label-success">缓存目录
<?php echo (count($path)); ?>
<?php echo(count($path)); ?>
</span>
<span class="mt12 label label-info">含文件
<?php echo (count($file)); ?>
<?php echo(count($file)); ?>
</span>
<span class="mt12 label label-important none" id="count_num">已更新0个页面 进度0%</span>
<form class="form-search" id="path_search" action="#" method="post">
<input type="text" placeholder="输入路径删选,例如:/tours/。" value="<?php if (isset($_POST['p'])) {
echo ($_POST['p']);
} ?>" class="input-medium search-query" name="p" />
echo($_POST['p']);
}?>" class="input-medium search-query" name="p" />
<button type="submit" class="btn">筛选</button>
</form>
<a id="update" class="btn mr10 btn-info">更新</a>
@ -194,34 +195,36 @@
</thead>
<tbody class="data_group">
<?php $c = 0; ?>
<?php foreach ($file as $key => $it) {
// $encode = mb_detect_encoding($it, array('ASCII', 'GBK', 'ISO-8859-1', 'UTF-8'));
// $_it = mb_convert_encoding($it, 'UTF8', $encode);
$_it = preg_replace('/#(.*)$/i', '', $it);
if (strlen($it) != strlen($_it))
continue;
$c++;
?>
<?php foreach ($file as $key => $it) {
// $encode = mb_detect_encoding($it, array('ASCII', 'GBK', 'ISO-8859-1', 'UTF-8'));
// $_it = mb_convert_encoding($it, 'UTF8', $encode);
$_it = preg_replace('/#(.*)$/i', '', $it);
if (strlen($it) != strlen($_it)) {
continue;
}
$c++;
?>
<tr class="data">
<td>
<?php echo ($c); ?>
<?php echo($c); ?>
</td>
<?php if (strlen($_it) > 100) { ?>
<td class="file" title="<?php echo ($_it); ?>">
<?php echo (substr($_it, 0, 40)); ?>..........
<?php echo (substr($_it, -35)); ?>
<?php if (strlen($_it) > 100) {?>
<td class="file" title="<?php echo($_it); ?>">
<?php echo(substr($_it, 0, 40)); ?>..........
<?php echo(substr($_it, -35)); ?>
</td>
<?php } else { ?>
<td class="file" title="<?php echo ($_it); ?>">
<?php echo ($_it); ?>
<?php } else {?>
<td class="file" title="<?php echo($_it); ?>">
<?php echo($_it); ?>
</td>
<?php } ?>
<?php }?>
<td>
<?php echo (isset($file_time[$it]) ? $file_time[$it] : 'bad file'); ?>
<?php echo(isset($file_time[$it]) ? $file_time[$it] : 'bad file'); ?>
</td>
<td class="msg_wait">无操作</td>
</tr>
<?php } ?>
<?php }?>
</tbody>
</table>
</div>

Loading…
Cancel
Save