Make 'Edit' a button and based upon ACL

This commit is contained in:
Miles Lott 2001-03-18 08:49:30 +00:00
parent b3f391d33f
commit 372492ac8e
2 changed files with 12 additions and 3 deletions

View File

@ -11,8 +11,10 @@
<TR>
<TD align="left">
{edit_link}
<input type="submit" name="edit" value="{lang_edit}">
</form>
</TD>
<TD align=left>
<TD align="left">
{copy_link}
<input type="hidden" name="sort" value="{sort}">
<input type="hidden" name="order" value="{order}">
@ -22,7 +24,7 @@
<input type="submit" name="submit" value="{lang_copy}">
</form>
</TD>
<TD align=left>
<TD align="left">
{vcard_link}
<input type="hidden" name="ab_id" value="{ab_id}">
<input type="hidden" name="sort" value="{sort}">

View File

@ -99,7 +99,14 @@
. $access_link . '</b></td><td></table>';
$sfields = rawurlencode(serialize($fields[0]));
$editlink = $phpgw->common->check_owner($record_owner,"/addressbook/edit.php",lang("edit"),"ab_id=" . $ab_id . "&start=".$start."&sort=".$sort."&order=".$order);
if ($rights & PHPGW_ACL_EDIT) {
$editlink = '<form method="POST" action="'.$phpgw->link("/addressbook/edit.php","ab_id=$ab_id&start=$start&sort=$sort&order=$order"
. "&query=$query&sort=$sort").'">';
} else {
$editlink = '';
}
$copylink = '<form method="POST" action="'.$phpgw->link("/addressbook/add.php","order=$order&start=$start&filter=$filter&query=$query&sort=$sort").'">';
$vcardlink = '<form method="POST" action="'.$phpgw->link("/addressbook/vcardout.php","ab_id=$ab_id&order=$order&start=$start&filter=$filter&query=$query&sort=$sort").'">';
$donelink = '<form method="POST" action="'.$phpgw->link("/addressbook/index.php","order=$order&start=$start&filter=$filter&query=$query&sort=$sort").'">';