126 lines
4.5 KiB
Cheetah
126 lines
4.5 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->System Administration<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
|
|
<script language="JavaScript" type="text/javascript">
|
|
|
|
function confirm_delete_career(id_career) {
|
|
if (confirm('Are you sure you want to delete the selected career/curse?')) {
|
|
|
|
document.location.href = "/cgi-bin/koha/admin/admin-careers.pl?op=del&id_career=" + id_career;
|
|
}
|
|
|
|
}
|
|
|
|
function confirm_delete(id_institution) {
|
|
if (confirm('Are you sure you want to delete the selected educational institution?')) {
|
|
|
|
document.location.href = "/cgi-bin/koha/admin/institutions-careers.pl?op=del&id_institution=" + id_institution;
|
|
}
|
|
|
|
}
|
|
|
|
more = 0;
|
|
less = 0;
|
|
|
|
function preloadImages() {
|
|
more = new Image();
|
|
more.src = "<!-- TMPL_VAR NAME="themelang" -->/images/more.gif";
|
|
less = new Image();
|
|
less.src = "<!-- TMPL_VAR NAME="themelang" -->/images/less.gif";
|
|
}
|
|
|
|
function show(element, img) {
|
|
var block = document.getElementById(element);
|
|
if (block.style.display == 'none') {
|
|
block.style.display = 'inline';
|
|
img.src = less.src;
|
|
} else {
|
|
block.style.display = 'none';
|
|
img.src = more.src;
|
|
}
|
|
}
|
|
|
|
preloadImages();
|
|
|
|
</script>
|
|
|
|
<div id="main">
|
|
<h1>Educational institutions (Courses)</h1>
|
|
|
|
<!-- TMPL_IF NAME="add_form" -->
|
|
|
|
<form action="/cgi-bin/koha/admin/institutions-careers.pl">
|
|
<input type="hidden" name="op" value="<!-- TMPL_VAR NAME="op" -->">
|
|
<input type="hidden" name="id_institution" value="<!-- TMPL_VAR NAME="id_institution" -->">
|
|
Educational institution name:
|
|
<input size="50" type="text" name="institution_name" value="<!-- TMPL_VAR NAME="institution_name" -->"
|
|
<br><br>
|
|
<input type="submit" class="button" value="Save">
|
|
<input type="button" class="button" value="Cancel" onclick="document.location.href='/cgi-bin/koha/admin/institutions-careers.pl'">
|
|
</form>
|
|
|
|
|
|
<!-- TMPL_ELSE -->
|
|
|
|
<table border="0" cellspacing="0" cellpadding="3">
|
|
|
|
<!-- TMPL_LOOP NAME="institutions" -->
|
|
<tr>
|
|
<td class="hilighted" width="5%">
|
|
<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>
|
|
</td>
|
|
<td class="hilighted" width="5%">
|
|
<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>
|
|
</td>
|
|
<td align="center" class="hilighted"><b><!-- TMPL_VAR NAME="institution_name" --></b></td>
|
|
<td class="hilighted" align="center" width="15%">
|
|
<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>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="3" style="font-size:13px">
|
|
<img style="cursor:hand" class="relative" onclick="show('<!-- TMPL_VAR NAME="id_institution" -->', this)" src="<!-- TMPL_VAR NAME="themelang" -->/images/more.gif"> Courses
|
|
</td>
|
|
<td colspan="1">
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="4">
|
|
<table id="<!-- TMPL_VAR NAME="id_institution" -->" style="border-spacing:5px;border-collapse:separate;border:0;display:none">
|
|
<tr>
|
|
<td colspan="3">
|
|
<hr>
|
|
</td>
|
|
</tr>
|
|
<!-- TMPL_LOOP NAME="careers" -->
|
|
<tr>
|
|
<td>
|
|
<!-- TMPL_VAR NAME="career_name" -->
|
|
</td>
|
|
<td width="5%">
|
|
<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>
|
|
</td>
|
|
<td width="5%">
|
|
<input class="button" id="small" type="button" onclick="confirm_delete_career(<!-- TMPL_VAR NAME="id_career" -->)" value="Delete">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3">
|
|
<hr>
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</table>
|
|
<br>
|
|
<a class="button" href="/cgi-bin/koha/admin/institutions-careers.pl?op=add_form">Add educational institution</a>
|
|
|
|
<!-- /TMPL_IF -->
|
|
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|