Add created by back to edit screen, move this on edit form

This commit is contained in:
Miles Lott 2001-04-28 04:33:13 +00:00
parent 0b93b50f1e
commit bddc2b415b
4 changed files with 27 additions and 25 deletions

View File

@ -50,7 +50,6 @@
}
// Read in user custom fields, if any
$phpgw->preferences->read_repository();
$customfields = array();
while (list($col,$descr) = @each($phpgw_info["user"]["preferences"]["addressbook"])) {
if ( substr($col,0,6) == 'extra_' ) {
@ -70,7 +69,7 @@
$qfields = $this->stock_contact_fields + $extrafields + $customfields;
$fields = addressbook_read_entry($ab_id,$qfields);
addressbook_form("","edit.php","Edit",$fields[0],$customfields);
addressbook_form("edit","edit.php","Edit",$fields[0],$customfields);
} else {
if ($url == "http://") {
$url = "";

View File

@ -484,13 +484,16 @@
$birthday = $phpgw->common->dateformatorder($bday_year,$bday_month,$bday_day)
. '<font face="'.$theme["font"].'" size="-2">(e.g. 1969)</font>';
if ($format == "view")
$create .= '<tr><td><font size="-1">'.lang("Created by").':</font></td>'
. '<td colspan="3"><font size="-1">'
. grab_owner_name($fields["owner"]);
if ($format == 'edit')
{
$create .= '<tr><td><font size="-1">' . lang("Created by") . ':</font></td>'
. '<td colspan="3"><font size="-1">'
. $phpgw->common->grab_owner_name($fields["owner"]);
}
else
$create = '';
{
$create .= '';
}
$t->set_var("lang_home",lang("Home"));
$t->set_var("lang_business",lang("Business"));

View File

@ -298,14 +298,6 @@
<td></td>
<td colspan="4"><font size="-1"></font></td>
</tr>
<tr>
<!-- BEGIN creator -->
{create}
<!-- END creator -->
<td colspan="3">
<font size="-1">
</td>
</tr>
<tr>
<td><font size="-1">{lang_notes}:</font></td>
<td colspan="3">
@ -331,5 +323,13 @@
<td></td>
</tr>
{custom}
<tr>
<!-- BEGIN creator -->
{create}
<!-- END creator -->
<td colspan="3">
<font size="-1">
</td>
</tr>
</table>
<!-- END addressbook entry form -->

View File

@ -298,14 +298,6 @@
<td></td>
<td colspan="4"><font size="-1"></font></td>
</tr>
<tr>
<!-- BEGIN creator -->
{create}
<!-- END creator -->
<td colspan="3">
<font size="-1">
</td>
</tr>
<tr>
<td><font size="-1">{lang_notes}:</font></td>
<td colspan="3">
@ -331,5 +323,13 @@
<td></td>
</tr>
{custom}
<tr>
<!-- BEGIN creator -->
{create}
<!-- END creator -->
<td colspan="3">
<font size="-1">
</td>
</tr>
</table>
<!-- END addressbook entry form -->