manageredit.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. use yii\helpers\Html;
  10. use fec\helpers\CRequest;
  11. use fecadmin\models\AdminRole;
  12. ?>
  13. <style>
  14. .checker{float:left;}
  15. .dialog .pageContent {background:none;}
  16. .dialog .pageContent .pageFormContent{background:none;}
  17. </style>
  18. <div class="pageContent">
  19. <form method="post" action="<?= $saveUrl ?>" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDoneCloseAndReflush);">
  20. <?php echo CRequest::getCsrfInputHtml(); ?>
  21. <div layouth="56" class="pageFormContent" style="height: 240px; overflow: auto;">
  22. <input type="hidden" value="<?= $product_id; ?>" size="30" name="product_id" class="textInput ">
  23. <fieldset id="fieldset_table_qbe">
  24. <legend style="color:#cc0000">编辑信息</legend>
  25. <div>
  26. <?= $editBar; ?>
  27. </div>
  28. </fieldset>
  29. <fieldset id="fieldset_table_qbe">
  30. <legend style="color:#cc0000">ROLE信息</legend>
  31. <div>
  32. <div class="checkbox-list">
  33. <?php
  34. $role_arr = AdminRole::getAdminRoleArr();
  35. foreach($role_arr as $id => $label){
  36. $checked = '';
  37. if(in_array($id,$role_ids)){
  38. $checked = 'checked="true"';
  39. }
  40. ?>
  41. <label class="checkbox-inline">
  42. <div id="uniform-inlineCheckbox21" class="checker">
  43. <span><input <?= $checked; ?> type="checkbox" value="<?= $id; ?>" id="inlineCheckbox" name="role[<?= $id; ?>]"></span>
  44. </div>
  45. <?= $label ?>
  46. </label>
  47. <?php
  48. }
  49. ?>
  50. </div>
  51. </div>
  52. </fieldset>
  53. </div>
  54. <div class="formBar">
  55. <ul>
  56. <!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
  57. <li><div class="buttonActive"><div class="buttonContent"><button onclick="func('accept')" value="accept" name="accept" type="submit">保存</button></div></div></li>
  58. <li>
  59. <div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
  60. </li>
  61. </ul>
  62. </div>
  63. </form>
  64. </div>