신동해

Update list.ejs : enable search function, make iframe subject to input

...@@ -16,32 +16,35 @@ ...@@ -16,32 +16,35 @@
16 <div class="container mt-4"> 16 <div class="container mt-4">
17 <img src="http://khuhub.khu.ac.kr/2018110651/Omniscient-Public-Point-Of-View/uploads/ac497e63ac70607366c72d9f92c12c81/word.png" alt="main" style="display: block; margin:0 auto; top:50px;"/> 17 <img src="http://khuhub.khu.ac.kr/2018110651/Omniscient-Public-Point-Of-View/uploads/ac497e63ac70607366c72d9f92c12c81/word.png" alt="main" style="display: block; margin:0 auto; top:50px;"/>
18 18
19 - <div class="input-group mb-3"> 19 + <!-- 검색 -->
20 - <input type="text" class="form-control" placeholder="주제 검색" aria-label="주제 검색" aria-describedby="button-addon2"> 20 + <form action="/list" method="GET">
21 - <div class="input-group-append"> 21 + <div class="input-group mb-3">
22 - <button class="btn btn-outline-secondary" type="button" id="button-addon2">검색</button> 22 + <input value="<%=주제%>" type="text" class="form-control" placeholder="주제 검색" aria-label="주제 검색" aria-describedby="button-addon2" name="subject">
23 + <div class="input-group-append">
24 + <button class="btn btn-outline-secondary search" type="submit" id="button-addon2">검색</button>
25 + </div>
23 </div> 26 </div>
24 - </div> 27 + </form>
28 +
25 </div> 29 </div>
26 30
27 <div id="wrapper"> 31 <div id="wrapper">
28 <div id = "진보" > 32 <div id = "진보" >
29 <h4 style = "text-align: center; color:blue; font-weight:bold;">진보</h4> 33 <h4 style = "text-align: center; color:blue; font-weight:bold;">진보</h4>
30 <h3 style="text-align:center;"> 34 <h3 style="text-align:center;">
31 - <iframe src="http://localhost:8080/result/progress" width="550" height="600" marginwidth="0" frameborder="2" scrolling="yes"> 35 + <iframe src="http://localhost:8080/result/progress/<%=주제%>" width="550" height="600" marginwidth="0" frameborder="2" scrolling="yes">
32 </iframe> 36 </iframe>
33 </h3> 37 </h3>
34 </div> 38 </div>
35 <div id = "보수"> 39 <div id = "보수">
36 <h4 style = "text-align: center; color:red; font-weight:bold;">보수</h4> 40 <h4 style = "text-align: center; color:red; font-weight:bold;">보수</h4>
37 <h3 style="text-align:center;"> 41 <h3 style="text-align:center;">
38 - <iframe src="http://localhost:8080/result/liberal" width="550" height="600" marginwidth="0" frameborder="2" scrolling="yes"> 42 + <iframe src="http://localhost:8080/result/liberal/<%=주제%>" width="550" height="600" marginwidth="0" frameborder="2" scrolling="yes">
39 </iframe> 43 </iframe>
40 </h3> 44 </h3>
41 </div> 45 </div>
42 </div> 46 </div>
43 47
44 -
45 <!-- Optional JavaScript; choose one of the two! --> 48 <!-- Optional JavaScript; choose one of the two! -->
46 49
47 <!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) --> 50 <!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
......