dirtyAllFromRequest(); $new->save(); } if (isset($_REQUEST['save'])){ $new=new $classType($_REQUEST['save']); $new->dirtyAllFromRequest(); $new->save(); } if (isset($_REQUEST['edit'])){ $editMe=new $classType($_REQUEST['edit']); } $allSaves=call_user_func(array($classType, 'findAll')); $cols=call_user_func(array($classType, 'getColumns')); if (in_array('getcategorycolumn',get_class_methods($classType))){ $categoryCol=call_user_func(array($classType,'getCategoryColumn')); } $numCols=count($cols); $primaryKeyIndex=-1; foreach ($cols as $col){ $primaryKeyIndex++; if ($col->sqlArray["Key"]=="PRI"){ break; } } ?> Trevor's Rifts: <?echo $classType;?>

style="float:right" border="1">
getName();?> getInputElement($editMe->sqlArray[$col->getName()]); }else{ echo $col->getInputElement(); }?>
">
Current list of : ()
id;', '$save', $categoryCol ); } else { printTableFor( $allSaves, $cols, 'return "?classType='.$classType.'&edit=".$save->id;', '$save'); } ?>