insun
- insun 回复了话题 关于CSS的两个问题
css选择器,自己去翻翻css基本的书就能解决。
- insun 回复了话题 jQuery滑动菜单
都差不多。
那是前6章,我们yiibook组已经在翻译了。
raw全书大概9月底可以全部面世。
我翻译完了第一章:
http://blog.yiibook.com/?p=487到时候会统一成pdf。
- insun 回复了话题 YII如何实现弹出框啊
类似这样。
<?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array( 'id'=>'mydialog', // additional javascript options for the dialog plugin 'options'=>array( 'title'=>Yii::t('query','查询系统'), 'autoOpen'=>false, 'modal'=>'true', 'width'=>'auto', 'height'=>'auto', ), )); echo Yii::app()->user->name.'<br>'.'欢迎你来使用考勤查询系统!'; $this->endWidget('zii.widgets.jui.CJuiDialog'); // the link that may open the dialog echo CHtml::link('点我吧','#',array( 'onclick'=>'$("#mydialog").dialog("open"); return false;', )); ?>
- insun 回复了话题 CGridView里怎么加两种分页方式
两个同时用?什么意思,2个都用么~~写2个php就行了。
<?php $this->widget('zii.widgets.grid.CGridView', array( 'id'=>'leave-grid', 'dataProvider'=>$model->search(), 'filter'=>$model, 'columns'=>array( 'date', 'type', 'reasons', 'username', array( 'class'=>'CButtonColumn', ), ), )); ?> <?php $this->widget('zii.widgets.CListView', array( 'dataProvider'=>$dataProvider, 'itemView'=>'_view', )); ?>