Do you have tables (generally grid views), that have a date field? and is that date important to the your user? with XDateView you can show the user a table grouped by a date field in an organized way, that allows you user to quickly understand the time frames of you dataset.
Requirements ¶
Developed and tested with Yii 1.1.8, but should work with other 1.1.* versions.
Usage ¶
Download and extract the contents to you extensions folder
XDateView extends from CGridView, so it inherits all of its attributes, there are however 2 more attributes.
- dateField which tells the grid which is the column with the date info to group with
- tableOptions HTML options for the table
<?php
$this->widget('ext.xdateview.XDateView',array(
'dataProvider'=>$model->search(),
'filter'=>$model,
'dateField' => "create_time",//the default value
'columns'=>array(
...
),
));
?>
Info: Please post your questions/recommendations/fixes/etc on the forum, try to keep comments here for other things
Resources ¶
Changelog ¶
v0.2 ¶
- Fixed bug with empty datasets missing a colspan
v0.1 ¶
- First release
modification for older yii versions
You needs to define below variables XdateView class to work with older yii versions.I checked with 1.1.6
public $ajaxUrl; public $updateSelector; public $ajaxUpdateError;
Thanks for the plugin
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.