f31749785d273cbe99099dcd70e76b766c3d83a6.svn-base 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Complex Toolbar on Dialog - jQuery EasyUI Demo</title>
  6. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  7. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  8. <link rel="stylesheet" type="text/css" href="../demo.css">
  9. <script type="text/javascript" src="../../jquery.min.js"></script>
  10. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  11. </head>
  12. <body>
  13. <h2>Complex Toolbar on Dialog</h2>
  14. <p>This sample shows how to create complex toolbar on dialog.</p>
  15. <div style="margin:20px 0;">
  16. <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#dlg').dialog('open')">Open</a>
  17. <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#dlg').dialog('close')">Close</a>
  18. </div>
  19. <div id="dlg" class="easyui-dialog" title="Complex Toolbar on Dialog" style="width:400px;height:200px;padding:10px"
  20. data-options="
  21. iconCls: 'icon-save',
  22. toolbar: '#dlg-toolbar',
  23. buttons: '#dlg-buttons'
  24. ">
  25. The dialog content.
  26. </div>
  27. <div id="dlg-toolbar" style="padding:2px 0">
  28. <table cellpadding="0" cellspacing="0" style="width:100%">
  29. <tr>
  30. <td style="padding-left:2px">
  31. <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">Edit</a>
  32. <a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-help',plain:true">Help</a>
  33. </td>
  34. <td style="text-align:right;padding-right:2px">
  35. <input class="easyui-searchbox" data-options="prompt:'Please input somthing'" style="width:150px"></input>
  36. </td>
  37. </tr>
  38. </table>
  39. </div>
  40. <div id="dlg-buttons">
  41. <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:alert('save')">Save</a>
  42. <a href="javascript:void(0)" class="easyui-linkbutton" onclick="javascript:$('#dlg').dialog('close')">Close</a>
  43. </div>
  44. </body>
  45. </html>