</div> <div class="form"> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'student-docs-trans-form', 'enableAjaxValidation'=>true, 'htmlOptions'=>array('enctype'=>'multipart/form-data'), 'clientOptions'=>array('validateOnSubmit'=>true,'validateOnCnange'=>true), )); ?> <p class="note">Fields with <span class="required">*</span> are required.</p> <div class="row"> <?php echo $form->labelEx($stud_doc,'doc_category_id'); ?> <?php echo $form->dropDownList($stud_doc,'doc_category_id',CHtml::listData(DocumentCategoryMaster::model()->findAll(),'doc_category_id','doc_category_name'),array('empty' => 'Select Category')); ?><span class="status"> </span> <?php echo $form->error($stud_doc,'doc_category_id'); ?> </div> <div class="row"> <?php echo $form->labelEx($stud_doc,'title'); ?> <?php echo $form->textField($stud_doc,'title',array('size'=>17,'maxlength'=>20)); ?><span class="status"> </span> <?php echo $form->error($stud_doc,'title'); ?> </div> <div class="row"> <?php echo $form->labelEx($stud_doc,'student_docs_desc'); ?> <?php echo $form->textArea($stud_doc,'student_docs_desc',array('rows'=>3,'cols'=>16)); ?><span class="status"> </span> <?php echo $form->error($stud_doc,'student_docs_desc'); ?> </div>
</tr> <?php foreach($student_docs as $m=>$v) { $StudentDocs = StudentDocs::model()->findByPk($v['student_docs_trans_stud_docs_id']); ?> <tr> <td> <?php echo ++$k; ?> </td> <td> <?php echo $StudentDocs->title;?> </td> <td> <?php echo DocumentCategoryMaster::model()->findByPk($StudentDocs->doc_category_id)->doc_category_name; ?> </td> <td width="70px"> <?php echo $StudentDocs->student_docs_desc; ?> </td> <td> <?php $docdate = date_create($StudentDocs->student_docs_submit_date); echo date_format($docdate,'d-m-Y');?> </td> </tr> <?php }// end for loop ?> </table>
$this->breadcrumbs=array('Report', 'Student Document Search', );?> <div class="portlet box blue view" style="width:100%"> <div class="portlet-title"><i class="fa fa-plus"></i><span class="box-title">Document Search Details</span> </div> <div class="operation"> <?php echo CHtml::link('<i class="fa fa-chevron-left"></i>Back', array('studentDocumentsearch'), array('class'=>'btnyellow'));?> </div> <div class="portlet-body"> <table border="2px" class="report-table"> <tr class="row"> <td class="col1">Document</td> <td class="col2"><?php echo DocumentCategoryMaster::model()->findByPk($cat_id)->doc_category_name;?></td> </tr> </table> </div> </div> <div class="portlet box blue" style="margin-top:50px;"> <div class="portlet-title"><i class="fa fa-plus"></i><span class="box-title"> Search Results</span> </div> <?php $dataProvider =$model->newsearch($cat_id); $pageSize = Yii::app()->user->getState("pageSize",@$_GET["pageSize"]); $dataProvider->getPagination()->setPageSize($pageSize); ?> <?php $this->widget('zii.widgets.grid.CGridView', array(
<?php $this->breadcrumbs=array('Report', ' Student Document Search', );?> <div class="portlet box blue"> <div class="portlet-title"><i class="fa fa-plus"></i> <span class="box-title">Select Criterias</span> </div> <div class="form"></br> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'document-search', 'enableAjaxValidation'=>true, 'clientOptions'=>array('validateOnSubmit'=>true), )); ?> <div class="row"> <?php echo $form->labelEx($model,'document_category'); ?> <?php echo $form->dropDownList($model,'document_category',CHtml::listData(DocumentCategoryMaster::model()->findAll(),'doc_category_id','doc_category_name'), array('empty' => 'Select Document'));?> <span class="status"> </span> <?php echo $form->error($model,'document_category'); ?> </div> </div> <div class="row buttons"> <?php echo CHtml::submitButton('Search', array('class'=>'submit','name'=>'search')); ?> </div> <?php $this->endWidget(); ?> </div>
</td> <td width="70px"> <?php echo $EmployeeDocs->title; ?> </td> <td width="70px"> <?php echo $EmployeeDocs->employee_docs_desc; ?> </td> <td width="70px"> <?php echo DocumentCategoryMaster::model()->findByPk($EmployeeDocs->doc_category_id)->doc_category_name; ?> </td> <td> <?php $date = date_create($EmployeeDocs->employee_docs_submit_date); echo date_format($date, 'd-m-Y'); ?> </td> </tr> <?php } // end for loop ?> </table>
echo $form->labelEx($model, 'branch'); ?> <?php echo $form->dropDownList($model, 'branch', Branch::items(), array('empty' => 'Select Branch')); ?> <span class="status"> </span> <?php echo $form->error($model, 'branch'); ?> </div> <div class="row"> <?php echo $form->labelEx($model, 'document_category'); ?> <?php echo $form->dropDownList($model, 'document_category', CHtml::listData(DocumentCategoryMaster::model()->findAll(array('condition' => 'docs_category_organization_id=' . Yii::app()->user->getState('org_id'))), 'doc_category_id', 'doc_category_name'), array('empty' => 'Select Document')); ?> <span class="status"> </span> <?php echo $form->error($model, 'document_category'); ?> </div> <div class="row buttons"> <?php echo CHtml::submitButton('Search', array('class' => 'submit', 'name' => 'search')); ?> </div> <?php $this->endWidget();
echo AcademicTerm::model()->findByPk($sem)->academic_term_name; ?> </td> </tr> <?php } if ($branch_id != 0) { ?> <tr class="row"> <td class="col1">Branch</td> <td class="col2"><?php echo Branch::model()->findByPk($branch_id)->branch_name; ?> </td> </tr> <?php } ?> <tr class="row"> <td class="col1">Document</td> <td class="col2"><?php echo DocumentCategoryMaster::model()->findByPk($cat_id)->doc_category_name; ?> </td> </tr> </table> <?php $dataProvider = $model->newsearch($branch_id, $cat_id, $acdm_period, $sem); $pageSize = Yii::app()->user->getState("pageSize", @$_GET["pageSize"]); $dataProvider->getPagination()->setPageSize($pageSize); $this->widget('zii.widgets.grid.CGridView', array('id' => 'student-docs-search-grid', 'dataProvider' => $dataProvider, 'columns' => array(array('header' => 'SI No', 'class' => 'IndexColumn'), 'student_roll_no', 'student_enroll_no', 'student_first_name', array('name' => 'Document File', 'type' => 'raw', 'value' => 'CHtml::link(CHtml::encode($data->title),Yii::app()->baseUrl."/college_data/stud_docs/".$data->student_docs_path, $htmlOptions=array("target"=>"_blank"))'), array('header' => 'Document Type', 'value' => 'DocumentCategoryMaster::model()->findByPk($data->doc_category_id)->doc_category_name'), array('name' => 'Submit Date', 'value' => 'date_format(new DateTime($data->student_docs_submit_date), "d-m-Y")')), 'pager' => array('class' => 'AjaxList', 'maxButtonCount' => $model->count(), 'header' => '')));
/** * 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 = DocumentCategoryMaster::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
$this->breadcrumbs=array('Report', 'Student Document Search', );?> <div class="portlet box blue view" style="width:100%"> <div class="portlet-title"><i class="fa fa-plus"></i><span class="box-title">Document Search Details</span> </div> <div class="operation"> <?php echo CHtml::link('<i class="fa fa-chevron-left"></i>Back', array('studentDocumentsearch'), array('class'=>'btnyellow'));?> </div> <div class="portlet-body"> <table class="report-table"> <tr class="row"> <td class="col1">Document</td> <?php $doc_cat=DocumentCategoryMaster::model()->findAll(); ?> <td class="col2"><?php echo "Not Set" ; ?></td> </tr> </table> </div> </div> <div class="portlet box blue" style="margin-top:50px;"> <div class="portlet-title"><i class="fa fa-plus"></i><span class="box-title"> Search Results</span> </div> <?php $dataProvider =$model->newsearch1(); $pageSize = Yii::app()->user->getState("pageSize",@$_GET["pageSize"]); $dataProvider->getPagination()->setPageSize($pageSize); ?> <?php