show_page_title ) : ?>
cmpparams->get('page_title'); ?>
sections)) { $i = 1; foreach ($this->sections as $value) { // Categories $numDoc = 0; $catOutput = ''; foreach ($value->categories as $valueCat) { $catOutput .= '

'; $catOutput .= ''. $valueCat->title.''; if ($this->tmpl['displaynumdocsecs'] == 1) { $catOutput .=' ('.$valueCat->numdoc .')'; } $catOutput .= '

' . "\n"; $numDoc = (int)$valueCat->numdoc + (int)$numDoc; } echo '

'; echo ''. $value->title.''; if ($this->tmpl['displaynumdocsecsheader'] == 1) { echo ' ('.$value->numcat.'/' . $numDoc .')'; } echo '

'; echo $catOutput; echo '
'; if ($i%3==0) { echo '
'; } $i++; } } ?>
mostvieweddocs) && $this->tmpl['displaymostdownload'] == 1) { echo '
 
'; echo '
'; echo '

'. JText::_('Most downloaded Spreadsheets').'

'; foreach ($this->mostvieweddocs as $value) { // FILESIZE if ($value->filename !='') { $absFile = str_replace('/', DS, JPath::clean($this->absfilepath . $value->filename)); if (JFile::exists($absFile)) { $fileSize = PhocaDownloadHelper::getFileSizeReadable(filesize($absFile)); } else { $fileSize = ''; } } // IMAGE FILENAME $imageFileName = ''; if ($value->image_filename !='') { $thumbnail = false; $thumbnail = preg_match("/phocathumbnail/i", $value->image_filename); if ($thumbnail) { $imageFileName = ''; } else { $imageFileName = 'style="background: url(\''.$this->cssimagepath.$value->image_filename.'\') 0 center no-repeat;"'; } } echo '

'; echo ''. $value->title.' (' .$value->sectiontitle. '/'.$value->categorytitle.')'; echo PhocaDownloadHelper::displayNewIcon($value->date, $this->tmpl['displaynew']); echo PhocaDownloadHelper::displayHotIcon($value->hits, $this->tmpl['displayhot']); echo '

' . "\n"; } echo '
'; } ?>