$editDetail = true;
        edit_practice($smarty, trim($_REQUEST['id']));
        break;
    case "firststroke":
        $showFirst = true;
        editScore($smarty, $_REQUEST['id']);
        break;
    case "savefirst":
        saveFirst();
        $showDetail = true;
        $editDetail = true;
        edit_practice($smarty, trim($_REQUEST['id']));
        break;
    case "secondstroke":
        $showSecond = true;
        editScore($smarty, $_REQUEST['id']);
        break;
    case "savesecond":
        saveSecond();
        $showDetail = true;
        $editDetail = true;
        edit_practice($smarty, trim($_REQUEST['id']));
        break;
    default:
        refreshList($smarty, $showList);
        break;
}
$date_first = trim($_POST['awal']);
$date_last = trim($_POST['akhir']);
if ($date_first == "") {
    $date_first = date("Y/m/d");
Esempio n. 2
0
 case "delplayer":
     $template = "tour_player.tpl";
     $showList = true;
     delplayer($smarty);
     showPlayer($smarty);
     break;
 case "scoreplayer":
     $template = "tour_player.tpl";
     $editDetail = true;
     editScore($smarty);
     break;
 case "savescore":
     $template = "tour_player.tpl";
     $editDetail = true;
     saveScore($smarty);
     editScore($smarty);
     break;
 case "result":
     $template = "tour_result.tpl";
     $smarty->assign("admin", true);
     $showList = true;
     $showDetail = true;
     showResult($smarty);
     break;
 case "calculate":
     $template = "tour_result.tpl";
     $smarty->assign("admin", true);
     $showList = true;
     $showDetail = true;
     calculate();
     showResult($smarty);