Пример #1
0
 public static function order($row_id)
 {
     //Load koowa javascript
     KViewHelper::_('script', 'koowa.js', Koowa::getURL('js'));
     $up = Koowa::getURL('images') . '/arrow_up.png';
     $down = Koowa::getURL('images') . '/arrow_down.png';
     $result = '<a href="javascript:KGridOrder(' . $row_id . ', -1)" >' . '<img src="' . $up . '" border="0" alt="' . JText::_('Move up') . '" />' . '</a>' . '<a href="javascript:KGridOrder(' . $row_id . ', 1)" >' . '<img src="' . $down . '" border="0" alt="' . JText::_('Move down') . '" />' . '</a>';
     return $result;
 }
 /**
  * Renders the <object> tag for Open Flash Chart
  *
  * @param string	Data Url
  * @param string	Unique ID
  * @param string	SWF file url
  * @param string	Width (px, %)
  * @param string	Height (px, %)
  * @param string	Background color
  * @param string	Attributes for the surrounding <div>
  */
 public static function swfobject($dataUrl, $id, $swfUrl = null, $width = '100%', $height = '450px', $bgcolor = '#FFFFFF', $divAttr = '')
 {
     $swfUrl = $swfUrl ? $swfUrl : Koowa::getURL('media') . 'swf/open-flash-chart.swf';
     return KChartOpenflashchart::renderSwfobject($dataUrl, $id, $swfUrl, $width, $height, $bgcolor, $divAttr);
 }