<?php use yii\helpers\Html; ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>车务管理系统</title> <link href="/css/top_css.css" rel="stylesheet" type="text/css"> <?=Html::csrfMetaTags() ?> </head> <body bgcolor="#03A8F6"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="194" height="60" align="center" background="/images/top_logo.png"></td> <td align="center" style="background:url(/images/top_bg.jpg) no-repeat"> <table cellspacing="0" cellpadding="0" border="0" width="100%" height="33"> <tbody> <tr> <td width="0" align="left"> </td> <td align="right"> <!-- <button disabled>不需要签入、签出</button>--> <!-- <input id="tpy_phone" name="tpy_phone" type="Text">--> <!-- <button id="tpy_call_in" onclick="tpy_call_in()">拨号</button>--> <!-- <button id="tpy_call_out" onclick="tpy_call_out()">挂断</button>--> 当前用户:<?=$this->context->my->getShowName()?> </td> </tr> <tr> <td colspan="2"> <div id="tip_info"> <!-- 今日提单数:0个 未处理退单数: 0个--> </div> </td> </tr> </tbody> </table> <table height="26" border="0" align="right" cellpadding="0" cellspacing="0" class="subbg" NAME=t1> <tbody> <tr align="middle"> <td width="71" align="center" valign="middle" background="/images/top_tt_bg.gif"><a href="javascript:void(0);" class="STYLE2" onclick="parent.openTab({'id':0,'name':'修改密码','path':'/common/update-pwd'});">修改密码</a></td> <td width="71" align="center" valign="middle" background="/images/top_tt_bg.gif"><a href="javascript:void(0);" id="logout-btn" target="_top" class="STYLE2">退出登录</a></td> </tr> </tbody> </table> </td> </tr> <tr height="6"> <td bgcolor="#1F3A65" background="/images/top_bg.jpg"></td> </tr> </table> <script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> <script type="text/javascript" language="javascript" src="/js/ajax.js"></script> <script type="text/javascript" language="javascript"> <!-- $(function(){ $("#logout-btn").click(function(){ window.top.location.href = "/common/logout"; }); }); //--> //太平洋测试拨号挂断 function tpy_call_in(){ var tpy_phone = $("#tpy_phone").val(); alert(tpy_phone); if(tpy_phone == ""){ alert("请输入号码"); return false; } var ext_phone = '<?= $this->context->my->ext_phone ?>'; $.post('/tpy-phone/call-to',{ext_phone:ext_phone,phone_num:tpy_phone},function(obj){ if(obj.success) { //$('#tpy_call_in').attr('disabled',true); //$('#tpy_call_out').removeAttr('disabled'); alert(obj.msg); }else{ alert(obj.msg); } },'json'); } //太平洋测试挂断电话 function tpy_call_out(){ var ext_phone = '<?= $this->context->my->ext_phone ?>'; $.post('/tpy-phone/hang-up',{ext_phone:ext_phone},function(obj){ if(obj.success) { //$('#tpy_call_out').attr('disabled',true); //$('#tpy_call_in').removeAttr('disabled'); alert(obj.msg); }else{ alert(obj.msg); } },'json'); } </script> </body> </html>