PHP User::isCurrentUserDomMentor Examples

PHP User::isCurrentUserDomMentor - 2 examples found. These are the top rated real world PHP examples of User::isCurrentUserDomMentor extracted from open source projects. You can rate examples to help us improve the quality of examples.
<br/>
<a id="proposalButton" style="text-decoration:none" href="/coplat/index.php/application/approve">
				<?php 
    $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'button', 'type' => 'primary', 'size' => 'large', 'label' => 'New Proposal!'));
    ?>
            </a>
<!-- <div style="margin-top = 0px; height: 300px; width: 1000px; overflow-y: scroll; border-radius: 5px;"> -->
<div id = "fullcontent"t>
    <?php 
    $model1 = Ticket::model();
    $MyTabs = array('tab1' => array('title' => "Open", 'content' => $this->widget('zii.widgets.grid.CGridView', array('id' => 'My_questions', 'dataProvider' => $model1->searchMyQuestions(User::getCurrentUserId()), 'columns' => array(array('name' => 'subject', 'value' => '$data->subject', 'htmlOptions' => array('width' => '120px')), array('name' => 'Last Activity', 'value' => '$data->getLatestActivityDate()', 'htmlOptions' => array('width' => '40px')), array('class' => 'CButtonColumn', 'template' => '{view}', 'buttons' => array('view' => array('url' => 'Yii::app()->createUrl("ticket/view", array("id"=>$data->id))'))))), true)), 'tab2' => array('title' => "Closed", 'content' => $this->widget('zii.widgets.grid.CGridView', array('id' => 'My_Closed_questions', 'dataProvider' => $model1->searchMyClosedQuestions(User::getCurrentUserId()), 'columns' => array(array('name' => 'subject', 'value' => '$data->subject', 'htmlOptions' => array('width' => '120px')), array('name' => 'Last Activity', 'value' => '$data->getLatestActivityDate()', 'htmlOptions' => array('width' => '40px')), array('class' => 'CButtonColumn', 'template' => '{view}', 'buttons' => array('view' => array('url' => 'Yii::app()->createUrl("ticket/view", array("id"=>$data->id))'))))), true)));
    $this->widget('CTabView', array('tabs' => $MyTabs));
    ?>
    <br/>
    <?php 
    if (User::isCurrentUserDomMentor()) {
        ?>
        <h3>Assigned Questions</h3> <br/>
        <?php 
        $model3 = Ticket::model();
        $AssignedTabs = array('tab4' => array('title' => "Open", 'content' => $this->widget('zii.widgets.grid.CGridView', array('id' => 'Assigned_tickets', 'dataProvider' => $model3->searchAssigned(User::getCurrentUserId()), 'columns' => array(array('name' => 'created_date', 'value' => '$data->getCreatedDateToString()'), 'subject', array('name' => 'Last Activity', 'value' => '$data->getLatestActivityDate()'), array('name' => 'Priority', 'value' => '$data->getPriorityString()'), array('class' => 'CButtonColumn', 'template' => '{view}', 'buttons' => array('view' => array('url' => 'Yii::app()->createUrl("ticket/view", array("id"=>$data->id))'))))), true)), 'tab3' => array('title' => "Closed", 'content' => $this->widget('zii.widgets.grid.CGridView', array('id' => 'Assigned_Closed_tickets', 'dataProvider' => $model3->searchAssignedClosed(User::getCurrentUserId()), 'columns' => array(array('name' => 'created_date', 'value' => '$data->getCreatedDateToString()'), 'subject', array('name' => 'Last Activity', 'value' => '$data->getLatestActivityDate()'), array('name' => 'Priority', 'value' => '$data->getPriorityString()'), array('class' => 'CButtonColumn', 'template' => '{view}', 'buttons' => array('view' => array('url' => 'Yii::app()->createUrl("ticket/view", array("id"=>$data->id))'))))), true)));
        $this->widget('CTabView', array('tabs' => $AssignedTabs));
    }
    ?>
     <br/>
    <h3>Upcoming Meetings</h3>
    <?php 
    $model2 = VideoConference::model();
    $this->widget('zii.widgets.grid.CGridView', array('id' => 'upcomingVc', 'dataProvider' => $model2->searchUpcoming(User::getCurrentUserId()), 'columns' => array('subject', array('name' => 'scheduled_for', 'value' => '$data->getDateToString()'), array('class' => 'CButtonColumn', 'template' => '{view}', 'buttons' => array('view' => array('url' => 'Yii::app()->createAbsoluteUrl("videoConference/join/".$data->id, array(), "https")'))))));
    ?>
Example #2
0
if (User::isCurrentUserAdmin() && $model->status == 'Pending' || User::isCurrentUserDomMentor() && $model->status == 'Pending' && $tier !== null && $tier->tier_team == 1 && User::getCurrentUserId() == $model->assign_user_id || User::getCurrentUserId() == $model->creator_user_id) {
    $this->widget('bootstrap.widgets.TbButton', array('label' => 'Re Assign', 'type' => 'primary', 'htmlOptions' => array('data-toggle' => 'modal', 'data-target' => '#myModalReAssign', 'style' => 'width: 120px')));
}
?>
        <br/>
        <br/>
        <!-- Button trigger escalate -->
        <?php 
if (User::isCurrentUserAdmin() && $model->status == 'Pending' || User::isCurrentUserDomMentor() && $model->status == 'Pending' && $tier !== null && $tier->tier_team == 1 && User::getCurrentUserId() == $model->assign_user_id && User::getCurrentUserId() != $model->creator_user_id) {
    $this->widget('bootstrap.widgets.TbButton', array('label' => 'Escalate', 'type' => 'primary', 'htmlOptions' => array('data-toggle' => 'modal', 'data-target' => '#myModalEscalate', 'style' => 'width: 120px')));
}
?>
        <br>
        <br>
        <?php 
if (User::isCurrentUserAdmin() || User::isCurrentUserDomMentor()) {
    $this->widget('bootstrap.widgets.TbButton', array('label' => 'Schedule Meeting', 'type' => 'primary', 'htmlOptions' => array('data-toggle' => 'modal', 'data-target' => '#myModalScheduleVC', 'style' => 'width: 120px')));
}
?>

    </div>
    <!-- End Buttons Options -->

    <br>
    <!-- End Container -->
    <br>

    <div class="container" style="width: 800px; margin-left: 0px; overflow-y: scroll">
        <div style="color: #0044cc"><h3>Comments</h3></div>
        <br>
        <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered table-fixed-header"