Esempio n. 1
0
    echo 'Started call: ' . $call->sid;
} catch (Exception $e) {
    $error_message = 'Error: ' . $e->getMessage();
}
?>

<script type="text/javascript" src="//static.twilio.com/libs/twiliojs/1.2/twilio.min.js"></script>
<script type="text/javascript">
      Twilio.Device.setup("<?php 
echo $token;
?>
");
 
      Twilio.Device.ready(function (device) {
        $("#log").text("<?php 
echo ActionClass::getRoleAsString($creatorId) . ' ' . $creator;
?>
 is ready");
      });
 
      Twilio.Device.error(function (error) {
        $("#log").text("Error: " + error.message);
      });
 
      Twilio.Device.connect(function (conn) {
        $("#log").text("Successfully established call");
      });
 
      Twilio.Device.disconnect(function (conn) {
            $("#log").text("Call ended");
      });
Esempio n. 2
0
<?php

$roleName = ActionClass::getRoleAsString(Yii::app()->user->role);
$this->pageName = $roleName . ' Info';
if (!empty($msg)) {
    $error = '<div class="col-md-12 paymentinfo-content-box-section-1 paymentinfo-error-success" >
                <p class="paymentinfo-password-' . ($status ? 'success' : 'error') . '">' . $msg . '</p>
            </div >';
}
?>

<!-- Container Start-->
<div class="totalPageContent">
    <div class="col-md-8 col-md-offset-2 col-sm-8 col-sm-offset-2 col-xs-12 navChange user-quote no-padd">
        <div class="col-md-12 page-header">
            <div class="col-md-10 col-md-offset-1">
                 <h4><?php 
echo $roleName;
?>
 Info</h4>
            </div>
        </div>
        <?php 
echo CHtml::form(Yii::app()->baseUrl . '/settings/updateInfo', 'post', array('enctype' => 'multipart/form-data'));
?>
            <div class="col-md-12 acc-page-content">
                <div class="col-md-offset-1 col-md-10">
                    <div class="col-md-3 acc-upload-image">
                        <div class="upload-circle">
                            <span class="profile-uploader">
                                <?php 
Esempio n. 3
0
        ?>
" title="<?php 
        echo $team['firstName'] . ' ' . $team['lastName'];
        ?>
" src="<?php 
        echo ActionClass::getProfileImage($team['id']);
        ?>
"/>
                                        </div>
                                        <div class="col-md-10 contact-infos-section">
                                            <p class="conatat-titles"><?php 
        echo $team['firstName'] . ' ' . $team['lastName'];
        ?>
</p>
                                            <p class="contacts-role"><?php 
        echo ActionClass::getRoleAsString($team['role']);
        ?>
</p>
                                            <span class="enq-content-titles contacts-permissions">
                                                <input type="checkbox" value="None" id="checklist<?php 
        echo $team['id'];
        ?>
" class="squaredOne checklist__user__checkbox" data-user_id='<?php 
        echo $team['id'];
        ?>
'/>
                                                <label for="checklist<?php 
        echo $team['id'];
        ?>
"></label>
                                            </span>