m.view.html.php 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. /**
  3. * The view mobile view file of todo module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2016 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Fei Chen <chenfei@cnezsoft.com>
  8. * @package todo
  9. * @version $Id: index.html.php 3830 2016-05-18 09:34:17Z liugang $
  10. * @link http://www.zentao.net
  11. */
  12. $bodyClass = 'with-nav-bottom';
  13. include "../../common/view/m.header.html.php";
  14. ?>
  15. <div id='page' class='list-with-actions'>
  16. <div class='heading'>
  17. <div class='title'><i class='icon-calendar'> </i><?php echo $lang->todo->view;?></div>
  18. <nav class='nav'>
  19. <a href='javascript:history.go(-1);' class='btn primary'><?php echo $lang->goback;?></a>
  20. </nav>
  21. </div>
  22. <div class='section no-margin'>
  23. <div class='box'>
  24. <table class='table bordered table-detail'>
  25. <tr>
  26. <td class='w-80px'><?php echo $lang->todo->name;?></td>
  27. <td><?php echo $todo->name;?></td>
  28. </tr>
  29. <tr>
  30. <td><?php echo $lang->todo->pri;?></td>
  31. <td><span class='label pri-<?php echo $todo->pri;?>'><?php echo zget($lang->todo->priList, $todo->pri);?></span></td>
  32. </tr>
  33. <tr>
  34. <td><?php echo $lang->todo->status;?></td>
  35. <td><span class='label status-<?php echo $todo->status;?>'><?php echo zget($lang->todo->statusList, $todo->status);?></span></td>
  36. </tr>
  37. <?php if($todo->private): ?>
  38. <tr>
  39. <td></td>
  40. <td><?php echo $lang->todo->private ?></td>
  41. </tr>
  42. <?php endif; ?>
  43. <?php if($todo->desc):?>
  44. <tr>
  45. <td><?php echo $lang->todo->desc;?></td>
  46. <td><?php echo $todo->desc;?></td>
  47. </tr>
  48. <?php endif;?>
  49. <tr>
  50. <td><?php echo $lang->todo->type;?></td>
  51. <td><?php echo zget($lang->todo->typeList, $todo->type);?></td>
  52. </tr>
  53. <tr>
  54. <td><?php echo $lang->todo->account;?></td>
  55. <td><?php echo zget($users, $todo->account);?></td>
  56. </tr>
  57. <tr>
  58. <td><?php echo $lang->todo->date;?></td>
  59. <td><?php echo $todo->date == '00000000' ? $lang->todo->periods['future'] : date(DT_DATE1, strtotime($todo->date));?></td>
  60. </tr>
  61. <?php if(isset($times[$todo->begin]) or isset($times[$todo->end])):?>
  62. <tr>
  63. <td><?php echo $lang->todo->beginAndEnd;?></td>
  64. <td><?php echo $times[$todo->begin] . ' ~ ' . $times[$todo->end];?></td>
  65. </tr>
  66. <?php endif;?>
  67. </table>
  68. </div>
  69. </div>
  70. <div class='section' id='history'>
  71. <?php include '../../common/view/m.action.html.php';?>
  72. </div>
  73. <nav class='nav nav-auto affix dock-bottom footer-actions'>
  74. <?php
  75. if(common::hasPriv('todo', 'finish') and $todo->status != 'done') echo html::a($this->createLink('todo', 'finish', "todoID=$todo->id"), $lang->todo->finish, 'hiddenwin');
  76. if($todo->account == $app->user->account)
  77. {
  78. common::printIcon('todo', 'edit', "todoID=$todo->id", $todo, 'button','', '', '', false, "data-display='modal' data-placement='bottom'", $lang->edit);
  79. if(common::hasPriv('todo', 'delete')) echo html::a($this->createLink('todo', 'delete', "todoID=$todo->id"), $lang->delete, 'hiddenwin');
  80. }
  81. ?>
  82. </nav>
  83. </div>
  84. <?php include "../../common/view/m.footer.html.php"; ?>