diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2012-05-13 16:51:28 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2012-05-13 16:51:28 +0200 |
| commit | 94bdb31c204cdae3ca820828d4731f11f6ffeeae (patch) | |
| tree | 957a63d27379789d808737e6fb8b88ea651d5c1c /protected/modules/cms | |
| parent | a6cd00ec233d1c7676d75224900ed1543130ac94 (diff) | |
Suche fast fertig
Diffstat (limited to '')
| -rw-r--r-- | protected/modules/cms/controllers/SitecontentController.php | 3 | ||||
| -rw-r--r-- | protected/modules/cms/views/sitecontent/_short.php | 34 |
2 files changed, 37 insertions, 0 deletions
diff --git a/protected/modules/cms/controllers/SitecontentController.php b/protected/modules/cms/controllers/SitecontentController.php index a2a3906..e4f7a5f 100644 --- a/protected/modules/cms/controllers/SitecontentController.php +++ b/protected/modules/cms/controllers/SitecontentController.php @@ -17,6 +17,9 @@ class SitecontentController extends Controller $q = new CDbCriteria(); $q->addSearchCondition('content',$_POST['search']); $results = Sitecontent::model()->findAll($q); + $q = new CDbCriteria(); + $q->addSearchCondition('beschreibung',$_POST['search']); + $results = Verein::model()->findAll($q); $this->render('results', array( 'results' => $results, diff --git a/protected/modules/cms/views/sitecontent/_short.php b/protected/modules/cms/views/sitecontent/_short.php new file mode 100644 index 0000000..0352c04 --- /dev/null +++ b/protected/modules/cms/views/sitecontent/_short.php @@ -0,0 +1,34 @@ +<div class="view"> + + <b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b> + <?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?> + <br /> + + <b><?php echo CHtml::encode($data->getAttributeLabel('position')); ?>:</b> + <?php echo CHtml::encode($data->position); ?> + <br /> + + <b><?php echo CHtml::encode($data->getAttributeLabel('title')); ?>:</b> + <?php echo CHtml::encode($data->title); ?> + <br /> + + <b><?php echo CHtml::encode($data->getAttributeLabel('content')); ?>:</b> + <?php echo CHtml::encode($data->content); ?> + <br /> + + <b><?php echo CHtml::encode($data->getAttributeLabel('authorid')); ?>:</b> + <?php echo CHtml::encode($data->authorid); ?> + <br /> + + <b><?php echo CHtml::encode($data->getAttributeLabel('createtime')); ?>:</b> + <?php echo CHtml::encode($data->createtime); ?> + <br /> + + <?php /* + <b><?php echo CHtml::encode($data->getAttributeLabel('updatetime')); ?>:</b> + <?php echo CHtml::encode($data->updatetime); ?> + <br /> + + */ ?> + +</div> |
