<?php use_helper('Widgets'); ?> <?php $links = array('lorem' => array('name' => 'Most Lorem', 'internal_uri' => '@homepage'), 'ipsum' => array('name' => 'Most Ipsum', 'options' => array('onclick' => 'alert("Hi!")')), 'picks' => array('name' => 'Staff Picks', 'options' => array('query_string' => 'i_like_apples=yes'))); ?> <h2>DataFilter</h2> <p style="color:red">TODO: rename to "Ribbon"</p> <p> The uiDataFilter class represents a list of links (urls or javascript) that let the user filter the associated content, there is always an active link that corresponds to the current view "filter". <?php echo ui_data_filter('View:', $links); ?> <p> <p> Without caption, different container width: <div style="width:70%"> <?php echo ui_data_filter(false, $links); ?> </div>
echo $num_stories->public; ?> </strong> public, <strong><?php echo $num_stories->total; ?> </strong> total. <div style="position:absolute;right:0;top:-3px;"><?php echo ui_ibtn('Export to CSV', 'study/export', array('icon' => 'export')); ?> </div> </div> </div> <?php echo ui_data_filter('Order by:', $sort_links, $sort_active); ?> <div id="MyStoriesComponent"> <?php include_component('study', 'MyStoriesTable', array()); ?> </div> <script type="text/javascript"> var MyStoriesPage = { initialize:function() { this.ajax_table = new uiWidgets.AjaxTable($('MyStoriesComponent')); }