Пример #1
0
function transformChronoContact($id, $option)
{
    global $mainframe;
    $database =& JFactory::getDBO();
    $database->setQuery("SELECT * FROM #__chrono_contact WHERE id='" . $id . "'");
    $row = $database->loadObject();
    if (!trim($row->chronocode)) {
        $mainframe->redirect('index2.php?option=' . $option, "Sorry but this form was not created using the wizard");
    }
    HTML_ChronoContact::transformChronoContact($row, $option);
}