forked from extern/egroupware
Move most input form tags into template, add pref note next to each phone #
This commit is contained in:
parent
f17245d6ea
commit
d5b6201f37
@ -221,48 +221,18 @@
|
||||
$this = CreateObject("phpgwapi.contacts");
|
||||
|
||||
if ($format != "view") {
|
||||
$email = "<input name=\"email\" value=\"$email\">";
|
||||
$firstname = "<input name=\"firstname\" value=\"$firstname\">";
|
||||
$lastname = "<input name=\"lastname\" value=\"$lastname\">";
|
||||
$middle = "<input name=\"middle\" value=\"$middle\">";
|
||||
$prefix = "<input name=\"prefix\" value=\"$prefix\" size=\"10\">";
|
||||
$suffix = "<input name=\"suffix\" value=\"$suffix\" size=\"10\">";
|
||||
$title = "<input name=\"title\" value=\"$title\">";
|
||||
|
||||
// Preferred phone number radio buttons
|
||||
$pref[0] = "<font size=\"-2\">";
|
||||
$pref[1] = "(".lang('pref').")</font>";
|
||||
while (list($name,$val) = each($this->tel_types)) {
|
||||
$str[$name] = "\n".'<INPUT type="radio" name="tel_prefer" value="'.$name.'"';
|
||||
$str[$name] = "\n".' <input type="radio" name="tel_prefer" value="'.$name.'"';
|
||||
if ($name == $preferred) {
|
||||
$str[$name] .= ' checked';
|
||||
}
|
||||
$str[$name] .= '>';
|
||||
$str[$name] = $pref[0].$str[$name].$pref[1];
|
||||
$t->set_var("pref_".$name,$str[$name]);
|
||||
}
|
||||
$hphone = "<input name=\"hphone\" value=\"$hphone\"> ".$str['home'];
|
||||
$wphone = "<input name=\"wphone\" value=\"$wphone\"> ".$str['work'];
|
||||
$msgphone = "<input name=\"msgphone\" value=\"$msgphone\"> ".$str['msg'];
|
||||
$isdnphone = "<input name=\"isdnphone\" value=\"$isdnphone\"> ".$str['isdn'];
|
||||
$carphone = "<input name=\"carphone\" value=\"$carphone\"> ".$str['car'];
|
||||
$vidphone = "<input name=\"vidphone\" value=\"$vidphone\"> ".$str['video'];
|
||||
$fax = "<input name=\"fax\" value=\"$fax\"> ".$str['fax'];
|
||||
$pager = "<input name=\"pager\" value=\"$pager\"> ".$str['pager'];
|
||||
$mphone = "<input name=\"mphone\" value=\"$mphone\"> ".$str['cell'];
|
||||
|
||||
$ophone = "<input name=\"ophone\" value=\"$ophone\">";
|
||||
$bstreet = "<input name=\"bstreet\" value=\"$bstreet\">";
|
||||
$address2 = "<input name=\"address2\" value=\"$address2\">";
|
||||
$address3 = "<input name=\"address3\" value=\"$address3\">";
|
||||
$bcity = "<input name=\"bcity\" value=\"$bcity\">";
|
||||
$bstate = "<input name=\"bstate\" value=\"$bstate\">";
|
||||
$bzip = "<input name=\"bzip\" value=\"$bzip\">";
|
||||
$bcountry = "<input name=\"bcountry\" value=\"$bcountry\">";
|
||||
$company = "<input name=\"company\" value=\"$company\">";
|
||||
$department = "<input name=\"department\" value=\"$department\">";
|
||||
|
||||
$hemail = "<input name=\"hemail\" value=\"$hemail\">";
|
||||
$hstreet = "<input name=\"hstreet\" value=\"$hstreet\">";
|
||||
$hcity = "<input name=\"hcity\" value=\"$hcity\">";
|
||||
$hstate = "<input name=\"hstate\" value=\"$hstate\">";
|
||||
$hzip = "<input name=\"hzip\" value=\"$hzip\">";
|
||||
$hcountry = "<input name=\"hcountry\" value=\"$hcountry\">";
|
||||
|
||||
if (strlen($bday) > 2) {
|
||||
list( $month, $day, $year ) = split( '/', $bday );
|
||||
|
@ -10,43 +10,37 @@
|
||||
<td></td>
|
||||
<td><font color="#000000" face="" size="-1">{lang_prefix}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{prefix}
|
||||
</font></td>
|
||||
<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>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{firstname}
|
||||
</font></td>
|
||||
<font size="-1"><input name="firstname" value="{firstname}"></font>
|
||||
</td>
|
||||
<td><font color="#000000" face="" size="-1">{lang_middle}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{middle}
|
||||
</font></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>
|
||||
<font size="-1">
|
||||
{lastname}
|
||||
</font></td>
|
||||
<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>
|
||||
<font size="-1">
|
||||
{suffix}
|
||||
</font></td>
|
||||
<font size="-1"><input size="10" name="suffix" value="{suffix}"></font>
|
||||
</td>
|
||||
<td><font face="" size="-1">{lang_birthday}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{birthday}
|
||||
</font></td>
|
||||
<font size="-1">{birthday}</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><font color="#000000" face="">{lang_business}:</font></td>
|
||||
@ -59,9 +53,8 @@
|
||||
<font color="#000000" face="" size="-1">{lang_title}:</font>
|
||||
</td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{title}
|
||||
</font></td>
|
||||
<font size="-1"><input name="title" value="{title}"></font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
@ -69,13 +62,13 @@
|
||||
<font color="#000000" face="" size="-1">{lang_company}:</font>
|
||||
</td>
|
||||
<td>
|
||||
<font size="-1">{company}</font>
|
||||
<font size="-1"><input size="30" name="company" value="{company}"></font>
|
||||
</td>
|
||||
<td>
|
||||
<font color="#000000" face="" size="-1">{lang_url}:</font>
|
||||
</td>
|
||||
<td>
|
||||
<input name="url" value="{url}">
|
||||
<input size="30" name="url" value="{url}">
|
||||
</td>
|
||||
<td><font size="-1"></font></td>
|
||||
</tr>
|
||||
@ -85,8 +78,7 @@
|
||||
<font color="#000000" face="" size="-1">{lang_email}:
|
||||
</td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{email}
|
||||
<font size="-1"><input size="30" name="email" value="{email}"></font>
|
||||
</td>
|
||||
<td>
|
||||
<font color="#000000" face="" size="-1">{lang_email_type}:</font>
|
||||
@ -101,7 +93,7 @@
|
||||
<font color="#000000" face="" size="-1">{lang_department}:</font>
|
||||
</td>
|
||||
<td>
|
||||
<font size="-1">{department}</font>
|
||||
<font size="-1"><input name="department" value="{department}"></font>
|
||||
</td>
|
||||
<td><font size="-1"></font></td>
|
||||
</tr>
|
||||
@ -109,40 +101,35 @@
|
||||
<td></td>
|
||||
<td><font face="" size="-1">{lang_bstreet}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{bstreet}
|
||||
</font></td>
|
||||
<font size="-1"><input size="30" name="bstreet" value="{bstreet}"></font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><font face="" size="-1">{lang_address2}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{address2}
|
||||
</font></td>
|
||||
<font size="-1"><input size="30" name="address2" value="{address2}"></font>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><font face="" size="-1">{lang_address3}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{address3}
|
||||
</font></td>
|
||||
<font size="-1"><input size="30" name="address3" value="{address3}"></font>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><font face="" size="-1">{lang_bcity}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{bcity}
|
||||
</font></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>
|
||||
<font size="-1">
|
||||
{bstate}
|
||||
</font></td>
|
||||
<font size="-1"><input name="bstate" value="{bstate}"></font>
|
||||
</td>
|
||||
<td><font size="-1"></font></td>
|
||||
<td><font size="-1"></font></td>
|
||||
</tr>
|
||||
@ -150,9 +137,8 @@
|
||||
<td></td>
|
||||
<td><font face="" size="-1">{lang_bzip}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{bzip}
|
||||
</font></td>
|
||||
<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>
|
||||
@ -160,77 +146,65 @@
|
||||
<td></td>
|
||||
<td><font color="#000000" face="" size="-1">{lang_bcountry}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{bcountry}
|
||||
</font></td>
|
||||
<font size="-1"><input name="bcountry" value="{bcountry}"></font>
|
||||
</td>
|
||||
<td><font color="#000000" face="" size="-1">{lang_timezone}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{timezone}
|
||||
</font></td>
|
||||
<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>
|
||||
<font size="-1">
|
||||
{badrtype}
|
||||
</font></td>
|
||||
<td colspan=2>
|
||||
<font size="-1">{badrtype}</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><font color="#000000" face="" size="-1">{lang_wphone}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{wphone}
|
||||
</font></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 size="-1">
|
||||
{fax}
|
||||
</font></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>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{pager}
|
||||
</font></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 size="-1">
|
||||
{mphone}
|
||||
</font></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>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{msgphone}
|
||||
</font></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 size="-1">
|
||||
{isdnphone}
|
||||
</font></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>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{carphone}
|
||||
</font></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 size="-1">
|
||||
{vidphone}
|
||||
</font></td>
|
||||
<font size="-1"><input name="vidphone" value="{vidphone}"></font>{pref_video}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
@ -248,11 +222,10 @@
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<font color="#000000" face="" size="-1">{lang_hemail}:
|
||||
<font color="#000000" face="" size="-1">{lang_hemail}:</font>
|
||||
</td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{hemail}
|
||||
<font size="-1"><input size="30" name="hemail" value="{hemail}"></font>
|
||||
</td>
|
||||
<td>
|
||||
<font color="#000000" face="" size="-1">{lang_hemail_type}:</font>
|
||||
@ -265,22 +238,19 @@
|
||||
<td></td>
|
||||
<td><font face="" size="-1">{lang_hstreet}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{hstreet}
|
||||
</font></td>
|
||||
<font size="-1"><input size="30" name="hstreet" value="{hstreet}"></font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><font face="" size="-1">{lang_hcity}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{hcity}
|
||||
</font></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 size="-1">
|
||||
{hstate}
|
||||
</font></td>
|
||||
<font size="-1"><input name="hstate" value="{hstate}"></font>
|
||||
</td>
|
||||
<td><font size="-1"></font></td>
|
||||
<td><font size="-1"></font></td>
|
||||
</tr>
|
||||
@ -288,9 +258,8 @@
|
||||
<td></td>
|
||||
<td><font face="" size="-1">{lang_hzip}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{hzip}
|
||||
</font></td>
|
||||
<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>
|
||||
@ -298,36 +267,26 @@
|
||||
<td></td>
|
||||
<td><font color="#000000" face="" size="-1">{lang_hcountry}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{hcountry}
|
||||
</font></td>
|
||||
<font size="-1"><input name="hcountry" value="{hcountry}"></font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><font color="#000000" face="" size="-1">{lang_hadrtype}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{hadrtype}
|
||||
</font></td>
|
||||
<td colspan=2>
|
||||
<font size="-1">{hadrtype}</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><font color="#000000" face="" size="-1">{lang_hphone}:</font></td>
|
||||
<td>
|
||||
<font size="-1">
|
||||
{hphone}
|
||||
</font></td>
|
||||
<td></td>
|
||||
<td colspan="4"><font size="-1"></font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
<font size="-1">
|
||||
{ophone}
|
||||
</font></td>
|
||||
<font size="-1"><input name="ophone" value="{ophone}"></font>
|
||||
</td>
|
||||
<td></td>
|
||||
<td colspan="4"><font size="-1"></font></td>
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user