当前位置: 首页>>代码示例>>PHP>>正文


PHP StudentInfo类代码示例

本文整理汇总了PHP中StudentInfo的典型用法代码示例。如果您正苦于以下问题:PHP StudentInfo类的具体用法?PHP StudentInfo怎么用?PHP StudentInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了StudentInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: studentSignin

function studentSignin($pdo)
{
    $student_info = new StudentInfo();
    //$student_id = $student_info->generateId();
    $fname = $student_info->firstName();
    $lname = $student_info->lastName();
    session_unset();
    $query = "SELECT * FROM student WHERE student_fname = :fname AND student_lname = :lname";
    $stmt = $pdo->prepare($query);
    $stmt->bindParam(':fname', $fname);
    $stmt->bindParam(':lname', $lname);
    $stmt->execute();
    if ($student_exists = $stmt->fetch()) {
        foreach ($student_exists as $student) {
            $_SESSION['user_id'] = $student['student_id'];
            $_SESSION['f_name'] = $student['student_fname'];
            $_SESSION['l_name'] = $student['student_lname'];
            $_SESSION['theme'] = "red";
            $_SESSION['rank'] = 1;
        }
    } else {
        $student_id = $student_info->generateId();
        $_SESSION['user_id'] = $student_id;
        $_SESSION['f_name'] = $fname;
        $_SESSION['l_name'] = $lname;
        $_SESSION['theme'] = "red";
        $_SESSION['rank'] = 1;
        $query = "INSERT INTO student (student_id, student_fname, student_lname) VALUES (:student_id, :fname, :lname)";
        $stmt = $pdo->prepare($query);
        $stmt->bindParam(':student_id', $student_id, PDO::PARAM_INT);
        $stmt->bindParam(':fname', $fname);
        $stmt->bindParam(':lname', $lname);
        $stmt->execute();
        //$course_id = rand(1,3);
        $query = "SELECT * FROM class";
        // This part can just be replaced with a COUNT function
        $stmt = $pdo->prepare($query);
        $stmt->execute();
        $num_classes = $stmt->rowCount();
        $classes_enrolled = array();
        $classes_enrolled[0] = rand(1, 3);
        while (($i = rand(1, 3)) == $classes_enrolled[0]) {
        }
        $classes_enrolled[1] = $i;
        while (($i = rand(1, 3)) == $classes_enrolled[0] || $i == $classes_enrolled[1]) {
        }
        $classes_enrolled[2] = $i;
        for ($i = 0; $i < 3; $i++) {
            $query = "INSERT INTO enroll (enroll_student_id, enroll_class_id) VALUES (:student_id, :course_id)";
            $stmt = $pdo->prepare($query);
            $stmt->bindParam(':student_id', $student_id);
            $stmt->bindParam(':course_id', $classes_enrolled[$i]);
            $stmt->execute();
        }
    }
    $pdo = null;
}
开发者ID:JosephsPlace,项目名称:Ocena,代码行数:57,代码来源:functions.php

示例2: 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

示例3: array

	</div>
	<div id="site-name">
	<?php 
echo $org[0]['organization_name'];
?>
	</div>

		<li class="dropdown user">

		<?php 
$user = User::model()->findByPk(Yii::app()->user->id)->user_type;
if ($user == 'admin') {
    $username = 'admin';
} else {
    if ($user == 'student') {
        $username = StudentInfo::model()->findByPk(StudentTransaction::model()->findByAttributes(array('student_transaction_user_id' => Yii::app()->user->id))->student_transaction_student_id)->student_first_name;
    } else {
        $username = EmployeeInfo::model()->findByPk(EmployeeTransaction::model()->findByAttributes(array('employee_transaction_user_id' => Yii::app()->user->id))->employee_transaction_employee_id)->employee_first_name;
    }
}
?>
		<a data-close-others="true" data-hover="dropdown" data-toggle="dropdown" class="dropdown-toggle" href="#">
		<?php 
$checkUser = StudentTransaction::model()->findByAttributes(array('student_transaction_user_id' => Yii::app()->user->id));
if ($checkUser) {
    $avtar = StudentPhotos::model()->findByPk($checkUser->student_transaction_student_photos_id)->student_photos_path;
    echo CHtml::image(Yii::app()->baseUrl . '/college_data/stud_images/' . $avtar, 'Student', array('height' => 29, 'width' => '29'));
} else {
    $checkUser = EmployeeTransaction::model()->findByAttributes(array('employee_transaction_user_id' => Yii::app()->user->id));
    if ($checkUser) {
        $avtar = EmployeePhotos::model()->findByPk($checkUser->employee_transaction_emp_photos_id)->employee_photos_path;
开发者ID:sharmarakesh,项目名称:EduSec2.0.0,代码行数:31,代码来源:main.php

示例4: or

	table tr:nth-child(even) { /*(even) or (2n 0)*/
		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)
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:31,代码来源:studentfinalview.php

示例5: foreach

 $flag = 0;
 foreach ($fees_student as $data) {
     //$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;
开发者ID:sharmarakesh,项目名称:edusec-college-management-system,代码行数:31,代码来源:branch_receipt_generate_view.php

示例6: foreach

<th>Date</th>
<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>';
开发者ID:sharmarakesh,项目名称:edusec-college-management-system,代码行数:31,代码来源:date_report_generate_view_pdf.php

示例7:

		<td >
		      <?php 
            echo StudentInfo::model()->findByPk($v['student_transaction_student_id'])->student_enroll_no;
            ?>
		
		</td>
 		<td>
		      <?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 {
开发者ID:sharmarakesh,项目名称:EduSec2.0.0,代码行数:31,代码来源:StudentTransactionExportPdf.php

示例8: array

<?php

$this->breadcrumbs = array('Miscellaneous Fees Payment Transactions' => array('admin'), $model->miscellaneous_trans_id);
$this->menu = array(array('label' => '', 'url' => array('update', 'id' => $model->miscellaneous_trans_id), 'linkOptions' => array('class' => 'Edit', 'title' => 'Update')), array('label' => '', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->miscellaneous_trans_id), 'confirm' => 'Are you sure you want to delete this item?', 'class' => 'Delete', 'title' => 'Delete')), array('label' => '', 'url' => array('admin'), 'linkOptions' => array('class' => 'Manage', 'title' => 'Manage')));
?>

<h1>View Miscellaneous Fees Payment Transaction : <?php 
echo $model->miscellaneous_trans_id;
?>
</h1>

<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('miscellaneous_trans_id', array('name' => 'miscellaneous_fees_id', 'value' => $model->Rel_mfees->miscellaneous_fees_name), array('name' => 'student_fees_id', 'value' => StudentInfo::model()->findByPk($model->Rel_stud->student_transaction_student_id)->student_first_name), 'Amount')));
开发者ID:sharmarakesh,项目名称:edusec-college-management-system,代码行数:13,代码来源:view.php

示例9: array

<?php echo CHtml::link('Back',$_SERVER['HTTP_REFERER'], array('class'=>'btnback'));?>
<?php if($model->student_sms_email_details_schedule_flag==1){
	echo CHtml::link('Edit', array('update' ,'id'=>$model->student_sms_email_id), array('class'=>'btnupdate'));
	echo CHtml::link('Delete', array('delete' ,'id'=>$model->student_sms_email_id), array('class'=>'btndelete','onclick'=>"return confirm('Are you sure want to delete?');"));
}?>
</div>
</div>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		
	array(
                'name'=>'Student',
		'type'=>'raw',
                'value'=> $model->student_id == 0 ? "Not Set" : StudentInfo::model()->findByAttributes(array(
						'student_info_transaction_id' => $model->student_id))->student_first_name,
          ),	
		'message_email_text',
	  array(
                'name'=>'email_sms_status',
		'type'=>'raw',
                'value'=>$model->email_sms_status == 1 ? "SMS" :"Email",
          ),
	
	array('name'=>'created_by',
		'value'=>User::model()->findByPk($model->created_by)->user_organization_email_id,
	),	
	array('name'=>'creation_date',
		 'value'=>($model->creation_date == 0000-00-00) ? 'Not Set' : date_format(new DateTime($model->creation_date), 'd-m-Y'),
	),
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:31,代码来源:view.php

示例10: actionPayfeescheque

 public function actionPayfeescheque()
 {
     $model = new FeesPaymentTransaction();
     $pay_cheque = new FeesPaymentCheque();
     $pay_trans = new FeesPaymentTransaction();
     $receipt = new FeesReceipt();
     if (isset($_POST['FeesPaymentTransaction'])) {
         Yii::app()->user->setState('student_id', $_POST['FeesPaymentTransaction']['student_id']);
         Yii::app()->user->setState('fees_master_id', $_POST['FeesPaymentTransaction']['fees_master_id']);
     }
     // Uncomment the following line if AJAX validation is needed
     $this->performAjaxValidation_cheque(array($model, $pay_cheque));
     if (isset($_POST['FeesPaymentCheque'])) {
         $pay_cheque->attributes = $_POST['FeesPaymentCheque'];
         $cheque_date = $_POST['FeesPaymentCheque']['fees_payment_cheque_date'];
         $chequedate = date("Y-m-d", strtotime($cheque_date));
         $pay_cheque->fees_payment_cheque_date = $chequedate;
         $pay_cheque->fees_payment_cheque_organization_id = Yii::app()->user->getState('org_id');
         if ($pay_cheque->save()) {
             $last_receipt_id = Yii::app()->db->createCommand()->select('MAX(fees_receipt_number) as lastid')->from('fees_receipt')->where('fees_receipt_org_id=:id', array(':id' => Yii::app()->user->getState('org_id')))->queryRow();
             $receipt->fees_receipt_number = $last_receipt_id['lastid'] + 1;
             $receipt->fees_receipt_org_id = Yii::app()->user->getState('org_id');
             $receipt->save();
             $pay_trans->fees_payment_master_id = Yii::app()->user->getState('fees_master_id');
             $pay_trans->fees_payment_method_id = 2;
             $pay_trans->fees_payment_cash_cheque_id = $pay_cheque->fees_payment_cheque_id;
             $pay_trans->fees_receipt_id = $receipt->fees_receipt_id;
             $pay_trans->fees_payment = 1;
             $pay_trans->fees_received_user_id = Yii::app()->user->id;
             $pay_trans->fees_full_part_payment_id = 1;
             $pay_trans->fees_student_id = Yii::app()->user->getState('student_id');
             $pay_trans->fees_payment_transaction_organization_id = Yii::app()->user->getState('org_id');
             $pay_trans->fees_received_date = new CDbExpression('NOW()');
             $stud_trans = StudentTransaction::model()->findByAttributes(array('student_transaction_id' => Yii::app()->user->getState('student_id')));
             $pay_trans->fees_academic_period_id = $stud_trans->student_academic_term_period_tran_id;
             $pay_trans->fees_academic_term_id = $stud_trans->student_academic_term_name_id;
             $pay_trans->save();
             $stud_add_id = $stud_trans->student_transaction_student_address_id;
             $stud_info_id = $stud_trans->student_transaction_student_id;
             $stud_add_mobile = StudentInfo::model()->findByPk($stud_info_id)->student_mobile_no;
             $stud_email_id = StudentInfo::model()->findByPk($stud_info_id)->student_email_id_1;
             $this->redirect(array('create', 'id' => $pay_trans->fees_student_id));
         }
     }
     $this->render('payfeescheque', array('model' => $model, 'pay_cheque' => $pay_cheque));
 }
开发者ID:sharmarakesh,项目名称:edusec-college-management-system,代码行数:46,代码来源:FeesPaymentTransactionController.php

示例11:

                                         echo "<td>&nbsp;</td>";
                                     }
                                 } else {
                                     if ($s == 'city') {
                                         if ($sd['student_transaction_student_address_id'] != 0) {
                                             $add = StudentAddress::model()->findByPk($sd['student_transaction_student_address_id']);
                                             if ($add->student_address_c_city != null) {
                                                 echo "<td style='text-align:center;'>" . City::model()->findByPk($add->student_address_c_city)->city_name . "</td>";
                                             } else {
                                                 echo "<td>&nbsp;</td>";
                                             }
                                         } else {
                                             echo "<td>&nbsp;</td>";
                                         }
                                     } else {
                                         echo "<td style='text-align:center;'>" . StudentInfo::model()->findByPk($sd['student_transaction_student_id'])->{$s} . "</td>";
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
     $i++;
     echo "</tr>";
     $m++;
 }
 echo "</table>";
 echo "</div>";
开发者ID:sharmarakesh,项目名称:EduSec2.0.0,代码行数:31,代码来源:stud_report_view_ravi.php

示例12: foreach

<?php

$student_name = StudentInfo::model()->findByPk(StudentTransaction::model()->findByPk($_REQUEST['id'])->student_transaction_student_id);
$org_id = Yii::app()->user->getState('org_id');
$fees = FeesPaymentTransaction::model()->findAll('fees_student_id=' . $_REQUEST['id'] . ' and  	fees_payment_transaction_organization_id = ' . $org_id);
if (!empty($fees)) {
    ?>
	
		
		
		<?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;
开发者ID:sharmarakesh,项目名称:edusec-college-management-system,代码行数:31,代码来源:all_fees.php

示例13: array

<button style='margin-left:50px;' class='submit' onclick="javascript:window.print()" id="printid1" class="submit">Print</button>

<?php
if(Yii::app()->controller->action->id!="certiview"){
echo CHtml::link('GO BACK', array('certificate/certificategeneration'),array('class'=>'back'));

echo CHtml::button('Save',array('id'=>"printid1",'class'=>'submit','submit' => array('certificate/SaveStudentCertificatedata','stid'=>$stud_info->student_info_transaction_id,'ctype'=>$certificate_type)));
}
else
{

if(!empty($_REQUEST['studid']))	
echo CHtml::link('GO BACK', array('student/studentTransaction/studentcertificate','id'=>$_REQUEST['studid']),array('class'=>'back'));
}
if(!isset($stud_info))
$stud_info = StudentInfo::model()->findByAttributes(array('student_enroll_no'=>$en_no));	

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>";
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:31,代码来源:certificateWithheaderSingle.php

示例14: actionStudentperformance

	public function actionStudentperformance()
	{
	   $id = Yii::app()->user->getState('stud_id');
	   $model=StudentTransaction::model()->findByPk($id);
	   $info = StudentInfo::model()->findByPk($model->student_transaction_student_id);
	   $address = StudentAddress::model()->findByPk($model->student_transaction_student_address_id);
	   $photo = StudentPhotos::model()->findByPk($model->student_transaction_student_photos_id);
	   $lang = LanguagesKnown::model()->findByPk($model->student_transaction_languages_known_id);
	   $stud_qua = new StudentAcademicRecordTrans;
	   $stud_feed = new FeedbackDetailsTable;
	   $studentcertificate=new StudentCertificateDetailsTable;
	   $studentdocstrans=new StudentDocsTrans;
	   $stud_qua=new StudentAcademicRecordTrans;
	   $stud_feed=new FeedbackDetailsTable('mysearch');
	   $parent = new ParentLogin;
		
	   $stud_feed->unsetAttributes();  // clear any default values
		if(isset($_GET['FeedbackDetailsTable']))
			$stud_feed->attributes=$_GET['FeedbackDetailsTable'];

		$this->render('update',array(
			'model'=>$model,'info'=>$info,'photo'=>$photo,'address'=>$address,'lang'=>$lang,'studentdocstrans'=>$studentdocstrans, 'stud_qua'=>$stud_qua,'stud_feed'=>$stud_feed,'flag'=>0,'studentcertificate'=>$studentcertificate,'parent'=>$parent
		));
	}
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:24,代码来源:ParentController.php

示例15: loadAllNotice

      public function loadAllNotice($list)
      {
	$menu = null;
	foreach($list as $notice) {
       	$menu .= '<div class="notify-data notifiche">';
	$menu .='<span class="username">'; 
	$menu .=$notice->title;
	$menu .='</span></br>';
	$menu .='<span class="notice-lable"><b>From</b></span><span class="notice-content">';
	$menu .=(User::model()->findByPk($notice->from)->user_type=='employee')?(EmployeeInfo::model()->findByAttributes(array('employee_info_transaction_id'=>(EmployeeTransaction::model()->findByAttributes(array('employee_transaction_user_id'=>$notice->from))->employee_transaction_id)))->employee_first_name):(StudentInfo::model()->findByAttributes(array('student_info_transaction_id'=>(StudentTransaction::model()->findByAttributes(array('student_transaction_user_id'=>$notice->from))->student_transaction_id)))->student_first_name); 	 
	$menu .='</span><span class="notice-lable"><b>Content</b></span>'; 
	$menu .='<span class="notice-content">'.$notice->content.'</span></div>'; 	
	}

	return $menu;

      }
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:17,代码来源:EmployeeNotification.php


注:本文中的StudentInfo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。