From 7ef6bd96b678c5cb70f31c7400019530dcbe7cbd Mon Sep 17 00:00:00 2001
From: Patrick Seeger
Date: Sat, 5 May 2012 18:09:22 +0200
Subject: Assets etc aus git genommen, erste ansicht vereinslist
---
.gitignore | 3 +
.settings/org.eclipse.core.resources.prefs | 3 +
css/astaf/layout.css | 1 +
images/Altstadtfest_titel.jpg | Bin 0 -> 72292 bytes
protected/controllers/CmsPageController.php | 176 -
protected/controllers/KategorieController.php | 163 +
protected/controllers/SpeisTrankController.php | 163 +
protected/controllers/StandortController.php | 190 +
protected/controllers/UserController.php | 168 +
protected/controllers/VeranstaltungController.php | 169 +
protected/controllers/VereinController.php | 164 +
.../extensions/extckeditor/assets/CHANGES.html | 1503 +++++++
protected/extensions/wetter/Wetter.php | 5 +-
protected/extensions/wetter/views/wetter.php | 42 +-
protected/models/Angebot.php | 106 +
protected/models/AngebotVerein.php | 108 +
protected/models/CmsPage.php | 133 -
protected/models/Kategorie.php | 107 +
protected/models/Standort.php | 112 +
protected/models/Veranstaltung.php | 130 +
protected/models/Verein.php | 125 +
protected/modules/cms/models/Cms.php | 10 +-
protected/runtime/application.log | 4685 ++++++++++++++++++++
.../cache/57bda9da3bcf4917957d5102f46386f0.bin | 2 +-
.../cache/c14ee5a4fa047c25488b05abf0f92fff.bin | 1 -
protected/views/cmsPage/_form.php | 50 -
protected/views/cmsPage/_search.php | 49 -
protected/views/cmsPage/_view.php | 32 -
protected/views/cmsPage/admin.php | 58 -
protected/views/cmsPage/create.php | 15 -
protected/views/cmsPage/index.php | 17 -
protected/views/cmsPage/update.php | 18 -
protected/views/cmsPage/view.php | 39 -
protected/views/common/_advanced_search.php | 20 +
protected/views/common/_comparison_text.php | 4 +
protected/views/common/_required_fields_text.php | 1 +
protected/views/verein/_form.php | 114 +
protected/views/verein/_search.php | 64 +
protected/views/verein/_short.php | 11 +
protected/views/verein/create.php | 14 +
protected/views/verein/index.php | 19 +
protected/views/verein/update.php | 16 +
protected/views/verein/view.php | 30 +
themes/astaf/views/layouts/column1.php | 3 +
themes/astaf/views/layouts/column2.php | 5 +
themes/astaf/views/layouts/main.php | 52 +-
46 files changed, 8272 insertions(+), 628 deletions(-)
create mode 100644 .gitignore
create mode 100644 .settings/org.eclipse.core.resources.prefs
create mode 100644 images/Altstadtfest_titel.jpg
delete mode 100644 protected/controllers/CmsPageController.php
create mode 100644 protected/controllers/KategorieController.php
create mode 100644 protected/controllers/SpeisTrankController.php
create mode 100644 protected/controllers/StandortController.php
create mode 100644 protected/controllers/UserController.php
create mode 100644 protected/controllers/VeranstaltungController.php
create mode 100644 protected/controllers/VereinController.php
create mode 100644 protected/extensions/extckeditor/assets/CHANGES.html
create mode 100644 protected/models/Angebot.php
create mode 100644 protected/models/AngebotVerein.php
delete mode 100644 protected/models/CmsPage.php
create mode 100644 protected/models/Kategorie.php
create mode 100644 protected/models/Standort.php
create mode 100644 protected/models/Veranstaltung.php
create mode 100644 protected/models/Verein.php
delete mode 100644 protected/runtime/cache/c14ee5a4fa047c25488b05abf0f92fff.bin
delete mode 100644 protected/views/cmsPage/_form.php
delete mode 100644 protected/views/cmsPage/_search.php
delete mode 100644 protected/views/cmsPage/_view.php
delete mode 100644 protected/views/cmsPage/admin.php
delete mode 100644 protected/views/cmsPage/create.php
delete mode 100644 protected/views/cmsPage/index.php
delete mode 100644 protected/views/cmsPage/update.php
delete mode 100644 protected/views/cmsPage/view.php
create mode 100644 protected/views/common/_advanced_search.php
create mode 100644 protected/views/common/_comparison_text.php
create mode 100644 protected/views/common/_required_fields_text.php
create mode 100644 protected/views/verein/_form.php
create mode 100644 protected/views/verein/_search.php
create mode 100644 protected/views/verein/_short.php
create mode 100644 protected/views/verein/create.php
create mode 100644 protected/views/verein/index.php
create mode 100644 protected/views/verein/update.php
create mode 100644 protected/views/verein/view.php
create mode 100644 themes/astaf/views/layouts/column1.php
create mode 100644 themes/astaf/views/layouts/column2.php
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..38c7b5b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+
+/assets
+/protected/runtime
\ No newline at end of file
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..44632ff
--- /dev/null
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,3 @@
+eclipse.preferences.version=1
+encoding//protected/extensions/wetter/views/wetter.php=UTF-8
+encoding/=UTF-8
diff --git a/css/astaf/layout.css b/css/astaf/layout.css
index 33b2088..4726978 100644
--- a/css/astaf/layout.css
+++ b/css/astaf/layout.css
@@ -20,6 +20,7 @@
/* import screen layout | Screen-Layout einbinden */
@import url(../yaml4/navigation/hlist-blue.css);
+@import url(../yaml4/navigation/vlist.css);
@import url(../yaml4/forms/blue-theme.css);
@import url(../yaml4/screen/typography-blue.css);
diff --git a/images/Altstadtfest_titel.jpg b/images/Altstadtfest_titel.jpg
new file mode 100644
index 0000000..d95f819
Binary files /dev/null and b/images/Altstadtfest_titel.jpg differ
diff --git a/protected/controllers/CmsPageController.php b/protected/controllers/CmsPageController.php
deleted file mode 100644
index 362f991..0000000
--- a/protected/controllers/CmsPageController.php
+++ /dev/null
@@ -1,176 +0,0 @@
-array('index','view'),
- 'users'=>array('*'),
- ),
- array('allow', // allow authenticated user to perform 'create' and 'update' actions
- 'actions'=>array('create','update'),
- 'users'=>array('@'),
- ),
- array('allow', // allow admin user to perform 'admin' and 'delete' actions
- 'actions'=>array('admin','delete'),
- 'users'=>array('admin'),
- ),
- array('deny', // deny all users
- 'users'=>array('*'),
- ),
- );
- }
-
- /**
- * Displays a particular model.
- * @param integer $id the ID of the model to be displayed
- */
- public function actionView($id)
- {
- $this->render('view',array(
- 'model'=>$this->loadModel($id),
- ));
- }
-
- /**
- * Creates a new model.
- * If creation is successful, the browser will be redirected to the 'view' page.
- */
- public function actionCreate()
- {
- $model=new CmsPage;
-
- // Uncomment the following line if AJAX validation is needed
- // $this->performAjaxValidation($model);
-
- if(isset($_POST['CmsPage']))
- {
- $model->attributes=$_POST['CmsPage'];
- if($model->save())
- $this->redirect(array('view','id'=>$model->id));
- }
-
- $this->render('create',array(
- 'model'=>$model,
- ));
- }
-
- /**
- * Updates a particular model.
- * If update is successful, the browser will be redirected to the 'view' page.
- * @param integer $id the ID of the model to be updated
- */
- public function actionUpdate($id)
- {
- $model=$this->loadModel($id);
-
- // Uncomment the following line if AJAX validation is needed
- // $this->performAjaxValidation($model);
-
- if(isset($_POST['CmsPage']))
- {
- $model->attributes=$_POST['CmsPage'];
- if($model->save())
- $this->redirect(array('view','id'=>$model->id));
- }
-
- $this->render('update',array(
- 'model'=>$model,
- ));
- }
-
- /**
- * Deletes a particular model.
- * If deletion is successful, the browser will be redirected to the 'admin' page.
- * @param integer $id the ID of the model to be deleted
- */
- public function actionDelete($id)
- {
- if(Yii::app()->request->isPostRequest)
- {
- // we only allow deletion via POST request
- $this->loadModel($id)->delete();
-
- // if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
- if(!isset($_GET['ajax']))
- $this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
- }
- else
- throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');
- }
-
- /**
- * Lists all models.
- */
- public function actionIndex()
- {
- $dataProvider=new CActiveDataProvider('CmsPage');
- $this->render('index',array(
- 'dataProvider'=>$dataProvider,
- ));
- }
-
- /**
- * Manages all models.
- */
- public function actionAdmin()
- {
- $model=new CmsPage('search');
- $model->unsetAttributes(); // clear any default values
- if(isset($_GET['CmsPage']))
- $model->attributes=$_GET['CmsPage'];
-
- $this->render('admin',array(
- 'model'=>$model,
- ));
- }
-
- /**
- * 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=CmsPage::model()->findByPk($id,"status=".CmsPage::STATUS_PUBLISHED);
- if($model===null)
- throw new CHttpException(404,'The requested page does not exist.');
- return $model;
- }
-
- /**
- * Performs the AJAX validation.
- * @param CModel the model to be validated
- */
- protected function performAjaxValidation($model)
- {
- if(isset($_POST['ajax']) && $_POST['ajax']==='cms-page-form')
- {
- echo CActiveForm::validate($model);
- Yii::app()->end();
- }
- }
-}
diff --git a/protected/controllers/KategorieController.php b/protected/controllers/KategorieController.php
new file mode 100644
index 0000000..ceeaf42
--- /dev/null
+++ b/protected/controllers/KategorieController.php
@@ -0,0 +1,163 @@
+format->numberFormat = array('decimals'=>1, 'decimalSeparator'=>",", 'thousandSeparator'=>".");
+ }
+
+ /**
+ * @return array action filters
+ */
+ public function filters()
+ {
+ return array(
+ 'accessControl', // perform access control for CRUD operations
+ );
+ }
+
+ /**
+ * Specifies the access control rules.
+ * This method is used by the 'accessControl' filter.
+ * @return array access control rules
+ */
+ public function accessRules()
+ {
+ return array(
+ array('allow', // allow admin user to perform 'admin' and 'delete' actions
+ 'actions'=>array('index','create','update','delete','view'),
+ 'users'=>array('admin'),
+ ),
+ array('deny', // deny all users
+ 'users'=>array('*'),
+ ),
+ );
+ }
+
+ /**
+ * Displays a particular model.
+ * @param integer $id the ID of the model to be displayed
+ */
+ public function actionView($id)
+ {
+ $this->render('view',array(
+ 'model'=>$this->loadModel($id),
+ ));
+ }
+
+ /**
+ * Creates a new model.
+ * If creation is successful, the browser will be redirected to the 'view' page.
+ */
+ public function actionCreate()
+ {
+ $model=new Kategorie;
+
+ // Uncomment the following line if AJAX validation is needed
+ // $this->performAjaxValidation($model);
+
+ if(isset($_POST['Kategorie']))
+ {
+ $model->attributes=$_POST['Kategorie'];
+ if($model->save())
+ $this->redirect(array('view','id'=>$model->id));
+ }
+
+ $this->render('create',array(
+ 'model'=>$model,
+ ));
+ }
+
+ /**
+ * Updates a particular model.
+ * If update is successful, the browser will be redirected to the 'view' page.
+ * @param integer $id the ID of the model to be updated
+ */
+ public function actionUpdate($id)
+ {
+ $model=$this->loadModel($id);
+
+ // Uncomment the following line if AJAX validation is needed
+ // $this->performAjaxValidation($model);
+
+ if(isset($_POST['Kategorie']))
+ {
+ $model->attributes=$_POST['Kategorie'];
+ $model->default_menge = str_replace(",", ".", $model->default_menge);
+ if($model->save()) {
+ $this->redirect(array('view','id'=>$model->id));
+ }
+ }
+
+ $this->render('update',array(
+ 'model'=>$model,
+ ));
+ }
+
+ /**
+ * Deletes a particular model.
+ * If deletion is successful, the browser will be redirected to the 'admin' page.
+ * @param integer $id the ID of the model to be deleted
+ */
+ public function actionDelete($id)
+ {
+ if(Yii::app()->request->isPostRequest)
+ {
+ // we only allow deletion via POST request
+ $this->loadModel($id)->delete();
+
+ // if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
+ if(!isset($_GET['ajax']))
+ $this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
+ }
+ else
+ throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');
+ }
+
+ /**
+ * Lists all models.
+ */
+ public function actionIndex()
+ {
+ $model=new Kategorie('search');
+ $model->unsetAttributes(); // clear any default values
+ if(isset($_GET['Kategorie']))
+ $model->attributes=$_GET['Kategorie'];
+
+ $this->render('index',array(
+ 'model'=>$model,
+ ));
+ }
+
+ /**
+ * 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=Kategorie::model()->findByPk($id);
+ if($model===null)
+ throw new CHttpException(404,'The requested page does not exist.');
+ return $model;
+ }
+
+ /**
+ * Performs the AJAX validation.
+ * @param CModel the model to be validated
+ */
+ protected function performAjaxValidation($model)
+ {
+ if(isset($_POST['ajax']) && $_POST['ajax']==='kategorie-form')
+ {
+ echo CActiveForm::validate($model);
+ Yii::app()->end();
+ }
+ }
+}
diff --git a/protected/controllers/SpeisTrankController.php b/protected/controllers/SpeisTrankController.php
new file mode 100644
index 0000000..1da7883
--- /dev/null
+++ b/protected/controllers/SpeisTrankController.php
@@ -0,0 +1,163 @@
+array('create','index','delete','update','view'),
+ 'users'=>array('admin'),
+ ),
+ array('deny', // deny all users
+ 'users'=>array('*'),
+ ),
+ );
+ }
+
+ /**
+ * Displays a particular model.
+ * @param integer $id the ID of the model to be displayed
+ */
+ public function actionView($id)
+ {
+ $this->render('view',array(
+ 'model'=>$this->loadModel($id),
+ ));
+ }
+
+ /**
+ * Creates a new model.
+ * If creation is successful, the browser will be redirected to the 'view' page.
+ */
+ public function actionCreate()
+ {
+ $model=new Angebot;
+
+ // Uncomment the following line if AJAX validation is needed
+ // $this->performAjaxValidation($model);
+
+ if(isset($_POST['Angebot']))
+ {
+ $model->attributes=$_POST['Angebot'];
+ if($model->save())
+ $this->redirect(array('view','id'=>$model->id));
+ }
+
+ $kategorien = Kategorie::model()->findAll(array("condition"=>"published=1"));
+
+ $this->render('create',array(
+ 'model'=>$model,
+ 'kategorien'=>$kategorien
+ ));
+ }
+
+ /**
+ * Updates a particular model.
+ * If update is successful, the browser will be redirected to the 'view' page.
+ * @param integer $id the ID of the model to be updated
+ */
+ public function actionUpdate($id)
+ {
+ $model=$this->loadModel($id);
+
+ // Uncomment the following line if AJAX validation is needed
+ // $this->performAjaxValidation($model);
+
+ if(isset($_POST['Angebot']))
+ {
+ $model->attributes=$_POST['Angebot'];
+ if($model->save())
+ $this->redirect(array('view','id'=>$model->id));
+ }
+
+ $kategorien = Kategorie::model()->findAll(array("condition"=>"published=1"));
+
+ $this->render('update',array(
+ 'model'=>$model,
+ 'kategorien'=>$kategorien
+ ));
+ }
+
+ /**
+ * Deletes a particular model.
+ * If deletion is successful, the browser will be redirected to the 'admin' page.
+ * @param integer $id the ID of the model to be deleted
+ */
+ public function actionDelete($id)
+ {
+ if(Yii::app()->request->isPostRequest)
+ {
+ // we only allow deletion via POST request
+ $this->loadModel($id)->delete();
+
+ // if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
+ if(!isset($_GET['ajax']))
+ $this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
+ }
+ else
+ throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');
+ }
+
+ /**
+ * Lists all models.
+ */
+ public function actionIndex()
+ {
+ $model=new Angebot('search');
+ $model->unsetAttributes(); // clear any default values
+ if(isset($_GET['Angebot']))
+ $model->attributes=$_GET['Angebot'];
+
+ $this->render('index',array(
+ 'model'=>$model,
+ ));
+ }
+
+ /**
+ * 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=Angebot::model()->findByPk($id);
+ if($model===null)
+ throw new CHttpException(404,'The requested page does not exist.');
+ return $model;
+ }
+
+ /**
+ * Performs the AJAX validation.
+ * @param CModel the model to be validated
+ */
+ protected function performAjaxValidation($model)
+ {
+ if(isset($_POST['ajax']) && $_POST['ajax']==='angebot-form')
+ {
+ echo CActiveForm::validate($model);
+ Yii::app()->end();
+ }
+ }
+}
diff --git a/protected/controllers/StandortController.php b/protected/controllers/StandortController.php
new file mode 100644
index 0000000..3fa11df
--- /dev/null
+++ b/protected/controllers/StandortController.php
@@ -0,0 +1,190 @@
+array('delete','create','update','index','view','ajaxupdate','ajaxcreate','savecoords'),
+ 'users'=>array('admin'),
+ ),
+ array('deny', // deny all users
+ 'users'=>array('*'),
+ ),
+ );
+ }
+
+ /**
+ * Displays a particular model.
+ * @param integer $id the ID of the model to be displayed
+ */
+ public function actionView($id)
+ {
+ $this->render('view',array(
+ 'model'=>$this->loadModel($id),
+ ));
+ }
+
+ /**
+ * Creates a new model.
+ * If creation is successful, the browser will be redirected to the 'view' page.
+ */
+ public function actionCreate()
+ {
+ $model=new Standort;
+
+ // Uncomment the following line if AJAX validation is needed
+ // $this->performAjaxValidation($model);
+
+ if(isset($_POST['Standort']))
+ {
+ $model->attributes=$_POST['Standort'];
+ if($model->save())
+ $this->redirect(array('index'));
+ }
+
+ $this->render('create',array(
+ 'model'=>$model,
+ ));
+ }
+
+ /**
+ * Updates a particular model.
+ * If update is successful, the browser will be redirected to the 'view' page.
+ * @param integer $id the ID of the model to be updated
+ */
+ public function actionUpdate($id)
+ {
+ $model=$this->loadModel($id);
+
+ // Uncomment the following line if AJAX validation is needed
+ // $this->performAjaxValidation($model);
+
+ if(isset($_POST['Standort']))
+ {
+ $model->attributes=$_POST['Standort'];
+ if($model->save())
+ $this->redirect(array('view','id'=>$model->id));
+ }
+
+ $this->render('update',array(
+ 'model'=>$model,
+ ));
+ }
+
+
+ /**
+ * Updates the standort with $id.
+ * This method loads the post parameters
+ *
+ *
lat
+ *
lng
+ *
+ * @param integer $id the ID of the standort to be moved
+ * @throws CHttpException if
+ *
+ *
one of the parameters is not set or
+ *
the standort does not exist or
+ *
the save action was unsuccessful
+ *
+ */
+ public function actionSavecoords($id) {
+ $model=$this->loadModel($id);
+
+ if (isset($_POST['lat']) && isset($_POST['lng'])) {
+ $model->pos_lat = $_POST['lat'];
+ $model->pos_long = $_POST['lng'];
+ if($model->save()) {
+ echo "success";
+ } else {
+ throw new CHttpException(500, "Could not save");
+ }
+ } else {
+ throw new CHttpException(400, "Wrong parameters");
+ }
+ }
+
+ /**
+ * Deletes a particular model.
+ * If deletion is successful, the browser will be redirected to the 'admin' page.
+ * @param integer $id the ID of the model to be deleted
+ */
+ public function actionDelete($id)
+ {
+ if(Yii::app()->request->isPostRequest)
+ {
+ // we only allow deletion via POST request
+ $this->loadModel($id)->delete();
+
+ // if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
+ if(!isset($_GET['ajax']))
+ $this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
+ }
+ else
+ throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');
+ }
+
+ /**
+ * Manages all models.
+ */
+ public function actionIndex()
+ {
+ $model=new Standort('search');
+ $model->unsetAttributes(); // clear any default values
+ if(isset($_GET['Standort']))
+ $model->attributes=$_GET['Standort'];
+
+ $this->render('index',array(
+ 'model'=>$model,
+ "standorte"=>Standort::model()->findAll()
+ ));
+ }
+
+ /**
+ * 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=Standort::model()->findByPk($id);
+ if($model===null)
+ throw new CHttpException(404,'The requested page does not exist.');
+ return $model;
+ }
+
+ /**
+ * Performs the AJAX validation.
+ * @param CModel the model to be validated
+ */
+ protected function performAjaxValidation($model)
+ {
+ if(isset($_POST['ajax']) && $_POST['ajax']==='standort-form')
+ {
+ echo CActiveForm::validate($model);
+ Yii::app()->end();
+ }
+ }
+}
diff --git a/protected/controllers/UserController.php b/protected/controllers/UserController.php
new file mode 100644
index 0000000..79fc7e8
--- /dev/null
+++ b/protected/controllers/UserController.php
@@ -0,0 +1,168 @@
+array('create','update','index','view','admin','delete'),
+ 'users'=>array('admin'),
+ ),
+ array('deny', // deny all users
+ 'users'=>array('*'),
+ ),
+ );
+ }
+
+ /**
+ * Displays a particular model.
+ * @param integer $id the ID of the model to be displayed
+ */
+ public function actionView($id)
+ {
+ $this->render('view',array(
+ 'model'=>$this->loadModel($id),
+ ));
+ }
+
+ /**
+ * Creates a new model.
+ * If creation is successful, the browser will be redirected to the 'view' page.
+ */
+ public function actionCreate()
+ {
+ $model=new User;
+
+ // Uncomment the following line if AJAX validation is needed
+ // $this->performAjaxValidation($model);
+
+ if(isset($_POST['User']))
+ {
+ $model->attributes=$_POST['User'];
+ if($model->save())
+ $this->redirect(array('view','id'=>$model->id));
+ }
+
+ $this->render('create',array(
+ 'model'=>$model,
+ ));
+ }
+
+ /**
+ * Updates a particular model.
+ * If update is successful, the browser will be redirected to the 'view' page.
+ * @param integer $id the ID of the model to be updated
+ */
+ public function actionUpdate($id)
+ {
+ $model=$this->loadModel($id);
+
+ // Uncomment the following line if AJAX validation is needed
+ // $this->performAjaxValidation($model);
+
+ if(isset($_POST['User']))
+ {
+ $model->attributes=$_POST['User'];
+ if($model->save())
+ $this->redirect(array('view','id'=>$model->id));
+ }
+
+ $this->render('update',array(
+ 'model'=>$model,
+ ));
+ }
+
+ /**
+ * Deletes a particular model.
+ * If deletion is successful, the browser will be redirected to the 'admin' page.
+ * @param integer $id the ID of the model to be deleted
+ */
+ public function actionDelete($id)
+ {
+ if(Yii::app()->request->isPostRequest)
+ {
+ // we only allow deletion via POST request
+ $this->loadModel($id)->delete();
+
+ // if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
+ if(!isset($_GET['ajax']))
+ $this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
+ }
+ else
+ throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');
+ }
+
+ /**
+ * Lists all models.
+ */
+ public function actionIndex()
+ {
+ $dataProvider=new CActiveDataProvider('User');
+ $this->render('index',array(
+ 'dataProvider'=>$dataProvider,
+ ));
+ }
+
+ /**
+ * Manages all models.
+ */
+ public function actionAdmin()
+ {
+ $model=new User('search');
+ $model->unsetAttributes(); // clear any default values
+ if(isset($_GET['User']))
+ $model->attributes=$_GET['User'];
+
+ $this->render('admin',array(
+ 'model'=>$model,
+ ));
+ }
+
+ /**
+ * 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=User::model()->findByPk($id);
+ if($model===null)
+ throw new CHttpException(404,'The requested page does not exist.');
+ return $model;
+ }
+
+ /**
+ * Performs the AJAX validation.
+ * @param CModel the model to be validated
+ */
+ protected function performAjaxValidation($model)
+ {
+ if(isset($_POST['ajax']) && $_POST['ajax']==='user-form')
+ {
+ echo CActiveForm::validate($model);
+ Yii::app()->end();
+ }
+ }
+}
diff --git a/protected/controllers/VeranstaltungController.php b/protected/controllers/VeranstaltungController.php
new file mode 100644
index 0000000..49ec10a
--- /dev/null
+++ b/protected/controllers/VeranstaltungController.php
@@ -0,0 +1,169 @@
+array('create','update','index','view','delete'),
+ 'users'=>array('admin'),
+ ),
+ array('deny', // deny all users
+ 'users'=>array('*'),
+ ),
+ );
+ }
+
+ /**
+ * Displays a particular model.
+ * @param integer $id the ID of the model to be displayed
+ */
+ public function actionView($id)
+ {
+ $this->render('view',array(
+ 'model'=>$this->loadModel($id),
+ ));
+ }
+
+ /**
+ * Creates a new model.
+ * If creation is successful, the browser will be redirected to the 'view' page.
+ */
+ public function actionCreate()
+ {
+ $model=new Veranstaltung;
+
+ // Uncomment the following line if AJAX validation is needed
+ // $this->performAjaxValidation($model);
+
+ if(isset($_POST['Veranstaltung']))
+ {
+ $model->attributes=$_POST['Veranstaltung'];
+ Yii::trace(print_r($model, true), "VERANSTALTUNG");
+ if($model->save())
+ $this->redirect(array('view','id'=>$model->id));
+ }
+
+ $standorte = Standort::model()->findAll(array("condition"=>"published=1 and type='Bühne'"));
+ $vereine = Verein::model()->findAll(array("condition"=>"published=1"));
+
+ $this->render('create',array(
+ 'model'=>$model,
+ 'vereine'=>$vereine,
+ 'standorte'=>$standorte
+ ));
+ }
+
+ /**
+ * Updates a particular model.
+ * If update is successful, the browser will be redirected to the 'view' page.
+ * @param integer $id the ID of the model to be updated
+ */
+ public function actionUpdate($id)
+ {
+ $model=$this->loadModel($id);
+
+ // Uncomment the following line if AJAX validation is needed
+ // $this->performAjaxValidation($model);
+
+ if(isset($_POST['Veranstaltung']))
+ {
+ $model->attributes=$_POST['Veranstaltung'];
+
+ if($model->save())
+ $this->redirect(array('view','id'=>$model->id));
+ }
+
+ $standorte = Standort::model()->findAll(array("condition"=>"published=1 and type='Bühne'"));
+ $vereine = Verein::model()->findAll(array("condition"=>"published=1"));
+
+ $this->render('update',array(
+ 'model'=>$model,
+ 'vereine'=>$vereine,
+ 'standorte'=>$standorte
+ ));
+ }
+
+ /**
+ * Deletes a particular model.
+ * If deletion is successful, the browser will be redirected to the 'admin' page.
+ * @param integer $id the ID of the model to be deleted
+ */
+ public function actionDelete($id)
+ {
+ if(Yii::app()->request->isPostRequest)
+ {
+ // we only allow deletion via POST request
+ $this->loadModel($id)->delete();
+
+ // if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
+ if(!isset($_GET['ajax']))
+ $this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
+ }
+ else
+ throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');
+ }
+
+ /**
+ * Lists all models.
+ */
+ public function actionIndex()
+ {
+ $model=new Veranstaltung('search');
+ $model->unsetAttributes(); // clear any default values
+ if(isset($_GET['Veranstaltung']))
+ $model->attributes=$_GET['Veranstaltung'];
+
+ $this->render('index',array(
+ 'model'=>$model,
+ ));
+ }
+
+ /**
+ * 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=Veranstaltung::model()->findByPk($id);
+ if($model===null)
+ throw new CHttpException(404,'The requested page does not exist.');
+ return $model;
+ }
+
+ /**
+ * Performs the AJAX validation.
+ * @param CModel the model to be validated
+ */
+ protected function performAjaxValidation($model)
+ {
+ if(isset($_POST['ajax']) && $_POST['ajax']==='veranstaltung-form')
+ {
+ echo CActiveForm::validate($model);
+ Yii::app()->end();
+ }
+ }
+}
diff --git a/protected/controllers/VereinController.php b/protected/controllers/VereinController.php
new file mode 100644
index 0000000..2be85d6
--- /dev/null
+++ b/protected/controllers/VereinController.php
@@ -0,0 +1,164 @@
+array('index','create','view','update','delete'),
+ 'users'=>array('admin'),
+ ),
+ array('deny', // deny all users
+ 'actions'=>array('create','update','delete'),
+ 'users'=>array('*'),
+ ),
+ );
+ }
+
+ /**
+ * Displays a particular model.
+ * @param integer $id the ID of the model to be displayed
+ */
+ public function actionView($id)
+ {
+ $this->render('view',array(
+ 'model'=>$this->loadModel($id),
+ ));
+ }
+
+ /**
+ * Creates a new model.
+ * If creation is successful, the browser will be redirected to the 'view' page.
+ */
+ public function actionCreate()
+ {
+ $model=new Verein;
+
+ // Uncomment the following line if AJAX validation is needed
+ // $this->performAjaxValidation($model);
+
+ if(isset($_POST['Verein']))
+ {
+ $model->attributes=$_POST['Verein'];
+ if($model->save())
+ $this->redirect(array('view','id'=>$model->id));
+ }
+
+ $standorte = Standort::model()->findAll(array("condition"=>"published=1 and type='Stand'"));
+ $this->render('create',array(
+ 'model'=>$model,
+ 'standorte'=>$standorte
+ ));
+ }
+
+ /**
+ * Updates a particular model.
+ * If update is successful, the browser will be redirected to the 'view' page.
+ * @param integer $id the ID of the model to be updated
+ */
+ public function actionUpdate($id)
+ {
+ $model=$this->loadModel($id);
+
+ // Uncomment the following line if AJAX validation is needed
+ // $this->performAjaxValidation($model);
+
+ if(isset($_POST['Verein']))
+ {
+ $model->attributes=$_POST['Verein'];
+ if($model->save())
+ $this->redirect(array('view','id'=>$model->id));
+ }
+
+ $standorte = Standort::model()->findAll(array("condition"=>"published=1 and type='Stand'"));
+ $slugs = User::model()->findAll();
+ $this->render('update',array(
+ 'model'=>$model,
+ 'standorte'=>$standorte,
+ 'slugs'=>$slugs
+ ));
+ }
+
+ /**
+ * Deletes a particular model.
+ * If deletion is successful, the browser will be redirected to the 'admin' page.
+ * @param integer $id the ID of the model to be deleted
+ */
+ public function actionDelete($id)
+ {
+ if(Yii::app()->request->isPostRequest)
+ {
+ // we only allow deletion via POST request
+ $this->loadModel($id)->delete();
+
+ // if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser
+ if(!isset($_GET['ajax']))
+ $this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('admin'));
+ }
+ else
+ throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');
+ }
+
+ /**
+ * Lists all models.
+ */
+ public function actionIndex()
+ {
+ $model=new Verein('search');
+ $model->unsetAttributes(); // clear any default values
+ if(isset($_GET['Verein']))
+ $model->attributes=$_GET['Verein'];
+
+ $this->render('index',array(
+ 'model'=>$model,
+ ));
+ }
+
+ /**
+ * 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=Verein::model()->findByPk($id);
+ if($model===null)
+ throw new CHttpException(404,'The requested page does not exist.');
+ return $model;
+ }
+
+ /**
+ * Performs the AJAX validation.
+ * @param CModel the model to be validated
+ */
+ protected function performAjaxValidation($model)
+ {
+ if(isset($_POST['ajax']) && $_POST['ajax']==='verein-form')
+ {
+ echo CActiveForm::validate($model);
+ Yii::app()->end();
+ }
+ }
+}
diff --git a/protected/extensions/extckeditor/assets/CHANGES.html b/protected/extensions/extckeditor/assets/CHANGES.html
new file mode 100644
index 0000000..3038039
--- /dev/null
+++ b/protected/extensions/extckeditor/assets/CHANGES.html
@@ -0,0 +1,1503 @@
+
+
+
+
+ Changelog — CKEditor
+
+
+
+
+
+ CKEditor Changelog
+
+
+ CKEditor 3.6.3
+
+ New features:
+
+
#7430 : Justify commands now perform alignment on the element when an image is selected.
+
#8706 : Better ARIA accessibility for the color picker dialog window.
+
#7366 : Editor paste function is now available on browser toolbar and context menu.
#8333 : Dialog windows can now be closed with the Esc key even if there is no Cancel button available.
+
#8644 : Missing variable declaration in the dialog plugin.
+
#8699 : Focus is now moved to the clicked button and back to color picker dialog window opener (button) in all browsers after the dialog window is closed.
+
#8132 : [IE9] Link line gets broken when it contains a br tag.
+
#8629 : Optimize float panel layout when there is not enough space in the viewport.
+
#7955 : [FF] Page Up and Page Down in the WYSIWYG mode cause the selection to become lost.
+
#8698 : Esc key does not close the color picker dialog window.
+
#8413 : HTML comment nodes break content styling in tables.
+
#7932, #8643 : [IE] Clicking below the content region scrolls the page to the top.
+
#5538, #8729 : [IE] Focus jump results in incorrect context menu display.
+
#6359 : [IE] Selectable area in blank WYSIWYG editor is too small.
+
#7326, #8074 : [FF] Scrolling does not work correctly in editor with large amount of text.
+
#8630 : HTML events are now disabled when loading data.
#7991 : Introduce the controlStyle and inputStyle definitions to allow fine-grained controlling of dialog window element styles.
+
+
+ Fixed issues:
+
+
#7914 : ATTENTION! The signature for the setReadOnly() function has been changed, reversing the meaning of the parameter to be passed to it. Please make sure to update your code when upgrading.
+
#7657 : Wrong margin mirroring when creating a list from RTL paragraphs.
+
#7620 : A glitch in list pasting from Microsoft Word caused by broken child references when filtering.
+
#7811 : [IE] Deleting table row throws a JavaScript error.
+
#6962 : Changed the CKEDITOR.CTRL, CKEDITOR.SHIFT and CKEDITOR.ALT constant values to avoid collision with any possible Unicode character.
+
#6263 : Some table cell context menu options may be incorrectly disabled.
+
#6247 : Focus is not restored properly after a drop-down menu is closed.
+
#7334 : [IE7] Indentation style does not apply to RTL lists.
+
#6845 : Spaces inside the URL field in the Link dialog window will now be removed.
+
#7840 : [IE] Opening the Table Properties dialog window via the context menu causes a JavaScript error.
+
#7733 : Flash movies inserted with the Flash Properties dialog window are not displaying properly when injected into the page.
+
#7837 : [IE<8] Inserting a page break results in an error.
+
#7804 : The HTML5 wbr tag is now recognized by the editor.
+
#7867 : The file browser for the background image in the Document Properties plugin dialog window does not work.
+
#7130 : The column resizer gripping area is invading adjacent table cells.
+
#7844 : [FF] Calling setData() on a hidden editor caused editor not to display.
+
#7860 : The BBCode plugin was stripping BBCode tags that were not implemented in the plugin, but from now on they will be handled as simple text.
+
#7321 : [IE6] Contents inside the RTL fields in dialog windows are overflowing.
+
#7323 : [IE Quirks] Some fields are not centered in the dialog window.
+
#5955 : Editor accessibility issue with JAWS when a drop-down menu is placed as the first item in the toolbar.
+
#6671 : [FF] Selection of an item from the Styles drop-down list is not refreshed after the style is removed.
+
#7879 : The Style and Height/Width fields of the Table Properties dialog window are not synchronized.
+
#7581 : [IE] The Enter key pressed at the end of a list item containing the start attribute crashes the browser.
+
#7266 : Dialog window fields that did not pass validation are now ARIA-compatible with aria-invalid.
+
#7742 : [WebKit] Indentation, alignment, and language direction are not applied on an empty document without the editor being in focus.
+
#7801 : [Opera] Pasted paragraphs now split partially selected blocks.
+
#6663 : Table caption that contains rich text is corrupted after an edit done with the Table Properties dialog window.
+
#7893 : [WebKit, Opera, IE<8] It is impossible to link to anchors in the document.
+
#7637 : Cursor position might in some cases cause problems after inserting a page break.
+
#5314 : The aria-selected attribute is not removed when toolbar drop-down menu items are deselected.
+
#7749 : Small check introduced to avoid issues with custom data processors and the insertHtml function.
+
#7269 : [WebKit] Paste from Word is including the full file:// URL path for anchor links.
+
#7584 : Start number of the List dialog window now works with numbered list items.
+
#6975 : [IE6, IE7] A definition list crashes Internet Explorer on HTML output.
+
#7841 : Deleting a column with a cell deleted in one of the rows does not work.
+
#7944 : The Enter key should not split or create new paragraphs inside caption elements.
+
#7639 : [IE9] Browser might crash when an object is selected in the document.
+
#7847 : [IE8] Inserting an image with non-secure source in a HTTPS page breaks the dialog window.
+
#7953 : [IE] Text selection lost after the browser context menu is opened.
+
#5239 : Inconsistent focus behavior after closing a toolbar drop-down menu.
+
#6470 : The Start attribute of a Numbered List is rendered incorrectly if the field is left empty.
+
#7324 : [IE6 Quirks] Context menus are not displayed correctly.
+
#7566 : BiDi: Increasing indentation of a list item changes the language direction.
+
#7839 : [IE] Pasting multi-level numbered lists from Microsoft Word does not work properly.
+
#188 : [IE] Object selection was making the toolbar inactive in some situations.
#7044 : New BBCode sample plugin that makes the editor output (one dialect of) BBCode format.
+
#5647 : Accessibility enhancements to the structure of the toolbar.
+
#5647 : The Kama skin now presents separators for the toolbar items, making it easier to group buttons and have a cleaner layout.
+
#5647 : Usability enhancements to keyboard navigation on the toolbar. The Tab key is now used to jump between toolbar groups, while the Arrow keys can be used to cycle within the group. The new toolbarGroupCycling setting can be used to change the Arrow keys behavior.
#3582 : New presentation of anchor elements in the WYSIWYG mode.
+
#6737 : The Format drop-down list will now display the preview of its contents exactly as defined in their style configurations.
+
#6654 : A new autoParagraph configuration setting is added to disable the auto paragraphing feature.
+
#901 : New Stylesheet Parser (stylesheetparser) plugin that fills the Styles drop-down list based on the CSS classes available for the content. Check the new sample to learn how to use it.
+
#2988 : New Document Properties (docprops) plugin that sets the metadata of the page in the Full Page mode.
+
#7240 : New Developer Tools (devtools) plugin that shows information about dialog window UI elements to allow for easier customization.
+
#6841 : Pressing the Enter key at the end of a pre-formatted block will now exit from it.
+
#6850 : The About CKEditor dialog window now contains a link to CKEditor User's Guide.
+
#5745 : Extra configuration options for the iframeDialog can now be passed.
+
#6589 : The onDialogEvent function will now be used automatically in the iframeDialog contents if no callback is used on creation.
#6869 : The data-cke-nostyle attribute (which was introduced for escaping the element from been influenced by the style system since 3.5) is deprecated in favor of the new data-nostyle attribute.
+
Revised sample pages with code examples and clarifications.
+
+
+ Fixed issues:
+
+
#5855 : Updating a link multiple times generates wrong href attribute.
+
#6166 : Error on Maximize command, when the toolbar button is not shown.
+
#6607 : Table cell "merge down" and "merge right" commands work only once.
+
#6228 : Merge down does not work, throwing a JavasSript error.
+
#6625 : BIDI: Mixed LTR/RTL direction causes incorrect behavior.
+
#6881 : IFrame capitalization is now consistent throughout labels.
+
#6686 : BIDI: [FF] When we apply explicit language direction to a numbered/bulleted list, the corresponding language direction toolbar icon is not highlighted.
+
#6566 : It is now possible to exit a blockquote using ENTER_BR.
+
#6868 : Partial (invalid) list structure crashes the editor on load.
+
#6804 : Buggy behavior when editing the legend element inside a fieldset.
+
#6724 : [IE7] Nested list display bug on empty list item.
+
#6715 : List items do not create paragraphs after the list placed in a table cell is removed.
+
#6695 : [Webkit] Display bug after the editor is restored from the full screen mode.
+
#6661 : [IE] Pre-formatted style does not preserve applied text direction.
+
#6655 : Using the editor resize grip causes small visual offsets.
+
#6604 : The div element should be used as a formatting block in ENTER_BR.
+
#6249 : BIDI: List item bullets are off viewport with RTL text direction.
+
#6610 : BIDI: ENTER_BR change direction in one line out of multiple.
+
#6872 : [IE] Link target field is not populated properly when no target is set.
+
#6880 : Samples: Added a user-friendly message for users on servers without PHP support.
#6103 : It's now possible to control the styling of inline read-only elements with the disableReadonlyStyling setting. It's also possible to avoid inline-styling any element by setting its "data-cke-nostyle" attribute to "1".
#6099 : BIDI: when we apply explicit language direction to Numbered/Bulleted List the corresponding BIDI Tool bar icon is not highlighted in the Toolbar.
+
#6100 : BIDI: when we change Table language direction indentation of text in Table cells is not applied correctly.
+
#6376 : BIDI: buttons should not toggle the base language direction.
+
#6235 : BIDI: Applying direction to multi-paragraph selection within a div.
+
#6187 : [IE6] Multi-instance loading produces 404s on background images.
+
#5446 : Setting config.filebrowserImageBrowseUrl results in displaying also Browser Server on links.
+
#5626 : CKeditor 3.2.1 : html content attached makes ckeditor crash the browser FF/IE.
#6118 : Initial focus is now set to the tabs in the table properties dialog.
+
#6135 : The dialogadvtab plugin now uses the correct label.
+
#6125 : Focus was lost after applying commands in Opera.
+
#6137 : The table dialog was missing the default width value on second opening.
+
+
+ CKEditor 3.4 Beta
+
+ New features:
+
+
#5909 : New BiDi feature, making it possible to switch the base language direction of block elements.
+
#5268 : Introducing the "tableresize" plugin, which makes it possible to resize tables columns by mouse drag. It's not enabled by default, so it must be enabled in the configurations file.
+
#979 : New enableTabKeyTools configuration to allow using the TAB key to navigate through table cells.
+
#4606 : Introduce the "autogrow" plugin, which makes the editor resize automatically, based on the contents size.
#5418 : New "Advanced" tab introduced on the Table Properties dialog. It's based on the new dialogadvtab plugin.
+
#6082 : Introduced the useComputedState setting, making it possible to control whether toolbar features, like alignment and direction, should reflect the "computed" selection states, even when the effective feature value is not applied.
+
+
+ Fixed issues:
+
+
#5911 : BiDi: List items should support and retain correct base language direction
+
#5689 : Make it possible to run CKEditor inside of Firefox chrome.
+
#6042 : It wasn't possible to align a paragraph with the dir attribute to the opposite direction.
+
#6058 : Fixed a small style glitch with file upload fields in IE+Quirks.
+
+
+ CKEditor 3.3.2
+
+ New features:
+
+
#5882 : Introduce the dialog#selectPage event, replicating the OnDialogTabChange feature available in FCKeditor 2.
+
#5927 : The native controls in ui.dialog.elements can be styled with the controlStyle definition.
+
+
+ Fixed issues:
+
+
#1644 : Removed references to cursor:hand in the stylesheets.
+
#5411 : Anchor, hidden fields and Page-Break objects can no longer be resized.
+
#5456 : Initial focus incorect in api_dialog sample page.
#5780 : Text selection lost when opening some of the dialogs.
+
#5787 : Liststyle plugin wasn't packaged into the core (CKEDITOR.resourceManager.load exception).
+
#5637 : Fix wrong nesting that generated "<head> must be a child of <html>" warning in Webkit.
+
#5790 : Internal only attributes output on fullpage <html> tag.
+
#5761 : [IE] Color dialog matrix buttons are barely clickable in quirks mode.
+
#5759 : [IE] Clicking on the scrollbar and then on the host page causes error.
+
#5772 : List style dialog is missing tab page ids.
+
#5782 : [FF] Wysiwyg mode is broken by 'display' style changes on editor's parent DOM tree.
+
#5801 : [IE] contentEditable="false" doesn't apply in effect on inline-elements.
+
#5794 : Empty find matching twice results in JavaScript error.
+
#5732 : If it isn't possible to connect to the SCAYT servers the dialogs might hang in Firefox. Fix for Firefox>=3.6.
+
#5807 : [FF2] New page command results in uneditable document.
+
#5807 : [FF2] SCAYT plugin is disabled in Firefox2 due to selection interference.
+
#5772 : [IE] Some numbered list style types are not supported by IE6/7 and causes JavaScript error.
+
+
+ CKEditor 3.3
+
+ New features:
+
+
#635 : The properties dialog will now open when double clicking on objects.
+
#3893 : It's now possible to indent/outdent lists when selecting the first list item.
+
#4968 : The contentsLangDirection setting now has a default value 'ui' which inherit language direction from the editor UI language.
+
#4649 : The color picker dialog is now accessible.
+
#3593 : The editing area is now enabled by contentEditable="true" instead of designMode="on" to allow creating uneditable content elements in all browsers.
+
#4056 : Hidden fields will now be displayed as fake element just like in FCKeditor 2.
+
+
+ CKEditor 3.2.2
+
+ New features:
+
+
The SCAYT spell checker is now enabled by default through the autoStartup setting.
#4478 : Enable the SelectAll command in source mode.
+
#5150 : Allow names in the CKEDITOR.config.colorButton_colors setting.
+
#4810 : Adding configuration option for image dialog preview area filling text.
+
#536 : Object style now could be applied on any parent element of current selection.
+
#5290 : Unified stylesSet loading removing dependencies from the styles combo.
+ Now the configuration entry is named 'config.stylesSet' instead of config.stylesCombo_stylesSet and the default location
+ is under the 'styles' plugin instead of 'stylescombo'.
+
#5352 : Allow to define the stylesSet array in the config object for the editor.
- "
- .$wetter['jetzt']['zustand']." bei ".$wetter['jetzt']['temperatur']."°C"; ?> Min. °C bis max. °C
-
-
-
-
-
-
- ".$wetter['morgen']['zustand']." bei min. ".$wetter['morgen']['tiefsttemperatur']."°C bis max. ".$wetter['morgen']['hoechsttemperatur']."°C"; ?>
-
-
-
+
+ "
+ .$wetter['jetzt']['zustand']." bei ".$wetter['jetzt']['temperatur']."°C"; ?> Min. °C bis max. °C
+
+
+
+
+
+
+ ".$wetter['morgen']['zustand']." bei min. ".$wetter['morgen']['tiefsttemperatur']."°C bis max. ".$wetter['morgen']['hoechsttemperatur']."°C"; ?>
+
+
+
+
+
diff --git a/protected/models/Angebot.php b/protected/models/Angebot.php
new file mode 100644
index 0000000..d6ae02a
--- /dev/null
+++ b/protected/models/Angebot.php
@@ -0,0 +1,106 @@
+true),
+ array('name', 'length', 'max'=>80),
+ array('beschreibung', 'safe'),
+ // The following rule is used by search().
+ // Please remove those attributes that should not be searched.
+ array('id, kategorie_id, name, beschreibung, published', 'safe', 'on'=>'search'),
+ );
+ }
+
+ /**
+ * @return array relational rules.
+ */
+ public function relations()
+ {
+ // NOTE: you may need to adjust the relation name and the related
+ // class name for the relations automatically generated below.
+ return array(
+ "kategorie"=>array(self::HAS_ONE, "Kategorie", array('id'=>'kategorie_id')),
+ "angebot_vereine"=>array(self::HAS_MANY, "AngebotVerein", array('angebot_id'=>'id'))
+ );
+ }
+
+ /**
+ * @return array customized attribute labels (name=>label)
+ */
+ public function attributeLabels()
+ {
+ return array(
+ 'id' => 'ID',
+ 'kategorie_id' => 'Kategorie',
+ 'kategorie' => 'Kategorie',
+ 'name' => 'Name',
+ 'beschreibung' => 'Beschreibung',
+ 'published' => 'Öffentlich',
+ );
+ }
+
+ /**
+ * Retrieves a list of models based on the current search/filter conditions.
+ * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
+ */
+ public function search()
+ {
+ // Warning: Please modify the following code to remove attributes that
+ // should not be searched.
+
+ $criteria=new CDbCriteria;
+
+ $criteria->compare('id',$this->id);
+ $criteria->compare('kategorie_id',$this->kategorie_id);
+ $criteria->compare('name',$this->name,true);
+ $criteria->compare('beschreibung',$this->beschreibung,true);
+ $criteria->compare('published',$this->published);
+
+ return new CActiveDataProvider($this, array(
+ 'criteria'=>$criteria,
+ ));
+ }
+
+ public function behaviors() {
+ return array(
+ 'LoggableBehavior'=>'application.modules.auditTrail.behaviors.LoggableBehavior',
+ );
+ }
+}
\ No newline at end of file
diff --git a/protected/models/AngebotVerein.php b/protected/models/AngebotVerein.php
new file mode 100644
index 0000000..26c6dab
--- /dev/null
+++ b/protected/models/AngebotVerein.php
@@ -0,0 +1,108 @@
+true),
+ array('menge, preis', 'numerical'),
+ array('einheit', 'length', 'max'=>20),
+ // The following rule is used by search().
+ // Please remove those attributes that should not be searched.
+ array('angebot_id, verein_id, menge, einheit, preis, published', 'safe', 'on'=>'search'),
+ );
+ }
+
+ /**
+ * @return array relational rules.
+ */
+ public function relations()
+ {
+ // NOTE: you may need to adjust the relation name and the related
+ // class name for the relations automatically generated below.
+ return array(
+ "angebot"=>array(self::HAS_ONE, "Angebot", array('id'=>'angebot_id')),
+ "verein"=>array(self::HAS_ONE, "Verein", array('id'=>'verein_id'))
+ );
+ }
+
+ /**
+ * @return array customized attribute labels (name=>label)
+ */
+ public function attributeLabels()
+ {
+ return array(
+ 'angebot_id' => 'Angebot',
+ 'verein_id' => 'Verein',
+ 'menge' => 'Menge',
+ 'einheit' => 'Einheit',
+ 'preis' => 'Preis',
+ 'published' => 'Öffentlich',
+ );
+ }
+
+ /**
+ * Retrieves a list of models based on the current search/filter conditions.
+ * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
+ */
+ public function search()
+ {
+ // Warning: Please modify the following code to remove attributes that
+ // should not be searched.
+
+ $criteria=new CDbCriteria;
+
+ $criteria->compare('angebot_id',$this->angebot_id);
+ $criteria->compare('verein_id',$this->verein_id);
+ $criteria->compare('menge',$this->menge);
+ $criteria->compare('einheit',$this->einheit,true);
+ $criteria->compare('preis',$this->preis);
+ $criteria->compare('published',$this->published);
+
+ return new CActiveDataProvider($this, array(
+ 'criteria'=>$criteria,
+ ));
+ }
+
+ public function behaviors() {
+ return array(
+ 'LoggableBehavior'=>'application.modules.auditTrail.behaviors.LoggableBehavior',
+ );
+ }
+}
\ No newline at end of file
diff --git a/protected/models/CmsPage.php b/protected/models/CmsPage.php
deleted file mode 100644
index 92acf23..0000000
--- a/protected/models/CmsPage.php
+++ /dev/null
@@ -1,133 +0,0 @@
-true),
- array('status', 'in', 'range'=>array(1,2,3)),
- array('title, slug', 'length', 'max'=>255),
- // The following rule is used by search().
- // Please remove those attributes that should not be searched.
- array('id, content, title, create_time, update_time, status, slug', 'safe', 'on'=>'search'),
- //array('title, status', 'safe', 'on'=>'search'),
- );
- }
-
- /**
- * @return array relational rules.
- */
- public function relations()
- {
- // NOTE: you may need to adjust the relation name and the related
- // class name for the relations automatically generated below.
- return array(
- );
- }
-
- /**
- * @return array customized attribute labels (name=>label)
- */
- public function attributeLabels()
- {
- return array(
- 'id' => 'ID',
- 'content' => 'Content',
- 'title' => 'Title',
- 'create_time' => 'Create Time',
- 'update_time' => 'Update Time',
- 'status' => 'Status',
- 'slug' => 'Slug',
- );
- }
-
- /**
- * Retrieves a list of models based on the current search/filter conditions.
- * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
- */
- public function search()
- {
- // Warning: Please modify the following code to remove attributes that
- // should not be searched.
-
- $criteria=new CDbCriteria;
-
- $criteria->compare('id',$this->id);
- $criteria->compare('content',$this->content,true);
- $criteria->compare('title',$this->title,true);
- $criteria->compare('create_time',$this->create_time,true);
- $criteria->compare('update_time',$this->update_time,true);
- $criteria->compare('status',$this->status);
- $criteria->compare('slug',$this->slug,true);
-
- return new CActiveDataProvider($this, array(
- 'criteria'=>$criteria,
- ));
- }
-
- public function getUrl()
- {
- return Yii::app()->createUrl('cms', array(
- 'slug'=>$this->slug,
- ));
- }
-
- protected function beforeSave()
- {
- if(parent::beforeSave())
- {
- if($this->isNewRecord)
- {
- $this->create_time=$this->update_time=new CDbExpression('NOW()');
- //$this->author_id=Yii::app()->user->id;
- }
- else
- $this->update_time=new CDbExpression('NOW()');
- return true;
- }
- else
- return false;
- }
-}
\ No newline at end of file
diff --git a/protected/models/Kategorie.php b/protected/models/Kategorie.php
new file mode 100644
index 0000000..93c799d
--- /dev/null
+++ b/protected/models/Kategorie.php
@@ -0,0 +1,107 @@
+true),
+ array('default_menge', 'numerical', "numberPattern"=>"/^\s*[-+]?[0-9]*(,|\.)?[0-9]+([eE][-+]?[0-9]+)?\s*$/"),
+ array('name, einheiten', 'length', 'max'=>100),
+ array('default_einheit', 'length', 'max'=>20),
+ // The following rule is used by search().
+ // Please remove those attributes that should not be searched.
+ array('id, name, einheiten, default_menge, default_einheit, published', 'safe', 'on'=>'search'),
+ );
+ }
+
+ /**
+ * @return array relational rules.
+ */
+ public function relations()
+ {
+ // NOTE: you may need to adjust the relation name and the related
+ // class name for the relations automatically generated below.
+ return array(
+ );
+ }
+
+ /**
+ * @return array customized attribute labels (name=>label)
+ */
+ public function attributeLabels()
+ {
+ return array(
+ 'id' => 'ID',
+ 'name' => 'Name',
+ 'einheiten' => 'Einheiten',
+ 'default_menge' => 'Standardmenge',
+ 'default_einheit' => 'Standardeinheit',
+ 'published' => 'Published',
+ );
+ }
+
+ /**
+ * Retrieves a list of models based on the current search/filter conditions.
+ * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
+ */
+ public function search()
+ {
+ // Warning: Please modify the following code to remove attributes that
+ // should not be searched.
+
+ $criteria=new CDbCriteria;
+
+ $criteria->compare('id',$this->id);
+ $criteria->compare('name',$this->name,true);
+ $criteria->compare('einheiten',$this->einheiten,true);
+ $criteria->compare('default_menge',$this->default_menge);
+ $criteria->compare('default_einheit',$this->default_einheit,true);
+ $criteria->compare('published',$this->published);
+
+ return new CActiveDataProvider($this, array(
+ 'criteria'=>$criteria,
+ ));
+ }
+
+ public function behaviors() {
+ return array(
+ 'LoggableBehavior'=>'application.modules.auditTrail.behaviors.LoggableBehavior',
+ );
+ }
+}
\ No newline at end of file
diff --git a/protected/models/Standort.php b/protected/models/Standort.php
new file mode 100644
index 0000000..d62a594
--- /dev/null
+++ b/protected/models/Standort.php
@@ -0,0 +1,112 @@
+pos_lat = Yii::app()->params['pos_lat'];
+ $this->pos_long = Yii::app()->params['pos_long'];
+ }
+
+ /**
+ * @return string the associated database table name
+ */
+ public function tableName()
+ {
+ return 'standorte';
+ }
+
+ /**
+ * @return array validation rules for model attributes.
+ */
+ public function rules()
+ {
+ // NOTE: you should only define rules for those attributes that
+ // will receive user inputs.
+ return array(
+ array('name, pos_lat, pos_long, type', 'required'),
+ array('published', 'numerical', 'integerOnly'=>true),
+ array('pos_lat, pos_long', 'numerical'),
+ array('type', 'length', 'max'=>6),
+ array('name', 'length', 'max'=>80),
+ // The following rule is used by search().
+ // Please remove those attributes that should not be searched.
+ array('id, type, name, pos_lat, pos_long, published', 'safe', 'on'=>'search'),
+ );
+ }
+
+ /**
+ * @return array relational rules.
+ */
+ public function relations()
+ {
+ // NOTE: you may need to adjust the relation name and the related
+ // class name for the relations automatically generated below.
+ return array(
+ );
+ }
+
+ /**
+ * @return array customized attribute labels (name=>label)
+ */
+ public function attributeLabels()
+ {
+ return array(
+ 'id' => 'ID',
+ 'type' => 'Typ',
+ 'name' => 'Name',
+ 'pos_lat' => 'Pos Lat',
+ 'pos_long' => 'Pos Long',
+ 'published' => 'Öffentlich',
+ );
+ }
+
+ /**
+ * Retrieves a list of models based on the current search/filter conditions.
+ * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
+ */
+ public function search()
+ {
+ // Warning: Please modify the following code to remove attributes that
+ // should not be searched.
+
+ $criteria=new CDbCriteria;
+
+ $criteria->compare('id',$this->id);
+ $criteria->compare('type',$this->type,true);
+ $criteria->compare('name',$this->name,true);
+ $criteria->compare('pos_lat',$this->pos_lat);
+ $criteria->compare('pos_long',$this->pos_long);
+ $criteria->compare('published',$this->published);
+
+ return new CActiveDataProvider($this, array(
+ 'criteria'=>$criteria,
+ ));
+ }
+
+ public function behaviors() {
+ return array(
+ 'LoggableBehavior'=>'application.modules.auditTrail.behaviors.LoggableBehavior',
+ );
+ }
+}
\ No newline at end of file
diff --git a/protected/models/Veranstaltung.php b/protected/models/Veranstaltung.php
new file mode 100644
index 0000000..64c7854
--- /dev/null
+++ b/protected/models/Veranstaltung.php
@@ -0,0 +1,130 @@
+true),
+ array('titel', 'length', 'max'=>100),
+ array('startzeit, endzeit, beschreibung', 'safe'),
+ array('startzeit, endzeit', 'date', 'format'=>'dd.MM.yyyy HH:mm'),
+ array('startzeit, endzeit', 'DateRangeValidator', 'minDate'=>Yii::app()->params['start_date'].' '.Yii::app()->params['start_time'], 'maxDate'=>Yii::app()->params['end_date'].' '.Yii::app()->params['end_time']),
+ array('startzeit', 'DateCompareValidator', 'compareAttribute'=>'endzeit', 'operator'=>'<'),
+ // The following rule is used by search().
+ // Please remove those attributes that should not be searched.
+ array('id, verein_id, titel, startzeit, endzeit, beschreibung, standort_id, published', 'safe', 'on'=>'search'),
+ );
+ }
+
+ /**
+ * @return array relational rules.
+ */
+ public function relations()
+ {
+ // NOTE: you may need to adjust the relation name and the related
+ // class name for the relations automatically generated below.
+ return array(
+ 'standort' => array(self::BELONGS_TO, 'Standort', 'standort_id'),
+ 'verein' => array(self::BELONGS_TO, 'Verein', 'verein_id'),
+ );
+ }
+
+ /**
+ * @return array customized attribute labels (name=>label)
+ */
+ public function attributeLabels()
+ {
+ return array(
+ 'id' => 'ID',
+ 'verein_id' => 'Verein',
+ 'titel' => 'Titel',
+ 'startzeit' => 'Startzeit',
+ 'endzeit' => 'Endzeit',
+ 'beschreibung' => 'Beschreibung',
+ 'standort_id' => 'Standort',
+ 'published' => 'Öffentlich',
+ );
+ }
+
+ /**
+ * Retrieves a list of models based on the current search/filter conditions.
+ * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
+ */
+ public function search()
+ {
+ // Warning: Please modify the following code to remove attributes that
+ // should not be searched.
+
+ $criteria=new CDbCriteria;
+
+ $criteria->compare('id',$this->id);
+ $criteria->compare('verein_id',$this->verein_id);
+ $criteria->compare('titel',$this->titel,true);
+ $criteria->compare('startzeit',$this->startzeit,true);
+ $criteria->compare('endzeit',$this->endzeit,true);
+ $criteria->compare('beschreibung',$this->beschreibung,true);
+ $criteria->compare('standort_id',$this->standort_id);
+ $criteria->compare('published',$this->published);
+
+ return new CActiveDataProvider($this, array(
+ 'criteria'=>$criteria,
+ ));
+ }
+
+ public function beforeSave() {
+ $isValid = parent::beforeSave();
+ if ($isValid) {
+ $this->startzeit = Format::dbDateTime($this->startzeit);
+ $this->endzeit = Format::dbDateTime($this->endzeit);
+ }
+ return $isValid;
+ }
+
+ public function behaviors() {
+ return array(
+ 'LoggableBehavior'=>'application.modules.auditTrail.behaviors.LoggableBehavior',
+ );
+ }
+}
\ No newline at end of file
diff --git a/protected/models/Verein.php b/protected/models/Verein.php
new file mode 100644
index 0000000..f0d30dd
--- /dev/null
+++ b/protected/models/Verein.php
@@ -0,0 +1,125 @@
+true),
+ array('name, url', 'length', 'max'=>255),
+ array('bild, email, slug', 'length', 'max'=>100),
+ array("url", "url", "allowEmpty"=>true, "message"=>"Die eingebene URL ist ungültig."),
+ array("email", "email", "message"=>"Die eingebene eMail-Adresse ist ungültig."),
+ array("uploadedImage", "file", "types"=>"jpg, gif, png", "allowEmpty"=>true, "wrongType"=>'Die Datei "{file}" konnte nicht hochgeladen werden. Es sind nur Dateien mit den folgenden Endungen erlaubt: {extensions}.'),
+ array('kontaktdaten, beschreibung', 'safe'),
+ // The following rule is used by search().
+ // Please remove those attributes that should not be searched.
+ array('id, name, url, bild, email, slug, kontaktdaten, beschreibung, standort_id, published', 'safe', 'on'=>'search'),
+ );
+ }
+
+ /**
+ * @return array relational rules.
+ */
+ public function relations()
+ {
+ // NOTE: you may need to adjust the relation name and the related
+ // class name for the relations automatically generated below.
+ return array(
+ "standort"=>array(self::HAS_ONE, "Standort", array('id'=>'standort_id'))
+ );
+ }
+
+ /**
+ * @return array customized attribute labels (name=>label)
+ */
+ public function attributeLabels()
+ {
+ return array(
+ 'id' => 'ID',
+ 'name' => 'Name',
+ 'url' => 'Homepage',
+ 'bild' => 'Logo',
+ 'email' => 'Email',
+ 'slug' => 'Anmeldename',
+ 'kontaktdaten' => 'Kontaktdaten',
+ 'beschreibung' => 'Beschreibung',
+ 'standort_id' => 'Standort',
+ 'standort' => 'Standort',
+ 'published' => 'Öffentlich',
+ );
+ }
+
+ /**
+ * Retrieves a list of models based on the current search/filter conditions.
+ * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
+ */
+ public function search()
+ {
+ // Warning: Please modify the following code to remove attributes that
+ // should not be searched.
+
+ $criteria=new CDbCriteria;
+
+ $criteria->compare('id',$this->id);
+ $criteria->compare('name',$this->name,true);
+ $criteria->compare('url',$this->url,true);
+ $criteria->compare('bild',$this->bild,true);
+ $criteria->compare('email',$this->email,true);
+ $criteria->compare('slug',$this->slug,true);
+ $criteria->compare('kontaktdaten',$this->kontaktdaten,true);
+ $criteria->compare('beschreibung',$this->beschreibung,true);
+ $criteria->compare('standort_id',$this->standort_id);
+ $criteria->compare('published',$this->published);
+
+ return new CActiveDataProvider($this, array(
+ 'criteria'=>$criteria,
+ ));
+ }
+
+ public function behaviors() {
+ return array(
+// 'LoggableBehavior'=>'application.modules.auditTrail.behaviors.LoggableBehavior',
+ );
+ }
+}
\ No newline at end of file
diff --git a/protected/modules/cms/models/Cms.php b/protected/modules/cms/models/Cms.php
index 885e589..ca64bad 100644
--- a/protected/modules/cms/models/Cms.php
+++ b/protected/modules/cms/models/Cms.php
@@ -35,8 +35,12 @@ class Cms {
$column .' = :id', array(
':id' => $id));
- if(!$sitecontent && Cms::module()->strict404raising)
+ if(!$sitecontent && Yii::app()->getModule('cms')->strict404raising)
throw new CHttpException(404);
+ else if (!$sitecontent) {
+ $sitecontent = new Sitecontent();
+ $sitecontent->content = "";
+ }
else if($return)
return $sitecontent->content;
else
@@ -57,12 +61,12 @@ class Cms {
}
}
public static function getMenuPoints($id) {
-
+ $tmp=array();
if(is_numeric($id))
$sitecontent = Sitecontent::model()->findByAttributes(array('id'=> $id));
$childs = $sitecontent->childs;
if($childs) {
- $tmp=array();
+
foreach($sitecontent->childs as $child) {
Yii::trace("Lala","Debug");
$tmp = array_merge($tmp,array(array('label'=>$child->title, 'url'=>array('/cms/sitecontent/view', 'page'=>$child->title_url))));
diff --git a/protected/runtime/application.log b/protected/runtime/application.log
index 03f7301..d3b2c1c 100644
--- a/protected/runtime/application.log
+++ b/protected/runtime/application.log
@@ -202,3 +202,4688 @@ Stack trace:
#22 {main}
REQUEST_URI=/index.php?r=cmsPage/view&id=1
---
+2012/04/18 18:46:05 [error] [php] Invalid argument supplied for foreach() (D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\zii\widgets\CMenu.php:255)
+Stack trace:
+#0 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(148): CMenu->init()
+#1 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(173): SiteController->createWidget()
+#2 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\www.astaf.de\themes\astaf\views\layouts\main.php(49): SiteController->widget()
+#3 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(127): require()
+#4 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(96): SiteController->renderInternal()
+#5 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\widgets\CContentDecorator.php(77): SiteController->renderFile()
+#6 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\widgets\CContentDecorator.php(55): CContentDecorator->decorate()
+#7 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\widgets\COutputProcessor.php(45): CContentDecorator->processOutput()
+#8 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(207): CContentDecorator->run()
+#9 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(301): SiteController->endWidget()
+#10 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\www.astaf.de\protected\views\layouts\column1.php(5): SiteController->endContent()
+#11 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(127): require()
+#12 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(96): SiteController->renderInternal()
+#13 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CController.php(785): SiteController->renderFile()
+#14 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\www.astaf.de\protected\controllers\SiteController.php(32): SiteController->render()
+#15 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\actions\CInlineAction.php(50): SiteController->actionIndex()
+#16 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CController.php(309): CInlineAction->runWithParams()
+#17 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CController.php(287): SiteController->runAction()
+#18 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CController.php(266): SiteController->runActionWithFilters()
+#19 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CWebApplication.php(276): SiteController->run()
+#20 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CWebApplication.php(135): CWebApplication->runController()
+#21 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\base\CApplication.php(162): CWebApplication->processRequest()
+#22 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\www.astaf.de\index.php(13): CWebApplication->run()
+REQUEST_URI=/index.php?r=site/index
+in D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\www.astaf.de\themes\astaf\views\layouts\main.php (49)
+in D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\www.astaf.de\protected\views\layouts\column1.php (5)
+in D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\www.astaf.de\protected\controllers\SiteController.php (32)
+2012/04/18 18:51:54 [error] [php] include(CHmtl.php) [function.include]: failed to open stream: No such file or directory (D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\YiiBase.php:418)
+Stack trace:
+#0 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\www.astaf.de\themes\astaf\views\layouts\main.php(32): spl_autoload_call()
+#1 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(127): require()
+#2 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(96): SiteController->renderInternal()
+#3 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\widgets\CContentDecorator.php(77): SiteController->renderFile()
+#4 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\widgets\CContentDecorator.php(55): CContentDecorator->decorate()
+#5 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\widgets\COutputProcessor.php(45): CContentDecorator->processOutput()
+#6 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(207): CContentDecorator->run()
+#7 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(301): SiteController->endWidget()
+#8 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\www.astaf.de\protected\views\layouts\column1.php(5): SiteController->endContent()
+#9 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(127): require()
+#10 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(96): SiteController->renderInternal()
+#11 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CController.php(785): SiteController->renderFile()
+#12 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\actions\CViewAction.php(141): SiteController->render()
+#13 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\actions\CAction.php(75): CViewAction->run()
+#14 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CController.php(309): CViewAction->runWithParams()
+#15 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CController.php(287): SiteController->runAction()
+#16 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CController.php(266): SiteController->runActionWithFilters()
+#17 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CWebApplication.php(276): SiteController->run()
+#18 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CWebApplication.php(135): CWebApplication->runController()
+#19 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\base\CApplication.php(162): CWebApplication->processRequest()
+#20 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\www.astaf.de\index.php(13): CWebApplication->run()
+REQUEST_URI=/index.php?r=site/page&view=about
+in D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\www.astaf.de\themes\astaf\views\layouts\main.php (32)
+in D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\www.astaf.de\protected\views\layouts\column1.php (5)
+in D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\www.astaf.de\index.php (13)
+2012/04/18 18:52:10 [error] [exception.CException] exception 'CException' with message 'Property "CWebApplication.title" is not defined.' in D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\base\CComponent.php:131
+Stack trace:
+#0 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\base\CModule.php(106): CComponent->__get('title')
+#1 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\www.astaf.de\themes\astaf\views\layouts\main.php(32): CModule->__get('title')
+#2 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(127): require('D:\Priv\CCWN\As...')
+#3 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\CBaseController.php(96): CBaseController->renderInternal('D:\Priv\CCWN\As...', Array, true)
+#4 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\widgets\CContentDecorator.php(77): CBaseController->renderFile('D:\Priv\CCWN\As...', Array, true)
+#5 D:\Priv\CCWN\Astaf_2012\DevEnv\workspace\yii-framework\framework\web\widgets\CContentDecorator.php(55): CContentDecorator->decorate('
-You may optionally enter a comparison operator (<, <=, >, >=, <>
-or =) at the beginning of each of your search values to specify how the comparison should be done.
-
\ No newline at end of file
diff --git a/protected/views/common/_comparison_text.php b/protected/views/common/_comparison_text.php
new file mode 100644
index 0000000..f2a0b2c
--- /dev/null
+++ b/protected/views/common/_comparison_text.php
@@ -0,0 +1,4 @@
+
+Die optionale Eingabe von Vergleichsoperatoren (<, <=, >, >=, <>
+or =) zu Beginn eines Suchwertes dient der Spezifikation, wie der Vergleich erfolgen soll.
+
\ No newline at end of file
diff --git a/protected/views/common/_required_fields_text.php b/protected/views/common/_required_fields_text.php
new file mode 100644
index 0000000..8b2ca71
--- /dev/null
+++ b/protected/views/common/_required_fields_text.php
@@ -0,0 +1 @@
+
Mit * gekennzeichnete Felder sind Pflichtfelder.
\ No newline at end of file
diff --git a/protected/views/verein/_form.php b/protected/views/verein/_form.php
new file mode 100644
index 0000000..dbda2db
--- /dev/null
+++ b/protected/views/verein/_form.php
@@ -0,0 +1,114 @@
+
\ No newline at end of file
diff --git a/protected/views/verein/_search.php b/protected/views/verein/_search.php
new file mode 100644
index 0000000..d06dd24
--- /dev/null
+++ b/protected/views/verein/_search.php
@@ -0,0 +1,64 @@
+
\ No newline at end of file
diff --git a/protected/views/verein/_short.php b/protected/views/verein/_short.php
new file mode 100644
index 0000000..e31ed34
--- /dev/null
+++ b/protected/views/verein/_short.php
@@ -0,0 +1,11 @@
+