changestyle.jsp 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>修改首页样式</title>
  7. <t:base type="jquery,easyui,tools"></t:base>
  8. </head>
  9. <body style="overflow-y: hidden" scroll="no">
  10. <t:formvalid formid="formobj" refresh="false" dialog="true" action="userController.do?savestyle" layout="table">
  11. <table style="width: 550px" cellpadding="0" cellspacing="1" class="formtable">
  12. <tbody><th>首页风格</th>
  13. <!--
  14. <tr>
  15. <td class="value"><input type="radio" value="bootstrap" name="indexStyle" /> <span>BootStrap风格</span></td>
  16. </tr>
  17. -->
  18. <!-- update-start--Author:gaofeng Date:2014-01-10 for:新增首页风格 -->
  19. <tr>
  20. <td class="value"><input type="radio" value="acele" name="indexStyle" /><span>ACE平面风格</span></td>
  21. </tr>
  22. <tr>
  23. <td class="value"><input type="radio" value="shortcut" name="indexStyle" /> <span>ShortCut风格</span></td>
  24. </tr>
  25. <tr>
  26. <td class="value"><input type="radio" value="default" name="indexStyle" /> <span>经典风格</span></td>
  27. </tr>
  28. <tr>
  29. <td class="value"><input type="radio" value="sliding" name="indexStyle" /><span>Sliding云桌面</span></td>
  30. </tr>
  31. <!--
  32. <tr>
  33. <td class="value"><input type="radio" value="ace" name="indexStyle" /><span>ACE2平面风格</span></td>
  34. </tr>
  35. <tr>
  36. <td class="value"><input type="radio" value="diy" name="indexStyle" /><span>DIY平面风格</span></td>
  37. </tr>
  38. -->
  39. <tr>
  40. <td class="value"><input type="radio" value="hplus" name="indexStyle" /><span>H+平面风格</span></td>
  41. </tr>
  42. </tbody>
  43. </table>
  44. </t:formvalid>
  45. </body>
  46. <script type="text/javascript">
  47. $(function(){
  48. var val = "${indexStyle}";
  49. $("input[name='indexStyle']").each(function(){
  50. if($(this).val()==val){
  51. $(this).attr("checked",true);
  52. return false;
  53. }
  54. });
  55. /* var val2 = "${cssTheme}";
  56. $("input[name='cssTheme']").each(function(){
  57. if($(this).val()==val2){
  58. $(this).attr("checked",true);
  59. return false;
  60. }
  61. }); */
  62. });
  63. </script>
  64. </html>