Display changes to use theme colors...

This commit is contained in:
Miles Lott 2001-06-24 06:42:31 +00:00
parent f0c5829c3b
commit eb459be3b5
5 changed files with 197 additions and 252 deletions

View File

@ -76,6 +76,7 @@
$t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
$t->set_file(array("edit" => "edit.tpl"));
$t->set_var('th_bg',$phpgw_info['theme']['th_bg']);
$t->set_var('ab_id',$ab_id);
$t->set_var('sort',$sort);
$t->set_var('order',$order);

View File

@ -390,9 +390,13 @@
if(!$cat_id) {
$cat_id = $fields['cat_id'];
}
// allow multiple categories on 'sql'
$cats_link = cat_option($cat_id,True,False,!$phpgw_info["server"]["contact_repository"] ||
$phpgw_info["server"]["contact_repository"] == 'sql');
/* allow multiple categories on sql */
$cats_link = cat_option(
$cat_id,
True,
False,
!$phpgw_info['server']['contact_repository'] || $phpgw_info['server']['contact_repository'] == 'sql'
);
if ($access == 'private')
{
@ -407,15 +411,12 @@
{
while(list($name,$value) = each($customfields))
{
$value = ereg_replace('_',' ',$value);
$custom .= '
<tr>
<td></td>
<td><font color="#000000" face="" size="-1">'.$value.':</font></td>
<td>
<font size="-1">
<INPUT size="30" name="' . $name . '" value="' . $fields[$name] . '">
</font></td>
</td>
<tr bgcolor="' . $phpgw_info['theme']['row_off'] . '">
<td>&nbsp;</td>
<td><font color="' . $phpgw_info['theme']['th_text'] . '" face="" size="-1">'.$value.':</font></td>
<td colspan="3"><INPUT size="30" name="' . $name . '" value="' . $fields[$name] . '"></td>
</tr>
';
}
@ -575,7 +576,7 @@
. '<font face="'.$theme["font"].'" size="-2">(e.g. 1969)</font>';
if ($format == 'edit')
{
$create .= '<tr><td><font size="-1">' . lang("Created by") . ':</font></td>'
$create .= '<tr bgcolor="' . $phpgw_info['theme']['th_bg'] . '"><td colspan="2"><font size="-1">' . lang("Created by") . ':</font></td>'
. '<td colspan="3"><font size="-1">'
. $phpgw->common->grab_owner_name($fields["owner"]);
}
@ -708,6 +709,11 @@
$t->set_var('lang_custom','');
$t->set_var('custom','');
}
$t->set_var('th_bg',$phpgw_info['theme']['th_bg']);
$t->set_var('th_text',$phpgw_info['theme']['th_text']);
$t->set_var('row_on',$phpgw_info['theme']['row_on']);
$t->set_var('row_off',$phpgw_info['theme']['row_off']);
$t->set_var('row_text',$phpgw_info['theme']['row_text']);
$t->pfp('out','form');
} //end form function

View File

@ -1,39 +1,26 @@
<!-- BEGIN add -->
<TABLE border="0" cellPadding="0" cellSpacing="0" width="95%">
<TBODY>
<TR>
<TD>
<TABLE border="0" cellPadding="1" cellSpacing="1">
<TBODY>
<TR>
<TD align="left">
<INPUT type="submit" name="submit" value="{lang_ok}">
</TD>
<TD align="left">
<INPUT type="reset" name="reset" value="{lang_clear}">
</TD>
</TR>
</FORM>
<tr>
<td width="8%">
<form action="{cancel_url}" method="post">
<input type="hidden" name="ab_id" value="{ab_id}">
<input type="hidden" name="sort" value="{sort}">
<input type="hidden" name="order" value="{order}">
<input type="hidden" name="filter" value="{filter}">
<input type="hidden" name="query" value="{query}">
<input type="hidden" name="start" value="{start}">
<input type="submit" name="Cancel" value="{lang_cancel}">
</form>
</td>
<td width="64%">&nbsp;</td>
<td width="32">&nbsp;</td>
</tr>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
<table border="0" cellPadding="0" cellSpacing="0" width="75%">
<tr>
<td width="7%">&nbsp;</td>
<td width="7%">&nbsp;</td>
<td>
<input type="submit" name="submit" value="{lang_ok}">
<input type="reset" name="reset" value="{lang_clear}">
</td>
</form>
<form action="{cancel_url}" method="post">
<td>
<input type="hidden" name="ab_id" value="{ab_id}">
<input type="hidden" name="sort" value="{sort}">
<input type="hidden" name="order" value="{order}">
<input type="hidden" name="filter" value="{filter}">
<input type="hidden" name="query" value="{query}">
<input type="hidden" name="start" value="{start}">
<input type="submit" name="Cancel" value="{lang_cancel}">
</td>
</form>
<td>&nbsp;</td>
</tr>
</table>
<!-- END add -->

View File

@ -6,33 +6,34 @@
<input type="hidden" name="filter" value="{filter}">
<input type="hidden" name="query" value="{query}">
<input type="hidden" name="start" value="{start}">
<TABLE border="0" cellPadding="1" cellSpacing="1" width="95%">
<TBODY>
<tr>
<TD align="left" width="7%">
<input type="submit" name="submit" value="{lang_submit}"></form>
</TD>
<TD align="left" width="7%">
{cancel_link}
<input type="hidden" name="sort" value="{sort}">
<input type="hidden" name="order" value="{order}">
<input type="hidden" name="filter" value="{filter}">
<input type="hidden" name="query" value="{query}">
<input type="hidden" name="start" value="{start}">
<input type="submit" name="cancel" value="{lang_cancel}"></form>
</TD>
<TD align="right">
{delete_link}
<input type="hidden" name="ab_id" value="{ab_id}">
<input type="hidden" name="sort" value="{sort}">
<input type="hidden" name="order" value="{order}">
<input type="hidden" name="filter" value="{filter}">
<input type="hidden" name="query" value="{query}">
<input type="hidden" name="start" value="{start}">
{delete_button}
</form>
</TD>
</TR>
</TBODY>
</TABLE>
<table border="0" cellPadding="1" cellSpacing="1" width="95%">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td align="left" width="7%">
<input type="submit" name="submit" value="{lang_submit}"></form>
</TD>
<td align="left" width="7%">
{cancel_link}
<input type="hidden" name="sort" value="{sort}">
<input type="hidden" name="order" value="{order}">
<input type="hidden" name="filter" value="{filter}">
<input type="hidden" name="query" value="{query}">
<input type="hidden" name="start" value="{start}">
<input type="submit" name="cancel" value="{lang_cancel}"></form>
</td>
<td align="right">
{delete_link}
<input type="hidden" name="ab_id" value="{ab_id}">
<input type="hidden" name="sort" value="{sort}">
<input type="hidden" name="order" value="{order}">
<input type="hidden" name="filter" value="{filter}">
<input type="hidden" name="query" value="{query}">
<input type="hidden" name="start" value="{start}">
{delete_button}
</form>
</td>
<td>&nbsp;</td>
</tr>
</table>
<!-- END edit -->

View File

@ -1,335 +1,285 @@
<!-- BEGIN addressbook entry form -->
<table width="75%" border="0" align="center">
<tr>
<td><font color="#000000" face="">{lang_personal}:</font></td>
<td></td>
<td></td>
<tr bgcolor="{th_bg}">
<td colspan="5"><font color="{th_text}" face="">{lang_personal}:</font></td>
</tr>
<tr>
<td></td>
<td><font color="#000000" face="" size="-1">{lang_prefix}:</font></td>
<td>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td><font color="{row_text}" face="" size="-1">{lang_prefix}:</font></td>
<td colspan="3">
<font size="-1"><input size="10" name="prefix" value="{prefix}"></font>
</td>
</tr>
<tr>
<td></td>
<td><font color="#000000" face="" size="-1">{lang_firstname}:</font></td>
<tr bgcolor="{row_off}">
<td>&nbsp;</td>
<td><font color="{row_text}" face="" size="-1">{lang_firstname}:</font></td>
<td>
<font size="-1"><input name="firstname" value="{firstname}"></font>
</td>
<td><font color="#000000" face="" size="-1">{lang_middle}:</font></td>
<td><font color="{row_text}" face="" size="-1">{lang_middle}:</font></td>
<td>
<font size="-1"><input name="middle" value="{middle}"></font>
</td>
</tr>
<tr>
<td></td>
<td><font color="#000000" face="" size="-1">{lang_lastname}:</font></td>
<td>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td><font color="{row_text}" face="" size="-1">{lang_lastname}:</font></td>
<td colspan="3">
<font size="-1"><input name="lastname" value="{lastname}"></font>
</td>
</tr>
<tr>
<td></td>
<td><font color="#000000" face="" size="-1">{lang_suffix}:</font></td>
<td>
<tr bgcolor="{row_off}">
<td>&nbsp;</td>
<td><font color="{row_text}" face="" size="-1">{lang_suffix}:</font></td>
<td colspan="3">
<font size="-1"><input size="10" name="suffix" value="{suffix}"></font>
</td>
</tr>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td><font face="" size="-1">{lang_birthday}:</font></td>
<td>
<font size="-1">{birthday}</font>
</td>
<td colspan="3"><font size="-1">{birthday}</font></td>
</tr>
<tr>
<td><font color="#000000" face="">{lang_business}:</font></td>
<td></td>
<td></td>
<tr bgcolor="{th_bg}">
<td colspan="5"><font color="{th_text}" face="">{lang_business}:</font></td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td>
<font color="#000000" face="" size="-1">{lang_title}:</font>
<font color="{row_text}" face="" size="-1">{lang_title}:</font>
</td>
<td>
<td colspan="3">
<font size="-1"><input name="title" value="{title}"></font>
</td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_off}">
<td>&nbsp;</td>
<td>
<font color="#000000" face="" size="-1">{lang_company}:</font>
<font color="{row_text}" face="" size="-1">{lang_company}:</font>
</td>
<td>
<font size="-1"><input size="30" name="company" value="{company}"></font>
</td>
<td>
<font color="#000000" face="" size="-1">{lang_url}:</font>
</td>
<td>
<td colspan="2">
<font color="{row_text}" face="" size="-1">{lang_url}:</font>
<input size="30" name="url" value="{url}">
</td>
<td><font size="-1"></font></td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td>
<font color="#000000" face="" size="-1">{lang_email}:
<font color="{row_text}" face="" size="-1">{lang_email}:
</td>
<td>
<font size="-1"><input size="30" name="email" value="{email}"></font>
</td>
<td>
<font color="#000000" face="" size="-1">{lang_email_type}:</font>
</td>
<td>
<td colspan="2">
<font color="{row_text}" face="" size="-1">{lang_email_type}:</font>
<font size="-1">{email_type}</font>
</td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_off}">
<td>&nbsp;</td>
<td>
<font color="#000000" face="" size="-1">{lang_department}:</font>
<font color="{row_text}" face="" size="-1">{lang_department}:</font>
</td>
<td>
<td colspan="3">
<font size="-1"><input name="department" value="{department}"></font>
</td>
<td><font size="-1"></font></td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td><font face="" size="-1">{lang_bstreet}:</font></td>
<td>
<td colspan="3">
<font size="-1"><input size="30" name="bstreet" value="{bstreet}"></font>
</td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_off}">
<td>&nbsp;</td>
<td><font face="" size="-1">{lang_address2}:</font></td>
<td>
<td colspan="3">
<font size="-1"><input size="30" name="address2" value="{address2}"></font>
</td>
<td></td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td><font face="" size="-1">{lang_address3}:</font></td>
<td>
<td colspan="3">
<font size="-1"><input size="30" name="address3" value="{address3}"></font>
</td>
<td></td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_off}">
<td>&nbsp;</td>
<td><font face="" size="-1">{lang_bcity}:</font></td>
<td>
<font size="-1"><input size="30" name="bcity" value="{bcity}"></font>
</td>
<td><font color="#000000" face="" size="-1">{lang_bstate}:</font></td>
<td>
<td colspan="2"><font color="{row_text}" face="" size="-1">{lang_bstate}:</font>
<font size="-1"><input name="bstate" value="{bstate}"></font>
</td>
<td><font size="-1"></font></td>
<td><font size="-1"></font></td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td><font face="" size="-1">{lang_bzip}:</font></td>
<td>
<td colspan="3">
<font size="-1"><input size="10" name="bzip" value="{bzip}"></font>
</td>
<td><font size="-1"></font></td>
<td><font size="-1"></font></td>
</tr>
<tr>
<td></td>
<td><font color="#000000" face="" size="-1">{lang_bcountry}:</font></td>
<tr bgcolor="{row_off}">
<td>&nbsp;</td>
<td><font color="{row_text}" face="" size="-1">{lang_bcountry}:</font></td>
<td>
<font size="-1">{bcountry}</font>
</td>
<td><font color="#000000" face="" size="-1">{lang_timezone}:</font></td>
<td>
<td colspan="2"><font color="{row_text}" face="" size="-1">{lang_timezone}:</font>
<font size="-1">{timezone}</font>
</td>
<td><font size="-1"></font></td>
<td><font size="-1"></font></td>
</tr>
<tr>
<td></td>
<td><font color="#000000" face="" size="-1">{lang_badrtype}:</font></td>
<td colspan=2>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td><font color="{row_text}" face="" size="-1">{lang_badrtype}:</font></td>
<td colspan="3">
<font size="-1">{badrtype}</font>
</td>
</tr>
<tr>
<td></td>
<td><font color="#000000" face="" size="-1">{lang_wphone}:</font></td>
<td>
<tr bgcolor="{row_off}">
<td>&nbsp;</td>
<td><font color="{row_text}" face="" size="-1">{lang_wphone}:</font></td>
<td>
<font size="-1"><input name="wphone" value="{wphone}"></font>{pref_work}
</td>
<td><font color="#000000" face="" size="-1">{lang_fax}:</font></td>
<td><font color="{row_text}" face="" size="-1">{lang_fax}:</font></td>
<td>
<font size="-1"><input name="fax" value="{fax}"></font>{pref_fax}
</td>
</tr>
<tr>
<td></td>
<td><font color="#000000" face="" size="-1">{lang_pager}:</font></td>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td><font color="{row_text}" face="" size="-1">{lang_pager}:</font></td>
<td>
<font size="-1"><input name="pager" value="{pager}"></font>{pref_pager}
</td>
<td><font color="#000000" face="" size="-1">{lang_mphone}:</font></td>
<td><font color="{row_text}" face="" size="-1">{lang_mphone}:</font></td>
<td>
<font size="-1"><input name="mphone" value="{mphone}"></font>{pref_cell}
</td>
</tr>
<tr>
<td></td>
<td><font color="#000000" face="" size="-1">{lang_msgphone}:</font></td>
<tr bgcolor="{row_off}">
<td>&nbsp;</td>
<td><font color="{row_text}" face="" size="-1">{lang_msgphone}:</font></td>
<td>
<font size="-1"><input name="msgphone" value="{msgphone}"></font>{pref_msg}
</td>
<td><font color="#000000" face="" size="-1">{lang_isdnphone}:</font></td>
<td><font color="{row_text}" face="" size="-1">{lang_isdnphone}:</font></td>
<td>
<font size="-1"><input name="isdnphone" value="{isdnphone}"></font>{pref_isdn}
</td>
</tr>
<tr>
<td></td>
<td><font color="#000000" face="" size="-1">{lang_carphone}:</font></td>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td><font color="{row_text}" face="" size="-1">{lang_carphone}:</font></td>
<td>
<font size="-1"><input name="carphone" value="{carphone}"></font>{pref_car}
</td>
<td><font color="#000000" face="" size="-1">{lang_vidphone}:</font></td>
<td><font color="{row_text}" face="" size="-1">{lang_vidphone}:</font></td>
<td>
<font size="-1"><input name="vidphone" value="{vidphone}"></font>{pref_video}
</td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_off}">
<td>&nbsp;</td>
<td><font size="-1">{lang_label}:</font></td>
<td colspan="3">
<font size="-1">
{label}
</font></td>
<td colspan="3"><font size="-1">{label}</font></td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td><font size="-1">{lang_pubkey}:</font></td>
<td colspan="3">
<font size="-1">
{pubkey}
</font></td>
<td colspan="3"><font size="-1">{pubkey}</font></td>
</tr>
<tr>
<td><font color="#000000" face="">{lang_home}:</font></td>
<td></td>
<td></td>
<tr bgcolor="{th_bg}">
<td colspan="5"><font color="{row_text}" face="">{lang_home}:</font></td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td>
<font color="#000000" face="" size="-1">{lang_hemail}:</font>
<font color="{row_text}" face="" size="-1">{lang_hemail}:</font>
</td>
<td>
<font size="-1"><input size="30" name="hemail" value="{hemail}"></font>
</td>
<td>
<font color="#000000" face="" size="-1">{lang_hemail_type}:</font>
</td>
<td>
<font size="-1">{hemail_type}</font>
<td><font size="-1"><input size="30" name="hemail" value="{hemail}"></font></td>
<td colspan="2"><font color="{row_text}" face="" size="-1">{lang_hemail_type}:</font>
<font size="-1">{hemail_type}</font>
</td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_off}">
<td>&nbsp;</td>
<td><font face="" size="-1">{lang_hstreet}:</font></td>
<td>
<font size="-1"><input size="30" name="hstreet" value="{hstreet}"></font>
</td>
<td colspan="3"><font size="-1"><input size="30" name="hstreet" value="{hstreet}"></font></td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td><font face="" size="-1">{lang_hcity}:</font></td>
<td>
<font size="-1"><input size="30" name="hcity" value="{hcity}"></font>
</td>
<td><font color="#000000" face="" size="-1">{lang_hstate}:</font></td>
<td><font color="{row_text}" face="" size="-1">{lang_hstate}:</font></td>
<td>
<font size="-1"><input name="hstate" value="{hstate}"></font>
</td>
<td><font size="-1"></font></td>
<td><font size="-1"></font></td>
</tr>
<tr>
<td></td>
<tr bgcolor="{row_off}">
<td>&nbsp;</td>
<td><font face="" size="-1">{lang_hzip}:</font></td>
<td>
<td colspan="3">
<font size="-1"><input size="10" name="hzip" value="{hzip}"></font>
</td>
<td><font size="-1"></font></td>
<td><font size="-1"></font></td>
</tr>
<tr>
<td></td>
<td><font color="#000000" face="" size="-1">{lang_hcountry}:</font></td>
<td>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td><font color="{row_text}" face="" size="-1">{lang_hcountry}:</font></td>
<td colspan="3">
<font size="-1">{hcountry}</font>
</td>
</tr>
<tr>
<td></td>
<td><font color="#000000" face="" size="-1">{lang_hadrtype}:</font></td>
<td colspan=2>
<tr bgcolor="{row_off}">
<td>&nbsp;</td>
<td><font color="{row_text}" face="" size="-1">{lang_hadrtype}:</font></td>
<td colspan="3">
<font size="-1">{hadrtype}</font>
</td>
</tr>
<tr>
<td></td>
<td><font color="#000000" face="" size="-1">{lang_hphone}:</font></td>
<tr bgcolor="{row_on}">
<td>&nbsp;</td>
<td><font color="{row_text}" face="" size="-1">{lang_hphone}:</font></td>
<td>
<font size="-1"><input name="hphone" value="{hphone}"></font>{pref_home}
</td>
<td><font color="#000000" face="" size="-1">{lang_ophone}:</font></td>
<td>
<td colspan="2"><font color="{row_text}" face="" size="-1">{lang_ophone}:</font>
<font size="-1"><input name="ophone" value="{ophone}"></font>
</td>
<td></td>
<td colspan="4"><font size="-1"></font></td>
</tr>
<tr>
<tr bgcolor="{row_off}">
<td><font size="-1">{lang_notes}:</font></td>
<td colspan="3">
<font size="-1">
{notes}
</font></td>
<td colspan="4"><font size="-1">{notes}</font></td>
</tr>
<tr>
<tr bgcolor="{row_on}">
<td><font size="-1">{lang_private}:</font></td>
<td colspan="3">
<td colspan="4">
<input type="checkbox" name="access" value="True"{access_check}>
</td>
</tr>
<tr>
<tr bgcolor="{row_off}">
<td><font size="-1">{lang_cats}:</font></td>
<td>{cats_link}</td>
<td colspan="3">
</td>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td><font color="#000000" face="" size="-1">{lang_custom}</font></td>
<td></td>
<td></td>
<tr bgcolor="{th_bg}">
<td colspan="5"><font color="{row_text}" face="" size="-1">{lang_custom}</font></td>
</tr>
{custom}
<tr>
<!-- BEGIN creator -->
{create}
<!-- END creator -->
<td colspan="3">
<font size="-1">
</td>
</tr>
</table>
<!-- END addressbook entry form -->