Hi All
I used FancyBox extension
http://www.yiiframework.com/extension/fancybox
I added fancy box to update action in grid view button , it's work in perfect way in first results page , But the problem is in second page not work ?
how to fix that
Thanks in advance
my view :
I used FancyBox extension
http://www.yiiframework.com/extension/fancybox
I added fancy box to update action in grid view button , it's work in perfect way in first results page , But the problem is in second page not work ?
how to fix that
Thanks in advance
my view :
<?php $config = array( 'titleShow' => false, ); /// Add fancy box Ext $this->widget('application.extensions.fancybox.EFancyBox', array( 'target'=>'#add', 'config'=>$config,)); $this->widget('application.extensions.fancybox.EFancyBox', array( 'target'=>'.update', 'config'=>$config,)); ?> <div class="texts"><?php echo CHtml::link('إضافةبرشور',array('pam/create'),array('id'=>'add')); ?></div> <div class="texts"><?php echo CHtml::link('بحث متقدم','#',array('class'=>'search-button')); ?></div> <div class="search-form" style="display:none"> <?php $this->renderPartial('_search',array( 'model'=>$model, )); ?> </div><!-- search-form --> <?php $this->widget('zii.widgets.grid.CGridView', array( 'id'=>'pam-grid', 'dataProvider'=>$model->search(), 'filter'=>$model, 'cssFile' => Yii::app()->request->baseUrl."/css/gridview/styles.css", 'columns'=>array( 'pam_id', 'title', 'thumb', 'file', array( 'name'=>'type', 'header'=>'نوع الملف', 'type'=>'html', 'value'=>'$data->getTypeText($data->type)', ), 'course_id', array( 'template'=>'{update} {view} {delete}', 'htmlOptions'=>array('width'=>'100px'), 'class'=>'CButtonColumn', 'buttons'=>array( 'update'=>array( 'lable'=>'تعديل', 'options'=>array('class'=>'update'), 'imageUrl'=>Yii::app()->request->baseUrl.'/images/edit.png', ) , 'view'=>array( 'lable'=>'تفاصيل', 'imageUrl'=>Yii::app()->request->baseUrl.'/images/view.png', ) , 'delete'=>array( 'lable'=>'حذف', 'imageUrl'=>Yii::app()->request->baseUrl.'/images/delete.png', 'click'=>'function(){return confirm("هل انت متأكد?");}' ) , ), ), ), )); ?>