private function checkConfCanExecute($orderId, $teleconf, $request, $response) {/*{{{*/ $response->autoCreateConf = false; if(false == $teleconf->isNull()) { $consultConf = new ConsultPhoneConference($teleconf); $response->autoCreateConf = $consultConf->isAutoCreatedConf(); $consultConf->checkConfCanExecute($orderId, $this->curUser->id, $response->spType); } }/*}}}*/
<?php } ?> <?php if ($controlButton->isConfHasQuitConfButton()) { ?> <td width="200" align="center"> <div> <input type="checkbox" value="<?=PhoneConference::NEEDHANGUP?>" name="needhangup"/>挂断电话 </div> <input type="button" style="height:35px;width:90px" id="quitConf" value="退出并计时" onclick="doAction($(this))" class="cp"/> </td> <?php } ?> <?php if ($controlButton->isConfHasAdminJoinConfButton() && ConsultPhoneConference::isPhoneInWaitingRoom($adminTelephone->telselected, $spType)) { ?> <td width="200" align="center"> <input type="button" style="height:35px;width:90px" id="adminjoinconf" value="管理员加入" onclick="doAction($(this))" class="cp"/> </td> <?php } ?> <?php if ($controlButton->isAdminHasCallAdminButton() && false == ConsultPhoneConference::isPhoneInConf($adminTelephone->telselected)) { ?> <td width="200" align="center"> <input type="button" style="height:35px;width:90px" id="callAdmin" class="cp" value="呼叫管理员" onclick="doAction($(this))" title="发起外呼"/> </td> <?php } ?> <?php if ($controlButton->isConfHasEndConfButton()) { ?> <td width="200" align="center"> <input type="button" style="height:35px;width:90px;" id="endConf" value="关闭会议室" onclick="if (confirm('该操作会中断通话,确定要关闭会议室吗?')) doAction($(this));" title="注意:该操作会中断会议成员通话"/> </td> <?php } ?> <?php if ($controlButton->isConfHasStartConfButton()) { ?> <td width="200" align="center"> <input type="button" style="height:35px;width:90px" id="startTimer" value="开始计时" onclick="if (confirm('确定 开始计时吗?')) doAction($(this));"/> </td> <?php } ?> </tr>