12 $this->render(
'view', array(
28 if (isset($_POST[
'Jobs'])) {
29 $model->attributes = $_POST[
'Jobs'];
31 $this->redirect(array(
'view',
'id' => $model->id));
35 $this->render(
'create', array(
53 if (isset($_POST[
'Jobs'])) {
54 $model->attributes = $_POST[
'Jobs'];
56 $this->redirect(array(
'view',
'id' => $model->id));
60 $this->render(
'update', array(
76 if (!isset($_GET[
'ajax'])) {
77 $this->redirect(isset($_POST[
'returnUrl']) ? $_POST[
'returnUrl'] : array(
'admin'));
86 $dataProvider =
new CActiveDataProvider(
'Jobs');
87 $this->render(
'index', array(
88 'dataProvider' => $dataProvider,
97 $model =
new Jobs(
'search');
98 $model->unsetAttributes();
99 if (isset($_GET[
'Jobs'])) {
100 $model->attributes = $_GET[
'Jobs'];
103 $this->render(
'admin', array(
121 if ($model === null) {
122 throw new CHttpException(404,
'The requested page does not exist.');
135 if (isset($_POST[
'ajax']) && $_POST[
'ajax'] ===
'jobs-form') {
136 echo CActiveForm::validate($model);