changed the code, to not rely on english language

It was not possible to delete users.
This commit is contained in:
Lars Kneschke 2001-04-17 15:30:08 +00:00
parent bfc67191a7
commit 311d7e65d9
4 changed files with 7 additions and 7 deletions

View File

@ -13,7 +13,7 @@
$phpgw_info = array();
if ($submit || !$account_id)
if ($delete_account || !$account_id)
{
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
}
@ -22,13 +22,13 @@
include("../header.inc.php");
// Make sure they are not attempting to delete their own account, or they have cancelled.
// If they are, they should not reach this point anyway.
if($submit=='Cancel' || $phpgw_info['user']['account_id'] == $account_id)
if($cancel || $phpgw_info['user']['account_id'] == $account_id)
{
Header('Location: '.$phpgw->link('/admin/accounts.php'));
$phpgw->common->phpgw_exit();
}
if (($account_id) && ($submit<>'Delete'))
if ($account_id && !$delete_account)
{
$phpgw->template->set_file(array("form" => "delete_account.tpl"));
@ -55,7 +55,7 @@
$phpgw->common->phpgw_footer();
}
if($submit=='Delete')
if($delete_account)
{
$accountid = $account_id;
settype($account_id,'integer');

View File

@ -10,7 +10,7 @@
<td align="center">{new_owner_select}</td>
</tr>
<tr>
<td align="center"><input type="submit" name="submit" value="{cancel}">&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="submit" value="{delete}"></td>
<td align="center"><input type="submit" name="cancel" value="{cancel}">&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="delete_account" value="{delete}"></td>
</tr>
</table>
</center>

View File

@ -10,7 +10,7 @@
<td align="center">{new_owner_select}</td>
</tr>
<tr>
<td align="center"><input type="submit" name="submit" value="{cancel}">&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="submit" value="{delete}"></td>
<td align="center"><input type="submit" name="cancel" value="{cancel}">&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="delete_account" value="{delete}"></td>
</tr>
</table>
</center>

View File

@ -10,7 +10,7 @@
<td align="center">{new_owner_select}</td>
</tr>
<tr>
<td align="center"><input type="submit" name="submit" value="{cancel}">&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="submit" value="{delete}"></td>
<td align="center"><input type="submit" name="cancel" value="{cancel}">&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="delete_account" value="{delete}"></td>
</tr>
</table>
</center>