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


PHP Batch::model方法代码示例

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


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

示例1: array

.required{
   display:none;
}
.row{
   width:50%;	
}
</style>
<div class="portlet box blue">
<i class="icon-reorder"></i>
 <div class="portlet-title"><span class="box-title">Select Criterias</span>
</div>
<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<div class="row">
	<?php echo $form->labelEx($model,''); ?>
	<?php echo $form->dropDownList($model,'student_transaction_batch_id',CHtml::listData(Batch::model()->findAll(),'batch_id','batch_code'),array('empty' => 'Select Batch','tabindex'=>1));?>
	</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton('Search',array('class'=>'submit')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->
</div>
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:30,代码来源:_search_form.php

示例2:

	echo '<td>';
		echo ++$m;
	echo '</td>';
	
	$stud_tran=StudentTransaction::model()->findByPk($s);	
	$stud_name=StudentInfo::model()->findByAttributes(array('student_info_transaction_id'=>$s));		
	echo '<td>';
		if(!empty($stud_name->student_enroll_no))	
    			echo $stud_name->student_enroll_no;
		else
			echo 'Not Set';
	echo '</td>';	
	$batch='';
	echo '<td colspan=5 align=left>';
	if($stud_tran->student_transaction_batch_id!=0)
	$batch=	Batch::model()->findByPk($stud_tran->student_transaction_batch_id)->batch_code;		
	echo $stud_name->student_first_name.' '.$stud_name->student_last_name.' ( '.$stud_name->student_roll_no.' )'.'('.$batch.')';	
	echo '</td>';
	$cs=0;	
	for($l=0;$l<count($lectures);$l++)
	{	
	  if($lectures[$l]!=0)
	  {
	    if($cols[$l]>1)
	    {
	       $count=$comb_subject[$cs];	
	       $cols_l=$cols[$l];		  
	       print "<td colspan=".$cols_b.">";
	       $t = $count - 1;	
		for($j=0;$j<$count;$j++)
	        {
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:31,代码来源:daily_divisionwise_stud_attendence_report_excel.php

示例3: array

		  
	              'value' => '$data->Rel_Stud_Info->student_roll_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_batch_id',
			'value'=>'($data->student_transaction_batch_id==0)?"":Batch::model()->findByPk($data->student_transaction_batch_id)->batch_code',
			'filter' =>CHtml::listData(Batch::model()->findAll(),'batch_id','batch_code'),
		), 

	),
	'pager'=>array(
		'class'=>'AjaxList',
	//	'maxButtonCount'=>25,
		'maxButtonCount'=>$model->count(),
		'header'=>''
	    ),

)); ?></div>
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:29,代码来源:all_student.php

示例4: array

?>
<span class="status">&nbsp;</span>
		<?php 
echo $form->error($model, 'student_transaction_division_id');
?>
	</div>

 </div>
 <div class="row">
	<div class="row-left">
        <?php 
echo $form->labelEx($model, 'student_transaction_batch_id');
?>
        <?php 
if (isset($model->student_transaction_batch_id)) {
    echo $form->dropDownList($model, 'student_transaction_batch_id', CHtml::listData(Batch::model()->findAll(array('condition' => 'branch_id=' . $model->student_transaction_branch_id . ' and batch_organization_id=' . $org_id . ' and div_id=' . $model->student_transaction_division_id)), 'batch_id', 'batch_code'));
} else {
    echo $form->dropDownList($model, 'student_transaction_batch_id', array('empty' => '-----------Select---------'), array('tabindex' => 13));
}
?>
<span class="status">&nbsp;</span>
        <?php 
echo $form->error($model, 'student_transaction_batch_id');
?>
	</div>

	<div class="row-right">
        <?php 
echo $form->labelEx($model, 'student_transaction_shift_id');
?>
        <?php 
开发者ID:sharmarakesh,项目名称:edusec-college-management-system,代码行数:31,代码来源:_tab1.php

示例5: array

</div>
</div>
<?php
 $form=$this->beginWidget('CActiveForm', array(
	'id'=>'attendence-form',
	'htmlOptions'=>array('enctype'=>'multipart/form-data'),
	//'enableAjaxValidation'=>false,
	 'stateful'=>true,
	//'clientOptions'=>array('validateOnSubmit'=>true),
)); ?>

</style>
<table  class="report-table" width = 100%>
	<tr>
	<th><input type="checkbox" class="checkall"></th>
	<th  colspan = 3>Batch : <?php if($_REQUEST['batch'] != 0) echo Batch::model()->findByPk($_REQUEST['batch'])->batch_code ;?> </br>
	Subject : <?php echo SubjectMaster::model()->findByPk($_REQUEST['subject_id'])->subject_master_name ;?> </th></tr>
	 <tr class="table_header">
	    <th>P/A</th>
	    <th> Roll No </th>
	    <th> Name </th>

	</tr>	
<?php 
	$count = 0;
	$count = count($row1);
	
	for($i=0;$i<count($row1);$i++)
	{
	   $stud_id = $row1[$i]['student_transaction_id'];
	   $name_lable = $row1[$i]['student_first_name'].' '.$row1[$i]['student_middle_name'].' '.$row1[$i]['student_last_name'];
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:31,代码来源:show_student_view.php

示例6:

<?php    
		$i=1;
		$course_fees=$course->course_fees;
		$totalcollection=count($student_data)*$course_fees;
		$total_paid=0;
		$total_out=0;
		foreach($student_data as $stu_details)
		{
	  	 echo '<tr align="center">';
	         echo '<td>'.$i.'</td>';
	         echo '<td>'.$stu_details['student_roll_no'].'</td>';
	         echo '<td>'.$stu_details['student_first_name']." ".$stu_details['student_middle_name']." ".$stu_details['student_last_name'].'</td>';
		echo '<td>'.AcademicTermPeriod::model()->findByPk($stu_details['academic_term_period_id'])->academic_term_period.'</td>';
		echo '<td>'.Course::model()->findByPk($stu_details['course_id'])->course_name.'</td>';
		echo '<td>'.AcademicTerm::model()->findByPk($stu_details['academic_term_id'])->academic_term_name.'</td>';
		echo '<td>'.Batch::model()->findByPk($stu_details['student_transaction_batch_id'])->batch_name.'</td>';
	         echo '<td>'.$course_fees.'</td>';
		 $paidfees_tmp = Yii::app()->db->createCommand()
			    ->select('sum(fees_payment_amount) as paidfees')
			    ->from('fees_payment_transaction')
			    ->where('fees_payment_student_id = '.$stu_details['student_transaction_id'])
			    ->queryRow();
		$paidfees = array_filter($paidfees_tmp);
		if(!empty($paidfees))
			$stu_paidfees = $paidfees['paidfees'];
		else
			$stu_paidfees = 0;
		
	         echo '<td>'.$stu_paidfees.'</td>';
		 $out_fees=$course_fees-$stu_paidfees;
	         echo '<td>'.$out_fees.'</td>';
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:31,代码来源:course_wise_fees_report+(copy).php

示例7: loadModel

 /**
  * 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 the ID of the model to be loaded
  */
 public function loadModel($id)
 {
     $model = Batch::model()->findByPk((int) $id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
开发者ID:sharmarakesh,项目名称:edusec-college-management-system,代码行数:13,代码来源:BatchController.php

示例8: if

	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'course_code'); ?>
		<?php echo $form->textField($model,'course_code',array('size'=>50,'maxlength'=>50)); ?><span class="status">&nbsp;</span>
		<?php echo $form->error($model,'course_code'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'section_name'); ?>
		<?php echo $form->textField($model,'section_name',array('size'=>50,'maxlength'=>50)); ?><span class="status">&nbsp;</span>
		<?php echo $form->error($model,'section_name'); ?>
	</div>
<?php
		if(isset($_REQUEST['id'])) 
		$batch=Batch::model()->findByPk($_REQUEST['id']); ?>
	<?php if(empty($batch->course_id)) { //echo $batch->course_id; ?>
	<h3 style="color: #000000;font-size: 15px;font-weight: bold;margin: 0 0 10px 5px;padding: 0 0 6px;width: 95%;">Initial Batch</h3>
	<div class="row">
		<?php echo $form->labelEx($batch,'batch_name'); ?>
		<?php echo $form->textField($batch,'batch_name',array('size'=>50,'maxlength'=>50)); ?><span class="status">&nbsp;</span>
		<?php echo $form->error($batch,'batch_name'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($batch,'batch_fees'); ?>
		<?php echo $form->textField($batch,'batch_fees',array('size'=>50,'maxlength'=>50)); ?><span class="status">&nbsp;</span>
		<?php echo $form->error($batch,'batch_fees'); ?>
	</div>
	<?php
	     
		} /*
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:31,代码来源:_form.php

示例9: array

					'type'=>'POST', 
					'url'=>CController::createUrl('dependent/getBatch'), 
					'update'=>'#StudentTransaction_student_transaction_batch_id', //selector to update
					))); */ ?>

			
			<span class="status">&nbsp;</span>
			<?php //echo $form->error($model,'academic_term_id'); ?>

			
		</div-->
		<div class="row-right">
		<?php echo $form->labelEx($model,'student_transaction_batch_id'); ?>
		<?php //echo $model->academic_term_id." ".$model->course_id;
	 		if(!empty($model->student_transaction_batch_id))
			  echo $form->dropDownList($model,'student_transaction_batch_id',CHtml::listData(Batch::model()->findAll('academic_term_id ='. $model->academic_term_id.' OR course_id='.$model->course_id),'batch_id','batch_name'),array('prompt'=>"Select Batch"));
	 		else	
	 		  echo $form->dropDownList($model,'student_transaction_batch_id',array(), array('prompt' => 'Select Batch')); ?><span class="status">&nbsp;</span>
		<?php echo $form->error($model,'student_transaction_batch_id'); ?>
		</div>
	</div>
	<div class="row buttons last">
		<?php
		if(Yii::app()->user->checkAccess('StudentTransaction.UpdateStudentData')  && (Yii::app()->user->getState('stud_id') == $_REQUEST['id']) || Yii::app()->user->checkAccess('StudentTransaction.UpdateAllStudentData'))
		 echo CHtml::submitButton('Save', array('class'=>'submit')); ?>
	
		<?php echo CHtml::link('Cancel', array('update','id'=>$_REQUEST['id']), array('class'=>'btnCan')); ?>
   	</div>
<?php  $this->endWidget(); ?>
</div>
                    </div>
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:31,代码来源:updateproftab5+(copy).php

示例10: date

			   {
				if($list->batch_id != 0 && $f==1)
				{
					$f=0;
					continue;
				}
				else
				   $rows=1;
					
			   }
			   $sub_array[] = $list->subject_id;
			   print '<td rowspan='.$rows.'>'.$time[$list->lec].'</td>';
			   print '<td rowspan='.$rows.'>'.SubjectMaster::model()->findByPk($list->subject_id)->subject_master_name.'</td>';	
			   print '<td rowspan='.$rows.'>'.EmployeeInfo::model()->findByAttributes(array('employee_info_transaction_id'=>$list->faculty_emp_id))->employee_first_name.'</td>';	
			   if($list->batch_id != 0)
			   print '<td rowspan='.$rows.'>'.Batch::model()->findByPk($list->batch_id)->batch_code.'</td>';
			   else
			   print '<td rowspan='.$rows.'>-</td>';
			   print '<td rowspan='.$rows.'>'.RoomDetailsMaster::model()->findByPk($list->room_id)->room_name.'</td></tr>';	
			   			
			
	          	   }
		print '</table>';

		$sy_date = date('Y-m-d',strtotime($date));
		$substr = implode(',',$sub_array);
		$syll = SubjectSyllabus::model()->findAll(array('condition'=>'sub_id in ('.$substr.') and start_date<="'.$sy_date.'" and end_date >="'.$sy_date.'"'));
		print '<div>&nbsp;</div>';
		print '<table class="gradienttable" id="time-table-struc" style="font-size:15px;margin-top:50px;">';
		   print '<tr>';
		   print '<tr><td colspan=4 style="background:white"><b>Topics to be taught on '.$date.'</b></td></tr>';
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:31,代码来源:student_personal_timetable.php

示例11: array

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'studentinfo-form',
	'enableAjaxValidation'=>true,

)); ?>

	<?php //echo $form->errorSummary($model); ?>

	<div class="block-error">
	   <?php echo Yii::app()->user->getFlash('no_student_found'); ?>
		
	</div>
	<div class="row">
	<?php echo CHtml::label('Batch',''); ?>
	  <?php echo CHtml::dropDownList('batch', null, CHtml::listData(Batch::model()->findAll(),'batch_id','batch_name'), array('empty' => 'Select Batch','tabindex'=>4));?>
	
	  <?php echo CHtml::label('City',''); ?>
	  <?php echo CHtml::dropDownList('city', null, City::items(), array('empty' => 'Select City','tabindex'=>5));?>
	<span class="status">&nbsp;</span>
	</div>

	<div class="row">
	  <?php //echo CHtml::label('Blood Group',''); ?>
	  <?php //echo CHtml::dropDownList('bg', null, StudentInfo::getBloodGroup(), array('empty' => 'Select Blood Group','tabindex'=>7));?>

	  <?php echo CHtml::label('Gender',''); ?>
	  <?php echo CHtml::dropDownList('gender', null, StudentInfo::getGenderOptions(), array('empty' => 'Select Gender','tabindex'=>8));?>
	</div>

</div>
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:30,代码来源:studinfo_dyanamic_report_form1.php

示例12:

						$syll = SubjectSyllabus::model()->findAll(array('condition'=>'sub_id='.$check->subject_id.' and start_date<="'.$sy_date.'" and end_date >="'.$sy_date.'"'));
						$top_str = '';
						$top = $top_desc = '';
						
						foreach($syll as $lst)
						{
							$top_str .= "<h3>".$lst['topic_name'].'</h3>'.$lst['topic_description'];					$top = $lst['topic_name'];
							$top_desc = $lst['topic_description'];
						}
						
						if($check->batch_id != 0 && $check->batch_id !=$stud_model->student_transaction_batch_id)
					        {
						   continue;
					        }
						if($check->batch_id != 0)
						$batch="(".Batch::model()->findByPk($check->batch_id)->batch_code.")";
						$subname = SubjectMaster::model()->findByPk($check->subject_id)->subject_master_name;
						$room="(".RoomDetailsMaster::model()->findByPk($check->room_id)->room_name.")";	
						$emp_row = EmployeeInfo::model()->findByAttributes(array('employee_info_transaction_id'=>$check->faculty_emp_id));
						$faculty="(".$emp_row->employee_name_alias.")";
						
						if($batch)
						$str =  $subname."</br>".$batch."</br>".$room."</br>".$faculty;
						else
						$str = $subname."</br>".$room."</br>".$faculty;

						if($syll)
							echo "<u>".$str."</u>";		
						else
						    echo $str;
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:30,代码来源:student_timetable.php

示例13: actiongetSmsEmailBatch

	public function actiongetSmsEmailBatch()
        {
	    $data=Batch::model()->findAll(array('condition'=>'course_id='.(int) $_REQUEST['StudentSmsEmailDetails']['student_sms_email_details_course_id']));
                  
            $data=CHtml::listData($data,'batch_id','batch_code');
	     echo "<option value=''>Select Batch</option>";
            foreach($data as $value=>$name)
            {
                echo CHtml::tag('option',
                        array('value'=>$value),CHtml::encode($name),true);
            }
        }
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:12,代码来源:DependentController.php

示例14: array

$this->breadcrumbs = array('Attendance');
?>
<table  border="2px" id="twoColThinTable">
<tr class="row">
	<td class="col1">Division </td>
	<td class="col2"><?php 
echo Division::model()->findByPk($_REQUEST['division_id'])->division_code;
?>
</td>
</tr>
<tr class="row">
	<td class="col1">Batch</td> 
	<td class="col2"> <?php 
if ($_REQUEST['batch'] != 0) {
    echo Batch::model()->findByPk($_REQUEST['batch'])->batch_code;
}
?>
</td>
</tr>
<tr class="row">
	<td class="col1">Subject </td> 
	<td class="col2"> <?php 
echo SubjectMaster::model()->findByPk($_REQUEST['subject_id'])->subject_master_name;
?>
</td>
</tr>	
<tr class="row">
	<td class="col1">Date </td> 
	<td class="col2"> <?php 
echo $_REQUEST['date'];
开发者ID:sharmarakesh,项目名称:EduSec2.0.0,代码行数:30,代码来源:show_student_view.php

示例15:

	<div class="block-error">
		<?php echo Yii::app()->user->getFlash('not-select-attendece'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sub_id'); ?>
		<?php echo $form->dropDownList($model,'sub_id', CHtml::listData(SubjectMaster::model()->findAll(), 'subject_master_id', 'subject_master_name'),array('prompt'=>'Select Subject'));
		?><span class="status">&nbsp;</span>
		<?php echo $form->error($model,'sub_id'); ?>
	</div>
</div>
<div class="first-row" >
	<div class="row">
        <?php echo $form->labelEx($model,'batch_id'); ?>
      	<?php echo $form->dropDownList($model,'batch_id', CHtml::listData(Batch::model()->findAll(), 'batch_id', 'batch_code'),array('prompt' => 'Select Batch'));
		;?>
	<span class="status">&nbsp;</span>
        <?php echo $form->error($model,'batch_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'employee_id'); ?>
		<?php	
		//$faculty = array();
$facultytablelist = EmployeeTransaction::model()->findAll();

//$i=0;
$facname=array();
foreach($facultytablelist as $f)
{
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:30,代码来源:_form.php


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