From 5e090256027c159c30e778db46e9e2c475798175 Mon Sep 17 00:00:00 2001 From: bison-paolo Date: Mon, 17 Oct 2016 17:54:28 +0200 Subject: [PATCH] Updated interface to manage statusgrund --- application/views/crm/statusEdit.php | 22 +++------- application/views/crm/statusGrundList.php | 8 ++-- application/views/crm/statusgrundEdit.php | 52 ++++++----------------- 3 files changed, 24 insertions(+), 58 deletions(-) diff --git a/application/views/crm/statusEdit.php b/application/views/crm/statusEdit.php index 15ed2ed9f..5fee3ee92 100644 --- a/application/views/crm/statusEdit.php +++ b/application/views/crm/statusEdit.php @@ -36,34 +36,24 @@ Bezeichnung mehrsprachig:

bezeichnung_mehrsprachig)) - { - $val = str_replace("{", "", $s->bezeichnung_mehrsprachig); - $val = str_replace("}", "", $val); - $val = str_replace("\"", "", $val); - $val = explode(",", $val); - } - else - { - $val = array(); - } - + $val = ''; $i = 0; ?> sprache; ?>:
bezeichnung_mehrsprachig[$i])) { - $val[$i] = ""; + $val = ''; } else { - $val = str_replace("|", ",", $val); + $val = $s->bezeichnung_mehrsprachig[$i]; } + $i++; ?> -
+
diff --git a/application/views/crm/statusGrundList.php b/application/views/crm/statusGrundList.php index 00be76b2f..f13c3bf08 100644 --- a/application/views/crm/statusGrundList.php +++ b/application/views/crm/statusGrundList.php @@ -22,9 +22,9 @@ status_kurzbz; ?> - aktiv; ?> - bezeichnung_mehrsprachig; ?> - beschreibung; ?> + aktiv); ?> + bezeichnung_mehrsprachig); ?> + beschreibung); ?> Edit @@ -33,4 +33,4 @@ - + \ No newline at end of file diff --git a/application/views/crm/statusgrundEdit.php b/application/views/crm/statusgrundEdit.php index 81ac84a32..95df31c5b 100644 --- a/application/views/crm/statusgrundEdit.php +++ b/application/views/crm/statusgrundEdit.php @@ -12,36 +12,24 @@ Bezeichnung mehrsprachig:

- bezeichnung_mehrsprachig)) - { - $val = str_replace("{", "", $sg->bezeichnung_mehrsprachig); - $val = str_replace("}", "", $val); - $val = str_replace("\"", "", $val); - $val = explode(",", $val); - } - else - { - $val = array(); - } - $i = 0; + $val = ""; ?> - sprache; ?>:
bezeichnung_mehrsprachig[$i])) { - $val[$i] = ""; + $val = ""; } else { - $val = str_replace("|", ",", $val); + $val = $sg->bezeichnung_mehrsprachig[$i]; } + $i++; ?> -
+
@@ -54,36 +42,24 @@ Beschreibung:

- beschreibung)) - { - $val = str_replace("{", "", $sg->beschreibung); - $val = str_replace("}", "", $val); - $val = str_replace("\"", "", $val); - $val = explode(",", $val); - } - else - { - $val = array(); - } - $i = 0; + $val = ""; ?> - sprache; ?>:
beschreibung[$i])) { - $val[$i] = ""; + $val = ""; } else { - $val = str_replace("|", ",", $val); + $val = $sg->beschreibung[$i]; } + $i++; ?> -
+
@@ -97,7 +73,7 @@ Aktiv: - aktiv) && $sg->aktiv == "t" ? "checked" : ""; ?> /> + aktiv) && $sg->aktiv === true ? "checked" : ""; ?> /> @@ -128,4 +104,4 @@ } ?> - + \ No newline at end of file