summaryrefslogtreecommitdiff
path: root/protected/views/common/_advanced_search.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/views/common/_advanced_search.php')
-rw-r--r--protected/views/common/_advanced_search.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/protected/views/common/_advanced_search.php b/protected/views/common/_advanced_search.php
new file mode 100644
index 0000000..78d3837
--- /dev/null
+++ b/protected/views/common/_advanced_search.php
@@ -0,0 +1,20 @@
+<?php
+Yii::app()->clientScript->registerScript('search', "
+$('.search-button').click(function(){
+ $('.search-form').toggle();
+ return false;
+});
+$('.search-form form').submit(function(){
+ $.fn.yiiGridView.update('angebot-grid', {
+ data: $(this).serialize()
+ });
+ return false;
+});
+");
+?>
+<?php echo CHtml::link('Erweiterte Suche','#',array('class'=>'search-button')); ?>
+<div class="search-form" style="display:none">
+<?php $this->renderPartial('_search',array(
+ 'model'=>$model,
+)); ?>
+</div><!-- search-form --> \ No newline at end of file