enterprise_detail.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <style>
  2. .measure-input{
  3. background:transparent url("${ctxPath}/static/images/ruler.gif") repeat-x scroll 0 bottom
  4. }
  5. .mutiUpload{
  6. max-width: 510px;
  7. height:auto;
  8. font-size: 18px;
  9. margin-left: 90px;
  10. margin-top: -10px;
  11. }
  12. .mutiUpload div{
  13. line-height: 1.8;
  14. }
  15. .mutiUpload p{
  16. font-size: 20px;
  17. }
  18. .bjui-pageContent{
  19. margin: 0 auto;
  20. }
  21. </style>
  22. <script type="text/javascript">
  23. function thumb_upload_success(file, data) {
  24. var json = $.parseJSON(data)
  25. $(this).bjuiajax('ajaxDone', json)
  26. if (json[BJUI.keys.statusCode] == BJUI.statusCode.ok) {
  27. $('#j_content_thumb').val(json.filename).trigger('validate')
  28. $('#j_custom_pic').val(json.filename)
  29. $('#j_custom_span_pic').html('<img src="'+ json.filename +'" style="margin: 10px 0 0 0" WIDTH="200" HEIGHT="120"/>')
  30. }
  31. }
  32. //选择事件
  33. function P_NodeCheck(e, treeId, treeNode) {
  34. var zTree = $.fn.zTree.getZTreeObj(treeId),
  35. nodes = zTree.getCheckedNodes(true)
  36. var ids = '', names = ''
  37. for (var i = 0; i < nodes.length; i++) {
  38. ids += ','+ nodes[i].id
  39. names += ','+ nodes[i].name
  40. }
  41. if (ids.length > 0) {
  42. ids = ids.substr(1)
  43. }
  44. $("#permissionId").val(ids);
  45. }
  46. //单击事件
  47. function P_NodeClick(event, treeId, treeNode) {
  48. var zTree = $.fn.zTree.getZTreeObj(treeId)
  49. zTree.checkNode(treeNode, !treeNode.checked, true, true)
  50. event.preventDefault()
  51. }
  52. </script>
  53. <div class="bjui-pageContent">
  54. <form method="post" action="${ctxPath}/cms/enterprise/update" id="j_client_form" data-toggle="validate" data-autorefresh="true" data-alertmsg="false">
  55. <input TYPE="hidden" name="id" value="${enterprise.id!}">
  56. <input TYPE="hidden" name="approveState" value="1">
  57. <table cellspacing="1" cellpadding="6" border="0" width="100%">
  58. <tbody>
  59. <tr>
  60. <td>
  61. <label for="j_speakName" class="control-label x85">企业名称:</label>
  62. <label>${enterprise.enterpriseName!,xss}</label>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td>
  67. <div class="form-group tc">
  68. <label class="control-label x85">企业图片:</label>
  69. <div style="display: inline-block; vertical-align: middle;">
  70. <span id="j_custom_span_pic">
  71. @if(isNotEmpty(enterprise.headPortrait)){
  72. <IMG WIDTH="200" HEIGHT="120" style="margin: 10px 0 0 0" src="${enterprise.headPortrait!}">
  73. @}
  74. </span>
  75. </div>
  76. </div>
  77. </td>
  78. </tr>
  79. </tbody>
  80. </table>
  81. </form>
  82. </div>
  83. <!-- <div class="bjui-pageFooter">
  84. <ul>
  85. <li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
  86. <li><button onclick="del(this)" type="button" class="btn-close" data-icon="close">删除</button></li>
  87. <li><button type="submit" class="btn-default" data-icon="save">更新</button></li>
  88. </ul>
  89. </div> -->
  90. <script>
  91. function del(obj) {
  92. $(obj).bjuiajax('doAjax', {url:'${ctxPath}/cms/live/delete?id=${live.id!}',confirmMsg:'确定要删除该行信息吗?'});
  93. }
  94. </script>