[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/includes ... [dev_week]
From: |
Kyle Hall |
Subject: |
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/includes ... [dev_week] |
Date: |
Mon, 22 Jan 2007 19:10:15 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: dev_week
Changes by: Kyle Hall <kylemhall> 07/01/22 19:10:15
Modified files:
koha-tmpl/intranet-tmpl/ccfls/en/includes: body-top.inc head.inc
Log message:
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/ccfls/en/includes/body-top.inc?cvsroot=koha&only_with_tag=dev_week&r1=1.1.2.1.2.2&r2=1.1.2.1.2.3
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/ccfls/en/includes/head.inc?cvsroot=koha&only_with_tag=dev_week&r1=1.1.2.1&r2=1.1.2.1.2.1
Patches:
Index: body-top.inc
===================================================================
RCS file:
/sources/koha/koha/koha-tmpl/intranet-tmpl/ccfls/en/includes/Attic/body-top.inc,v
retrieving revision 1.1.2.1.2.2
retrieving revision 1.1.2.1.2.3
diff -u -b -r1.1.2.1.2.2 -r1.1.2.1.2.3
--- body-top.inc 9 Jan 2007 13:50:11 -0000 1.1.2.1.2.2
+++ body-top.inc 22 Jan 2007 19:10:15 -0000 1.1.2.1.2.3
@@ -1,4 +1,4 @@
-<body onload="document.forms['mainform'].elements[0].focus();">
+<body onload="ccflsSetBranch();
document.forms['mainform'].elements[0].focus();">
<div id="logo">
<a href="/cgi-bin/koha/mainpage.pl">
Index: head.inc
===================================================================
RCS file:
/sources/koha/koha/koha-tmpl/intranet-tmpl/ccfls/en/includes/Attic/head.inc,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.1.2.1
diff -u -b -r1.1.2.1 -r1.1.2.1.2.1
--- head.inc 12 Apr 2006 18:34:06 -0000 1.1.2.1
+++ head.inc 22 Jan 2007 19:10:15 -0000 1.1.2.1.2.1
@@ -97,6 +97,45 @@
}
}
+
+function ccflsCreateCookie(name,value,days) {
+ if (days) {
+ var date = new Date();
+ date.setTime(date.getTime()+(days*24*60*60*1000));
+ var expires = "; expires="+date.toGMTString();
+ }
+ else var expires = "";
+ document.cookie = name+"="+value+expires+"; path=/";
+}
+
+function ccflsReadCookie(name) {
+ var nameEQ = name + "=";
+ var ca = document.cookie.split(';');
+ for(var i=0;i < ca.length;i++) {
+ var c = ca[i];
+ while (c.charAt(0)==' ') c = c.substring(1,c.length);
+ if (c.indexOf(nameEQ) == 0) return
c.substring(nameEQ.length,c.length);
+ }
+ return null;
+}
+
+function ccflsEraseCookie(name) {
+ createCookie(name,"",-1);
+}
+
+function ccflsSetBranch() {
+ var loginname = "<!-- TMPL_VAR NAME="loggedinusername" -->";
+ switch ( loginname ) {
+ case "mplm":
+ case "mplf":
+ case "mplc":
+ ccflsCreateCookie( 'branch', 'MPL', 999 );
+ break;
+ default:
+ ccflsCreateCookie( 'branch', 'BEN', 999 );
+ break;
+ }
+}
// end hiding -->
</script>
</head>
- [Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/includes ... [dev_week], Kyle Hall, 2007/01/03
- [Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/includes ... [dev_week], Kyle Hall, 2007/01/09
- [Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/includes ... [dev_week], Kyle Hall, 2007/01/09
- [Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/includes ... [dev_week], Kyle Hall, 2007/01/09
- [Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/includes ... [dev_week], Kyle Hall, 2007/01/12
- [Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/includes ... [dev_week],
Kyle Hall <=
- [Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/includes ... [dev_week], Kyle Hall, 2007/01/22