create.html.php 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /**
  3. * The create 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. <div id='mainMenu' class='clearfix'>
  15. <div class='btn-toolbar pull-left'>
  16. <div class='page-title'>
  17. <span title='<?php echo $title;?>' class='text'><?php echo $title;?></span>
  18. </div>
  19. </div>
  20. </div>
  21. <div id='mainContent' class='main-content'>
  22. <div class='center-block'>
  23. <form method='post' target='hiddenwin' id='dataform' class="form-ajax">
  24. <table class='table table-form'>
  25. <tr>
  26. <th><?php echo $lang->pivot->group;?></th>
  27. <td>
  28. <?php echo html::select('group[]', $groups, '', "class='chosen form-control' data-max_drop_width='200' multiple");?>
  29. </td>
  30. </tr>
  31. <tr>
  32. <th class='namePadding'><?php echo $lang->pivot->name;?></th>
  33. <td class='required requiredPadding'>
  34. <ul class='nav nav-tabs'>
  35. <?php $clientLang = $this->app->getClientLang();?>
  36. <?php foreach($config->langs as $langKey => $currentLang):?>
  37. <?php $active = $langKey == $clientLang ? 'active' : ''?>
  38. <li class='<?php echo $active;?>'><?php echo html::a('#name'. str_replace('-', '_', $langKey), $currentLang, '', "data-toggle='tab'");?></li>
  39. <?php endforeach;?>
  40. </ul>
  41. <div class='tab-content'>
  42. <?php foreach($config->langs as $langKey => $currentLang):?>
  43. <?php $active = $langKey == $clientLang ? 'active' : ''?>
  44. <div class='tab-pane <?php echo $active?>' id='name<?php echo str_replace('-', '_', $langKey);?>'>
  45. <?php echo html::input("name[$langKey]", '', "id='name{$langKey}' class='form-control'");?>
  46. </div>
  47. <?php endforeach;?>
  48. </div>
  49. <div id='name'></div>
  50. </td>
  51. </tr>
  52. <tr>
  53. <th><?php echo $lang->pivot->desc;?></th>
  54. <td>
  55. <ul class='nav nav-tabs'>
  56. <?php $clientLang = $this->app->getClientLang();?>
  57. <?php foreach($config->langs as $langKey => $currentLang):?>
  58. <?php $active = $langKey == $clientLang ? 'active' : ''?>
  59. <li class='<?php echo $active;?>'><?php echo html::a('#desc'. str_replace('-', '_', $langKey), $currentLang, '', "data-toggle='tab'");?></li>
  60. <?php endforeach;?>
  61. </ul>
  62. <div class='tab-content'>
  63. <?php foreach($config->langs as $langKey => $currentLang):?>
  64. <?php $active = $langKey == $clientLang ? 'active' : ''?>
  65. <div class='tab-pane <?php echo $active?>' id='desc<?php echo str_replace('-', '_', $langKey);?>'>
  66. <?php echo html::textarea("desc[$langKey]", '', "id='desc{$langKey}' rows='7' class='form-control'");?>
  67. </div>
  68. <?php endforeach;?>
  69. </div>
  70. <div id='desc'></div>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td colspan='2' class='form-actions text-center'>
  75. <?php echo html::submitButton($lang->pivot->nextStep);?>
  76. </td>
  77. </tr>
  78. </table>
  79. </form>
  80. </div>
  81. </div>
  82. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>