editcategory.html.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * The edit view of category module of XXB.
  4. *
  5. * @copyright Copyright 2009-2020 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZOSL (https://zpl.pub/page/zoslv1.html)
  7. * @author Chunsheng Wang <chunsheng@cnezsoft.com>
  8. * @package category
  9. * @version $Id: edit.html.php 4110 2016-10-08 09:37:28Z daitingting $
  10. * @link https://wenrui.net
  11. */
  12. ?>
  13. <?php js::set('categoryID', $category->id);?>
  14. <?php
  15. $webRoot = $config->webRoot;
  16. $jsRoot = $webRoot . "js/";
  17. $themeRoot = $webRoot . "theme/";
  18. ?>
  19. <form method='post' class='form-horizontal' id='editForm' action="<?php echo inlink('editCategory', "type=editcategory&categoryID=$category->id");?>">
  20. <div class='panel panel-block'>
  21. <div class='panel-heading'>
  22. <strong><i class="icon-pencil"></i> <?php echo $lang->traincourse->editCategory;?></strong>
  23. <i class="icon-double-angle-right"></i>
  24. <?php echo html::a(inlink('browseCategory', "type=trainskill&category={$category->id}"), $category->name);?>
  25. </div>
  26. <div class='panel-body'>
  27. <div class='form-group'>
  28. <label class='col-md-2 control-label'><?php echo $lang->traincourse->category;?></label>
  29. <div class='col-md-4'><?php echo html::select('parent', $optionMenu, $category->parent, "class='chosen form-control'");?></div>
  30. </div>
  31. <div class='form-group'>
  32. <label class='col-md-2 control-label'><?php echo $lang->traincourse->categoryName;?></label>
  33. <div class='col-md-4'><?php echo html::input('name', $category->name, "class='form-control'");?></div>
  34. </div>
  35. <div class='form-group'>
  36. <label class='col-md-2'></label>
  37. <div class='col-md-4'><?php echo html::submitButton();?></div>
  38. </div>
  39. </div>
  40. </div>
  41. </form>
  42. <?php if(isset($pageJS)) js::execute($pageJS);?>