• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP getCalls函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getCalls函数的典型用法代码示例。如果您正苦于以下问题:PHP getCalls函数的具体用法?PHP getCalls怎么用?PHP getCalls使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getCalls函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: AddTask

             AddTask($incomming_call_id[0], $task_type_id, $task_department_id, $c_date, $done_start_time, $done_end_time, $comment, $persons_id, $priority_id);
         }
     } else {
         $inc_task_ch = mysql_fetch_assoc(mysql_query("SELECT id FROM task WHERE incomming_call_id = '{$id_p}'"));
         if ($inc_task_ch['id'] == '' and $task_type_id > 0) {
             AddTask($id_p, $task_type_id, $task_department_id, $c_date, $done_start_time, $done_end_time, $comment, $persons_id, $priority_id);
         } else {
             $user = $_SESSION['USERID'];
             $r_user = realuser($persons_id);
             mysql_query("UPDATE `task` SET  `user_id`='{$user}',\n                                    `responsible_user_id`='{$r_user}',\n                                    `start_date`='{$done_start_time}',\n                                    `end_date`='{$done_end_time}',\n                                    `department_id`='{$task_department_id}',\n                                    `task_type_id`='{$task_type_id}',\n                                    `priority_id`='{$priority_id}',\n                                    `comment`='{$comment}'\n                              WHERE `incomming_call_id`='{$id_p}'");
         }
         Saveincomming($id_h, $phone, $person_name, $type_id, $call_type_id, $product_type_id, $card_id, $department_id, $information_category_id, $information_sub_category_id, $production_category_id, $genre_id, $production_id, $content, $sum_pirce, $shipping_id, $module_id, $call_comment, $call_status_id, $task_department_id, $source_id, $c_date, $persons_id, $priority_id, $done_start_time, $done_end_time, $comment, $task_type_id, $status_2, $status_1);
     }
     break;
 case 'get_calls':
     $data = array('calls' => getCalls());
     break;
 case 'category_change':
     $information_category_id_check = $_REQUEST['information_category_id_check'];
     $data = array('cat' => Getinformation_sub_category('', $information_category_id_check));
     break;
 case 'set_task_type':
     $cat_id = $_REQUEST['cat_id'];
     $data = array('cat' => Getbank_object($cat_id));
     break;
 case 'delete_file':
     mysql_query("DELETE FROM file WHERE id = {$delete_id}");
     $increm = mysql_query("\tSELECT  `name`,\n\t\t\t\t\t`rand_name`,\n\t\t\t\t\t`id`\n\t\t\t\t\tFROM \t`file`\n\t\t\t\t\tWHERE   `incomming_call_id` = {$edit_id}\n\t\t\t\t\t");
     $data1 = '';
     while ($increm_row = mysql_fetch_assoc($increm)) {
         $data1 .= '<tr style="border-bottom: 1px solid #85b1de;">
开发者ID:GeoPvN,项目名称:winstone,代码行数:31,代码来源:incomming.action.php


示例2: session_start

<?php

session_start();
require_once 'Adapter.class.php';
require_once 'functions.inc.php';
$go = $_POST['go'];
switch ($go) {
    case 'login':
        print loginUser($_POST['un'], $_POST['p']);
        break;
    case 'logout':
        print logOutUser();
        break;
    case 'getcustomers':
        print getCustomers($_POST);
        break;
    case 'addcall':
        print addCall($_POST);
        break;
    case 'getcalls':
        print getCalls();
        break;
    case 'addcustomer':
        print addcustomer($_POST);
        break;
}
开发者ID:Vcnet-Company,项目名称:angularjs-internal,代码行数:26,代码来源:processor.php


示例3: switch

//ACTIONS
switch ($_REQUEST['action']) {
    case "memoSave":
        if ($_REQUEST['call_record']) {
            memoSave($_REQUEST['call_record'], $_REQUEST['sugar_user_id'], $_REQUEST['phone_number'], $_REQUEST['description'], $_REQUEST['direction']);
        }
        break;
    case "updateUIState":
        updateUIState($_REQUEST['ui_state'], $_REQUEST['call_record'], $_REQUEST['id']);
        break;
    case "setBeanID":
        setBeanID($_REQUEST['call_record'], $_REQUEST['bean_module'], $_REQUEST['bean_id']);
        break;
    case "call":
        callCreate();
        break;
    case "transfer":
        transferCall($_REQUEST["extension"], $_REQUEST['call_record']);
        break;
    case "block":
        blockNumber($_REQUEST['number'], $_REQUEST['description']);
        break;
    case "get_calls":
        getCalls($mod_strings, $GLOBALS['current_user']);
        break;
    default:
        echo "undefined action";
        break;
}
sugar_cleanup();
// Formerly was in getCalls()
开发者ID:nitouser,项目名称:yaai,代码行数:31,代码来源:controller.php


示例4: function

// WEBSERVICES DE LA TABLA CALLS
//--------------------------------------------------------------------------------------------------
$app->get('/getCalls', function () {
    //Importa el archivo que contiene el método
    require_once 'Servicios/getCalls.php';
    $app = new \Slim\Slim();
    require_once 'Servicios/Auth.php';
    $deviceId = $app->request->headers->get('deviceID');
    $hash = $app->request->headers->get('hash');
    $respuesta = auth($deviceId, $hash);
    if ($respuesta != "Auth_OK") {
        echo $respuesta;
        return;
    }
    //LLama el método que lee de la base de datos y obtiene la respuesta
    $respuesta = getCalls();
    //Muestra la respuesta al cliente
    echo $respuesta;
});
//--------------------------------------------------------------------------------------------------
$app->get('/getCall', function () {
    //Importa el archivo que contiene el método
    require_once 'Servicios/getCall.php';
    $app = new \Slim\Slim();
    //Obtiene los parametros del header http
    $idCall = $app->request->headers->get('idCall');
    //LLama el método que lee de la base de datos y obtiene la respuesta
    $respuesta = getCall($idCall);
    //Muestra la respuesta al cliente
    echo $respuesta;
});
开发者ID:ekutor,项目名称:hermes,代码行数:31,代码来源:index.php



注:本文中的getCalls函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getCampaignName函数代码示例发布时间:2022-05-15
下一篇:
PHP getCalendarCustomFields函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap