<?php

$data = WComment::CommentLectureAll(10, 0, $contentcomment);
$where = "";
$total = WComment::getTotalCommentLecturePages($contentcomment);
$page = ceil($total / 10);
?>
<p><a href="javascript:;" class="btn btn-danger btn-xs" style="visibility: hidden;" id="btndeletealllecture" onclick="return removeAllDataLecture(this);"><?php 
echo Yii::t('web/home', 'Delete All');
?>
</a><strong style="font-size: 18px;"><?php 
echo Yii::t('web/home', 'Lecture');
?>
</strong><span style=" font-size: 10px; font-style: italic; margin-left: 5px; ">(<?php 
echo Yii::t('web/home', 'Comments');
?>
)</span></span></p>
<table class="table table-hover" style="margin-bottom: 0px;">
    <thead class="first_thead">
    <tr>
        <th width="1"><input type="checkbox" id="checkAllLecture" ></th>
        <th width="1">#</th>
        <th><?php 
echo Yii::t('web/home', 'Content Comment');
?>
</th>
        <th><center><?php 
echo Yii::t('web/home', 'Lecture');
?>
</center></th>
        <th><center><?php 
 public function actionCommentLectureLoadpage()
 {
     $page = $_REQUEST["page"];
     $contentcomment = isset($_REQUEST["contentcomment"]) ? $_REQUEST["contentcomment"] : "";
     $view = isset($_REQUEST["view"]) ? $_REQUEST["view"] : "_loadpage_lecture";
     $results = WComment::CommentLectureAll(10, $page - 1, $contentcomment);
     $index = ($page - 1) * 10;
     $data = $this->renderPartial('trainer/' . $view, array('data' => $results, "index" => $index), true);
     echo json_encode(array("result" => "true", "html" => $data));
 }