From 53fe0b11f3501cf6cc06e2caaffc6f3ca8788937 Mon Sep 17 00:00:00 2001 From: osaajani Date: Fri, 29 Nov 2019 03:07:39 +0100 Subject: [PATCH] format all numbers --- templates/contact/list.php | 2 +- templates/dashboard/show.php | 4 ++-- templates/discussion/list.php | 2 +- templates/discussion/show.php | 4 ++-- templates/phone/list.php | 2 +- templates/received/list.php | 4 ++-- templates/sended/list.php | 4 ++-- templates/smsstop/list.php | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/templates/contact/list.php b/templates/contact/list.php index 99b88e1..86bbd96 100755 --- a/templates/contact/list.php +++ b/templates/contact/list.php @@ -53,7 +53,7 @@ s($contact['id']); ?> s($contact['name']); ?> - s($contact['number']); ?> + s(\controllers\internals\Tool::phone_format($contact['number'])); ?> diff --git a/templates/dashboard/show.php b/templates/dashboard/show.php index 51e5b6a..56ac0fc 100755 --- a/templates/dashboard/show.php +++ b/templates/dashboard/show.php @@ -153,7 +153,7 @@ - s($sended['destination']); ?> + s(\controllers\internals\Tool::phone_format($sended['destination'])); ?> s($sended['at']); ?> @@ -188,7 +188,7 @@ - s($received['origin']); ?> + s(\controllers\internals\Tool::phone_format($received['origin'])); ?> s($received['at']); ?> diff --git a/templates/discussion/list.php b/templates/discussion/list.php index 0441821..ee68937 100755 --- a/templates/discussion/list.php +++ b/templates/discussion/list.php @@ -49,7 +49,7 @@ s($discussion['at']); ?> - s(isset($discussion['contact']) ? $discussion['contact'] . ' (' . $discussion['number'] . ')' : $discussion['number']); ?> + s(isset($discussion['contact']) ? $discussion['contact'] . ' (' . \controllers\internals\Tool::phone_format($discussion['number']) . ')' : \controllers\internals\Tool::phone_format($discussion['number'])); ?> diff --git a/templates/discussion/show.php b/templates/discussion/show.php index bd5b737..87a9fc4 100755 --- a/templates/discussion/show.php +++ b/templates/discussion/show.php @@ -13,7 +13,7 @@

- Discussion s($contact ? $contact['name'] . ' (' . $number . ')' : $number); ?> + Discussion s($contact ? $contact['name'] . ' (' . \controllers\internals\Tool::phone_format($number) . ')' : \controllers\internals\Tool::phone_format($number)); ?>

diff --git a/templates/phone/list.php b/templates/phone/list.php index 2377192..22a7a54 100755 --- a/templates/phone/list.php +++ b/templates/phone/list.php @@ -49,7 +49,7 @@ s($phone['id']); ?> - s($phone['number']); ?> + s(\controllers\internals\Tool::phone_format($phone['number'])); ?> s($phone['adapter']); ?> diff --git a/templates/received/list.php b/templates/received/list.php index dfed67f..5dd0507 100755 --- a/templates/received/list.php +++ b/templates/received/list.php @@ -55,8 +55,8 @@ s($received['id']); ?> - s($received['origin']); ?> - s($received['destination']); ?> + s(\controllers\internals\Tool::phone_format($received['origin'])); ?> + s(\controllers\internals\Tool::phone_format($received['destination'])); ?> s($received['text']); ?> s($received['at']); ?> diff --git a/templates/sended/list.php b/templates/sended/list.php index b236965..a8d2be5 100755 --- a/templates/sended/list.php +++ b/templates/sended/list.php @@ -57,8 +57,8 @@ s($sended['id']); ?> - s($sended['origin']); ?> - s($sended['destination']); ?> + s(\controllers\internals\Tool::phone_format($sended['origin'])); ?> + s(\controllers\internals\Tool::phone_format($sended['destination'])); ?> s($sended['text']); ?> s($sended['at']); ?> diff --git a/templates/smsstop/list.php b/templates/smsstop/list.php index bda69e0..df934c2 100755 --- a/templates/smsstop/list.php +++ b/templates/smsstop/list.php @@ -51,7 +51,7 @@ s($smsstop['id']); ?> - s($smsstop['number']); ?> + s(\controllers\internals\Tool::phone_format($smsstop['number'])); ?>