function cg2_listpage($function, $name, $description, $type)
{
    // show options menu, and errors on submit
    cg2_listpage_getOptions($function, $name, $description, $type);
    // show code
    $instructions = array();
    // show as bullet points
    $filenameSuffix = 'list';
    // eg: tablename-FILENAMESUFFIX.php
    $code = cg2_listpage_getCode();
    cg2_showCode($function, $name, $instructions, $filenameSuffix, $code);
    exit;
}
function cg2_rssfeed($function, $name, $description, $type)
{
    // call ajax code
    cg2_rssfeed_ajaxPhpCode();
    // show options menu, and errors on submit
    cg2_rssfeed_getOptions($function, $name, $description, $type);
    // show code
    $instructions = array();
    // show as bullet points
    $filenameSuffix = 'rss';
    // eg: tablename-FILENAMESUFFIX.php
    $code = cg2_rssfeed_getCode();
    cg2_showCode($function, $name, $instructions, $filenameSuffix, $code);
    exit;
}
function cg2_categorypage($function, $name, $description, $type)
{
    // security/error checking
    if (@$_REQUEST['tableName'] && !loadSchema($_REQUEST['tableName'])) {
        die("Invalid tablename!");
    }
    // call ajax code
    cg2_categorypage_ajaxPhpCode();
    // show options menu, and errors on submit
    cg2_categorypage_getOptions($function, $name, $description, $type);
    // show code
    $instructions = array();
    // show as bullet points
    $filenameSuffix = 'list';
    // eg: tablename-FILENAMESUFFIX.php
    $code = cg2_categorypage_getCode();
    cg2_showCode($function, $name, $instructions, $filenameSuffix, $code);
    exit;
}