function EasyTableList($tablename, $cols, $parsetarget, $pkname, $delmsg, $delmsgcol) { // show list // create html table $table = new HTMLTable("0", "100%"); $table->AddRowAsHeading($cols); $all = $this->app->DB->SelectTable($tablename, $cols); $table->AddField($all); $action = $this->app->Secure->GetGET("action", "alpha"); $module = $this->app->Secure->GetGET("module", "alpha"); $table->AddCompleteCol(0, "<a href=\"index.php?module={$module}&action={$action}&id=%col%\">bearbeiten</a>"); $table->AddCompleteCol(0, "<a href=\"#\" onclick=\"str = confirm('{$delmsg}');\n if(str!='' & str!=null) \n window.document.location.href='index.php?module={$module}&action={$action}&id=%col%&formaction=delete';\">\n loeschen</a>", $delmsgcol); $table->ChangingRowColors('#ffffff', '#dddddd'); $this->app->Tpl->Set($parsetarget, $table->Get()); }