[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property inc/class.uiproject.inc.php templates/...
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] property inc/class.uiproject.inc.php templates/... |
Date: |
Thu, 08 Mar 2007 14:12:41 +0000 |
CVSROOT: /sources/phpgroupware
Module name: property
Changes by: Sigurd Nes <sigurdne> 07/03/08 14:12:41
Modified files:
inc : class.uiproject.inc.php
templates/base : project.xsl
Log message:
Tabs for edit project
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/property/inc/class.uiproject.inc.php?cvsroot=phpgroupware&r1=1.51&r2=1.52
http://cvs.savannah.gnu.org/viewcvs/property/templates/base/project.xsl?cvsroot=phpgroupware&r1=1.10&r2=1.11
Patches:
Index: inc/class.uiproject.inc.php
===================================================================
RCS file: /sources/phpgroupware/property/inc/class.uiproject.inc.php,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -b -r1.51 -r1.52
--- inc/class.uiproject.inc.php 20 Feb 2007 22:22:20 -0000 1.51
+++ inc/class.uiproject.inc.php 8 Mar 2007 14:12:41 -0000 1.52
@@ -24,7 +24,7 @@
* @internal Development of this application was funded by
http://www.bergen.kommune.no/bbb_/ekstern/
* @package property
* @subpackage project
- * @version $Id: class.uiproject.inc.php,v 1.51 2007/02/20 22:22:20
sigurdne Exp $
+ * @version $Id: class.uiproject.inc.php,v 1.52 2007/03/08 14:12:41
sigurdne Exp $
*/
/**
@@ -944,8 +944,22 @@
}
}
+ $GLOBALS['phpgw']->js->validate_file('tabs', 'tabs');
+
+ if(!is_object($GLOBALS['phpgw']->css))
+ {
+ $GLOBALS['phpgw']->css =
createObject('phpgwapi.css');
+ }
+
$GLOBALS['phpgw']->css->validate_file('tabs','phpgwapi');
+
$data = array
(
+ 'lang_general'
=> lang('general'),
+ 'lang_location'
=> lang('location'),
+ 'lang_persons'
=> lang('persons'),
+ 'lang_time_and_budget' =>
lang('time and budget'),
+ 'lang_extra'
=> lang('extra'),
+
'msgbox_data'
=> $GLOBALS['phpgw']->common->msgbox($msgbox_data),
'value_origin'
=> isset($values['origin']) ? $values['origin'] : '',
Index: templates/base/project.xsl
===================================================================
RCS file: /sources/phpgroupware/property/templates/base/project.xsl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- templates/base/project.xsl 4 Jan 2007 14:36:16 -0000 1.10
+++ templates/base/project.xsl 8 Mar 2007 14:12:41 -0000 1.11
@@ -1,4 +1,4 @@
-<!-- $Id: project.xsl,v 1.10 2007/01/04 14:36:16 sigurdne Exp $ -->
+<!-- $Id: project.xsl,v 1.11 2007/03/08 14:12:41 sigurdne Exp $ -->
<xsl:template name="app_data">
<xsl:choose>
@@ -86,8 +86,6 @@
<!-- add / edit -->
<xsl:template match="edit">
- <!-- <xsl:call-template name="calendar_info"/> -->
-
<div align="left">
<table cellpadding="2" cellspacing="2" width="80%"
align="center">
<xsl:choose>
@@ -118,6 +116,83 @@
</xsl:choose>
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
<form method="post" name="form" action="{$form_action}">
+
+<div align="center">
+<table class="tabletab">
+ <tr>
+ <th id="tab1" class="activetab" valign="top"
onclick="javascript:tab.display(1);">
+ <table class="basic">
+ <tr>
+ <td id="starttab"></td>
+ <td>
+ <a href="#" tabindex="0" accesskey="1" onfocus="tab.display(1);"
onclick="tab.display(1); return(false);"><xsl:value-of
select="lang_general"/></a>
+ </td>
+ <td id="tweentab_r"></td>
+ </tr>
+ </table>
+ </th>
+ <th id="tab2" class="activetab" onclick="javascript:tab.display(2);">
+ <table>
+ <tr>
+ <td id="tweentab_l"></td>
+ <td>
+ <a href="#" tabindex="0" accesskey="2" onfocus="tab.display(2);"
onclick="tab.display(2); return(false);"><xsl:value-of
select="lang_location"/></a>
+ </td>
+ <td id="tweentab_r"></td>
+ </tr>
+ </table>
+ </th>
+ <th id="tab3" class="activetab" onclick="javascript:tab.display(3);">
+ <table>
+ <tr>
+ <td id="tweentab_l"></td>
+ <td>
+ <a href="#" tabindex="0" accesskey="3" onfocus="tab.display(3);"
onclick="tab.display(3); return(false);"><xsl:value-of
select="lang_time_and_budget"/></a>
+ </td>
+ <td id="tweentab_r"></td>
+ </tr>
+ </table>
+ </th>
+ <th id="tab4" class="activetab" onclick="javascript:tab.display(4);">
+ <table>
+ <tr>
+ <td id="tweentab_l"></td>
+ <td>
+ <a href="#" tabindex="0" accesskey="4" onfocus="tab.display(4);"
onclick="tab.display(4); return(false);"><xsl:value-of
select="lang_persons"/></a>
+ </td>
+ <td id="tweentab_r"></td>
+ </tr>
+ </table>
+ </th>
+ <th id="tab5" class="activetab" onclick="javascript:tab.display(5);">
+ <table>
+ <tr>
+ <td id="tweentab_l"></td>
+ <td>
+ <a href="#" tabindex="0" accesskey="5" onfocus="tab.display(5);"
onclick="tab.display(5); return(false);"><xsl:value-of select="lang_extra"/></a>
+ </td>
+ <td id="tweentab_r"></td>
+ </tr>
+ </table>
+ </th>
+ <th id="tab6" class="activetab" onclick="javascript:tab.display(6);">
+ <table>
+ <tr>
+ <td id="tweentab_l"></td>
+ <td>
+ <a href="#" tabindex="0" accesskey="6" onfocus="tab.display(6);"
onclick="tab.display(6); return(false);"><xsl:value-of
select="lang_history"/></a>
+ </td>
+ <td id="tweentab_r"></td>
+ </tr>
+ </table>
+ </th>
+ </tr>
+</table>
+</div>
+
+<div id="tabcontent1" class="activetab">
+<table class="contenttab">
+
<xsl:choose>
<xsl:when test="value_project_id!=''">
<tr>
@@ -261,6 +336,39 @@
<xsl:call-template name="cat_select"/>
</td>
</tr>
+ <tr>
+ <td>
+ <xsl:value-of select="lang_status"/>
+ </td>
+ <td>
+ <xsl:call-template
name="status_select"/>
+ </td>
+ </tr>
+ <xsl:choose>
+ <xsl:when test="value_project_id!=''">
+ <tr>
+ <td>
+ <xsl:value-of
select="lang_confirm_status"/>
+ </td>
+ <td>
+ <input type="checkbox"
name="values[confirm_status]" value="True" onMouseout="window.status='';return
true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+
<xsl:value-of select="lang_confirm_statustext"/>
+ <xsl:text>';
return true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+
+</table>
+</div>
+
+<div id="tabcontent2" class="activetab">
+<table class="contenttab">
+
<xsl:choose>
<xsl:when test="location_type='form'">
<xsl:call-template
name="location_form"/>
@@ -284,6 +392,43 @@
</input>
</td>
</tr>
+
+</table>
+</div>
+
+<div id="tabcontent3" class="activetab">
+<table class="contenttab">
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_start_date"/>
+ </td>
+ <td>
+ <input type="text"
id="values_start_date" name="values[start_date]" size="10"
value="{value_start_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_start_date_statustext"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ <img id="values_start_date-trigger"
src="{img_cal}" alt="{lang_datetitle}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;" />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">
+ <xsl:value-of select="lang_end_date"/>
+ </td>
+ <td>
+ <input type="text" id="values_end_date"
name="values[end_date]" size="10" value="{value_end_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_end_date_statustext"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ <img id="values_end_date-trigger"
src="{img_cal}" alt="{lang_datetitle}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;" />
+ </td>
+ </tr>
+
<tr>
<td valign="top">
<xsl:value-of select="lang_budget"/>
@@ -367,6 +512,12 @@
<xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
</td>
</tr>
+</table>
+</div>
+
+<div id="tabcontent4" class="activetab">
+<table class="contenttab">
+
<tr>
<td>
<xsl:value-of
select="lang_coordinator"/>
@@ -376,62 +527,6 @@
</td>
</tr>
<tr>
- <td>
- <xsl:value-of select="lang_status"/>
- </td>
- <td>
- <xsl:call-template
name="status_select"/>
- </td>
- </tr>
- <xsl:choose>
- <xsl:when test="value_project_id!=''">
- <tr>
- <td>
- <xsl:value-of
select="lang_confirm_status"/>
- </td>
- <td>
- <input type="checkbox"
name="values[confirm_status]" value="True" onMouseout="window.status='';return
true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_confirm_statustext"/>
- <xsl:text>';
return true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_start_date"/>
- </td>
- <td>
- <input type="text"
id="values_start_date" name="values[start_date]" size="10"
value="{value_start_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_start_date_statustext"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- <img id="values_start_date-trigger"
src="{img_cal}" alt="{lang_datetitle}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;" />
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of select="lang_end_date"/>
- </td>
- <td>
- <input type="text" id="values_end_date"
name="values[end_date]" size="10" value="{value_end_date}" readonly="readonly"
onMouseout="window.status='';return true;" >
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
- <xsl:value-of
select="lang_end_date_statustext"/>
- <xsl:text>'; return
true;</xsl:text>
- </xsl:attribute>
- </input>
- <img id="values_end_date-trigger"
src="{img_cal}" alt="{lang_datetitle}" title="{lang_datetitle}"
style="cursor:pointer; cursor:hand;" />
- </td>
- </tr>
- <tr>
<td valign="top">
<xsl:value-of select="lang_branch"/>
</td>
@@ -492,6 +587,12 @@
</select>
</td>
</tr>
+</table>
+</div>
+
+<div id="tabcontent5" class="activetab">
+<table class="contenttab">
+
<tr>
<xsl:choose>
<xsl:when test="need_approval='yes'">
@@ -499,6 +600,9 @@
<xsl:value-of
select="lang_ask_approval"/>
</td>
<td>
+ <table>
+ <tr>
+ <td>
<input type="checkbox"
name="values[approval]" value="True" onMouseout="window.status='';return
true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
@@ -506,8 +610,9 @@
<xsl:text>'; return
true;</xsl:text>
</xsl:attribute>
</input>
-
- <input type="text"
name="values[mail_address]" value="{value_approval_mail_address}"
onMouseout="window.status='';return true;">
+ </td>
+ <td>
+ <input type="text"
name="values[mail_address]" value="{value_approval_mail_address}" size="40"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_ask_approval_statustext"/>
@@ -515,6 +620,9 @@
</xsl:attribute>
</input>
</td>
+ </tr>
+ </table>
+ </td>
</xsl:when>
</xsl:choose>
</tr>
@@ -534,6 +642,8 @@
</textarea>
</td>
</tr>
+</table>
+</div>
<tr height="50">
<td>
<xsl:variable
name="lang_save"><xsl:value-of select="lang_save"/></xsl:variable>
@@ -547,7 +657,6 @@
</td>
</tr>
-
</form>
<tr>
<td>
@@ -565,8 +674,10 @@
</td>
</tr>
</table>
+<div id="tabcontent6" class="activetab">
+
<hr noshade="noshade" width="100%" align="center" size="1"/>
- <table width="80%" cellpadding="2" cellspacing="2"
align="center">
+ <table class="contenttab" width="80%" cellpadding="2"
cellspacing="2" align="center">
<xsl:choose>
<xsl:when test="record_history=''">
<tr>
@@ -586,8 +697,15 @@
</xsl:otherwise>
</xsl:choose>
</table>
+</div>
</div>
<hr noshade="noshade" width="100%" align="center" size="1"/>
+
+<script language="JavaScript1.1" type="text/javascript">
+ var tab = new
Tabs(6,'activetab','inactivetab','tab','tabcontent','','','tabpage');
+ tab.init();
+</script>
+
</xsl:template>
<xsl:template match="workorder_budget">
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property inc/class.uiproject.inc.php templates/...,
Sigurd Nes <=