3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 <title>MKWS demo client</title>
5 <link rel="stylesheet" href="mkwsStyle.css" />
6 <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
7 <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
8 <script type="text/javascript" src="http://mkws.indexdata.com/libjs-pz2/pz2api.1.js"></script>
9 <script type="text/javascript" src="mkws.js"></script>
11 <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
13 body { font-size: 62.5%; }
14 label, input { display:block; }
15 input.text { margin-bottom:12px; width:95%; padding: .4em; }
16 fieldset { padding:0; border:0; margin-top:25px; }
17 h1 { font-size: 1.2em; margin: .6em 0; }
18 div#users-contain { width: 350px; margin: 20px 0; }
19 div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
20 div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
21 .ui-dialog .ui-state-error { padding: .3em; }
22 .validateTips { border: 1px solid transparent; padding: 0.3em; }
27 $( "#dialog-form" ).dialog({
36 $( this ).dialog( "close" );
40 // allFields.val( "" ).removeClass( "ui-state-error" );
47 $( "#dialog-form" ).dialog( "open" );
54 <div id="dialog-form" title="Search Box">
55 <script type="text/javascript">
56 mkws_config = { switch_menu: false, lang_menu: false, query_width: 40 };
61 <div id="users-contain" class="ui-widget"></div>
63 <button id="create-user">Open Search Box</button>