- adding some css properties (minor)

- adding links in members menu

improvements from SAN Ouest Provence :
* introducing a category_type into categories. It can be A (adult), C (children), P (Professionnal), I (institution/organisation).
* each category_type has it's own forms to create members.
* the borrowers table has been heavily modified (many fields changed), to get something more logic & readable
* reintroducing guarantor/guanrantee system that is now independant from hardcoded C/A for categories
* updating templates to fit template rules

(see mail feb, 17 on koha-devel "new features for borrowers" for more details)
This commit is contained in:
tipaul 2006-04-14 09:36:51 +00:00
parent abe11fdfbe
commit eba4eeb189
7 changed files with 202 additions and 6 deletions

View File

@ -0,0 +1,4 @@
</body>
</html>

View File

@ -0,0 +1,164 @@
</title>
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-system.css">
<!-- Estos scripts permiten manejar calendario de fechas. -->
<script type="text/javascript" src="<!-- TMPL_VAR NAME="themelang" -->/includes/calendar/calendar.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR NAME="themelang" -->/includes/calendar/calendar-en.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR NAME="themelang" -->/includes/calendar/calendar-setup.js"></script>
<!-- **************************************************** -->
<script language="JavaScript" type="text/javascript">
// Captura el evento onmousemove para cualquier navegador
if (document.layers) { // Netscape
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = captureMousePosition;
} else if (document.all) { // Internet Explorer
document.onmousemove = captureMousePosition;
} else if (document.getElementById) { // Netcsape 6
document.onmousemove = captureMousePosition;
}
var mouseXMax = 0;
var mouseYMax = 0;
var mouseX = 0;
var mouseY = 0;
function captureMousePosition(e) {
if (document.layers) {
mouseX = e.pageX;
mouseY = e.pageY;
mouseXMax = window.innerWidth + window.pageXOffset;
mouseYMax = window.innerHeight + window.pageYOffset;
} else if (document.all) {
mouseX = window.event.x + document.body.scrollLeft;
mouseY = window.event.y + document.body.scrollTop;
mouseXMax = document.body.clientWidth + document.body.scrollLeft;
mouseYMax = document.body.clientHeight + document.body.scrollTop;
} else if (document.getElementById) {
mouseX = e.pageX;
mouseY = e.pageY;
mouseXMax = window.innerWidth + window.pageXOffset;
mouseYMax = window.innerHeight + window.pageYOffset;
}
}
function holidayOperation(formObject, opType) {
var op = document.getElementsByName('operation');
op[0].value = opType;
formObject.submit();
}
// This function shows the "Show Holiday" panel //
function showHoliday (exceptionPosibility, dayName, day, month, year, weekDay, title, description) {
var panel = document.getElementById('showHoliday');
panel.style.display = 'inline';
document.getElementById('newHoliday').style.display = 'none';
panel.style.top = mouseYMax/2;
panel.style.left = (mouseXMax/2) - 250;
document.getElementById('showDayname').value = dayName;
document.getElementById('showBranchName').value = document.getElementById('branch').value;
document.getElementById('showDay').value = day;
document.getElementById('showMonth').value = month;
document.getElementById('showYear').value = year;
document.getElementById('showTitle').value = title;
document.getElementById('showDescription').value = description;
document.getElementsByName('showWeekday')[0].value = weekDay;
if (exceptionPosibility == 1) {
document.getElementById('exceptionPosibility').style.display = 'inline';
} else {
document.getElementById('exceptionPosibility').style.display = 'none';
}
}
// This function shows the "Add Holiday" panel //
function newHoliday (dayName, day, month, year, weekDay) {
var panel = document.getElementById('newHoliday');
panel.style.display = 'inline';
document.getElementById('showHoliday').style.display = 'none';
panel.style.top = mouseYMax/2;
panel.style.left = (mouseXMax/2) - 250;
document.getElementById('newDayname').value = dayName;
document.getElementById('newBranchName').value = document.getElementById('branch').value;
document.getElementById('newDay').value = day;
document.getElementById('newMonth').value = month;
document.getElementById('newYear').value = year;
document.getElementsByName('newWeekday')[0].value = weekDay;
}
function hidePanel(aPanelName) {
document.getElementById(aPanelName).style.display = 'none';
}
function changeBranch () {
var branch = document.getElementById('branch').options[document.getElementById('branch').selectedIndex].value;
location.href='/cgi-bin/koha/tools/holidays.pl?branch=' + branch;
}
function additionalInformation (anExplanation) {
var panel = document.getElementById('information');
var paragraph = document.getElementById('explanation');
panel.style.display = 'inline'
panel.style.top = mouseY;
panel.style.left = mouseX;
var info = document.createTextNode(anExplanation);
if (paragraph.hasChildNodes()) {
paragraph.removeChild(paragraph.lastChild);
}
paragraph.appendChild(info);
}
function Help() {
newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
}
</script>
<style type="text/css">
.normalday {
background-color: #EDEDED;
color: Black;
border:1px solid #000000;
}
.exception {
background-color: #EDEDED;
color: Black;
border:1px solid #000000;
}
.holiday {
background-color: red;
color: Black;
border:1px solid #000000;
}
.repeatableday {
background-color: yellow;
color: Black;
border:1px solid #000000;
}
.information {
z-index:1;
background-color: #DCD2F1;
width:300px;
display:none;
border:1px solid #000000;
color: #000000;
font-size: 8pt;
font-weight: bold;
background-color: #FFD700;
cursor: pointer;
padding:2px;
}
.panel {
z-index:1;
width:500px;
display:none;
border:1px solid #000000;
padding:0px;
}
</style>

View File

@ -1,6 +1,6 @@
body {
font-family : Verdana, Geneva, Arial, sans-serif;
font-size : .7em;
font-size : .9em;
}
table {
@ -33,6 +33,14 @@ th[scope=row] {
text-align : right;
}
input {
font-size:0.9em;
}
select {
font-size:0.9em;
}
input[type=submit], input[type=button], input[type=reset] {
background-color : #6699cc;
color : #FFFFFF;
@ -50,4 +58,16 @@ tr.highlight td, tr.highlight th {
#admin_stopwords_select UL LI {
white-space: nowrap;
}
fieldset {
display:inline;
vertical-align:top;
}
legend {
font-size:120%;
font-weight:bold;
}
label {
width:10em;
}

View File

@ -14,8 +14,5 @@
<a href="/cgi-bin/koha/admin/printers.pl">Printers</a>
<a href="/cgi-bin/koha/admin/stopwords.pl">Stop words</a>
<a href="/cgi-bin/koha/admin/z3950servers.pl">Z39.50 Servers</a>
<a href="/cgi-bin/koha/export/marc.pl">Export</a>
<a href="/cgi-bin/koha/import/breeding.pl">Reservoir</a>
<a href="/cgi-bin/koha/barcodes/barcodes.pl">Barcodes</a>
<a href="/cgi-bin/koha/admin/viewlog.pl">Log viewer</a>
</p>

View File

@ -1,5 +1,7 @@
<p>
<a href="/cgi-bin/koha/members/members-home.pl">Search</a>
<a href="/cgi-bin/koha/members/memberentry.pl?actionType=Add">Add member</a>
<a href="/cgi-bin/koha/members/memberentry.pl?categorycode=I&amp;actionType=Add">Add organisation</a>
<a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=A"/>Add adult</a>
<a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=C"/>Add child</a>
<a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=P"/>Add prof</a>
<a href="/cgi-bin/koha/members/memberentry.pl?op=add&category_type=I"/>Add org</a>
</p>

View File

@ -0,0 +1,8 @@
<p>
<a href="/cgi-bin/koha/tools/cities.pl">Cities</a>
<a href="/cgi-bin/koha/tools/holidays.pl">Holidays</a>
<a href="/cgi-bin/koha/tools/marc.pl">Export</a>
<a href="/cgi-bin/koha/import/breeding.pl">Reservoir</a>
<a href="/cgi-bin/koha/tools/barcodes.pl">Barcodes</a>
<a href="/cgi-bin/koha/tools/viewlog.pl">Log viewer</a>
</p>

View File

@ -12,6 +12,7 @@ function Help() {
<a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
<a href="/cgi-bin/koha/reports-home.pl">Reports</a>
<a href="/cgi-bin/koha/admin/admin-home.pl">Parameters</a>
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
<a href="/cgi-bin/koha/about.pl">About</a>
<a href="/cgi-bin/koha/help.pl" onclick="Help(); return false;">Help</a>
</p>