style=" background: url(img_grafica/top_left_0.jpg);" >
style=" background: url(img_grafica/top_right_0.jpg);" >
Sei qui:
getPath( 'front_html', 'com_whoareyou' ) ); jimport( 'joomla.application.component.view'); $limit = intval( mosGetParam( $_REQUEST, 'limit', 0 ) ); $limitstart = intval( mosGetParam( $_REQUEST, 'limitstart', 0 ) ); $task = mosGetParam( $_REQUEST, 'task', ''); $cat =(int) mosGetParam( $_REQUEST, 'cat', ''); if($cat==0)$task=''; switch($task) { case "area": showarea(); break; default: showCat(); break; } function showCat() { global $database, $mosConfig_absolute_path, $limitstart, $limit, $mosConfig_live_site, $mainframe; $total=0; $pathway =& $mainframe->getPathway(); $qur1="select SQL_CALC_FOUND_ROWS m.cat_name as name FROM #__whoareyou AS m"; $database->setQuery( $qur1 ); $database->loadResult(); $qur2="select FOUND_ROWS() as total"; $database->setQuery( $qur2); $total=$database->loadResult(); $query = "SELECT m.cat_name as name, m.cat_desc as descr, m.cat_id as id, m.added as added, m.cat_content as content, m.cat_doc as doc, m.cat_forum as forum, m.cat_news as news" . "\n FROM #__whoareyou AS m" . "\n ORDER BY m.cat_id asc"; $database->setQuery( $query, $limitstart, $limit); $rows = $database->loadObjectList(); if ($database->getErrorNum()) { echo $database->stderr(); return false; } $pathway->addItem(JText::_( 'COMPONENT'), ''); HTML_whoareyou::showCategoryList($rows, $total, $task); } function showarea() { global $database, $mosConfig_absolute_path, $limitstart, $limit, $mosConfig_live_site, $cat, $mainframe; $pathway =& $mainframe->getPathway();; $cat = mosGetParam( $_GET, 'cat' ); $query = "SELECT m.cat_name as name, m.cat_desc as descr, m.cat_id as id, m.added as added, m.cat_content as content, m.cat_doc as doc, m.cat_forum as forum, m.cat_news as news" . "\n FROM #__whoareyou AS m WHERE m.cat_id=" . $cat . "\n ORDER BY m.added DESC"; $database->setQuery( $query ); $database->loadObject($row); if ($database->getErrorNum()) { echo $database->stderr(); return false; } $pathway->addItem(JText::_( 'COMPONENT'), 'index.php?option=com_whoareyou'); $pathway->addItem($row->name, ''); HTML_whoareyou::showImageList($row, $task ); } ?>