From 3e4b33a674687969fe33ac83143d40877aa3f818 Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Sun, 6 Oct 2019 16:22:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=B5=E8=AF=9D=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E9=A1=B5=E9=9D=A2=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/DatabaseController.php | 1 + frontend/views/phone-center/assign-phone.php | 89 +++++ frontend/views/phone-center/call-records.php | 180 ++++++++++ frontend/views/phone-center/edit.php | 77 ++++ frontend/views/phone-center/sub-edit.php | 59 +++ frontend/views/phone-center/sub-index.php | 114 ++++++ .../views/phone-center/usercall-index.php | 340 ++++++++++++++++++ 7 files changed, 860 insertions(+) create mode 100644 frontend/views/phone-center/assign-phone.php create mode 100644 frontend/views/phone-center/call-records.php create mode 100644 frontend/views/phone-center/edit.php create mode 100644 frontend/views/phone-center/sub-edit.php create mode 100644 frontend/views/phone-center/sub-index.php create mode 100644 frontend/views/phone-center/usercall-index.php diff --git a/frontend/controllers/DatabaseController.php b/frontend/controllers/DatabaseController.php index d49394d..0969372 100644 --- a/frontend/controllers/DatabaseController.php +++ b/frontend/controllers/DatabaseController.php @@ -582,6 +582,7 @@ class DatabaseController extends BaseController $query->orderBy('id desc'); $query = $query->offset($offset)->limit($limit); +// echo $query->createCommand()->rawSql; $items = $query->all(); $data = []; diff --git a/frontend/views/phone-center/assign-phone.php b/frontend/views/phone-center/assign-phone.php new file mode 100644 index 0000000..d7eecce --- /dev/null +++ b/frontend/views/phone-center/assign-phone.php @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + +
人员名称电话号码操作
user->showName ?>phone?> + [修改] + [删除] + [小号] +
diff --git a/frontend/views/phone-center/call-records.php b/frontend/views/phone-center/call-records.php new file mode 100644 index 0000000..8d8a502 --- /dev/null +++ b/frontend/views/phone-center/call-records.php @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 通话时间:从截止 + 主叫电话: + 被叫电话: + + 通话状态: + + 通话时长:从截止 +(秒为单位) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
序号坐席人员通话时间主叫真实号码被叫真实号码主叫分配号码被叫分配号码通话时长通话状态语音
id ?>user?$item->user->showName:'' ?>begin_time ?>caller ?>called ?>caller_show ?>called_show ?>call_duration)?>call_result) ?> + record_file_url):?> + 播放 + + +
+ +
+ + + + + + + + + +
 
+ +
+ +
diff --git a/frontend/views/phone-center/edit.php b/frontend/views/phone-center/edit.php new file mode 100644 index 0000000..2c4f29a --- /dev/null +++ b/frontend/views/phone-center/edit.php @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + +
人员名称 + +
电话号码
+ +    + +
+ + + + + + + + + + + diff --git a/frontend/views/phone-center/sub-edit.php b/frontend/views/phone-center/sub-edit.php new file mode 100644 index 0000000..8108b41 --- /dev/null +++ b/frontend/views/phone-center/sub-edit.php @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + +
电话号码作为被叫号 + is_called == 0?'checked':'' ?> />否 + is_called == 1?'checked':''?> />是 +
+ +    + +
+ + + + + + + + + + + diff --git a/frontend/views/phone-center/sub-index.php b/frontend/views/phone-center/sub-index.php new file mode 100644 index 0000000..0a5ffb5 --- /dev/null +++ b/frontend/views/phone-center/sub-index.php @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + $item):?> + + + + + + + + + + +
人员名称 + user->getShowName()?> +
电话 + phone?> +
 
小号 + [添加] +
+ phone?>  [绑定] + + + [修改] + [删除] +
+ + +
+ + + + + + + + + + + diff --git a/frontend/views/phone-center/usercall-index.php b/frontend/views/phone-center/usercall-index.php new file mode 100644 index 0000000..c199bed --- /dev/null +++ b/frontend/views/phone-center/usercall-index.php @@ -0,0 +1,340 @@ + + + + 卡尔话机WebSocket测试页 + + +

卡尔话机WebSocket测试页

请使用支持webSocket的浏览器

+输入server的ip和port,例如:ws://127.0.0.1:8800/
+   + +
+ + +

+ 发送报文: +

+ 接收报文: + +

+

+

+ + + + + +

+ +

+

+

+

+

+

+

备注:status:0挂机,1来电,2呼叫,3接通 +挂机状态时,number号码为空。

+

+ + + + + + + +

+

+ + + + +

+

+ 备注:声音范围 1~100。 +

+

+ + + + +

+

+ 备注:0 关闭耳机模式,1 开耳机模式。 +

+ +

+ + + + +

+ +

+ 备注:0 关闭远端播放,1 开启远端播放。 +

+

+ + + + url: + 坐席工号: + 计费账号: + 本机号码: + +

+ + + + +