Exemple #1
0
        getcategories();
        break;
    case 'getcontents':
        getcontents();
        break;
    case 'getimages':
        getimages();
        break;
        // DEFAULT
    // DEFAULT
    default:
        showNothing($option);
        break;
}
if ($task == "getimages") {
    HTML_FPSlideShow::showFooter();
}
function showNothing($option)
{
    echo "<div>Nothing to see here! ;-)</div>";
}
/////////////////////////////// HELPERS  ////////////////////////////////////////////////
// AJAX
function getcategories()
{
    $db =& JFactory::getDBO();
    $sid = JRequest::getVar('sid', 0, 'get', 'int');
    if (!headers_sent()) {
        while (@ob_end_clean()) {
        }
        ob_start();
Exemple #2
0
function editCategory($cid, $option)
{
    global $mainframe;
    $db =& JFactory::getDBO();
    // SLIDE
    $row =& JTable::getInstance('category', 'Table');
    $id = intval($cid[0]);
    $row->load($id);
    $lists['published'] = JHTML::_('select.booleanlist', 'published', '', $row->id ? $row->published : 1);
    HTML_FPSlideShow::editCategory($row, $lists, $option);
}