Ejemplo n.º 1
0
function contructQueueWaitingJSON($arr)
{
    /* use for query customer info */
    $oCustomer = new getInfoMainConsole();
    $arrResult = $arr;
    foreach ($arr as $key => $value) {
        $vip = '1';
        $phone1 = $arr[$key]['phone_number'];
        $phone2 = is_null($oCustomer->getCustomerName($phone1)) ? $phone1 : $oCustomer->getCustomerName($phone1);
        $arrResult[$key]['phone_number'] = '<span title="' . $phone1 . '">' . $phone2 . '</span>';
        //$arrResult[$key]['wait_time'] = timestamp_format($arrResult[$key]['wait_time']);
        $arrResult[$key]['vip'] = $vip;
    }
}