application/modules/production/controllers/Production.php
//end of rooster reguler enam pagi
end of rooster reguler enam pagi
end of rooster reguler enam pagi
public function tiga_pagi($days)
	{
		$p = array();
		$jml_hari = $days;
		for ($i=1; $i <= $jml_hari ; $i++) { 
			if ($i <= 3) {
		$p['a'.$i] = "1";
			}
		elseif ($i<=6) {
		$p['a'.$i] = "2";
			}
		elseif ($i==7) {
		$p['a'.$i] = "0";
			}
		elseif ($i<=10) {
		$p['a'.$i] = "1";
			}
			elseif ($i<=13) {
		$p['a'.$i] = "2";
			}
		elseif ($i==14) {
		$p['a'.$i] = "0";
			}
		elseif ($i<=17) {
		$p['a'.$i] = "1";
			}
			elseif ($i<=20) {
		$p['a'.$i] = "2";
			}
		elseif ($i==21) {
		$p['a'.$i] = "0";
			}
		elseif ($i<=24) {
		$p['a'.$i] = "1";
			}
			elseif ($i<=27) {
		$p['a'.$i] = "2";
			}
		elseif ($i==28) {
		$p['a'.$i] = "0";
			}
		elseif ($i<=31) {
		$p['a'.$i] = "1";
			}
		elseif ($i<= $i) {
		$p['a'.$i] = "2";
			}
		}
		return $p;
	}
public function tiga_pagi ( $ days ) { $ p = array ( ) ; $ jml_hari = $ days ; for ( $ i = 1 ; $ i <= $ jml_hari ; $ i ++ ) { if ( $ i <= 3 ) { $ p [ 'a' . $ i ] = " 1 " ; } elseif ( $ i <= 6 ) { $ p [ 'a' . $ i ] = " 2 " ; } elseif ( $ i == 7 ) { $ p [ 'a' . $ i ] = " 0 " ; } elseif ( $ i <= 10 ) { $ p [ 'a' . $ i ] = " 1 " ; } elseif ( $ i <= 13 ) { $ p [ 'a' . $ i ] = " 2 " ; } elseif ( $ i == 14 ) { $ p [ 'a' . $ i ] = " 0 " ; } elseif ( $ i <= 17 ) { $ p [ 'a' . $ i ] = " 1 " ; } elseif ( $ i <= 20 ) { $ p [ 'a' . $ i ] = " 2 " ; } elseif ( $ i == 21 ) { $ p [ 'a' . $ i ] = " 0 " ; } elseif ( $ i <= 24 ) { $ p [ 'a' . $ i ] = " 1 " ; } elseif ( $ i <= 27 ) { $ p [ 'a' . $ i ] = " 2 " ; } elseif ( $ i == 28 ) { $ p [ 'a' . $ i ] = " 0 " ; } elseif ( $ i <= 31 ) { $ p [ 'a' . $ i ] = " 1 " ; } elseif ( $ i <= $ i ) { $ p [ 'a' . $ i ] = " 2 " ; } } return $ p ; }
end of rooster reguler enam pagi
end of rooster reguler enam pagi
//echo "<table border='1'>";	 //echo "</table>";	