PageRenderTime 40ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/baser/plugins/blog/views/elements/admin/blog_comments/index_row.php

https://github.com/hashing/basercms
PHP | 64 lines | 44 code | 2 blank | 18 comment | 5 complexity | 4b58ea7cdc363f46f76db53fe7e9bc60 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. <?php if (!$data['BlogComment']['status']): ?>
  22. <?php $class=' class="disablerow unpublish"'; ?>
  23. <?php else: ?>
  24. <?php $class=' class="publish"'; ?>
  25. <?php endif; ?>
  26. <tr<?php echo $class; ?>>
  27. <td class="row-tools">
  28. <?php if($bcBaser->isAdminUser()): ?>
  29. <?php echo $bcForm->checkbox('ListTool.batch_targets.'.$data['BlogComment']['id'], array('type' => 'checkbox', 'class' => 'batch-targets', 'value' => $data['BlogComment']['id'])) ?>
  30. <?php endif ?>
  31. <?php if(!empty($this->params['pass'][1])): ?>
  32. <?php $bcBaser->link($bcBaser->getImg('admin/icn_tool_unpublish.png', array('width' => 24, 'height' => 24, 'alt' => '非公開', 'class' => 'btn')), array('action' => 'ajax_unpublish', $blogContent['BlogContent']['id'], $data['BlogComment']['blog_post_id'], $data['BlogComment']['id']), array('title' => '非公開', 'class' => 'btn-unpublish')) ?>
  33. <?php $bcBaser->link($bcBaser->getImg('admin/icn_tool_publish.png', array('width' => 24, 'height' => 24, 'alt' => '公開', 'class' => 'btn')), array('action' => 'ajax_publish', $blogContent['BlogContent']['id'], $data['BlogComment']['blog_post_id'], $data['BlogComment']['id']), array('title' => '公開', 'class' => 'btn-publish')) ?>
  34. <?php $bcBaser->link($bcBaser->getImg('admin/icn_tool_delete.png', array('width' => 24, 'height' => 24, 'alt' => '削除', 'class' => 'btn')), array('action' => 'ajax_delete', $blogContent['BlogContent']['id'], $data['BlogComment']['blog_post_id'], $data['BlogComment']['id']), array('title' => '削除', 'class' => 'btn-delete')) ?>
  35. <?php else: ?>
  36. <?php $bcBaser->link($bcBaser->getImg('admin/icn_tool_unpublish.png', array('width' => 24, 'height' => 24, 'alt' => '非公開', 'class' => 'btn')), array('action' => 'ajax_unpublish', $blogContent['BlogContent']['id'], 0, $data['BlogComment']['id']), array('title' => '非公開', 'class' => 'btn-unpublish')) ?>
  37. <?php $bcBaser->link($bcBaser->getImg('admin/icn_tool_publish.png', array('width' => 24, 'height' => 24, 'alt' => '公開', 'class' => 'btn')), array('action' => 'ajax_publish', $blogContent['BlogContent']['id'], 0, $data['BlogComment']['id']), array('title' => '公開', 'class' => 'btn-publish')) ?>
  38. <?php $bcBaser->link($bcBaser->getImg('admin/icn_tool_delete.png', array('width' => 24, 'height' => 24, 'alt' => '削除', 'class' => 'btn')), array('action' => 'ajax_delete', $blogContent['BlogContent']['id'], 0, $data['BlogComment']['id']), array('title' => '削除', 'class' => 'btn-delete')) ?>
  39. <?php endif ?>
  40. </td>
  41. <td><?php echo $data['BlogComment']['no'] ?></td>
  42. <td>
  43. <?php if(!empty($data['BlogComment']['url'])): ?>
  44. <?php $bcBaser->link($data['BlogComment']['name'], $data['BlogComment']['url'], array('target' => '_blank')) ?>
  45. <?php else: ?>
  46. <?php echo $data['BlogComment']['name'] ?>
  47. <?php endif ?>
  48. </td>
  49. <td>
  50. <?php if(!empty($data['BlogComment']['email'])): ?>
  51. <?php $bcBaser->link($data['BlogComment']['email'], 'mailto:'.$data['BlogComment']['email']) ?>
  52. <?php endif; ?>
  53. </td>
  54. <td>
  55. <strong>
  56. <?php $bcBaser->link($data['BlogPost']['name'], array('controller' => 'blog_posts', 'action' => 'edit', $blogContent['BlogContent']['id'], $data['BlogPost']['id'])) ?>
  57. </strong><br />
  58. <?php echo $data['BlogComment']['message'] ?>
  59. </td>
  60. <td><?php echo $bcTime->format('Y-m-d',$data['BlogComment']['created']); ?></td>
  61. <td><?php echo $bcTime->format('Y-m-d',$data['BlogComment']['modified']); ?></td>
  62. </tr>