$tab .= printline3('11');
$tab .= printline('12');
$tab .= printline2('12');
$tab .= printline3('12');
$tab .= printline3('1');
$tab .= printline('2');
$tab .= printline('21');
$tab .= printline2('21');
$tab .= printline3('21');
$tab .= printline('22');
$tab .= printline2('22');
$tab .= printline3('22');
$tab .= printline3('2');
$tab .= printline('3');
$tab .= printline2('3');
$tab .= printline3('3');
$tab .= "</tbody></table>";
switch ($proses) {
    case 'preview':
        echo $tab;
        break;
    case 'excel':
        $tab .= "Print Time:" . date('Y-m-d H:i:s') . "<br />By:" . $_SESSION['empl']['name'];
        $dte = date("YmdHis");
        $nop_ = "laparuskasbudget_" . $kodeOrg . $thnBudget . "_" . $dte;
        $gztralala = gzopen("tempExcel/" . $nop_ . ".xls.gz", "w9");
        gzwrite($gztralala, $tab);
        gzclose($gztralala);
        echo "<script language=javascript1.2>\r\n                        window.location='tempExcel/" . $nop_ . ".xls.gz';\r\n                        </script>";
        break;
    default:
$tab .= printline2('5');
$tab .= printline3('5');
$tab .= printline('6');
$tab .= printline2('6');
$tab .= printline3('6');
$tab .= printline('7');
$tab .= printline2('7');
$tab .= printline3('7');
$tab .= printline4();
$tab .= printline('8');
$tab .= printline2('8');
$tab .= printline3('8');
$tab .= printline5();
$tab .= printline('9');
$tab .= printline2('9');
$tab .= printline3('9');
$tab .= printline6();
$tab .= "</tbody></table>";
switch ($proses) {
    case 'preview':
        echo $tab;
        break;
    case 'excel':
        $tab .= "Print Time:" . date('Y-m-d H:i:s') . "<br />By:" . $_SESSION['empl']['name'];
        $dte = date("YmdHis");
        $nop_ = "laparuskasbudget_labarugi_" . $kodeOrg . $thnBudget . "_" . $dte;
        $gztralala = gzopen("tempExcel/" . $nop_ . ".xls.gz", "w9");
        gzwrite($gztralala, $tab);
        gzclose($gztralala);
        echo "<script language=javascript1.2>\r\n                        window.location='tempExcel/" . $nop_ . ".xls.gz';\r\n                        </script>";
        break;