protected function renderContent()
 {
     // echo 'Blogs Content';
     $id = Yii::app()->user->getState('org_id');
     if (!empty($id)) {
         $result = Gtunotice::model()->findAll(array("condition" => "gtunotice_organization_id  =  {$id}", "limit" => "4"));
         if ($result) {
             foreach ($result as $data) {
                 echo CHtml::link($data->Description . "..", $data->Link, array('target' => '_blank')) . '<br /><br />';
             }
         }
     }
 }
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer the ID of the model to be loaded
  */
 public function loadModel($id)
 {
     $model = Gtunotice::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
?>
</div>
</div>
<?php
}
}
?>
<!-- End Attendance Chart -->

<!-- Start GTU Notice -->
<?php
$id=Yii::app()->user->getState('org_id');
if(!empty($id))
{
	$result=Gtunotice::model()->findAll(array("condition"=>"gtunotice_organization_id  =  $id","limit"=>4,'order'=>'ID desc'));

	if($result)
	{
?>
<div class="box">
<div class="box-header">
<h1>GTU Notice</h1>
</div>
<div class="box-content" style="min-height:210px;max-height:210px;">
<?php 
	echo '<ul>';
	foreach($result as $data)
	echo '<li>'.CHtml::link($data->Description."..",$data->Link,array('target'=>'_blank')).'</li>';
	echo '</ul>';?>
</div>
//$criteria->select = 'academic_term_id';
$criteria->condition = 'current_sem = 1 AND academic_term_organization_id = ' . Yii::app()->user->getState('org_id');
$data_arr = 0;
$semname = AcademicTerm::model()->findAll($criteria);
if ($semname) {
    $data = CHtml::listData($semname, 'academic_term_id', 'academic_term_id');
    $data_arr = implode(',', $data);
}
?>
<!-- End  timetable-->

<!-- Start GTU Notice -->
<?php 
$id = Yii::app()->user->getState('org_id');
if (!empty($id)) {
    $result = Gtunotice::model()->findAll(array("condition" => "gtunotice_organization_id  =  {$id}", "limit" => "4"));
    if ($result) {
        ?>
<div class="box">
<div class="box-header">
<h1>GTU Notice</h1>
</div>
<div class="box-content">
<?php 
        echo '<ul>';
        foreach ($result as $data) {
            echo '<li>' . CHtml::link($data->Description . "..", $data->Link, array('target' => '_blank')) . '</li>';
        }
        echo '</ul>';
        ?>
</div>