mymeeting.html.php 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /**
  3. * The myMeeting of my module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2021 禅道软件(青岛)有限公司(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 Shujie Tian <tianshujie@easycorp.ltd>
  8. * @package my
  9. * @version $Id: myMeeing.html.php 4903 2021-06-12 18:48:59Z $
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php'?>
  14. <?php js::set('browseType', $browseType);?>
  15. <?php js::set('mode', $mode);?>
  16. <?php js::set('total', $pager->recTotal);?>
  17. <?php js::set('rawMethod', $app->rawMethod);?>
  18. <?php js::set('todoCount', $todoCount);?>
  19. <?php js::set('isMax', $isMax);?>
  20. <?php js::set('isBiz', $isBiz);?>
  21. <?php js::set('isOpenedURAndSR', $isOpenedURAndSR);?>
  22. <div id="mainMenu" class="clearfix">
  23. <div class="btn-toolbar pull-left">
  24. <?php
  25. foreach($lang->my->featureBar[$app->rawMethod]['myMeeting'] as $key => $name)
  26. {
  27. $label = "<span class='text'>{$name}</span>";
  28. $label .= $key == $browseType ? " <span class='label label-light label-badge'>{$pager->recTotal}</span>" : '';
  29. $active = $key == $browseType ? 'btn-active-text' : '';
  30. echo html::a(inlink($app->rawMethod, "mode=" . strtolower($mode) . "&type=$key"), $label, '', "class='btn btn-link $active'");
  31. }
  32. ?>
  33. <a class="btn btn-link querybox-toggle" id='bysearchTab'><i class="icon icon-search muted"></i> <?php echo $lang->meeting->byQuery;?></a>
  34. </div>
  35. </div>
  36. <div class="cell<?php if($browseType == 'bysearch') echo ' show';?>" id="queryBox" data-url="<?php echo $this->createLink('search', 'buildOldForm', 'module=workMeeting');?>" data-module='workMeeting'></div>
  37. <div id="mainContent" class="main-table">
  38. <?php if(empty($meetings)):?>
  39. <div class="table-empty-tip">
  40. <p>
  41. <span class="text-muted"><?php echo $lang->noData;?></span>
  42. </p>
  43. </div>
  44. <?php else:?>
  45. <table class="table has-sort-head" id='meetingList'>
  46. <?php $vars = "mode=" . strtolower($mode) . "&type=$browseType&param=$queryID&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}";?>
  47. <thead>
  48. <tr>
  49. <th class='text-left w-60px'><?php common::printOrderLink('id', $orderBy, $vars, $lang->meeting->id);?></th>
  50. <th class='text-left'><?php common::printOrderLink('name', $orderBy, $vars, $lang->meeting->name);?></th>
  51. <th class='w-120px'><?php common::printOrderLink('mode', $orderBy, $vars, $lang->meeting->mode);?></th>
  52. <th class='w-100px'><?php common::printOrderLink('dept', $orderBy, $vars, $lang->meeting->dept);?></th>
  53. <th class='c-project'><?php common::printOrderLink('project', $orderBy, $vars, $lang->meeting->project);?></th>
  54. <th class='c-execution'><?php common::printOrderLink('execution', $orderBy, $vars, $lang->meeting->execution);?></th>
  55. <th class='w-100px'><?php common::printOrderLink('date', $orderBy, $vars, $lang->meeting->date);?></th>
  56. <th class='c-room'><?php common::printOrderLink('room', $orderBy, $vars, $lang->meeting->room);?></th>
  57. <th class='w-80px'><?php common::printOrderLink('host', $orderBy, $vars, $lang->meeting->host);?></th>
  58. <th class='w-80px'><?php common::printOrderLink('minutedBy', $orderBy, $vars, $lang->meeting->minutedBy);?></th>
  59. </tr>
  60. </thead>
  61. <tbody>
  62. <?php foreach($meetings as $meeting):?>
  63. <tr>
  64. <td><?php echo sprintf('%03d',$meeting->id);?></td>
  65. <td class='c-name' title="<?php echo $meeting->name;?>"><?php echo html::a($this->createLink('meeting', 'view', "meetingID=$meeting->id"), $meeting->name, '', "data-app='{$app->tab}'");?></td>
  66. <td><?php echo zget($lang->meeting->modeList, $meeting->mode);?></td>
  67. <td class='dept' title="<?php echo zget($depts, $meeting->dept);?>"><?php echo zget($depts, $meeting->dept);?></td>
  68. <td class='c-project' title="<?php echo zget($projects, $meeting->project);?>"><?php echo zget($projects, $meeting->project);?></td>
  69. <td class='c-execution' title="<?php echo zget($executions, $meeting->execution);?>"><?php echo zget($executions, $meeting->execution);?></td>
  70. <td><?php echo $meeting->date;?></td>
  71. <td title="<?php echo zget($rooms, $meeting->room);?>"><?php echo zget($rooms, $meeting->room, '')?></td>
  72. <td><?php echo zget($users, $meeting->host);?></td>
  73. <td><?php echo zget($users, $meeting->minutedBy);?></td>
  74. </tr>
  75. <?php endforeach;?>
  76. </tbody>
  77. </table>
  78. <div class='table-footer'>
  79. <?php $pager->show('right', 'pagerjs');?>
  80. </div>
  81. <?php endif;?>
  82. </div>
  83. <?php include $app->getModuleRoot() . 'common/view/footer.html.php'?>