PageRenderTime 61ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/baser/views/elements/admin/dashboard/index_dblog_list.php

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