本文整理汇总了PHP中AcademicTermPeriod::model方法的典型用法代码示例。如果您正苦于以下问题:PHP AcademicTermPeriod::model方法的具体用法?PHP AcademicTermPeriod::model怎么用?PHP AcademicTermPeriod::model使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AcademicTermPeriod
的用法示例。
在下文中一共展示了AcademicTermPeriod::model方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionRecpt_list
public function actionRecpt_list()
{
$this->layout = 'receipt_layout';
$misc_fees_payment = MiscellaneousFeesPaymentCheque::model()->findByPk($_REQUEST['id']);
$model = StudentTransaction::model()->findByPk($misc_fees_payment->miscellaneous_fees_payment_cheque_student_id);
$stud_id = $model->student_transaction_student_id;
$stud_model = StudentInfo::model()->findByPk($model->student_transaction_student_id);
$acd_term = AcademicTermPeriod::model()->findByPk($model->student_academic_term_period_tran_id);
$branch = Branch::model()->findByPk($model->student_transaction_branch_id);
//print_r($_REQUEST['id']);
//print "<br/>model".$misc_fees_payment->miscellaneous_fees_payment_cash_student_id;
//print "<br/>reciept_no".$misc_fees_payment->miscellaneous_fees_payment_cash_receipt_id;
//print "<br/>stud_id".$model->student_transaction_student_id;
//print "<br/>curent date".date('d/m/y');
//print "<br/>stud_model".$stud_model->student_first_name.''.$stud_model->student_middle_name.''.$stud_model->student_last_name;
//print "<br/>dbdate".$misc_fees_payment->miscellaneous_fees_payment_cash_creation_date;
//print "<br/>branch_name".$branch->branch_name;
//print "<br/>academic_term".$acd_term->academic_terms_period_name;
//print "</br>roll no".$stud_model->student_roll_no;
//exit;
$this->render('recpt_list', array('model' => $model, 'stud_model' => $stud_model, 'acd_term' => $acd_term, 'branch' => $branch, 'misc_fees_payment' => $misc_fees_payment));
}
开发者ID:sharmarakesh,项目名称:edusec-college-management-system,代码行数:22,代码来源:MiscellaneousFeesPaymentChequeController.php
示例2: foreach
</tr>
<?php
foreach ($var1 as $list) {
if ($m % 2 == 0) {
$class = "odd";
} else {
$class = "even";
}
$stud_data = StudentTransaction::model()->findByPk($list['fees_student_id']);
print '<tr class=' . $class . '><td>' . $i . '</td>';
print '<td>' . StudentInfo::model()->findByPk($stud_data->student_transaction_student_id)->student_enroll_no . '</td>';
print '<td>' . StudentInfo::model()->findByPk($stud_data->student_transaction_student_id)->student_roll_no . '</td>';
print '<td>' . StudentInfo::model()->findByPk($stud_data->student_transaction_student_id)->student_first_name . ' ' . StudentInfo::model()->findByPk($stud_data->student_transaction_student_id)->student_middle_name . ' ' . StudentInfo::model()->findByPk($stud_data->student_transaction_student_id)->student_last_name . '</td>';
print '<td>' . Branch::model()->findByPk($stud_data->student_transaction_branch_id)->branch_name . '</td>';
print '<td>' . AcademicTerm::model()->findByPk($list['fees_academic_term_id'])->academic_term_name . '</td>';
print '<td>' . AcademicTermPeriod::model()->findByPk($list['fees_academic_period_id'])->academic_term_period . '</td>';
print '<td>' . Division::model()->findByPk($stud_data->student_transaction_division_id)->division_name . '</td>';
print '<td>' . $list['fees_received_date'] . '</td>';
$rec_no = FeesReceipt::model()->findByPk($list['fees_receipt_id'])->fees_receipt_number;
if ($list['fees_payment_method_id'] == '1') {
$cash_id = $list['fees_payment_cash_cheque_id'];
$amunt = FeesPaymentCash::model()->findByPk($cash_id)->fees_payment_cash_amount;
$final_total += $amunt;
$type = "Cash";
print '<td>' . $type . '</td>';
print '<td>-</td>';
print '<td>-</td>';
print '<td>' . $rec_no . '</td>';
print '<td>' . $amunt . '</td>';
} else {
$cheque_id = $list['fees_payment_cash_cheque_id'];
示例3: or
background: #f1f6ff;
}
table tr:nth-child(odd) { /*(odd) or (2n 1)*/
background: white;
}
th{text-align:left;font-weight:normal;color:#990a10;width:110px;border:0.4px solid #74b9f0;height:24px;}
.title{color:seagreen;}
td{border:0.4px solid #74b9f0;height:24px;}
.label{text-align:left;font-weight:normal;color:#990a10;width:110px;height:24px;}
</style>
<?php
$StudentInfo = StudentInfo::model()->findByPk($student_transaction[0]->student_transaction_student_id);
$AcademicTermPeriod = AcademicTermPeriod::model()->findByPk($student_transaction[0]->academic_term_period_id);
$AcademicTerm = AcademicTerm::model()->findByPk($student_transaction[0]->academic_term_id);
if($student_transaction[0]->student_transaction_nationality_id != null)
$Nationality = Nationality::model()->findByPk($student_transaction[0]->student_transaction_nationality_id);
else
$Nationality = new Nationality;
$Batch = Batch::model()->findByPk($student_transaction[0]->student_transaction_batch_id);
$Course = Course::model()->findByPk($student_transaction[0]->course_id);
if($student_transaction[0]->student_transaction_languages_known_id != null)
$LanguagesKnown = LanguagesKnown::model()->findByPk($student_transaction[0]->student_transaction_languages_known_id);
if($student_transaction[0]->student_transaction_student_address_id != null)
$StudentAddress = StudentAddress::model()->findByPk($student_transaction[0]->student_transaction_student_address_id);
else
$StudentAddress = new StudentAddress;
if($student_transaction[0]->student_transaction_parent_id != null || $student_transaction[0]->student_transaction_parent_id != 0)
$parent = ParentLogin::model()->findByPk($student_transaction[0]->student_transaction_parent_id);
示例4: array
?>
<?php echo '<table class="report-table" border=2 > ';
echo "<tr align=center> <th colspan = 60 style=text-align:left;> ".CHtml::image(Yii::app()->controller->createUrl('/site/loadImage', array('id'=>$org_data->organization_id)),'No Image',array('width'=>80,'height'=>55,'style'=>'float:left;margin-left:200px;')) ."
<big> <b>".$org_data->organization_name ."</big><br>". $org_data->address_line1." ".$org_data->address_line2."</br>" . City::model()->findBypk($org_data->city)->city_name.", ".State::model()->findBypk($org_data->state)->state_name.", ".Country::model()->findBypk($org_data->country)->name."." ." </th> <br> </tr>";
echo "<tr><th colspan=60><h3> Batch-".$yr->year." Branch of ".$branch_model->branch_name." All Students Fees Collection Report</h3></th> </tr>";
echo "<tr class='table_header'>";
echo "<th > SI<br> No.</th>";
echo "<th> Enrollement<br> No. </th>";
echo "<th colspan=2 > Student Full Name</th>";
foreach($startYear as $y)
{
echo '<th >'.AcademicTermPeriod::model()->findByPk($y)->academic_term_period.'</th>';
}
echo "<th colspan=2> Total Paid Fees </th>";
$m=0;
foreach($student as $s)
{
$paidAmt=$paid_amt=$paid_amount=0;
if(($m%2) == 0)
{
$class = "odd";
}
else
{
$class = "even";
示例5: foreach
<th>Cheque No</th>
<th>Receipt No</th>
<th>Amount</th>
</tr>
<?php
foreach ($var as $list) {
$stud_data = StudentTransaction::model()->findByPk($list['fees_student_id']);
echo '<tr><td>' . $i . '</td>';
echo '<td>' . StudentInfo::model()->findByPk($stud_data->student_transaction_student_id)->student_enroll_no . '</td>';
echo '<td>' . StudentInfo::model()->findByPk($stud_data->student_transaction_student_id)->student_roll_no . '</td>';
echo '<td>' . StudentInfo::model()->findByPk($stud_data->student_transaction_student_id)->student_first_name . ' ' . StudentInfo::model()->findByPk($stud_data->student_transaction_student_id)->student_middle_name . ' ' . StudentInfo::model()->findByPk($stud_data->student_transaction_student_id)->student_last_name . '</td>';
echo '<td>' . Branch::model()->findByPk($stud_data->student_transaction_branch_id)->branch_name . '</td>';
echo '<td>' . AcademicTerm::model()->findByPk($stud_data->student_academic_term_name_id)->academic_term_name . '</td>';
echo '<td>' . AcademicTermPeriod::model()->findByPk($stud_data->student_academic_term_period_tran_id)->academic_term_period . '</td>';
echo '<td>' . Division::model()->findByPk($stud_data->student_transaction_division_id)->division_name . '</td>';
echo '<td>' . $list['fees_received_date'] . '</td>';
$rec_no = FeesReceipt::model()->findByPk($list['fees_receipt_id'])->fees_receipt_number;
if ($list['fees_payment_method_id'] == '1') {
$cash_id = $list['fees_payment_cash_cheque_id'];
$amunt = FeesPaymentCash::model()->findByPk($cash_id)->fees_payment_cash_amount;
$final_total += $amunt;
$type = "Cash";
echo '<td>' . $type . '</td>';
echo '<td>-</td>';
echo '<td>-</td>';
echo '<td>' . $rec_no . '</td>';
echo '<td>' . $amunt . '</td>';
} else {
$cheque_id = $list['fees_payment_cash_cheque_id'];
开发者ID:sharmarakesh,项目名称:edusec-college-management-system,代码行数:31,代码来源:date_report_generate_view_pdf.php
示例6:
">
<td>
<?php
echo $k;
?>
</td>
<td>
<?php
echo Branch::model()->findByPk($i['fees_branch_id'])->branch_name;
?>
</td>
<td>
<?php
echo AcademicTermPeriod::model()->findByPk($i['fees_academic_term_id'])->academic_term_period;
?>
</td>
<td>
<?php
echo AcademicTerm::model()->findByPk($i['fees_academic_term_name_id'])->academic_term_name;
?>
</td>
<td>
<?php
echo Quota::model()->findByPk($i['fees_quota_id'])->quota_name;
?>
</td>
<td>
示例7:
<?php
echo StudentInfo::model()->findByPk($v['student_transaction_student_id'])->student_first_name;
?>
</td>
<td>
<?php
echo StudentInfo::model()->findByPk($v['student_transaction_student_id'])->student_last_name;
?>
</td>
<td>
<?php
echo AcademicTermPeriod::model()->findByPk($v['student_academic_term_period_tran_id'])->academic_term_period;
?>
</td>
<td>
<?php
if (isset($v['student_academic_term_name_id'])) {
echo "Sem-" . AcademicTerm::model()->findByPk($v['student_academic_term_name_id'])->academic_term_name;
} else {
echo "N/A";
}
?>
</td>
<td>
示例8:
'id'=>'attendence-division',
'enableAjaxValidation'=>true,
'clientOptions'=>array('validateOnSubmit'=>true),
)); ?>
<?php $org_id=Yii::app()->user->getState('org_id');
$acd = Yii::app()->db->createCommand()
->select('*')
->from('academic_term')
->where('current_sem=1 ')
->queryAll();
$acdterm=CHtml::listData($acd,'academic_term_id','academic_term_name');
//echo $acdterm;
$period=array();
if(!empty($acdterm)){
$pe_data = AcademicTermPeriod::model()->findByPk($acd[0]['academic_term_period_id']);
$period[$pe_data->academic_terms_period_id] = $pe_data->academic_term_period;
}?>
<p class="note">Fields with <span class="required">*</span> are required.</p>
<div class="row">
<?php echo $form->labelEx($model,'sem_id'); ?>
<?php echo $form->dropDownList($model,'sem_id',$period,array('tabindex'=>1,'prompt' => 'Select Year')); ?>
<span class="status"> </span>
<?php echo $form->error($model,'sem_id'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'sem_name_id'); ?>
<?php echo $form->dropDownList($model,'sem_name_id',$acdterm,array('tabindex'=>2,'empty' => 'Select Semester')); ?>
<span class="status"> </span>
<?php echo $form->error($model,'sem_name_id'); ?>
示例9: actionCreate
/**
* Creates a new model.
* If creation is successful, the browser will be redirected to the 'view' page.
*/
public function actionCreate()
{
$model = new FeesPaymentTransaction();
$FeesMasterDetails = new FeesMaster();
$total = 0;
$result = $_REQUEST['id'];
$fees_stru = Yii::app()->db->createCommand()->select('fees.fees_master_id , fees.fees_master_name , fees.fees_branch_id , stud.student_transaction_branch_id , stud.student_transaction_organization_id , fees.fees_organization_id , stud.student_transaction_quota_id , fees.fees_quota_id ,stud.student_academic_term_period_tran_id , fees.fees_academic_term_id, fees.fees_academic_term_name_id, fees.fees_master_total')->from('student_transaction stud')->join('fees_master fees', 'stud.student_transaction_branch_id = fees.fees_branch_id
AND stud.student_academic_term_period_tran_id = fees.fees_academic_term_id
AND stud.student_academic_term_name_id = fees.fees_academic_term_name_id
AND stud.student_transaction_quota_id = fees.fees_quota_id')->where('stud.student_transaction_id=:id', array(':id' => $result))->queryRow();
$student_fees = StudentFeesMaster::model()->findAll('fees_master_table_id = :fees_master_id AND student_fees_master_student_transaction_id = :student_id', array(':fees_master_id' => $fees_stru['fees_master_id'], ':student_id' => $result));
//print_r($student_fees); exit;
foreach ($student_fees as $fees_data) {
$total += $fees_data->fees_details_amount;
}
if (!$fees_stru) {
$ourscript = "alert('No fees available for this critaria.. Please create fees with this branch, academic year and semester of student. \t');";
Yii::app()->clientScript->registerScript('helloscript', $ourscript, CClientScript::POS_READY);
$this->redirect(array('error', 'status' => 'nofees'));
} else {
$model->fees_payment_master_id = $fees_stru['fees_master_id'];
$org = Organization::model()->findByPk($fees_stru['fees_organization_id']);
$quota = Quota::model()->findByPk($fees_stru['fees_quota_id']);
$branch = Branch::model()->findByPk($fees_stru['fees_branch_id']);
$acmd = AcademicTermPeriod::model()->findByPk($fees_stru['fees_academic_term_id']);
$acmd_name = AcademicTerm::model()->findByPk($fees_stru['fees_academic_term_name_id']);
$FeesMasterDetails->fees_master_name = $fees_stru['fees_master_name'];
$FeesMasterDetails->fees_organization_id = $org->organization_name;
$FeesMasterDetails->fees_quota_id = $quota->quota_name;
$FeesMasterDetails->fees_branch_id = $branch->branch_name;
$FeesMasterDetails->fees_academic_term_id = $acmd->academic_term_period;
$FeesMasterDetails->fees_academic_term_name_id = $acmd_name->academic_term_name;
$FeesMasterDetails->fees_master_total = $total;
$model->fees_payment_master_id = $fees_stru['fees_master_id'];
$cash_model = new FeesPaymentTransaction('cashsearch');
$cash_model->unsetAttributes();
// clear any default values
if (isset($_GET['FeesPaymentTransaction'])) {
$cash_model->attributes = $_GET['FeesPaymentTransaction'];
}
$cheque_model = new FeesPaymentTransaction('chequesearch');
$cheque_model->unsetAttributes();
// clear any default values
if (isset($_GET['FeesPaymentTransaction'])) {
$cheque_model->attributes = $_GET['FeesPaymentTransaction'];
}
$this->render('create', array('model' => $model, 'FeesMasterDetails' => $FeesMasterDetails, 'cash_model' => $cash_model, 'cheque_model' => $cheque_model));
}
}
开发者ID:sharmarakesh,项目名称:edusec-college-management-system,代码行数:53,代码来源:FeesPaymentTransactionController.php
示例10: array
<?php
$acd = Yii::app()->db->createCommand()->select('*')->from('academic_term')->where('current_sem=1')->queryAll();
$acdterm = CHtml::listData($acd, 'academic_term_id', 'academic_term_name');
$period = array();
if ($acdterm) {
$pe_data = AcademicTermPeriod::model()->findByPk($acd[0]['academic_term_period_id']);
$period[$pe_data->academic_terms_period_id] = $pe_data->academic_term_period;
}
?>
<div class="row-right">
<?php
echo $form->labelEx($model, 'student_academic_term_period_tran_id');
?>
<?php
echo $form->dropDownList($model, 'student_academic_term_period_tran_id', CHtml::listData(AcademicTermPeriod::model()->findAll(), 'academic_terms_period_id', 'academic_term_period'), array('prompt' => 'Select Year'));
?>
<span class="status"> </span>
<?php
echo $form->error($model, 'student_academic_term_period_tran_id');
?>
</div>
</div>
<div class="row">
<div class="row-left">
<?php
echo $form->labelEx($model, 'student_academic_term_name_id');
?>
<?php
echo $form->dropDownList($model, 'student_academic_term_name_id', $acdterm, array('prompt' => 'Select Semester'));
?>
示例11: foreach
<?php
$i = 1;
$m = 1;
$k = 0;
$var = 0;
$out = 0;
$payable = 0;
$payable1 = 0;
$term_id = 0;
$ch_num = "";
$temp = 0;
foreach ($fees as $f) {
$flag = 0;
$columns = array();
$columns['id'] = $m;
$columns['acdm_period'] = AcademicTermPeriod::model()->findByPk($f->fees_academic_period_id)->academic_term_period;
$columns['sem'] = AcademicTerm::model()->findByPk($f->fees_academic_term_id)->academic_term_name;
$columns['method'] = FeesPaymentMethod::model()->findByPk($f->fees_payment_method_id)->fees_payment_method_name;
if ($f->fees_payment_method_id == 1) {
if ($m == 1) {
$term_id = $f->fees_academic_term_id;
}
if ($term_id == $f->fees_academic_term_id) {
$var += FeesPaymentCash::model()->findByPk($f->fees_payment_cash_cheque_id)->fees_payment_cash_amount;
$total = 0;
$student_fees = StudentFeesMaster::model()->findAll('fees_master_table_id = :fees_master_id AND student_fees_master_student_transaction_id = :student_id', array(':fees_master_id' => $f->fees_payment_master_id, ':student_id' => $f->fees_student_id));
//print_r($student_fees); exit;
foreach ($student_fees as $fees_data) {
$total += $fees_data->fees_details_amount;
}
$payable = $total;
示例12: array
?>
</div>
<div class="portlet box blue">
<div class="portlet-title"> Semesters
</div>
<?php
echo CHtml::link('Add New +', array('academicTerm/create'), array('class' => 'btn green'));
?>
<?php
$dataProvider = $model->search();
if (Yii::app()->user->getState("pageSize", @$_GET["pageSize"])) {
$pageSize = Yii::app()->user->getState("pageSize", @$_GET["pageSize"]);
} else {
$pageSize = Yii::app()->params['pageSize'];
}
$dataProvider->getPagination()->setPageSize($pageSize);
?>
<?php
$this->widget('zii.widgets.grid.CGridView', array('id' => 'academic-term-grid', 'dataProvider' => $dataProvider, 'filter' => $model, 'afterAjaxUpdate' => 'reInstallDatepicker', 'selectionChanged' => "function(id){\n\t\twindow.location='" . Yii::app()->urlManager->createUrl('academicTerm/view', array('id' => '')) . "' + \$.fn.yiiGridView.getSelection(id);\n\t}", 'columns' => array(array('header' => 'No.', 'class' => 'IndexColumn'), 'academic_term_name', array('name' => 'academic_term_start_date', 'value' => '($data->academic_term_start_date == 0000-00-00) ? "Not Set" : date_format(new DateTime($data->academic_term_start_date), "d-m-Y")', 'filter' => $this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'academic_term_start_date', 'options' => array('dateFormat' => 'dd-mm-yy', 'changeYear' => 'true', 'changeMonth' => 'true', 'showAnim' => 'slide', 'yearRange' => '1900:' . (date('Y') + 1), 'buttonImage' => Yii::app()->request->baseUrl . '/images/calendar.png'), 'htmlOptions' => array('id' => 'academic_term_start_date')), true)), array('name' => 'academic_term_end_date', 'value' => '($data->academic_term_end_date == 0000-00-00) ? "Not Set" : date_format(new DateTime($data->academic_term_end_date), "d-m-Y")', 'filter' => $this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'academic_term_end_date', 'options' => array('dateFormat' => 'dd-mm-yy', 'changeYear' => 'true', 'changeMonth' => 'true', 'showAnim' => 'slide', 'yearRange' => '1900:' . (date('Y') + 1), 'buttonImage' => Yii::app()->request->baseUrl . '/images/calendar.png'), 'htmlOptions' => array('id' => 'academic_term_end_date')), true)), array('name' => 'academic_term_period_id', 'value' => 'AcademicTermPeriod::model()->findByPk($data->academic_term_period_id)->academic_term_period', 'filter' => CHtml::listData(AcademicTermPeriod::model()->findAll(), 'academic_terms_period_id', 'academic_term_period')), array('class' => 'JToggleColumn', 'name' => 'current_sem', 'filter' => array('1' => 'Yes', '0' => 'No'), 'action' => 'toggle', 'checkedButtonLabel' => Yii::app()->baseUrl . '/images/checked.png', 'uncheckedButtonLabel' => Yii::app()->baseUrl . '/images/unchecked.png', 'labeltype' => 'image', 'htmlOptions' => array('style' => 'text-align:center;min-width:60px;'))), 'pager' => array('class' => 'AjaxList', 'maxButtonCount' => $model->count(), 'header' => '')));
?>
</div>
<?php
Yii::app()->clientScript->registerScript('for-date-picker', "\nfunction reInstallDatepicker(id, data){\n \$('#academic_term_start_date').datepicker({'dateFormat':'dd-mm-yy'});\n\t \$('#academic_term_end_date').datepicker({'dateFormat':'dd-mm-yy'});\n}\n");
?>
示例13: array
<?php
$this->breadcrumbs = array('Miscellaneous Fees Payment' => array('madmin'), 'Manage');
$this->menu = array();
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$.fn.yiiGridView.update('student-transaction-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>
<h1>Select Student</h1>
<!--<p>
You may optionally enter a comparison operator (<b><</b>, <b><=</b>, <b>></b>, <b>>=</b>, <b><></b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>-->
<?php
$dataProvider = $model->search();
$pageSize = Yii::app()->params['pageSize'];
$dataProvider->getPagination()->setPageSize($pageSize);
?>
<?php
$this->widget('zii.widgets.grid.CGridView', array('id' => 'student-transaction-grid', 'dataProvider' => $dataProvider, 'filter' => $model, 'columns' => array(array('header' => 'SN.', 'class' => 'IndexColumn'), array('name' => 'student_enroll_no', 'value' => '$data->Rel_Stud_Info->student_enroll_no'), array('name' => 'student_first_name', 'value' => '$data->Rel_Stud_Info->student_first_name'), array('name' => 'student_middle_name', 'value' => '$data->Rel_Stud_Info->student_middle_name'), array('name' => 'student_last_name', 'value' => '$data->Rel_Stud_Info->student_last_name'), array('name' => 'student_transaction_branch_id', 'value' => 'Branch::model()->findByPk($data->student_transaction_branch_id)->branch_name', 'filter' => CHtml::listData(Branch::model()->findAll(array('condition' => 'branch_organization_id=' . Yii::app()->user->getState('org_id'))), 'branch_id', 'branch_name')), array('name' => 'student_transaction_quota_id', 'value' => 'Quota::model()->findByPk($data->student_transaction_quota_id)->quota_name', 'filter' => CHtml::listData(Quota::model()->findAll(array('condition' => 'quota_organization_id=' . Yii::app()->user->getState('org_id'))), 'quota_id', 'quota_name')), array('name' => 'student_academic_term_period_tran_id', 'value' => 'AcademicTermPeriod::model()->findByPk($data->student_academic_term_period_tran_id)->academic_term_period', 'filter' => CHtml::listData(AcademicTermPeriod::model()->findAll(array('condition' => 'academic_terms_period_organization_id=' . Yii::app()->user->getState('org_id'))), 'academic_terms_period_id', 'academic_term_period')), array('name' => 'student_academic_term_name_id', 'value' => 'AcademicTerm::model()->findByPk($data->student_academic_term_name_id)->academic_term_name', 'filter' => CHtml::listData(AcademicTerm::model()->findAll(array('condition' => ' academic_term_organization_id=' . Yii::app()->user->getState('org_id'))), 'academic_term_id', 'academic_term_name')), array('class' => 'MyCButtonColumn', 'template' => '{Add Fees}', 'buttons' => array('Add Fees' => array('label' => 'Pay Miscellaneous Fees', 'url' => 'Yii::app()->createUrl("miscellaneousFeesPaymentTransaction/create", array("id"=>$data->student_transaction_id))', 'imageUrl' => Yii::app()->baseUrl . '/images/add.jpeg', 'options' => array('class' => 'fees'))))), 'pager' => array('class' => 'AjaxList', 'maxButtonCount' => $model->count(), 'header' => '')));
示例14: array
<?php
//$p=(float)(96.3);
//$a=(float)(3.7);
$acdm_name = AcademicTerm::model()->findByPk($_REQUEST['sem_name_id'])->academic_term_name;
$branch = Branch::model()->findByPk($_REQUEST['branch_id'])->branch_name;
$acdm_period = AcademicTermPeriod::model()->findByPk($_REQUEST['sem_id'])->academic_term_period;
echo '</br><h3 style="color:#3E576F">Attendence Chart of ' . $branch . '-Sem:' . $acdm_name . '(' . $acdm_period . ')</h3>';
if ($present != 0) {
echo "<div id='piechart'>";
echo "<div id=\"container\" style=\"min-width: 400px; height: 400px; margin: 0 auto\"></div>";
$this->Widget('ext.highcharts.HighchartsWidget', array('options' => array('chart' => array('renderTo' => 'container', 'plotBackgroundColor' => '#D5DEE5', 'plotBorderWidth' => null, 'plotShadow' => false), 'title' => array('text' => ''), 'tooltip' => array('formatter' => 'js:function() { return "<b>"+ this.point.name +"</b>: "+ this.percentage +" %"; }'), 'plotOptions' => array('pie' => array('allowPointSelect' => true, 'cursor' => 'pointer', 'dataLabels' => array('enabled' => false, 'color' => '#000000', 'connectorColor' => '#000000', 'formatter' => 'js:function() { return "<b>"+ this.point.name +"</b>:"+this.percentage +" %"; }'))), 'series' => array(array('type' => 'pie', 'name' => 'Browser share', 'data' => array(array('Present Student', round($present, 1)), array('name' => 'Absent Student', 'y' => round($absent, 1), 'sliced' => true, 'selected' => false)))), 'exporting' => array('enabled' => false))));
/*
}
else
{
echo '<h1 align=center style=margin-top:50px;>No chart availble</h1>';
}
*/
?>
</div>
<div id="piecharttable">
<table align=left style="width:300px;" class="table_data">
<th colspan="11" style="font-size: 18px; color: rgb(255, 255, 255);">
Attendence Table<br/>
</th>
<tr class="table_header">
<th>SI No.</th><th>Subject Name</th><th>Attendance %</th>
</tr>
示例15: array
$this->breadcrumbs = array('Report', 'Student Document Search');
?>
<?php
echo CHtml::link('GO BACK', Yii::app()->createUrl('report/StudentDocumentsearch'));
?>
</br></br>
<table border="2px" id="twoColThinTable">
<?php
if ($acdm_period != 0) {
?>
<tr class="row">
<td class="col1">Academic Year</td>
<td class="col2"><?php
echo AcademicTermPeriod::model()->findByPk($acdm_period)->academic_term_period;
?>
</td>
</tr>
<?php
}
if ($sem != 0) {
?>
<tr class="row">
<td class="col1">Semester </td>
<td class="col2"><?php
echo AcademicTerm::model()->findByPk($sem)->academic_term_name;
?>
</td>
</tr>
<?php