Bernd Wurst
UI-Änderung, man kann Kontakte als Ganzes anklicken und dort dann bearbeiten
Bernd Wurst commited bf9c600 at 2018-01-25 12:36:32
<?php
/*
This file belongs to the Webinterface of schokokeks.org Hosting
Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst <bernd@schokokeks.org>
Hanno Böck <hanno@schokokeks.org>
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
http://creativecommons.org/publicdomain/zero/1.0/
Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
*/
require_once('contacts.php');
require_once('inc/debug.php');
require_once('inc/icons.php');
require_once('inc/jquery.php');
#javascript();
require_once('session/start.php');
require_role(array(ROLE_CUSTOMER));
$section = 'contacts_list';
title("Adresse verwenden als...");
output(internal_link('list', 'Zurück zur Übersicht'));
$contact = get_contact($_REQUEST['id']);
$kundenkontakte = get_kundenkontakte();
$id = $contact['id'];
if (isset($_REQUEST['useas'])) {
if ($_REQUEST['useas'] == 'kunde') {
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'delete') {
system_failure("Man kann eine Kunden-Adresse nicht löschen, bitte eine neue als Ersatz festlegen!");
} else {
set_kundenkontakt('kunde', $id);
//redirect('useas?id='.$id);
// usability: Dann kann man da eh nichts mehr machen, also zurück zur Übersicht
redirect('list');
}
}
if ($_REQUEST['useas'] == 'extern') {
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'delete') {
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX