} else { $editDetail = false; create_practice($smarty); } break; case "savepractice": save_practice($smarty); refreshList($smarty, $showList); break; case "checklist": $showDetail = true; checklist($smarty, $editDetail); break; case "updatelist": $showDetail = true; updatelist($smarty, $editDetail); break; case "editscore": $showScore = true; editScore($smarty, $_REQUEST['id']); break; case "savescore": saveScore(); $showDetail = true; $editDetail = true; edit_practice($smarty, trim($_REQUEST['id'])); break; case "firststroke": $showFirst = true; editScore($smarty, $_REQUEST['id']); break;
break; case "delete": $template = "tour_admin.tpl"; delete($smarty); $showList = true; reload($smarty); break; case "cancel": $template = "tour_admin.tpl"; $showList = true; reload($smarty); break; case "updatelist": $template = "tour_admin.tpl"; $showDetail = true; updatelist($smarty); break; case "addtour": $template = "tour_admin.tpl"; $showDetail = true; $hasil = addtour($smarty); if ($hasil != "") { $editDetail = true; editDetail($smarty, $hasil); } else { $editDetail = false; create($smarty); } break; case "savetour": $template = "tour_admin.tpl";