include_once "dbconnect.incl.php"; include_once "framework.incl"; $VAR = array_merge($_POST, $_GET); switch($VAR['action']): case 'save': $obj = new C_Ideen(); $obj->readin_formdata(); $obj->set('ip', $_SERVER['REMOTE_ADDR']); $obj->insert(); print "Speichern erfolgreich"; break; default: print "
Kategorie:
"; $csel = new CSelect('f_category', get_opts_from_table('ideencategory')); print $csel->get_html(); print "
"; print "
Beschreibung:
"; $ctext = new CTextarea('f_info'); print $ctext->get_html(); print "
"; print "
"; print "
"; print "
"; print "
"; endswitch; ?>