sample.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <title>AdminLTE 2 | Invoice</title>
  7. <!-- Tell the browser to be responsive to screen width -->
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <!-- Bootstrap 3.3.6 -->
  10. <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
  11. <!-- Font Awesome -->
  12. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  13. <!-- Ionicons -->
  14. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
  15. <!-- Theme style -->
  16. <link rel="stylesheet" href="../dist/css/AdminLTE.min.css">
  17. <!-- AdminLTE Skins. Choose a skin from the css/skins
  18. folder instead of downloading all of them to reduce the load. -->
  19. <link rel="stylesheet" href="../dist/css/skins/_all-skins.min.css">
  20. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  21. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  22. <!--[if lt IE 9]>
  23. <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  24. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  25. <![endif]-->
  26. <style>
  27. .interval {
  28. padding : 1px 8px!important;
  29. }
  30. #my_file {
  31. visibility: hidden; /* 隐藏 */
  32. }
  33. </style>
  34. </head>
  35. <body class="hold-transition skin-blue sidebar-mini">
  36. <div class="wrapper">
  37. <header class="main-header">
  38. <!-- Logo -->
  39. <a href="#" class="logo">
  40. <!-- logo for regular state and mobile devices -->
  41. <span class="logo-lg"><b>D</b>iagbot</span>
  42. </a>
  43. </header>
  44. <!-- Left side column. contains the logo and sidebar -->
  45. <aside class="main-sidebar">
  46. <!-- sidebar: style can be found in sidebar.less -->
  47. <section class="sidebar">
  48. <!-- /.search form -->
  49. <!-- sidebar menu: : style can be found in sidebar.less -->
  50. <ul class="sidebar-menu">
  51. <li class="header">MAIN NAVIGATION</li>
  52. <li class="treeview active">
  53. <a href="#">
  54. <i class="fa fa-folder"></i> <span>diagbot</span>
  55. <span class="pull-right-container">
  56. <i class="fa fa-angle-left pull-right"></i>
  57. </span>
  58. </a>
  59. <ul class="treeview-menu">
  60. <li class="active"><a href="/push-web/participle/index"><i class="fa fa-circle-o"></i>分词示例</a></li>
  61. <li class="active"><a href="/push-web/extract/index"><i class="fa fa-circle-o"></i>提取特征</a></li>
  62. <li class="active"><a href="/push-web/relation/index"><i class="fa fa-circle-o"></i>关系抽取</a></li>
  63. <li class="active"><a href="/push-web/algorithm/index"><i class="fa fa-circle-o"></i>算法分析</a></li>
  64. </ul>
  65. </li>
  66. </ul>
  67. </section>
  68. <!-- /.sidebar -->
  69. </aside>
  70. <!-- Content Wrapper. Contains page content -->
  71. <div class="content-wrapper">
  72. <!-- Content Header (Page header) -->
  73. <section class="content-header">
  74. <h1>
  75. <small></small>
  76. </h1>
  77. <ol class="breadcrumb">
  78. <li><a href="#"><i class="fa fa-dashboard"></i>Diagbot</a></li>
  79. <li><a href="#">nlp</a></li>
  80. <li class="active">分词示例</li>
  81. </ol>
  82. </section>
  83. <!-- Main content -->
  84. <section class="invoice">
  85. <!-- title row -->
  86. <div class="row">
  87. <div class="col-xs-12">
  88. <h2 class="page-header">
  89. <form role="form" id="up_file_form" enctype='multipart/form-data' style="position: relative;">
  90. <i class="fa"></i>病 例
  91. </form>
  92. </h2>
  93. </div>
  94. <!-- /.col -->
  95. </div>
  96. <!-- /.box-header -->
  97. <div class="box-body">
  98. <div class="row">
  99. <div class="col-xs-12">
  100. <form role="form" id="participle_form">
  101. <!-- textarea -->
  102. <div class="form-group">
  103. <textarea class="form-control" rows="10" placeholder="Enter ..." name="content" id="content">主诉:患者女,58岁,反复意识丧失11天。
  104. 现病史:患者11天前烧水时出现心悸,胸闷,感全身不适全身血管跳动,头晕,四肢乏力,视物旋转,恶心,耳鸣,持续1小时后好转。10天前再次出现心悸,胸闷,感全身血管跳动,四肢乏力。6天前聊天时再次出现意识丧失,症状同前,建议转上级医院诊治,遂来我院就诊。
  105. 既往史:有高血压病10余年,血压最高为195/105mmHg,现服替米沙坦80mg QD,压氏达5mg QD治疗,血压控制欠佳。甲状腺切除4年,现服用优甲乐62.5μg治疗。
  106. 体征:神清,精神可,全身浅表淋巴结未触及肿大,颈静脉无充盈怒张,胸廓无畸形,两肺呼吸音清,未闻及干湿性罗音。腹部可见手术疤痕,腹平软,无压痛反跳痛。双下肢无水肿。
  107. 检验:
  108. 检查:临安市人民医院 2014.12.6 头颅CT未见明显异常,鼻骨未见明显骨折。</textarea>
  109. </div>
  110. </form>
  111. </div>
  112. </div>
  113. <div class="row">
  114. <div class="col-xs-12">
  115. <button type="button" class="btn btn-success pull-right" onclick="_ajax('/participle/split_and_highlight')"><i
  116. class="fa fa-credit-card"></i> 开&nbsp;始&nbsp;分&nbsp;析
  117. </button>
  118. <!--<button type="button" class="btn btn-success pull-right" onclick="_ajax('/web/participle/write_file')"><i-->
  119. <!--class="fa fa-credit-card"></i> 生&nbsp;成&nbsp;文&nbsp;件-->
  120. <!--</button>-->
  121. </div>
  122. </div>
  123. </div>
  124. <script>
  125. function _ajax(url) {
  126. $.support.cors = true;
  127. $.ajax({
  128. url: nlp_web_url + url,
  129. data: $("#participle_form").serialize(),
  130. dataType: "json",
  131. type: "post",
  132. success: function (data) {
  133. $("#participle_result").html("<h2 class='page-header'><i class='fa'></i>结 构 化</h2>" + data.data);
  134. }
  135. });
  136. };
  137. </script>
  138. <div class="row invoice-info">
  139. <div class="col-sm-12 invoice-col" id = "participle_result">
  140. </div>
  141. </div>
  142. </section>
  143. <!-- /.content -->
  144. <div class="clearfix"></div>
  145. </div>
  146. <!-- /.control-sidebar -->
  147. <!-- Add the sidebar's background. This div must be placed
  148. immediately after the control sidebar -->
  149. <div class="control-sidebar-bg"></div>
  150. </div>
  151. <!-- ./wrapper -->
  152. <!-- jQuery 2.2.3 -->
  153. <script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>
  154. <!-- Bootstrap 3.3.6 -->
  155. <script src="../bootstrap/js/bootstrap.min.js"></script>
  156. <!-- FastClick -->
  157. <script src="../plugins/fastclick/fastclick.js"></script>
  158. <!-- AdminLTE App -->
  159. <script src="../dist/js/app.min.js"></script>
  160. <!-- AdminLTE for demo purposes -->
  161. <script src="../dist/js/demo.js"></script>
  162. <script src="../dist/js/push.js"></script>
  163. </body>
  164. </html>