[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] pbwebmaui/templates/default/dlgFilter.tpl.html, 1.2
From: |
nomail |
Subject: |
[Phpgroupware-cvs] pbwebmaui/templates/default/dlgFilter.tpl.html, 1.2 |
Date: |
Thu, 20 May 2004 18:46:49 -0000 |
Update of /pbwebmaui/templates/default
Modified Files:
Branch:
dlgFilter.tpl.html
date: 2004/04/19 15:32:07; author: fipsfuchs; state: Exp; lines: +46 -307
Log Message:
templates completely redesigned
=====================================================================
Index: pbwebmaui/templates/default/dlgFilter.tpl.html
diff -u pbwebmaui/templates/default/dlgFilter.tpl.html:1.1
pbwebmaui/templates/default/dlgFilter.tpl.html:1.2
--- pbwebmaui/templates/default/dlgFilter.tpl.html:1.1 Wed Mar 31 08:24:54 2004
+++ pbwebmaui/templates/default/dlgFilter.tpl.html Mon Apr 19 15:32:07 2004
@@ -8,7 +8,8 @@
</head>
<body>
<!-- BEGIN Content -->
-<script type="text/javascript"><!--
+<script type="text/javascript">
+<!--
dhtml2Init = false;
btnNormal = new Image();
btnNormal.src = "/pb.WebMAUI/templates/default/image/btn_delete1a.png";
@@ -76,266 +77,24 @@
//-->
</script>
-
-<script language="JavaScript1.1" type="text/javascript">
-<!--
-/**
- * Tabs class for handling HTML/CSS tabs
- *
- * Copyright (C) 2003 Dipl.-Inform. Kai Hofmann and probusiness AG
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Contact information:
- * Dipl.-Inform. Kai Hofmann
- * Arberger Heerstr. 92
- * 28307 Bremen
- * Germany
- *
- *
- * probusiness AG
- * Expo-Plaza-Nr. 1
- * 30539 Hannover
- * Germany
- *
- *
- * @version 1.0
- * @author address@hidden
- *
- * @argument nrTabs Number of Tabs to handle
- * @argument activeCSSclass CSS class name for active tabs (display:inline)
- * @argument inactiveCSSclass CSS class name for inactive tabs (display:none)
- * @argument HTMLtabID HTML ID name prefix that would be used with the tab
number as tab name.
- * @argument HTMLtabcontentID HTML ID prefix for the tab content used with the
tab number
- * @argument HTMLtabselectorID HTML ID prefix for a selectbox used to switch
between the tabs
- * @argument HTMLtabradioID HTML ID prefix for radio button input fields used
to switch between the tabs
- * @argument tabPageKey URL parameter name to use for setting/getting the
actual tab
- */
-
-function
Tabs(nrTabs,activeCSSclass,inactiveCSSclass,HTMLtabID,HTMLtabcontentID,HTMLtabselectorID,HTMLtabradioID,tabPageKey)
- {
- this.nrTabs = nrTabs;
- this.activeCSSclass = activeCSSclass;
- this.inactiveCSSclass = inactiveCSSclass;
- this.HTMLtabID = HTMLtabID;
- this.HTMLtabcontentID = HTMLtabcontentID;
- this.HTMLtabselectorID = HTMLtabselectorID;
- this.HTMLtabradioID = HTMLtabradioID;
- this.tabPageKey = tabPageKey;
-
- if (typeof(_tabs_prototype_called) == 'undefined')
- {
- _tabs_prototype_called = true;
- Tabs.prototype.setActive = setActive;
- Tabs.prototype.setInactive = setInactive;
- Tabs.prototype.isActive = isActive;
- Tabs.prototype.getActive = getActive;
- Tabs.prototype.disableAll = disableAll;
- Tabs.prototype.display = display;
- Tabs.prototype.changeToActive = changeToActive;
- Tabs.prototype.init = init;
- }
-
-
- /**
- * Set tab as active
- *
- * @argument tabnr The tab number (1-nrTabs) of the tab that should be active
- */
- function setActive(tabnr)
- {
- if ((tabnr > 0) && (tabnr <= this.nrTabs))
- {
- document.getElementById(HTMLtabID + tabnr).className =
this.activeCSSclass;
- document.getElementById(HTMLtabcontentID + tabnr).className =
this.activeCSSclass;
- if (HTMLtabselectorID != "")
- {
- document.getElementById(HTMLtabselectorID).selectedIndex = tabnr-1;
- }
- if (HTMLtabradioID != "")
- {
- document.getElementById(HTMLtabradioID + tabnr).checked = true;
- }
- }
- }
-
-
-
- /**
- * Set tab as inactive
- *
- * @argument tabnr The tab number (1-nrTabs) of the tab that should be
inactive
- */
- function setInactive(tabnr)
- {
- if ((tabnr > 0) && (tabnr <= this.nrTabs))
- {
- document.getElementById(HTMLtabID + tabnr).className =
this.inactiveCSSclass;
- document.getElementById(HTMLtabcontentID + tabnr).className =
this.inactiveCSSclass;
- }
- }
-
-
- /**
- * Test if tab is active
- *
- * @argument tabnr The tab number (1-nrTabs) of the tab that should be tested
- * @returns boolean - true if tab is active, false otherwise
- */
- function isActive(tabnr)
- {
- return(document.getElementById(HTMLtabID + tabnr).className ==
this.activeCSSclass);
- }
-
-
- /**
- * Get the active tab number
- *
- * @returns Tab (1-nrTabs) that is currently active or 0 if non is active.
- */
- function getActive()
- {
- for (i = 1; i <= this.nrTabs; ++i)
- {
- if (this.isActive(i))
- {
- return(i);
- }
- }
- return(0);
- }
-
-
- /**
- * Disable all tabs
- */
- function disableAll()
- {
- for (i = 1; i <= this.nrTabs; ++i)
- {
- this.setInactive(i);
- }
- }
-
-
- /**
- * Disable all tabs and then display the tab number given
- *
- * @argument tabnr Tab number to display
- */
- function display(tabnr)
- {
- this.disableAll(this.nrTabs);
- this.setActive(tabnr);
- }
-
-
- /**
- * Loop over all tabs - switch off currently active tabs and display the new
tab
- *
- * @argument tabnr Tab number to display
- */
- function changeToActive(tabnr)
- {
- for (i = 1; i <= this.nrTabs; ++i)
- {
- if (i == tabnr)
- {
- if (!this.isActive(i))
- {
- this.setActive(i);
- }
- }
- else
- {
- if (this.isActive(i))
- {
- this.setInactive(i);
- }
- }
- }
- }
-
-
- /**
- * Get url parameter for first tab and display it.
- */
- function init()
- {
- var tab = 0;
- var url = document.URL;
- var pos = url.indexOf("?");
- if (pos > -1)
- {
- var urlparams = url.substr(pos + 1,url.length - (pos + 1));
- var regexp = new RegExp('(^|&)' + this.tabPageKey + '=[0-9]');
- var urlparamstart = urlparams.search(regexp);
- if (urlparamstart > -1)
- {
- urlparamstart = urlparamstart + ((urlparams[urlparamstart] == '&') ? 1
: 0);
- var urlparam = urlparams.substr(urlparamstart,urlparams.length -
urlparamstart);
- pos = urlparam.indexOf("&");
- if (pos > -1)
- {
- urlparam = urlparam.substr(0,pos);
- }
- pos = urlparam.indexOf("=");
- if (pos > -1)
- {
- var urlparamvalue = urlparam.substr(pos + 1,urlparam.length - (pos +
1));
- tab = urlparamvalue;
- }
- }
- else
- {
- tab = 1;
- }
- }
- else
- {
- tab = 1;
- }
- if ((tab <= 0) || (tab > this.nrTabs))
- {
- tab = 1;
- }
- this.display(tab);
- }
- }
-
- var tab = new
Tabs(3,'activetab','inactivetab','tab','tabcontent','','','tabpage');
- tab.init();
-// -->
-</script>
<input type="hidden" name="RUSureResult" value="1" />
<input type="hidden" name="fldType" value="{fldType}" />
-<table cellspacing="1" border="0" cellpadding="2">
- <tr valign="top">
- <td align="left">{l_filter_name}</td>
- <td> </td>
- <td align="left">
+<table style="margin-bottom: 20px; border: 2px solid #FFFFFF" cellspacing="2"
cellpadding="2">
+ <tr class="header">
+ <td colspan="2">
+ {l_filter_name}
+ </td>
+ <td>
<input type="text" name="fldName" size="30" value="{fldName}" />
</td>
</tr>
<tr>
- <td align="left" colspan="3" height="3"></td>
+ <td colspan="3"style="height: 10px" class="bg_color1">
+ </td>
</tr>
- <tr valign="top">
- <td> </td>
- <td> </td>
- <td align="left">
+ <tr>
+ <td colspan="2" class="bg_color1"></td>
+ <td class="bg_color2">
<select name="fldTime[mode]" onchange="showtime()">
<option value="0" {fldtimemodesel0}>{l_always_if}</option>
<option value="1" {fldtimemodesel1}>{l_if_in_period}</option>
@@ -348,10 +107,9 @@
</td>
</tr>
<!-- BEGIN RulesMode -->
- <tr valign="top">
- <td> </td>
- <td> </td>
- <td align="left">
+ <tr>
+ <td colspan="2" class="bg_color1"></td>
+ <td class="bg_color2">
<select name="fldRulesMode">
<option value="||"
{fldRulesModeSelOr}>{l_one_of_the_following_rules_apply}</option>
<option value="&&"
{fldFulesModeSelAnd}>{l_all_of_the_following_rules_apply}</option>
@@ -359,27 +117,16 @@
</td>
</tr>
<tr>
- <td align="left" colspan="3" height="3"></td>
+ <td colspan="3" style="height: 10px" class="bg_color1"></td>
</tr>
- <tr valign="top">
- <td align="left" colspan="3" valign="bottom">{l_rules}</td>
+ <tr class="header">
+ <td colspan="3" valign="bottom">{l_rules}</td>
</tr>
<!-- END RulesMode -->
<!-- BEGIN RulesList -->
- <tr valign="top">
- <td> </td>
- <td>
- <!--
- <input type="image"
- name="btnDeleteRule[{fldPatternId}][]"
- onmouseover="picChange(this, btnHighlight)"
- onmouseout="picChange(this, btnNormal)"
- onmousedown="picChange(this, btnDown)"
- onclick="RUSure(this,'{fldPattern}')"
- title="Löschen"
- alt="Löschen"
-
src="/pb.WebMAUI/templates/default/image/btn_delete1a.png" />
- -->
+ <tr>
+ <td class="bg_color1"></td>
+ <td style="width: 24px">
<input type="image"
name="btnDeleteRule[{fldPatternId}][]"
onclick="RUSure(this,'{fldPattern}')"
@@ -388,7 +135,7 @@
src="{imgDir}/images/btn_delete1a.png"
/>
</td>
- <td align="left">
+ <td class="bg_color2">
<input type="text" name="fldRules[{fldPatternId}][pattern]" size="30"
value="{fldPattern}" />
<select name="fldRules[{fldPatternId}][not]">
<option value="0" {fldRulesNotSel0}> </option>
@@ -406,27 +153,18 @@
</tr>
<!-- END RulesList -->
<tr>
- <td align="left" colspan="3" height="3"></td>
+ <td colspan="3" style="height: 10px" class="bg_color1"></td>
</tr>
<!-- BEGIN Actions -->
- <tr valign="top">
- <td align="left" colspan="3" valign="bottom">{l_actions}</td>
+ <tr class="header">
+ <td colspan="3" valign="bottom">
+ {l_actions}
+ </td>
</tr>
<!-- BEGIN ActionsList -->
- <tr valign="top">
- <td> </td>
+ <tr>
+ <td class="bg_color1"></td>
<td>
- <!--
- <input type="image"
- name="btnDeleteAction[{fldActionId}][]"
- onmouseover="picChange(this, btnHighlight)"
- onmouseout="picChange(this, btnNormal)"
- onmousedown="picChange(this, btnDown)"
- onclick="RUSure(this,'diese Aktion')"
- title="Löschen"
- alt="Löschen"
-
src="/pb.WebMAUI/templates/default/image/btn_delete1a.png" />
- -->
<input type="image"
name="btnDeleteAction[{fldActionId}][]"
onclick="RUSure(this,'diese Aktion')"
@@ -435,7 +173,7 @@
src="{imgDir}/images/btn_delete1a.png"
/>
</td>
- <td align="left" nowrap="nowrap" >
+ <td class="bg_color2" nowrap="nowrap" >
<select id="fldAction{fldActionId}"
name="fldActions[{fldActionId}][action]"
onchange="showfolderselect('fldAction{fldActionId}',
'fldFolders{fldActionId}')">
<option value="-1">({l_select_new_action})</option>
<option value="0" {fldActionSel0}>{l_move_mail_in_the_folder}</option>
@@ -450,28 +188,29 @@
<!-- END ActionsList -->
<!-- END Actions -->
<!-- BEGIN Autoreply -->
- <tr valign="top">
- <td align="left" colspan="3" valign="bottom">{l_message}</td>
+ <tr class="header">
+ <td colspan="3" valign="bottom">
+ {l_message}
+ </td>
</tr>
- <tr valign="top">
- <td> </td>
- <td> </td>
- <td align="left">
+ <tr class="bg_color2">
+ <td colspan="2"></td>
+ <td>
<textarea name="fldAutoreplyText" rows="5"
cols="70">{fldAutoreply}</textarea>
</td>
</tr>
- <tr valign="top">
- <td>{l_text_file}</td>
- <td> </td>
- <td>
+ <tr>
+ <td colspan="2" class="bg_color1">{l_text_file}</td>
+ <td class="bg_color2">
<input type="hidden" name="MAX_FILE_SIZE" value="0" />
<input name="fldAutoreplyFile" type="file" size="60" />
</td>
</tr>
- <tr valign="top">
- <td>{l_forwarding_to_agent}</td>
- <td> </td>
- <td>
+ <tr>
+ <td colspan="2" class="bg_color1">
+ {l_forwarding_to_agent}
+ </td>
+ <td class="bg_color2">
<input name="fldVertreter" type="text" size="60" value="{fldVertreter}"
/>
</td>
</tr>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] pbwebmaui/templates/default/dlgFilter.tpl.html, 1.2,
nomail <=