/
index_dblog_list.php
executable file
·71 lines (70 loc) · 2.22 KB
/
index_dblog_list.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/**
* [ADMIN] ダッシュボード (検索ログ一覧)
*
* baserCMS : Based Website Development Project <http://basercms.net>
* Copyright 2008 - 2015, baserCMS Users Community <http://sites.google.com/site/baserusers/>
*
* @copyright Copyright 2008 - 2015, baserCMS Users Community
* @link http://basercms.net baserCMS Project
* @package Baser.View
* @since baserCMS v 0.1.0
* @license http://basercms.net/license/index.html
*/
?>
<script type="text/javascript">
$ (function (){
$('.pagination a, .list-num a').click(function(){
var ajaxurl = $(this).attr('href');
$.ajax({
url:ajaxurl,
type:'GET',
dataType:'html',
beforeSend:function(){
$('#Waiting').show();
},
complete:function(){
$('#Waiting').hide();
},
error:function(){
$('#AlertMessage').html('データの取得に失敗しました。');
$('#AlertMessage').fadeIn(500);
},
success:function(response,stuts){
if(response){
$('#DblogList').html(response);
$.bcToken.replaceLinkToSubmitToken('#DblogList .submit-token');
}else{
$('#AlertMessage').html('データの取得に失敗しました。');
$('#AlertMessage').fadeIn(500);
}
}
});
return false;
});
});
</script>
<?php if ($viewDblogs): ?>
<?php $this->passedArgs['action'] = 'ajax_dblog_index' ?>
<?php $this->BcBaser->element('pagination', array('modules' => 4, 'options' => array('url' => array('action' => 'ajax_dblog_index')))) ?>
<ul class="clear">
<?php foreach ($viewDblogs as $record): ?>
<li><span class="date"><?php echo $this->BcTime->format('Y.m.d', $record['Dblog']['created']) ?></span>
<small><?php echo $this->BcTime->format('H:i:s', $record['Dblog']['created']) ?>
<?php
$userName = $this->BcBaser->getUserName($record['User']);
if ($userName) {
echo '[' . h($userName) . ']';
}
?>
</small><br />
<?php echo h($record['Dblog']['name']) ?></li>
<?php endforeach; ?>
</ul>
<?php $this->BcBaser->element('list_num') ?>
<div class="submit clear">
<?php
$this->BcBaser->link('削除', array('action' => 'del'), array('class' => 'submit-token btn-gray button'), '最近の動きのログを削除します。いいですか?')
?>
</div>
<?php endif; ?>