ajaxsetlang.html.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /**
  3. * The setVarValues 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. <style>
  15. .icon, [class*=" icon-"], [class^=icon-] {font-size: 16px;}
  16. </style>
  17. <div id='mainContent' class='main-content'>
  18. <div class='main-header'>
  19. <h2><?php echo $lang->crystal->addLang;?></h2>
  20. </div>
  21. <form method='post' target='hiddenwin'>
  22. <table class='table table-form'>
  23. <thead>
  24. <tr>
  25. <th class='w-150px'><?php echo $lang->crystal->fieldName?></th>
  26. <th><?php echo $lang->crystal->fieldValue?></th>
  27. <th class='w-100px'></th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. <?php foreach($sqlLangs->fieldName as $i => $fieldName):?>
  32. <tr>
  33. <td><?php echo html::input('fieldName[]', $fieldName, "class='form-control'")?></td>
  34. <td>
  35. <div class='input-group'>
  36. <?php foreach($config->langs as $langKey => $langName):?>
  37. <?php if(!isset($sqlLangs->fieldValue[$langKey])) continue;?>
  38. <span class='input-group-addon'><?php echo $langName?></span>
  39. <?php echo html::input("fieldValue[$langKey][]", zget($sqlLangs->fieldValue[$langKey], $i, ''), "class='form-control'")?>
  40. <?php endforeach;?>
  41. </div>
  42. </td>
  43. <td>
  44. <div class='btn-group'>
  45. <?php echo html::a('javascript:;', '<i class="icon-plus"></i>', '', "onclick='addField(this)' class='btn'")?></a>
  46. <?php echo html::a('javascript:;', '<i class="icon-close"></i>', '', "onclick='deleteField(this)' class='btn'")?></a>
  47. </div>
  48. </td>
  49. </tr>
  50. <?php endforeach;?>
  51. <tr>
  52. <td><?php echo html::input('fieldName[]', '', "class='form-control'")?></td>
  53. <td>
  54. <div class='input-group'>
  55. <?php foreach($config->langs as $langKey => $langName):?>
  56. <span class='input-group-addon'><?php echo $langName?></span>
  57. <?php echo html::input("fieldValue[$langKey][]", '', "class='form-control'")?>
  58. <?php endforeach;?>
  59. </div>
  60. </td>
  61. <td>
  62. <div class='btn-group'>
  63. <?php echo html::a('javascript:;', '<i class="icon-plus"></i>', '', "onclick='addField(this)' class='btn'")?></a>
  64. <?php echo html::a('javascript:;', '<i class="icon-close"></i>', '', "onclick='deleteField(this)' class='btn'")?></a>
  65. </div>
  66. </td>
  67. </tr>
  68. </tbody>
  69. <tfoot>
  70. <tr>
  71. <td colspan='3' class='text-center'><?php echo html::submitButton()?></td>
  72. </tr>
  73. </tfoot>
  74. </table>
  75. </form>
  76. </div>
  77. <?php include $app->getModuleRoot() . 'common/view/footer.lite.html.php'?>