form.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>main</title>
  6. <link href="bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
  7. <link href="css/base.css" rel="stylesheet" type="text/css" />
  8. <link href="css/admin.css" rel="stylesheet" type="text/css" />
  9. <link href="poshytip/tip-yellow/tip-yellow.css" rel="stylesheet" type="text/css" />
  10. <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
  11. <!--[if lt IE 9]>
  12. <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  13. <![endif]-->
  14. <script src="js/jquery-1.7.2.min.js"></script>
  15. <script src="bootstrap/js/bootstrap.js"></script>
  16. <script src="poshytip/jquery.poshytip.js"></script>
  17. <script src="js/admin.js"></script>
  18. </head>
  19. <body id="main">
  20. <div class="main-nav"> <span class="fn-left">表单</span> <span class="fn-right"><a href="javascript:javascript:history.go(-1);"><i class="icon-chevron-left"></i>返回</a></span>
  21. <div class="fn-clear"></div>
  22. </div>
  23. <div class="main-content">
  24. <div class="form-or-table">
  25. <form class="form-horizontal">
  26. <fieldset>
  27. <div class="control-group">
  28. <label class="control-label" for="input01"><span class="must-input">*</span>Text input</label>
  29. <div class="controls">
  30. <input type="text" class="input-xlarge error" id="input01" title="请填写标题">
  31. <span for="title" generated="true" class="error">请填写产品标题!</span>
  32. <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
  33. </div>
  34. </div>
  35. <div class="control-group">
  36. <label class="control-label" for="optionsCheckbox">Checkbox</label>
  37. <div class="controls">
  38. <label class="checkbox">
  39. <input type="checkbox" id="optionsCheckbox" value="option1">
  40. Option one is this and that—be sure to include why it's great </label>
  41. </div>
  42. </div>
  43. <div class="control-group">
  44. <label class="control-label" for="select01">Select list</label>
  45. <div class="controls">
  46. <select id="select01">
  47. <option>something</option>
  48. <option>2</option>
  49. <option>3</option>
  50. <option>4</option>
  51. <option>5</option>
  52. </select>
  53. </div>
  54. </div>
  55. <div class="control-group">
  56. <label class="control-label" for="multiSelect">Multicon-select</label>
  57. <div class="controls">
  58. <select multiple="multiple" id="multiSelect">
  59. <option>1</option>
  60. <option>2</option>
  61. <option>3</option>
  62. <option>4</option>
  63. <option>5</option>
  64. </select>
  65. </div>
  66. </div>
  67. <div class="control-group">
  68. <label class="control-label" for="fileInput">File input</label>
  69. <div class="controls">
  70. <input class="input-file" id="fileInput" type="file">
  71. </div>
  72. </div>
  73. <div class="control-group">
  74. <label class="control-label" for="textarea">Textarea</label>
  75. <div class="controls">
  76. <textarea class="input-xlarge" id="textarea" rows="3"></textarea>
  77. </div>
  78. </div>
  79. <div class="form-actions">
  80. <button type="submit" class="btn btn-primary">Save changes</button>
  81. <button class="btn">Cancel</button>
  82. </div>
  83. </fieldset>
  84. </form>
  85. </div>
  86. </div>
  87. </body>
  88. <script type="text/javascript">
  89. $().ready(function() {
  90. $('#input01').poshytip({
  91. className: 'tip-yellow',
  92. showOn: 'focus',
  93. alignTo: 'target',
  94. alignX: 'inner-left',
  95. offsetX: 0,
  96. offsetY: 5
  97. });
  98. });
  99. </script>
  100. </html>