editreport.html.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /**
  3. * The editReport 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 id='mainContent' class='main-content'>
  16. <div class='main-header'>
  17. <h2><?php echo $lang->report->editReport?></h2>
  18. </div>
  19. <form method='post' target='hiddenwin'>
  20. <table class='table table-form'>
  21. <tr>
  22. <th class='w-100px'><?php echo $lang->crystal->name?></th>
  23. <td>
  24. <ul class='nav nav-tabs'>
  25. <?php $clientLang = $this->app->getClientLang();?>
  26. <?php foreach($config->langs as $langKey => $currentLang):?>
  27. <?php $active = $langKey == $clientLang ? '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 == $clientLang ? 'active' : ''?>
  34. <div class='tab-pane <?php echo $active?>' id='<?php echo str_replace('-', '_', $langKey)?>'>
  35. <?php echo html::input("name[$langKey]", zget($report->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', $report->code, "class='form-control' placeholder='{$lang->crystal->codePlaceholder}'")?></td>
  44. </tr>
  45. <?php if(strpos($report->module, 'cmmi') === false):?>
  46. <tr>
  47. <th><?php echo $lang->crystal->module?></th>
  48. <td><?php echo html::select('module[]', $lang->crystal->moduleList, $report->module, "class='form-control chosen' multiple required")?></td>
  49. </tr>
  50. <?php endif;?>
  51. <tr>
  52. <th><?php echo $lang->crystal->desc?></th>
  53. <td>
  54. <ul class='nav nav-tabs'>
  55. <?php $desc = json_decode($report->desc, true);?>
  56. <?php foreach($config->langs as $langKey => $currentLang):?>
  57. <?php $active = $langKey == $clientLang ? 'active' : ''?>
  58. <li class='<?php echo $active?>'><?php echo html::a('#desc'. str_replace('-', '_', $langKey), $currentLang, '', "data-toggle='tab'")?></li>
  59. <?php endforeach?>
  60. </ul>
  61. <div class='tab-content'>
  62. <?php foreach($config->langs as $langKey => $currentLang):?>
  63. <?php $active = $langKey == $clientLang ? 'active' : ''?>
  64. <div class='tab-pane <?php echo $active?>' id='desc<?php echo str_replace('-', '_', $langKey)?>'>
  65. <textarea name="desc[<?php echo $langKey?>]" id="desc<?php echo $langKey?>" class="form-control" rows="5" style="height:auto"><?php echo zget($desc, $langKey, '')?></textarea>
  66. </div>
  67. <?php endforeach?>
  68. </div>
  69. </td>
  70. </tr>
  71. <tr>
  72. <th></th>
  73. <td><?php echo html::submitButton();?></td>
  74. </tr>
  75. </table>
  76. </form>
  77. </div>
  78. <?php include $app->getModuleRoot() . 'common/view/footer.lite.html.php';?>