importissue.html.php 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * The importissue view file of assetlib module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(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 Fangzhou Hu <hufangzhou@easycorp.ltd>
  8. * @package assetlib
  9. * @version $Id
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <?php js::set('libID', $libID);?>
  15. <?php js::set('projectID', $projectID);?>
  16. <div id='mainMenu' class='clearfix'>
  17. <div class='btn-toolbar pull-left'>
  18. <?php echo html::a($this->session->issueList, '<i class="icon icon-back icon-sm"></i>' . $lang->goback, '', 'class="btn btn-secondary"');?>
  19. <div class='input-group w-300px'>
  20. <span class='input-group-addon'><?php echo $lang->assetlib->selectProject;?></span>
  21. <?php echo html::select('fromProject', $allProject, $projectID, "onchange='reload(this.value)' class='form-control chosen'");?>
  22. </div>
  23. </div>
  24. </div>
  25. <div id='queryBox' data-url="<?php echo $this->createLink('search', 'buildOldForm', 'module=assetIssue');?>" data-module='assetIssue' class='show cell'></div>
  26. <div id='mainContent'>
  27. <form class='main-table' method='post' target='hiddenwin' id='importIssue' data-ride='table'>
  28. <table class='table has-sort-head table-fixed'>
  29. <thead>
  30. <?php $vars = "libID=$libID&projectID=$projectID&orderBy=%s&browseType=$browseType&queryID=$queryID&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}";?>
  31. <tr>
  32. <th class='c-id'>
  33. <div class="checkbox-primary check-all" title="<?php echo $lang->selectAll?>">
  34. <label></label>
  35. </div>
  36. <?php common::printOrderLink('id', $orderBy, $vars, $lang->idAB);?>
  37. </th>
  38. <th class='w-120px'><?php common::printOrderLink('severity', $orderBy, $vars, $lang->issue->severity);?></th>
  39. <th class='<?php echo $app->getClientLang() == 'en' ? 'w-100px' : 'w-pri'?>'> <?php common::printOrderLink('pri', $orderBy, $vars, $lang->priAB);?></th>
  40. <th> <?php common::printOrderLink('title', $orderBy, $vars, $lang->assetlib->name);?></th>
  41. <th class='w-150px'><?php common::printOrderLink('type', $orderBy, $vars, $lang->issue->type);?></th>
  42. <th class='w-200px'><?php common::printOrderLink('project', $orderBy, $vars, $lang->assetlib->project);?></th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. <?php foreach($issues as $issue):?>
  47. <tr>
  48. <td class='c-id'>
  49. <div class="checkbox-primary">
  50. <input type='checkbox' name='issueIdList[<?php echo $issue->id?>]' value='<?php echo $issue->id;?>' />
  51. <label></label>
  52. </div>
  53. <?php printf('%03d', $issue->id);?>
  54. </td>
  55. <td><?php echo zget($lang->issue->severityList, $issue->severity);?></td>
  56. <td><span class='label-pri <?php echo 'label-pri-' . $issue->pri;?>' title='<?php echo zget($lang->issue->priList, $issue->pri, $issue->pri);?>'><?php echo $issue->pri == '0' ? '' : zget($lang->issue->priList, $issue->pri, $issue->pri);?></span></td>
  57. <td class='text-left nobr c-name' title="<?php echo $issue->title?>"><?php if(!common::printLink('issue', 'view', "issueID=$issue->id", $issue->title, '', "class='iframe'", true, true)) echo $issue->title;?></td>
  58. <td><?php echo zget($lang->issue->typeList, $issue->type);?></td>
  59. <td class="c-name" title="<?php echo $allProject[$issue->project];?>"><?php echo $allProject[$issue->project];?></td>
  60. </tr>
  61. <?php endforeach;?>
  62. <?php echo html::hidden('lib', $libID);?>
  63. </tbody>
  64. </table>
  65. <?php if($issues):?>
  66. <div class='table-footer'>
  67. <div class="checkbox-primary check-all"><label><?php echo $lang->selectAll?></label></div>
  68. <div class='table-actions btn-toolbar show-always'>
  69. <?php echo html::submitButton($lang->assetlib->import, '', 'btn btn-secondary');?>
  70. </div>
  71. <div class="btn-toolbar">
  72. <?php echo html::linkButton($lang->goback, $this->session->issueList);?>
  73. </div>
  74. <div class='table-statistic'></div>
  75. <?php $pager->show('right', 'pagerjs');?>
  76. </div>
  77. <?php endif;?>
  78. </form>
  79. </div>
  80. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>