Example #1
0
 /**
  * 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 $id the ID of the model to be loaded
  * @return AttendancePresencesRequestOff the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = AttendancePresencesRequestOff::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
Example #2
0
<?php

$mutation_requests = MutationsRequest::model()->findAll();
$attendance_offs = AttendancePresencesRequestOff::model()->findAllByAttributes(array('status' => 'saved'));
?>

<div class="row">
	<div class="col-md-7">
		
		<!-- START SALES BLOCK -->
		<div class="panel panel-default">
			<div class="panel-heading">
				<div class="panel-title-box">
					<h3><?php 
echo at('Approval Notifications');
?>
</h3>
					<span><?php 
echo at('Current approval notifications');
?>
</span>
				</div>
			</div>
			<div class="panel-body panel-body-table">
				
				<div class="table-responsive">
					<table class="table table-bordered table-striped">
						<thead>
							<tr>
								<th width="10%"><?php 
echo at('Type');