Ejemplo n.º 1
0
<!-- Experiments -->
<?php 
if (is_admin()) {
    echo heading(lang('experiments'), 3);
    create_experiment_table('experiments');
    $experiments['id'] = 'experiments';
    $experiments['ajax_source'] = 'experiment/table_by_user/' . $user->id;
    echo $this->load->view('templates/list_view', $experiments);
}
?>

<!-- Comments -->
<?php 
echo heading(lang('comments'), 3);
create_comment_table('comments');
$comments['id'] = 'comments';
$comments['ajax_source'] = 'comment/table_by_user/' . $user->id;
echo $this->load->view('templates/list_view', $comments);
?>

<!-- Calls -->
<?php 
if (current_role() === UserRole::Caller) {
    echo heading(lang('calls'), 3);
    create_call_table('calls', FALSE);
    $calls['id'] = 'calls';
    $calls['sort_column'] = 4;
    $calls['sort_order'] = 'desc';
    $calls['ajax_source'] = 'call/table_by_user/' . $user->id;
    echo $this->load->view('templates/list_view', $calls);
Ejemplo n.º 2
0
 /** Specifies the content of a page with the contents for a specific participant */
 public function participant($participant_id)
 {
     $participant = $this->participantModel->get_participant_by_id($participant_id);
     create_comment_table();
     $data['ajax_source'] = 'comment/table/0/0/' . $participant->id;
     $data['page_title'] = sprintf(lang('comments_for'), name($participant));
     $this->load->view('templates/header', $data);
     $this->load->view('templates/list_view', $data);
     $this->load->view('templates/footer');
 }