edit.html.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <?php include $app->getModuleRoot() . 'common/view/datepicker.html.php';?>
  3. <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  4. <div id="mainContent" class="main-content fade">
  5. <div class="center-block">
  6. <div class="main-header">
  7. <h2><?php echo $lang->demandpool->edit;?></h2>
  8. </div>
  9. <form class="load-indicator main-form form-ajax" method='post' enctype='multipart/form-data' id='dataform'>
  10. <table class="table table-form">
  11. <tbody>
  12. <tr>
  13. <th class='w-140px'><?php echo $lang->demandpool->name;?></th>
  14. <td><?php echo html::input('name', $demandpool->name, "class='form-control'");?></td>
  15. </tr>
  16. <tr>
  17. <th><?php echo $lang->demandpool->owner;?></th>
  18. <td><?php echo html::select('owner[]', $users, $demandpool->owner, "class='form-control chosen' multiple");?></td>
  19. </tr>
  20. <tr>
  21. <th><?php echo $lang->demandpool->reviewer;?></th>
  22. <td><?php echo html::select('reviewer[]', $users, $demandpool->reviewer, "class='form-control chosen' multiple");?></td>
  23. </tr>
  24. <tr>
  25. <th><?php echo $lang->demandpool->products;?></th>
  26. <td><?php echo html::select('products[]', $products, $demandpool->products, "class='form-control picker-select' multiple data-placeholder='" . $lang->demandpool->bindProductsTips . "'");?></td>
  27. </tr>
  28. <tr>
  29. <th><?php echo $lang->demandpool->desc;?></th>
  30. <td><?php echo html::textarea('desc', $demandpool->desc, "class='form-control'");?></td>
  31. </tr>
  32. <tr>
  33. <th><?php echo $lang->demandpool->acl;?></th>
  34. <td><?php echo nl2br(html::radio('acl', $lang->demandpool->aclList, $demandpool->acl, '', 'block'));?></td>
  35. </tr>
  36. <tr>
  37. <td class='form-actions text-center' colspan='2'><?php echo html::submitButton() . html::backButton();?></td>
  38. </tr>
  39. </tbody>
  40. </table>
  41. </form>
  42. </div>
  43. </div>
  44. <?php js::set('hasReview', $lang->demandpool->hasReview);?>
  45. <?php js::set('poolID', explode(',', $demandpool->id));?>
  46. <?php js::set('oldOwners', explode(',', $demandpool->owner));?>
  47. <?php js::set('oldReviewers', explode(',', $demandpool->reviewer));?>
  48. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>