Yii Framework Forum: I Want To Have One Table For All The Forms For Resume Aplication Not Four Tables - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

I Want To Have One Table For All The Forms For Resume Aplication Not Four Tables Rate Topic: -----

#1 User is offline   Simangele 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 10-August 13

Posted 17 September 2013 - 01:28 PM

<?php
/* @var $this SiteController */

$this->pageTitle = Yii::app()->name;
?>
<p></p>
<p><?php echo 'Welcome ' . yii::app()->user->profileDetails; ?></p>

<!--<p> We are pleased to see you connected to the Eagle South Africa Ethical Clearance Site </p>-->

<h3>My applications for Form1</h3>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'application-grid',
'dataProvider' => $model->getUserApplications(yii::app()->user->id, 'form1'),
'columns' => array(
'application_type',
'create_time',
'status',
array(
'class' => 'CLinkColumn',
'label' => 'Resume Application',
'urlExpression' => 'Yii::app()->createUrl("applicationForm1/resumeApplication",array("id"=>$data->project_id))',
'header' => 'Resume'
),
),
));
?>


<h3>My applications for Low Risk</h3>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'application-grid',
'dataProvider' => $model->getUserApplications(yii::app()->user->id, 'Low Risk Research'),
'columns' => array(
'application_type',
'create_time',
'status',
array(
'class' => 'CLinkColumn',
'label' => 'Resume Application',
'urlExpression' => 'Yii::app()->createUrl("applicationLowRisk/resumeApplication",array("id"=>$data->project_id))',
'header' => 'Resume'
),
),
));
?>




<h3>My applications for Multi Centre Research</h3>
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'application-grid',
'dataProvider'=>$model->getUserApplications(yii::app()->user->id, 'Multicentre Research'),
'columns'=>array(
'application_type',
'create_time',
'status',
array(
'class'=>'CLinkColumn',
'label'=>'Resume Application',
'urlExpression'=>'Yii::app()->createUrl("applicationMultiCentre/resumeApplication",array("id"=>$data->project_id))',
'header'=>'Resume'
),

),

)); ?>
<h3>My applications for Research Involving Radiation</h3>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'application-grid',
'dataProvider' => $model->getUserApplications(yii::app()->user->id, 'Research involving Radiation'),
'columns' => array(
'application_type',
'create_time',
'status',
array(
'class' => 'CLinkColumn',
'label' => 'Resume Application',
'urlExpression' => 'Yii::app()->createUrl("applicationRadiation/resumeApplication",array("id"=>$data->project_id))',
'header' => 'Resume'
),
),
));
?>
0

#2 User is offline   Simangele 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 10-August 13

Posted 17 September 2013 - 01:30 PM

View PostSimangele, on 17 September 2013 - 01:28 PM, said:

Below is my code site/home

<?php
/* @var $this SiteController */

$this->pageTitle = Yii::app()->name;
?>
<p></p>
<p><?php echo 'Welcome ' . yii::app()->user->profileDetails; ?></p>



<h3>My applications for Form1</h3>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'application-grid',
'dataProvider' => $model->getUserApplications(yii::app()->user->id, 'form1'),
'columns' => array(
'application_type',
'create_time',
'status',
array(
'class' => 'CLinkColumn',
'label' => 'Resume Application',
'urlExpression' => 'Yii::app()->createUrl("applicationForm1/resumeApplication",array("id"=>$data->project_id))',
'header' => 'Resume'
),
),
));
?>


<h3>My applications for Low Risk</h3>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'application-grid',
'dataProvider' => $model->getUserApplications(yii::app()->user->id, 'Low Risk Research'),
'columns' => array(
'application_type',
'create_time',
'status',
array(
'class' => 'CLinkColumn',
'label' => 'Resume Application',
'urlExpression' => 'Yii::app()->createUrl("applicationLowRisk/resumeApplication",array("id"=>$data->project_id))',
'header' => 'Resume'
),
),
));
?>




<h3>My applications for Multi Centre Research</h3>
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'application-grid',
'dataProvider'=>$model->getUserApplications(yii::app()->user->id, 'Multicentre Research'),
'columns'=>array(
'application_type',
'create_time',
'status',
array(
'class'=>'CLinkColumn',
'label'=>'Resume Application',
'urlExpression'=>'Yii::app()->createUrl("applicationMultiCentre/resumeApplication",array("id"=>$data->project_id))',
'header'=>'Resume'
),

),

)); ?>
<h3>My applications for Research Involving Radiation</h3>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
'id' => 'application-grid',
'dataProvider' => $model->getUserApplications(yii::app()->user->id, 'Research involving Radiation'),
'columns' => array(
'application_type',
'create_time',
'status',
array(
'class' => 'CLinkColumn',
'label' => 'Resume Application',
'urlExpression' => 'Yii::app()->createUrl("applicationRadiation/resumeApplication",array("id"=>$data->project_id))',
'header' => 'Resume'
),
),
));
?>

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users