importfromlib.html.php 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /**
  3. * The importfromlib view file of projectstory 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 Qiyu Xie <xieqiyu@cnezsoft.com>
  8. * @package projectstory
  9. * @version $Id
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <?php
  15. js::set('projectID', $projectID);
  16. js::set('productID', $productID);
  17. js::set('storyType', $storyType);
  18. ?>
  19. <div id='mainMenu' class='clearfix'>
  20. <div class='btn-toolbar pull-left'>
  21. <?php echo html::a($this->session->storyList, '<i class="icon icon-back icon-sm"></i>' . $lang->goback, '', 'class="btn btn-secondary"');?>
  22. <div class='input-group w-300px'>
  23. <span class='input-group-addon'><?php echo $lang->assetlib->selectLib;?></span>
  24. <?php echo html::select('fromlib', $libraries, $libID, "onchange='reload(this.value)' class='form-control chosen'");?>
  25. </div>
  26. </div>
  27. </div>
  28. <div id='queryBox' data-url="<?php echo $this->createLink('search', 'buildOldForm', 'module=projectstory');?>" data-module='projectstory' class='show cell'></div>
  29. <div id='mainContent'>
  30. <form class='main-table' method='post' target='hiddenwin' id='importFromLib' data-ride='table'>
  31. <table class='table has-sort-head table-fixed'>
  32. <thead>
  33. <?php $vars = "projectID=$projectID&productID=$productID&libID=$libID&orderBy=%s&browseType=$browseType&queryID=$queryID&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}";?>
  34. <tr>
  35. <th class='c-id'>
  36. <div class="checkbox-primary check-all" title="<?php echo $lang->selectAll?>">
  37. <label></label>
  38. </div>
  39. <?php common::printOrderLink('id', $orderBy, $vars, $lang->idAB);?>
  40. </th>
  41. <?php if($product->type != 'normal'):?>
  42. <th class='c-branch text-left'><?php echo sprintf($lang->product->branch, $lang->product->branchName[$product->type]);?></th>
  43. <?php endif;?>
  44. <th class='text-left'><?php common::printOrderLink('title', $orderBy, $vars, $lang->story->title);?></th>
  45. <th class='w-100px'><?php common::printOrderLink('pri', $orderBy, $vars, $lang->story->pri);?></th>
  46. <th class='w-100px'><?php common::printOrderLink('estimate', $orderBy, $vars, $lang->story->estimate);?></th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. <?php $i = 0;?>
  51. <?php foreach($stories as $story):?>
  52. <tr>
  53. <td class='c-id'>
  54. <div class="checkbox-primary">
  55. <input type='checkbox' name='storyIdList[<?php echo $story->id?>]' value='<?php echo $story->id;?>' />
  56. <label></label>
  57. </div>
  58. <?php printf('%03d', $story->id);?>
  59. </td>
  60. <?php if($product->type != 'normal'):?>
  61. <td id='branchBox'><?php echo html::select("branches[$story->id]", $branches, '', "class='form-control chosen'");?></td>
  62. <?php endif;?>
  63. <td class='c-name' title="<?php echo $story->title;?>"><?php echo html::a($this->createLink('assetlib', 'storyView', "storyID=$story->id", '', true), $story->title, '', "class='iframe' data-width='70%'");?></td>
  64. <td>
  65. <span class="label-pri label-pri-<?php echo $story->pri;?>" title="<?php echo zget($lang->story->priList, $story->pri, $story->pri);?>"><?php echo zget($lang->story->priList, $story->pri, $story->pri);?></span>
  66. </td>
  67. <td><?php echo $story->estimate . $this->config->hourUnit;?></td>
  68. </tr>
  69. <?php $i++;?>
  70. <?php endforeach;?>
  71. </tbody>
  72. </table>
  73. <?php if($stories):?>
  74. <div class='table-footer'>
  75. <div class="checkbox-primary check-all"><label><?php echo $lang->selectAll;?></label></div>
  76. <div class='table-actions btn-toolbar show-always'>
  77. <?php echo html::submitButton($lang->projectstory->import, '', 'btn btn-secondary');?>
  78. </div>
  79. <div class='table-statistic'></div>
  80. <?php $pager->show('right', 'pagerjs');?>
  81. </div>
  82. <?php endif;?>
  83. </form>
  84. </div>
  85. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>