<?php
/* @var $this SessionController */
/* @var $model Session */

$this->pageTitle='Laporan Evaluasi Inovasi - Instansi '.Department::model()->getName($model->Users->division).' - '.$model->Users->fullname;
?>

<div class="col-sm-12">
	<div id="accordion1" class="panel-group accordion">

		<div style="width:100%">

			<div style="width:50%;float:left">

				<table>
					<tr>
						<td>Nama</td>
						<td>:</td>
						<td><?php echo $model->Users->fullname; ?></td>
					</tr>
					<tr>
						<td>Instansi</td>
						<td>:</td>
						<td><?php echo Department::model()->getName($model->Users->division); ?></td>
					</tr>

					<tr>
						<td>Tipe Akses</td>
						<td>:</td>
						<td><?php echo Users::model()->level($model->Users->level); ?></td>
					</tr>


				</table>

			</div>

			<div style="width:50%;float:right">

				<table>
					<tr>
						<td>Tahun</td>
						<td>:</td>
						<td><?php echo $model->QuestionSession->session_code; ?></td>
					</tr>

					<tr>
						<td>Skor</td>
						<td>:</td>
						<td><?php echo Question::model()->sumTotalQuesioner($model->user_id,$model->id_session_user); ?>%</td>
					</tr>
					<tr>
						<td>Grade</td>
						<td>:</td>
						<td><?php echo Question::model()->gradePoint(Question::model()->sumTotalQuesioner($model->user_id,$model->id_session_user)); ?></td>
					</tr>
				</table>

			</div>

		</div>
		
		
        <HR>
        	<?php $this->widget('zii.widgets.CDetailView', array(
        		'data'=>$innovation,
        		'htmlOptions'=>array("class"=>"table"),
        		'attributes'=>array(
        			'title',
        			'description_background',
        			'description_vision',
        			'description_result',
        			array('name'=>'id_category','value'=>Tag::model()->getCategory($innovation->id_category)),
        			array('name'=>'id_tag','value'=>Tag::model()->getCategory($innovation->id_tag)),
        			array('name'=>'id_type','value'=>Tag::model()->getCategory($innovation->id_type)),
        			array('name'=>'id_department','value'=>Department::model()->getName($innovation->id_department)),
        		),
        	)); ?>
        <HR>

		<?php $this->widget('zii.widgets.CListView', array(
			'dataProvider'=>$dataCluster,
			'itemView'=>'_print_sub_cluster',
			'summaryText'=>'',
			'emptyText'=>'',
			'viewData' => array("user_id"=>$model->user_id,"token"=>$model->token,"sessionid"=>$sessionid),
			)); ?>



		</div>

	</div>


		<STYLE>
			th{width:400px;}
		</STYLE>