savereport.html.php 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * The saveReport view file of report module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2014 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
  6. * @license LGPL (http://www.gnu.org/licenses/lgpl.html)
  7. * @author Yidong Wang <yidong@cnezsoft.com>
  8. * @package report
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.lite.html.php';?>
  14. <?php include $app->getModuleRoot() . 'common/view/chosen.html.php';?>
  15. <div class="container">
  16. <div id="mainContent" class='main-content'>
  17. <div class='main-header'>
  18. <h2><?php echo $lang->crystal->saveAs?></h2>
  19. </div>
  20. <form class='main-form' method='post' target='hiddenwin'>
  21. <table class='table table-form'>
  22. <tr>
  23. <th class='w-100px'><?php echo $lang->crystal->name?></th>
  24. <td>
  25. <ul class='nav nav-tabs'>
  26. <?php foreach($config->langs as $langKey => $currentLang):?>
  27. <?php $active = $langKey == $this->app->getClientLang() ? 'active' : ''?>
  28. <li class='<?php echo $active?>'><?php echo html::a('#'. str_replace('-', '_', $langKey), $currentLang, '', "data-toggle='tab'")?></li>
  29. <?php endforeach?>
  30. </ul>
  31. <div class='tab-content'>
  32. <?php foreach($config->langs as $langKey => $currentLang):?>
  33. <?php $active = $langKey == $this->app->getClientLang() ? 'active' : ''?>
  34. <div class='tab-pane <?php echo $active?>' id='<?php echo str_replace('-', '_', $langKey)?>'>
  35. <?php echo html::input("name[$langKey]", '', "class='form-control' required")?>
  36. </div>
  37. <?php endforeach?>
  38. </div>
  39. </td>
  40. </tr>
  41. <tr>
  42. <th><?php echo $lang->crystal->code?></th>
  43. <td><?php echo html::input('code', '', "class='form-control' required placeholder='{$lang->crystal->codePlaceholder}'")?></td>
  44. </tr>
  45. <?php if($type == 'cmmi'):?>
  46. <tr class='hidden'>
  47. <th><?php echo $lang->crystal->module?></th>
  48. <td><?php echo html::hidden('module[]', 'cmmi')?></td>
  49. <?php else:?>
  50. <tr>
  51. <th><?php echo $lang->crystal->module?></th>
  52. <td><?php echo html::select('module[]', $lang->crystal->moduleList, '', "class='form-control chosen' multiple")?></td>
  53. </tr>
  54. <?php endif;?>
  55. <tr>
  56. <th><?php echo $lang->crystal->desc?></th>
  57. <td>
  58. <ul class='nav nav-tabs'>
  59. <?php foreach($config->langs as $langKey => $currentLang):?>
  60. <?php $active = $langKey == $this->app->getClientLang() ? 'active' : ''?>
  61. <li class='<?php echo $active?>'><?php echo html::a('#desc'. str_replace('-', '_', $langKey), $currentLang, '', "data-toggle='tab'")?></li>
  62. <?php endforeach?>
  63. </ul>
  64. <div class='tab-content'>
  65. <?php foreach($config->langs as $langKey => $currentLang):?>
  66. <?php $active = $langKey == $this->app->getClientLang() ? 'active' : ''?>
  67. <div class='tab-pane <?php echo $active?>' id='desc<?php echo str_replace('-', '_', $langKey)?>'>
  68. <textarea name="desc[<?php echo $langKey?>]" id="desc<?php echo $langKey?>" class="form-control" rows="5" style="height:auto"></textarea>
  69. </div>
  70. <?php endforeach?>
  71. </div>
  72. </td>
  73. </tr>
  74. <tr>
  75. <th></th>
  76. <td><?php echo html::submitButton();?></td>
  77. </tr>
  78. </table>
  79. </form>
  80. </div>
  81. </div>
  82. <?php include $app->getModuleRoot() . 'common/view/footer.lite.html.php';?>