[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: wcm/templates/default page_form.tpl,1.11,1.12 si
From: |
Miles Lott <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: wcm/templates/default page_form.tpl,1.11,1.12 site_form.tpl,1.9,1.10 |
Date: |
Sat, 23 Mar 2002 09:25:09 -0500 |
Update of /cvsroot/phpgroupware/wcm/templates/default
In directory subversions:/tmp/cvs-serv5825/templates/default
Modified Files:
page_form.tpl site_form.tpl
Log Message:
Add color selection and setting for pages and sites
Index: page_form.tpl
===================================================================
RCS file: /cvsroot/phpgroupware/wcm/templates/default/page_form.tpl,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** page_form.tpl 25 Feb 2002 00:09:01 -0000 1.11
--- page_form.tpl 23 Mar 2002 14:25:06 -0000 1.12
***************
*** 18,21 ****
--- 18,37 ----
}
}
+ var win= null;
+
+ function NewWindow(fieldName)
+ {
+ // Save the name of the target input field to the hidden input
+ document.form.fieldName.value=fieldName
+
+ // Opens the Color Chart Popup
+
win2=window.open('wcm/colorchart.html','colorPop','height=130,width=274,top=150,left=100,scrollbars=no,resizable=no');
+ }
+
+ function doIt(color)
+ {
+ // Get the selected color and send it to the target input field
+ eval('document.form.' + document.form.fieldName.value + '.value=\'' +
color + '\'');
+ }
</script>
<center>
***************
*** 27,31 ****
{message}
<table border="0" width="80%" cellspacing="2" cellpadding="2">
! <form name="form" action="{actionurl}" method="POST">
<tr>
<td>{lang_name}:</td>
--- 43,48 ----
{message}
<table border="0" width="80%" cellspacing="2" cellpadding="2">
! <form id="form" name="form" action="{actionurl}" method="POST">
! <input type="hidden" name="fieldName" value="">
<tr>
<td>{lang_name}:</td>
***************
*** 71,74 ****
--- 88,97 ----
<td>{lang_right_pane}:</td>
<td><input name="page_right" size="5"
value="{page_right}"> {lang_pixels}</td>
+ </tr>
+ <tr>
+ <td>{lang_bgcolor}:</td>
+ <td><input name="page_bgcolor" size="8"
value="{page_bgcolor}">
+ <small><input type="button" name="testClr1" value="{lang_chart}"
onclick="NewWindow('page_bgcolor');return false"></small>
+ </td>
</tr>
<tr>
Index: site_form.tpl
===================================================================
RCS file: /cvsroot/phpgroupware/wcm/templates/default/site_form.tpl,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** site_form.tpl 24 Feb 2002 22:36:40 -0000 1.9
--- site_form.tpl 23 Mar 2002 14:25:06 -0000 1.10
***************
*** 18,21 ****
--- 18,37 ----
}
}
+ var win= null;
+
+ function NewWindow(fieldName)
+ {
+ // Save the name of the target input field to the hidden input
+ document.form.fieldName.value=fieldName
+
+ // Opens the Color Chart Popup
+
win2=window.open('wcm/colorchart.html','colorPop','height=130,width=274,top=150,left=100,scrollbars=no,resizable=no');
+ }
+
+ function doIt(color)
+ {
+ // Get the selected color and send it to the target input field
+ eval('document.form.' + document.form.fieldName.value + '.value=\'' +
color + '\'');
+ }
</script>
<center>
***************
*** 27,31 ****
{message}
<table border="0" width="80%" cellspacing="2" cellpadding="2">
! <form name="form" action="{actionurl}" method="POST">
<tr>
<td>{lang_name}:</td>
--- 43,48 ----
{message}
<table border="0" width="80%" cellspacing="2" cellpadding="2">
! <form id="form" name="form" action="{actionurl}" method="POST">
! <input type="hidden" name="fieldName" value="">
<tr>
<td>{lang_name}:</td>
***************
*** 75,78 ****
--- 92,101 ----
<td>{lang_footer}:</td>
<td><input name="site_footer" size="50" value="{site_footer}"></td>
+ </tr>
+ <tr>
+ <td>{lang_bgcolor}:</td>
+ <td><input name="site_bgcolor" size="8"
value="{site_bgcolor}">
+ <small><input type="button" name="testClr1" value="{lang_chart}"
onclick="NewWindow('site_bgcolor');return false"></small>
+ </td>
</tr>
<tr>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: wcm/templates/default page_form.tpl,1.11,1.12 site_form.tpl,1.9,1.10,
Miles Lott <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: wcm/website main.php,1.14,1.15
- Next by Date:
[Phpgroupware-cvs] CVS: wcm/inc class.bosite.inc.php,1.17,1.18 class.sopage.inc.php,1.16,1.17 class.sosite.inc.php,1.9,1.10 class.uipage.inc.php,1.19,1.20 class.uisite.inc.php,1.13,1.14
- Previous by thread:
[Phpgroupware-cvs] CVS: wcm/website main.php,1.14,1.15
- Next by thread:
[Phpgroupware-cvs] CVS: wcm/inc class.bosite.inc.php,1.17,1.18 class.sopage.inc.php,1.16,1.17 class.sosite.inc.php,1.9,1.10 class.uipage.inc.php,1.19,1.20 class.uisite.inc.php,1.13,1.14
- Index(es):