[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] pbwebmaui/templates/default/dlgFilter.tpl.html, 1.5
From: |
nomail |
Subject: |
[Phpgroupware-cvs] pbwebmaui/templates/default/dlgFilter.tpl.html, 1.5 |
Date: |
Fri, 21 May 2004 20:14:51 -0000 |
Update of /pbwebmaui/templates/default
Modified Files:
Branch:
dlgFilter.tpl.html
date: 2004/04/26 15:27:40; author: fipsfuchs; state: Exp; lines: +32 -40
Log Message:
javascript corrections
=====================================================================
Index: pbwebmaui/templates/default/dlgFilter.tpl.html
diff -u pbwebmaui/templates/default/dlgFilter.tpl.html:1.4
pbwebmaui/templates/default/dlgFilter.tpl.html:1.5
--- pbwebmaui/templates/default/dlgFilter.tpl.html:1.4 Wed Apr 21 15:50:19 2004
+++ pbwebmaui/templates/default/dlgFilter.tpl.html Mon Apr 26 15:27:40 2004
@@ -28,46 +28,33 @@
}
}
- function showtime() {
- if(DOM || MS) {
- timestyle = getElem("id","timevalues",null).style;
- sHide = "hidden";
- sShow = "visible";
- }
- else if(NS) {
- timestyle = getElem("id","timevalues",null);
- sHide = "hide";
- sShow = "show";
- }
+ function showtime()
+ {
+ var timestylediv = document.getElementById('timestyle');
+ if (document.getElementById('sbTime').value == 1)
+ {
+ timestylediv.style.visibility = 'visible';
+ }
+ else
+ {
+ timestylediv.style.visibility = 'hidden';
+ }
+ }
- mode = getElem("id", "timestyle", null).value;
- if (mode == 0) {
- timestyle.visibility = sHide;
- }
- else {
- timestyle.visibility = sShow;
- }
- }
-
- function showfolderselect(a,f) {
- if(DOM || MS) {
- folderstyle = getElem("id",f,null).style;
- sHide = "hidden";
- sShow = "visible";
- }
- else if(NS) {
- folderstyle = getElem("id",f,null);
- sHide = "hide";
- sShow = "show";
- }
+ function showfolderselect(a,f)
+ {
- mode = getElem("id", a, null).value;
- if (mode >= 0 && mode <=1) {
- folderstyle.visibility = sShow;
- }
- else {
- folderstyle.visibility = sHide;
- }
+ mode = document.getElementById(a).value;
+ folderstylediv = document.getElementById(f).style;
+ //alert(folderstylediv.style);
+ if (mode >= 0 && mode <=1)
+ {
+ folderstylediv.visibility = 'visible';
+ }
+ else
+ {
+ folderstylediv.visibility = 'hidden';
+ }
}
function selectFolder(actionId) {
@@ -75,6 +62,10 @@
wnd.focus();
}
+ function addybook(extraparm)
+ {
+
Window1=window.open("{js_addylink}"+extraparm,"Search","width=800{jsaddybook_width},height=600{jsaddybook_height},toolbar=no,scrollbars=yes,resizable=yes");
+ }
//-->
</script>
<input type="hidden" name="RUSureResult" value="1" />
@@ -95,11 +86,11 @@
<tr>
<td colspan="2" class="bg_color1"></td>
<td class="bg_color2">
- <select name="fldTime[mode]" onchange="showtime()">
+ <select id="sbTime" name="fldTime[mode]" onchange="showtime()">
<option value="0" {fldtimemodesel0}>{l_always_if}</option>
<option value="1" {fldtimemodesel1}>{l_if_in_period}</option>
</select>
- <div style="visibility:{fldTimeRangeVisibility}"> {l_from}
+ <div id="timestyle" style="visibility:{fldTimeRangeVisibility}">
{l_from}
<input type="text" name="fldTime[from]" size="12"
value="{fldTimeFrom}" />
{l_until}
<input type="text" name="fldTime[to]" size="12" value="{fldTimeTo}" />
@@ -210,6 +201,7 @@
</td>
<td class="bg_color2">
<input name="fldVertreter" type="text" size="60" value="{fldVertreter}"
/>
+ <a
href="javascript:addybook('&hidecc=1&hidebcc=1&formname=pbwebmaui&fn_to=fldVertreter')">
{l_select_address}</a>
</td>
</tr>
<!-- END Autoreply -->
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] pbwebmaui/templates/default/dlgFilter.tpl.html, 1.5,
nomail <=