public static function getOptions($no_select = null) { $model = Branch::model()->findAll(); $arr = array(); if ($no_select == true) { $arr[] = '--- ไม่เลือกรายการ ---'; } foreach ($model as $r) { $arr[$r->branch_id] = $r->branch_name; } return $arr; }
protected function renderContent() { $id = Yii::app()->user->getState('org_id'); if (!empty($id)) { $branch = Yii::app()->db->createCommand()->selectDistinct('branch_id')->from('attendence att')->join('academic_term ac', 'ac.academic_term_id = att.sem_name_id')->where("ac.current_sem=1 AND ac.academic_term_organization_id=" . $id)->queryAll(); /*$branch = Yii::app()->db->createCommand() ->selectDistinct('branch_id') ->from('attendence') //->order('branch_id DESC') ->where('attendence_organization_id='.$id) ->queryAll();*/ $attendence = Yii::app()->db->createCommand()->select('count(attendence)')->from('attendence att')->group('branch_id')->join('academic_term ac', 'ac.academic_term_id = att.sem_name_id')->where('ac.current_sem=1 AND att.attendence="P" and att.attendence_organization_id=' . $id)->queryAll(); $all = Yii::app()->db->createCommand()->select('count(attendence)')->from('attendence att')->group('branch_id')->join('academic_term ac', 'ac.academic_term_id = att.sem_name_id')->where('ac.current_sem=1 AND att.attendence_organization_id=' . $id)->queryAll(); $xaxis = array(); $yaxis = array(); //print_r($all[0]['count(attendence)']); foreach ($branch as $xvalue) { foreach ($xvalue as $x) { $xaxis[] = Branch::model()->findByPk($x)->branch_name; } } $i = 0; foreach ($attendence as $yvalue) { foreach ($yvalue as $y) { $yaxis[] = round($y * 100 / $all[$i]['count(attendence)'], 2); } $i += 1; } if (!empty($branch)) { echo "<div id=\"container\" style=\"min-width: 00px; height: 230px; margin: 0 auto\"></div>"; for ($i = 0; $i < count($xaxis); $i++) { $t = 0; $n[$i][$t] = $xaxis[$i]; $n[$i][$t + 1] = $yaxis[$i]; } //print_r($n); //print_r($m); //$l = array_combine($n,$m); //print_r($l); $this->Widget('ext.highcharts.HighchartsWidget', array('options' => array('chart' => array('renderTo' => 'container', 'type' => 'column'), 'title' => array('text' => 'Branch Wise Attendence'), 'xAxis' => array('categories' => $xaxis), 'yAxis' => array('min' => 0, 'max' => 100, 'title' => array('text' => 'Attendence')), 'legend' => array('layout' => 'vertical', 'backgroundColor' => '#FFFFFF', 'align' => 'left', 'verticalAlign' => 'top', 'x' => 100, 'y' => 70, 'floating' => true, 'shadow' => true), 'tooltip' => array('formatter' => 'js:function() { return "<b>"+ this.x +"</b>: "+ this.y +" Per"; }'), 'plotOptions' => array('column' => array('pointPadding' => 0.2, 'borderWidth' => 0)), 'series' => array(array('data' => $n))))); } } }
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)); }
?> </legend> <div class="row"> <?php echo $form->labelEx($model, 'app_subject'); ?> <?php echo $form->textArea($model, 'app_subject'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'calendarID'); ?> <?php echo $form->dropDownList($model, 'calendarID', CHtml::listData(Branch::model()->findAll(['scopes' => 'active']), 'bra_id', 'bra_title')); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'app_user'); ?> <?php echo $form->dropDownList($model, 'app_user', CHtml::listData(User::model()->findAll("use_status='Active'"), 'use_id', 'fullName')); ?> </div> <div class="row"> <label>Attendees</label> <input type="button" value="Select attendees" id="selectAttendees"> </div> <div class="row">
echo $form->error($model, 'student_academic_term_name_id'); ?> </div> </div> <div class="row"> <div class="row-left"> <?php echo $form->labelEx($model, 'student_transaction_branch_id'); ?> <?php echo $form->dropDownList($model, 'student_transaction_branch_id', CHtml::listData(Branch::model()->findAll(array('condition' => 'branch_organization_id=' . $org_id)), 'branch_id', 'branch_name'), array('prompt' => '-----------Select-----------', 'tabindex' => 11, 'ajax' => array('type' => 'POST', 'url' => CController::createUrl('dependent/getStudDivision'), 'dataType' => 'json', 'success' => 'function(data) { $("#StudentTransaction_student_transaction_division_id").html(data.div); $("#StudentTransaction_student_transaction_batch_id").html(data.bat); }'))); ?> <span class="status"> </span> <?php echo $form->error($model, 'student_transaction_branch_id'); ?> </div> <div class="row-right"> <?php echo $form->labelEx($model, 'student_transaction_division_id');
function actionReportSalePerDayPdf() { $params = array(); $result = TempSalePerDay::model()->findAll(); $date_find = Yii::app()->session['date_find']; if (!empty($result)) { $branch_id = Yii::app()->session['branch_id']; $params['result'] = $result; $params['date_find'] = Util::mysqlToThaiDate($date_find); $params['sale_condition_cash'] = Yii::app()->session['sale_condition_cash']; $params['sale_condition_credit'] = Yii::app()->session['sale_condition_credit']; $params['has_bonus_no'] = Yii::app()->session['has_bonus_no']; $params['has_bonus_yes'] = Yii::app()->session['has_bonus_yes']; $params['n'] = 1; $params['branch'] = Branch::model()->findByPk((int) $branch_id); } $this->render('//Report/ReportSalePerDayPdf', $params); }
if(isset($branch) ) { ?> <div class="portlet box yellow" style="width:100%;margin-top:20px;"> <i class="icon-reorder"></i> <div class="portlet-title"><span class="box-title">Batchwise Student History Report</span> <div class="operation"> <?php echo CHtml::link('Excel', array('BranchwiseAllStudentsFeesDetailInfoReport','excel'=>'excel','Year[year]'=>$year, 'FeesPaymentTransaction[fees_student_branch_id]'=>$branch), array('class'=>'btnblue'));?> </div> </div> <div class="portlet-body" > <?php $org = Organization::model()->findAll(); $org_data=$org[0]; $branch_model=Branch::model()->findByPk($branch); $yr=Year::model()->findByPk($year); ?> <?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)
<!--Content div--> <div class="front_content"> <div class="contentpic"> <?php echo CHtml::image(Yii::app()->baseUrl . "/college_data/stud_images/" . $studphoto, "no-images", array("width" => "60px", "height" => "60px")); ?> </div> <div class="contentinfo"> <?php foreach ($selected_list as $key => $value) { if ($key == 'quota_name') { $field_value = Quota::model()->findByPk($stud['student_transaction_quota_id'])->quota_name; } else { if ($key == 'branch_name') { $field_value = Branch::model()->findByPk($stud['student_transaction_branch_id'])->branch_name; } else { if ($key == 'division_code') { $field_value = Division::model()->findByPk($stud['student_transaction_division_id'])->{$key}; } else { if ($key == 'sem') { $field_value = AcademicTerm::model()->findByPk($stud['student_academic_term_name_id'])->academic_term_name; } else { if ($key == 'student_first_name') { $lname = $StudentInfo->student_last_name; $fname = $StudentInfo->student_first_name; $mname = $StudentInfo->student_middle_name; $label = $value; $field_value = $lname . " " . $fname . " " . $mname; } else { $field_value = $stud[$key];
</tr> <tr class="row"> <td class="col1">ACPC Admission Date </td> <td class="col2"> <?php echo date('d-m-Y',strtotime($stud_trans[0]['student_adm_date'])) ;?></td> </tr> <tr class="row"> <td class="col1">Enrollment No. </td> <td class="col2"><?php echo $stud_trans[0]['student_enroll_no'];?></td> </tr> <tr class="row"> <td class="col1">Roll No. </td> <td class="col2"> <?php echo $stud_trans[0]['student_roll_no'];?></td> </tr> <tr class="row"> <td class="col1">Branch </td> <td class="col2"><?php echo Branch::model()->findByPk($stud_trans[0]['student_transaction_branch_id'])->branch_name;?></td> </tr> <tr class="row"> <td class="col1"> <?php $sem = AcademicTerm::model()->findByPk($stud_trans[0]['student_academic_term_name_id'])->academic_term_name; $acdm_period = AcademicTermPeriod::model()->findByPk($stud_trans[0]['student_academic_term_period_tran_id'])->academic_term_period;?> Current/Last Semester </td> <td class="col2"> <?php echo "Sem-".$sem; ?></td> </tr> <tr class="row"> <td class="col1">Current/Passing Academic Year </td> <td class="col2"><?php echo $acdm_period ?></td> </tr> <tr class="row"> <td class="col1">Quota </td>
echo $form->textFieldGroup($model, 'patronymic', ['widgetOptions' => ['htmlOptions' => ['class' => 'popover-help', 'data-original-title' => $model->getAttributeLabel('patronymic'), 'data-content' => $model->getAttributeDescription('patronymic')]]]); ?> </div> <div class="col-sm-3"> <?php echo $form->textFieldGroup($model, 'phone', ['widgetOptions' => ['htmlOptions' => ['class' => 'popover-help', 'data-original-title' => $model->getAttributeLabel('phone'), 'data-content' => $model->getAttributeDescription('phone')]]]); ?> </div> <div class="col-sm-3"> <?php echo $form->textFieldGroup($model, 'create_date', ['widgetOptions' => ['htmlOptions' => ['class' => 'popover-help', 'data-original-title' => $model->getAttributeLabel('create_date'), 'data-content' => $model->getAttributeDescription('create_date')]]]); ?> </div> <div class="col-sm-3"> <?php echo $form->dropDownListGroup($model, 'branch_id', ['widgetOptions' => ['data' => CHtml::listData(Branch::model()->findAll(), 'id', 'name')]]); ?> </div> <div class="col-sm-3"> <?php echo $form->textFieldGroup($model, 'email', ['widgetOptions' => ['htmlOptions' => ['class' => 'popover-help', 'data-original-title' => $model->getAttributeLabel('email'), 'data-content' => $model->getAttributeDescription('email')]]]); ?> </div> <div class="row"> <div class="col-sm-3"> <?php echo $form->dropDownListGroup($model, 'status', ['widgetOptions' => ['data' => $model->getStatusList(), 'htmlOptions' => ['empty' => '--Все--']]]); ?> </div> </div> </div>
<?php echo "Sem-" . $ac['academic_term_name']; ?> </th> <?php } ?> </tr> <?php foreach ($branch as $b) { if ($m % 2 == 0) { $class = "odd"; } else { $class = "even"; } echo "<tr class=" . $class . ">"; echo "<td align=center><b>" . Branch::model()->findByPk($b['branch_id'])->branch_name . "</b></td>"; foreach ($acdm_name as $ac1) { echo "<td align=center><u>" . CHtml::link('View Chart', array('attendence/DisplayChart', 'sem_id' => $acdm_period, 'sem_name_id' => $ac1['academic_term_id'], 'branch_id' => $b['branch_id']), array('target' => '_blank')) . "</u></td>"; } echo "</tr>"; $m++; } echo "</table>"; } else { print "<h1 style=\"color:red;text-align:center\">No Record To Display</h1>"; } ?>
function actionBranchDelete($id) { $this->checkLogin(); Branch::model()->deleteByPk((int) $id); $this->redirect(array('BranchIndex')); }
<td class="col2"><?php echo $div_model->division_code; ?> </td> </tr> <tr class="row"> <td class="col1">Semester </td> <td class="col2"> <?php echo $acd_model->academic_term_name; ?> </td> </tr> <tr class="row"> <td class="col1"> Branch </td> <td class="col2"><?php echo Branch::model()->findByPk($div_model->branch_id)->branch_name; ?> </td> </tr> </table></br> <?php echo '<table class="table_data" > <tr class="table_header"><th>SI No.</th><th>Subject Name</th><th>Total</th><th>Present</th><th>Attendance %</th></tr>'; for ($i = 0; $i < count($subject); $i++) { if ($m % 2 == 0) { $class = "odd"; } else { $class = "even";
'data'=>$model, 'attributes'=>array( //'student_attendence_email_id', array( 'name'=>'employee_first_name', 'value'=> EmployeeInfo::model()->findByAttributes(array( 'employee_info_transaction_id' => $model->student_attendence_email_emp_id))->employee_first_name, ), array( 'name'=>'employee_last_name', 'value'=> EmployeeInfo::model()->findByAttributes(array( 'employee_info_transaction_id' => $model->student_attendence_email_emp_id))->employee_last_name, ), array( 'name'=>'branch_name', 'value'=> ($model->student_attendence_email_branch_id==0)?"All Branch":Branch::model()->findByPk($model->student_attendence_email_branch_id)->branch_name, ), array( 'name'=>'employee_transaction_designation_id', 'value'=> EmployeeDesignation::model()->findByPk($model->rel_emp_tran->employee_transaction_designation_id)->employee_designation_name, ), 'student_attendence_email_minute', 'student_attendence_email_hour', array( 'name'=>'student_attendence_email_org_id', 'value'=> Organization::model()->findByPk($model->student_attendence_email_org_id)->organization_name, ), array( 'name'=>'student_attendence_email_created_by',
} </style> <?php $org_id = Yii::app()->user->getState('org_id'); $fees = FeesPaymentTransaction::model()->findAll('fees_student_id=' . $info_model[0]['student_transaction_id'] . ' and fees_payment_transaction_organization_id = ' . $org_id); if (empty($fees)) { echo "<div class=\"block-error\">"; echo "No fees record available for this student."; echo "</div>"; } else { $i = 1; echo "<h5>Student Roll Number : " . $info_model[0]['student_roll_no'] . "</h5>"; echo "<h5>Student Enrollment Number : " . $info_model[0]['student_enroll_no'] . "</h5>"; echo "<h5>Student Name : " . $info_model[0]['student_first_name'] . ' ' . $info_model[0]['student_middle_name'] . ' ' . $info_model[0]['student_last_name'] . "</h5>"; echo "<h5>Branch: " . Branch::model()->findByPk($info_model[0]['student_transaction_branch_id'])->branch_name . "</h5>"; echo "<h5>Current Semester: " . AcademicTerm::model()->findByPk($info_model[0]['student_academic_term_name_id'])->academic_term_name . "</h5>"; ?> <table border="1"> <tr class="table_header"> <th> Sr No. </th> <th> Academic Year </th> <th> Semester </th> <th>
<?php /** * @var Branch[] $branches * @var $this BookAViewing * @var $model Deal */ /** @var $branch Branch */ $branch = Branch::model()->findByPk($model->dea_branch); $property = new PropertyController($model->dea_id); $propertyStatus = $property->getStatusString($model->dea_status, $model->dea_type); $name = isset($_POST['contact']['name']) ? $_POST['contact']['name'] : ""; $email = isset($_POST['contact']['email']) ? $_POST['contact']['email'] : ""; $phoneNumber = isset($_POST['contact']['tel']) ? $_POST['contact']['tel'] : ""; $message = isset($_POST['contact']['message']) ? $_POST['contact']['message'] : ""; ?> <div class="top-widget-container narrow book-viewing-widget"> <div class="inner-padding"> <div class="row-fluid"> <div class="form-header">Arrange Viewing</div> <div class="branch-name"><?php echo $branch->bra_title; ?> </div> <div class="branch-telephone"><?php echo Locale::formatPhone($branch->bra_tel); ?> </div> </div> <?php
<th>Amount Type</th> <th>Bank Name</th> <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>';
<style type="text/css"> .saveLastContacted { cursor: pointer; } </style> <?php /** * @var $this InstructionController * @var $dataProvider CSqlDataProvider * @var $form AdminFilterForm */ $this->pageTitle = 'Vendor Care'; $form = $this->beginWidget('AdminForm', array('action' => $this->createUrl('vendorCare'), 'id' => 'vendor-care-filter-form', 'method' => 'get')); $activeBranches = CHtml::listData(Branch::model()->active()->findAll(), 'bra_id', 'bra_title'); ?> <fieldset> <div class="block-header">Search</div> <div class="content"> <div class="control-group"> <label class="control-label"> Branch <input type="checkbox" id="branch-trigger" checked="checked"> </label> <div class="controls"> <?php echo CHtml::checkBoxList('Deal[dea_branch]', isset($_GET['Deal']['dea_branch']) ? $_GET['Deal']['dea_branch'] : array_keys($activeBranches), $activeBranches, ['class' => 'branch-checkbox deal_branch', 'separator' => ' ']); ?> </div> <div class="block-buttons force-margin"> <?php
</div> <div class="row"> <div class="row-left"> <?php echo $form->labelEx($model,'Category',array('class'=>'lbl_header')); ?> <?php echo $form->labelEx($model,Category::model()->findByPK($model->student_category_id)->category_name); ?> </div> <div class = "row-right"> <?php echo $form->labelEx($model,'Gender',array('class'=>'lbl_header')); ?> <?php echo $form->labelEx($model,$model->student_gender); ?> </div> </div> <div class="row"> <div class = "row-left"> <?php echo $form->labelEx($model,'Branch',array('class'=>'lbl_header')); ?> <label><?php echo Branch::model()->findByPk($model->student_branch_id)->branch_name; ?></label> </div> <div class = "row-right"> <?php echo $form->labelEx($model,'Board',array('class'=>'lbl_header')); ?> <?php echo $form->labelEx($model,$model->student_board); ?> </div> </div> <div class="row"> <div class = "row-left"> <?php echo $form->labelEx($model,'Date of Birth',array('class'=>'lbl_header')); ?> <?php echo $form->labelEx($model,($model->student_dob == 0000-00-00) ? "Not Set" : date_format(new DateTime($model->student_dob), "d-m-Y")); ?> </div> <div class = "row-right"> <?php echo $form->labelEx($model,'Place of Birth',array('class'=>'lbl_header')); ?> <?php echo $form->labelEx($model,$model->student_place_of_birth); ?> </div>
<div class="row"> <?php echo $form->label($model, 'student_archive_ac_t_p_id'); ?> <?php echo $form->textField($model, 'student_archive_ac_t_p_id'); ?> </div> --> <div class="row"> <?php echo $form->labelEx($model, 'student_archive_branch_id'); ?> <?php echo $form->dropDownList($model, 'student_archive_branch_id', CHtml::listData(Branch::model()->findAll(array('condition' => 'branch_organization_id=' . Yii::app()->user->getState('org_id'))), 'branch_id', 'branch_name'), array('empty' => 'Select Branch', 'tabindex' => 1)); ?> <?php echo $form->error($model, 'student_archive_branch_id'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'student_archive_ac_t_p_id'); ?> <?php echo $form->dropDownList($model, 'student_archive_ac_t_p_id', AcademicTermPeriod::items(), array('prompt' => 'Select Year', 'tabindex' => 2, 'ajax' => array('type' => 'POST', 'url' => CController::createUrl('dependent/getStudentArchiveAcademicTerm'), 'update' => '#StudentArchiveTable_student_archive_ac_t_n_id'))); ?> <span class="status"> </span> <?php
<?php echo $form->dropDownListGroup($model, 'status', ['widgetOptions' => ['data' => $model->getStatusList()]]); ?> </div> </div> <div class="row"> <div class="col-sm-7"> <?php echo $form->dropDownListGroup($model, 'email_confirm', ['widgetOptions' => ['data' => $model->getEmailConfirmStatusList()]]); ?> </div> </div> <div class="row"> <div class="col-sm-7"> <?php echo $form->dropDownListGroup($model, 'branch_id', ['widgetOptions' => ['data' => CHtml::listData(Branch::model()->findAll(), 'id', 'fullName'), 'htmlOptions' => ['empty' => '--выберите--', 'encode' => false]]]); ?> </div> </div> <?php $this->widget('bootstrap.widgets.TbButton', ['buttonType' => 'submit', 'context' => 'primary', 'label' => $model->isNewRecord ? Yii::t('UserModule.user', 'Create user and continue') : Yii::t('UserModule.user', 'Save user and continue')]); ?> <?php $this->widget('bootstrap.widgets.TbButton', ['buttonType' => 'submit', 'htmlOptions' => ['name' => 'submit-type', 'value' => 'index'], 'label' => $model->isNewRecord ? Yii::t('UserModule.user', 'Create user and close') : Yii::t('UserModule.user', 'Save user and close')]); ?> <?php $this->endWidget();
<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'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'branch_id'); ?> <?php echo $form->dropDownList($model,'branch_id', CHtml::listData(Branch::model()->findAll(),'branch_id','branch_name'), array( 'tabindex'=>3,'empty' => 'Select Branch', 'ajax' => array( 'type'=>'POST', 'url'=>CController::createUrl('dependent/getattendancediv'), 'update'=>'#Attendence_div_id', //selector to update ))); ?><span class="status"> </span> <?php echo $form->error($model,'branch_id'); ?> </div> <div class="row"> <?php echo $form->labelEx($model,'div_id'); ?> <?php echo $form->dropDownList($model,'div_id', array(), array('empty' => 'Select Division','tabindex'=>4)); ?><span class="status"> </span> <?php echo $form->error($model,'div_id'); ?> </div> <div class="row buttons">
//$stud_trans = StudentTransaction::model()->findByPk($data['fees_student_id']); if (!empty($branch1)) { if (!empty($div)) { $stud_trans = StudentTransaction::model()->findByAttributes(array('student_transaction_id' => $data['fees_student_id'], 'student_transaction_branch_id' => $branch1, 'student_transaction_division_id' => $div)); } else { $stud_trans = StudentTransaction::model()->findByAttributes(array('student_transaction_id' => $data['fees_student_id'], 'student_transaction_branch_id' => $branch1)); } } else { $stud_trans = StudentTransaction::model()->findByPk($data['fees_student_id']); } if (empty($stud_trans)) { continue; } $stud_model = StudentInfo::model()->findByAttributes(array('student_id' => $stud_trans['student_transaction_student_id'])); $sem_name = AcademicTerm::model()->findByPk($data['fees_academic_term_id']); $branch = Branch::model()->findByPk($stud_trans['student_transaction_branch_id']); $acd_term = AcademicTermPeriod::model()->findByPk($data['fees_academic_period_id']); $field1 = '-'; $field2 = '-'; $field3 = '-'; $field4 = '-'; $field5 = 'CASH'; if ($data['fees_payment_method_id'] == 1) { $cash_amt = FeesPaymentCash::model()->findByPk($data['fees_payment_cash_cheque_id']); $amount = $cash_amt->fees_payment_cash_amount; } else { $cash_amt = FeesPaymentCheque::model()->findByPk($data['fees_payment_cash_cheque_id']); $amount = $cash_amt->fees_payment_cheque_amount; $field1 = $cash_amt->fees_payment_cheque_number; $date = date_create($cash_amt->fees_payment_cheque_date); $field2 = date_format($date, 'd-m-Y');
?> <?php $boardChangesUrl = $this->createUrl('instruction/showChangeLogs', ['instructionId' => $model->dea_id, 'columnName' => 'dea_boardtype']); echo CHtml::button('History', ['onClick' => "popupWindow('" . $boardChangesUrl . "')", 'class' => 'btn btn-gray']); ?> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $form->controlLabel($model, 'dea_branch'); ?> </label> <div class="controls"> <?php echo $form->dropDownList($model, 'dea_branch', CHtml::listData(Branch::model()->active()->findAll(), 'bra_id', 'bra_title')); ?> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $form->controlLabel($model, 'dea_neg'); ?> </label> <div class="controls"> <?php $negotiatorList = CHtml::listData(User::model()->onlyActive()->alphabetically()->findAll(), 'use_id', 'fullName'); ?> <?php echo $form->dropDownList($model, 'dea_neg', $negotiatorList, ['empty' => 'Unassigned']);
/** * Updates a particular model. * If update is successful, the browser will be redirected to the 'view' page. * @param integer $id the ID of the model to be updated */ public function actionUpdate($id) { $model = $this->loadModel($id); // Uncomment the following line if AJAX validation is needed $this->performAjaxValidation($model); if (isset($_POST['Division'])) { $model->attributes = $_POST['Division']; $model->division_code = ''; $divname = $model->division_name; $branch_code = Branch::model()->findByPk($model->branch_id)->branch_alias; $acdm_name = AcademicTerm::model()->findByPk($model->academic_name_id)->academic_term_name; $concatdivname = $divname . '-' . $branch_code . '-' . $acdm_name; $model->division_code = $concatdivname; if ($model->save()) { $this->redirect(array('admin')); } //$this->redirect(array('view','id'=>$model->division_id)); } $this->render('update', array('model' => $model)); }
/** * Возвращает модель по указанному идентификатору * Если модель не будет найдена - возникнет HTTP-исключение. * * @param integer идентификатор нужной модели * * @return void */ public function loadModel($id) { $model = Branch::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, Yii::t('BranchModule.branch', 'Запрошенная страница не найдена.')); } return $model; }
} else { if(!empty($_REQUEST['studid'])) echo CHtml::link('GO BACK', array('student/studentTransaction/studentcertificate','id'=>$_REQUEST['studid']),array('class'=>'btnback')); } foreach($studModel as $list) { $stud_info = StudentInfo::model()->findByAttributes(array('student_info_transaction_id'=>$list['student_transaction_id'])); if($stud_info) { $trans = StudentTransaction::model()->findByPk($stud_info->student_info_transaction_id); $titl = "<b>".$stud_info->title."</b>"; $name = "<b>".$stud_info->student_first_name." ".$stud_info->student_middle_name." ".$stud_info->student_last_name."</b>"; $smobile = "<b>".$stud_info->student_mobile_no."</b>"; $pmobile = "<b>".$stud_info->student_guardian_mobile."</b>"; $branch_model=Branch::model()->findByPk($trans->student_transaction_branch_id); $en_no = "<b>".$stud_info->student_enroll_no."</b>"; $branch = "<b>".$branch_model->branch_name."</b>"; $sem = "<b>Sem-".AcademicTerm::model()->findByPk($trans->student_academic_term_name_id)->academic_term_name."</b>"; if($trans->student_transaction_division_id != 0) $div = "<b>".Division::model()->findByPk($trans->student_transaction_division_id)->division_name."</b>"; else $div = '-'; $photos=StudentPhotos::model()->findByPk($trans->student_transaction_student_photos_id)->student_photos_path; $photo=CHtml::image(Yii::app()->request->baseUrl.'/college_data/stud_images/'.$photos,'image',array('width'=>120,'height'=>140,'class'=>'photo','style'=>'padding-right:0px;','border'=>1)); $gender = "<b>".$stud_info->student_gender."</b>"; $cdate = "<b>".date('d/m/Y')."</b>"; if($trans->student_transaction_category_id !=0) $category = "<b>".Category::model()->findByPk($trans->student_transaction_category_id)->category_name."</b>"; else $category = "<b>not set</b>";
), array('name'=>'student_archive_ac_t_p_id', 'value'=>'AcademicTermPeriod::model()->findByPk($data->student_archive_ac_t_p_id)->academic_term_period', 'filter' =>CHtml::listData(AcademicTermPeriod::model()->findAll(), 'academic_terms_period_id','academic_term_period'), ), array('name'=>'student_archive_ac_t_n_id', 'value'=>'AcademicTerm::model()->findByPk($data-> student_archive_ac_t_n_id)->academic_term_name', 'filter' =>CHtml::listData(AcademicTerm::model()->findAll(), 'academic_term_id','academic_term_name','academicTermPeriod.academic_term_period'), ), array('name' => 'status_name', 'value' => '$data->Rel_Status->status_name', ), array('name'=>'student_archive_branch_id', 'value'=>'Branch::model()->findByPk($data->student_archive_branch_id)->branch_name', 'filter' =>CHtml::listData(Branch::model()->findAll(), 'branch_id','branch_name'), ), ), 'pager'=>array( 'class'=>'AjaxList', 'maxButtonCount'=>$model->count(), 'header'=>'' ), )); ?> </div>
</table> </div> </div> <?php echo $form->beginControlGroup($model, 'dea_ptype'); ?> <?php echo $form->controlLabel($model, 'dea_ptype'); ?> <div class="controls"> <?php echo $form->checkBoxListWithSelectOnLabel($model, 'dea_ptype', Chtml::listData(PropertyType::model()->getTypes(), 'pty_id', 'pty_title'), ['separator' => ' ']); ?> <label style="display:inline-block; margin-left:28px;float:none; margin-right:12px; font-weight: bold">Branch</label> <?php echo $form->checkBoxListWithSelectOnLabel($model, 'dea_branch', CHtml::listData(Branch::model()->active()->findAll(), 'bra_id', 'bra_title'), ['separator' => ' ']); ?> </div> <?php echo $form->endControlGroup(); ?> <div class="control-group"> <label class="control-label"> Negotiator </label> <div class="controls"> <label><?php echo $form->radioButton($model, 'dea_neg', ['value' => Yii::app()->user->id, 'uncheckValue' => null]); ?>
$class = "even"; } ?> <tr class="<?php echo $class; ?> "> <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>