edit.html.php 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /**
  3. * The edit view file of pivot of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
  6. * @license ZPL (http://zpl.pub/page/zplv12.html)
  7. * @author Chunsheng Wang <chunsheng@cnezsoft.com>
  8. * @package pivot
  9. * @version $Id: browse.html.php 5096 2013-07-11 07:02:43Z chencongzhi520@gmail.com $
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <style>
  15. #main{min-width: 500px !important; padding: unset;}
  16. #main>.container {padding: unset;}
  17. </style>
  18. <div id='mainContent' class='main-content'>
  19. <div class='center-block'>
  20. <div class='main-header'>
  21. <h2><?php echo $title;?></h2>
  22. </div>
  23. </div>
  24. <form class='form-ajax' method='post'>
  25. <table class="table table-form">
  26. <tr>
  27. <th><?php echo $lang->pivot->group;?></th>
  28. <td>
  29. <?php echo html::select('group[]', $groups, $pivot->group, "class='chosen form-control' data-max_drop_width='200' multiple");?>
  30. </td>
  31. </tr>
  32. <tr>
  33. <th class='namePadding'><?php echo $lang->pivot->name;?></th>
  34. <td class='required requiredPadding'>
  35. <ul class='nav nav-tabs'>
  36. <?php $clientLang = $this->app->getClientLang();?>
  37. <?php foreach($config->langs as $langKey => $currentLang):?>
  38. <?php $active = $langKey == $clientLang ? 'active' : ''?>
  39. <li class='<?php echo $active;?>'><?php echo html::a('#name'. str_replace('-', '_', $langKey), $currentLang, '', "data-toggle='tab'");?></li>
  40. <?php endforeach;?>
  41. </ul>
  42. <div class='tab-content'>
  43. <?php foreach($config->langs as $langKey => $currentLang):?>
  44. <?php $active = $langKey == $clientLang ? 'active' : ''?>
  45. <div class='tab-pane <?php echo $active?>' id='name<?php echo str_replace('-', '_', $langKey);?>'>
  46. <?php echo html::input("name[$langKey]", zget($pivot->names, $langKey, ''), "id='name{$langKey}' class='form-control'");?>
  47. </div>
  48. <?php endforeach;?>
  49. </div>
  50. <div id='name'></div>
  51. </td>
  52. </tr>
  53. <tr>
  54. <th><?php echo $lang->pivot->desc;?></th>
  55. <td>
  56. <ul class='nav nav-tabs'>
  57. <?php $clientLang = $this->app->getClientLang();?>
  58. <?php foreach($config->langs as $langKey => $currentLang):?>
  59. <?php $active = $langKey == $clientLang ? 'active' : ''?>
  60. <li class='<?php echo $active;?>'><?php echo html::a('#desc'. str_replace('-', '_', $langKey), $currentLang, '', "data-toggle='tab'");?></li>
  61. <?php endforeach;?>
  62. </ul>
  63. <div class='tab-content'>
  64. <?php foreach($config->langs as $langKey => $currentLang):?>
  65. <?php $active = $langKey == $clientLang ? 'active' : ''?>
  66. <div class='tab-pane <?php echo $active?>' id='desc<?php echo str_replace('-', '_', $langKey);?>'>
  67. <?php echo html::textarea("desc[$langKey]", zget($pivot->descs, $langKey, ''), "id='desc{$langKey}' rows='7' class='form-control'");?>
  68. </div>
  69. <?php endforeach;?>
  70. </div>
  71. <div id='desc'></div>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td colspan='2' class='form-actions text-center'>
  76. <?php echo html::submitButton();?>
  77. </td>
  78. </tr>
  79. </table>
  80. </form>
  81. </div>
  82. </div>
  83. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>