Removing hardcoded default template image link
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / admin / institutions-careers.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->System Administration<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
3 <!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
4 <script language="JavaScript" type="text/javascript">
5
6 function confirm_delete_career(id_career) {
7         if (confirm('Are you sure you want to delete the selected career/curse?')) {
8         
9                 document.location.href = "/cgi-bin/koha/admin/admin-careers.pl?op=del&id_career=" + id_career;
10         }
11         
12 }
13
14 function confirm_delete(id_institution) {
15         if (confirm('Are you sure you want to delete the selected educational institution?')) {
16
17                 document.location.href = "/cgi-bin/koha/admin/institutions-careers.pl?op=del&id_institution=" + id_institution;
18         }
19
20 }
21
22 more = 0;
23 less = 0;
24
25         function preloadImages() {
26                 more = new Image();
27                 more.src = "<!-- TMPL_VAR NAME="themelang" -->/images/more.gif";
28                 less = new Image();
29                 less.src = "<!-- TMPL_VAR NAME="themelang" -->/images/less.gif";
30         }
31
32         function show(element, img) {
33             var block = document.getElementById(element);
34                 if (block.style.display == 'none') {
35                     block.style.display = 'inline';
36                     img.src = less.src;
37                 } else {
38                         block.style.display = 'none';
39                         img.src = more.src;
40                 }
41         }
42         
43         preloadImages();
44
45 </script>
46
47 <div id="main">
48         <h1>Educational institutions (Courses)</h1>
49         
50         <!-- TMPL_IF NAME="add_form" -->
51         
52             <form action="/cgi-bin/koha/admin/institutions-careers.pl">
53                 <input type="hidden" name="op" value="<!-- TMPL_VAR NAME="op" -->">
54                 <input type="hidden" name="id_institution" value="<!-- TMPL_VAR NAME="id_institution" -->">
55                         Educational institution name:&nbsp;&nbsp;
56                         <input size="50" type="text" name="institution_name" value="<!-- TMPL_VAR NAME="institution_name" -->"
57                 <br><br>
58                 <input type="submit" class="button" value="Save">
59                 <input type="button" class="button" value="Cancel" onclick="document.location.href='/cgi-bin/koha/admin/institutions-careers.pl'">
60             </form>
61         
62         
63         <!-- TMPL_ELSE -->
64         
65         <table border="0" cellspacing="0" cellpadding="3">
66
67                 <!-- TMPL_LOOP NAME="institutions" -->
68                         <tr>
69                             <td class="hilighted" width="5%">
70                                         <a href="/cgi-bin/koha/admin/institutions-careers.pl?op=add_form&id_institution=<!-- TMPL_VAR NAME="id_institution" -->"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/fileopen.png" border="0"></a>
71                                 </td>
72                                 <td class="hilighted" width="5%">
73                                         <a href="javascript:confirm_delete(<!-- TMPL_VAR NAME="id_institution" -->)" ><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/edittrash.png" border="0"></a>
74                                 </td>
75                                 <td align="center" class="hilighted"><b><!-- TMPL_VAR NAME="institution_name" --></b></td>
76                                 <td class="hilighted" align="center" width="15%">
77                                     <a class="button" id="small" href="/cgi-bin/koha/admin/admin-careers.pl?op=add_form&id_institution=<!-- TMPL_VAR NAME="id_institution" -->">Add course</a>
78                                 </td>
79                         </tr>
80                         
81                         <tr>
82                             <td colspan="3" style="font-size:13px">
83                                 <img style="cursor:hand" class="relative" onclick="show('<!-- TMPL_VAR NAME="id_institution" -->', this)" src="<!-- TMPL_VAR NAME="themelang" -->/images/more.gif"> Courses
84                             </td>
85                             <td colspan="1">
86                             </td>
87                         </tr>
88                         
89                         <tr>
90                             <td colspan="4">
91                                 <table  id="<!-- TMPL_VAR NAME="id_institution" -->" style="border-spacing:5px;border-collapse:separate;border:0;display:none">
92                                                 <tr>
93                                                         <td colspan="3">
94                                                                 <hr>
95                                                         </td>
96                                                 </tr>
97                                 <!-- TMPL_LOOP NAME="careers" -->
98                                     <tr>
99                                         <td>
100                                             <!-- TMPL_VAR NAME="career_name" -->
101                                         </td>
102                                         <td width="5%">
103                                 <a class="button" id="small" href="/cgi-bin/koha/admin/admin-careers.pl?op=add_form&id_career=<!-- TMPL_VAR NAME="id_career" -->&id_institution=<!-- TMPL_VAR NAME="id_institution" -->">Edit</a>
104                                         </td>
105                                         <td width="5%">
106                                 <input class="button" id="small" type="button" onclick="confirm_delete_career(<!-- TMPL_VAR NAME="id_career" -->)" value="Delete">
107                                         </td>
108                                                 </tr>
109                                                 <tr>
110                                         <td colspan="3">
111                                                                 <hr>
112                                                         </td>
113                                     </tr>
114                                 <!-- /TMPL_LOOP -->
115                                 </table>
116                             </td>
117                         </tr>
118                 <!-- /TMPL_LOOP -->
119         </table>
120         <br>
121     <a class="button" href="/cgi-bin/koha/admin/institutions-careers.pl?op=add_form">Add educational institution</a>
122
123         <!-- /TMPL_IF -->
124
125 </div>
126 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->