Example #1
0
function edit_event_category()
{
    $db = JFactory::getDBO();
    $cid = JRequest::getVar('cid', array(0), '', 'array');
    JArrayHelper::toInteger($cid, array(0));
    $id = $cid[0];
    $row = JTable::getInstance('spidercalendar_event_category', 'Table');
    // load the row from the db table
    $row->load($id);
    $lists = array();
    if ($row->published == '') {
        $row->published = 1;
    }
    $lists['published'] = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $row->published);
    // display function
    HTML_contact::edit_event_category($lists, $row);
}