1 | <h2 tal:content="view/label">Title</h2> |
---|
2 | <form method="POST"> |
---|
3 | |
---|
4 | <br /> |
---|
5 | |
---|
6 | <input type="submit" name="search" value="Search" /> |
---|
7 | for students |
---|
8 | |
---|
9 | <select name="searchtype"> |
---|
10 | <option value="student_id">with id</option> |
---|
11 | <option value="fullname">with name</option> |
---|
12 | <option value="reg_number">with registration number</option> |
---|
13 | <option value="matric_number">with matriculation number</option> |
---|
14 | <option value="current_session">in session</option> |
---|
15 | <option value="depcode">in department</option> |
---|
16 | </select> |
---|
17 | |
---|
18 | <input type="text" name="searchterm" /> |
---|
19 | |
---|
20 | <p> </p> |
---|
21 | <div tal:condition="view/hitlist"> |
---|
22 | <h3>Search Results</h3> |
---|
23 | <input type="hidden" name="old_searchterm" |
---|
24 | tal:attributes="value view/searchterm" /> |
---|
25 | <input type="hidden" name="old_searchtype" |
---|
26 | tal:attributes="value view/searchtype" /> |
---|
27 | <table class="display dataTable"> |
---|
28 | <thead> |
---|
29 | <tr> |
---|
30 | <th>Student Id</th> |
---|
31 | <th>Registration Number</th> |
---|
32 | <th>Matriculation Number</th> |
---|
33 | <th>Fullname</th> |
---|
34 | </tr> |
---|
35 | </thead> |
---|
36 | <tbody> |
---|
37 | <tr tal:repeat="item view/hitlist"> |
---|
38 | <td> <a tal:attributes="href item/url"> |
---|
39 | <span tal:content="item/student_id">A123456</span></a> |
---|
40 | </td> |
---|
41 | <td> <a tal:attributes="href item/url"> |
---|
42 | <span tal:content="item/reg_number">9999999</span></a> |
---|
43 | </td> |
---|
44 | <td> <a tal:attributes="href item/url"> |
---|
45 | <span tal:content="item/matric_number">9999999</span></a> |
---|
46 | </td> |
---|
47 | <td tal:content="item/fullname">Bob</td> |
---|
48 | </tr> |
---|
49 | </tbody> |
---|
50 | </table> |
---|
51 | <br /> |
---|
52 | </div> |
---|
53 | </form> |
---|