Management

 

echo “Error occure on openning connection or database. Period.”;
}
else
{
//echo “Connection Success”;
}
}

// Open database server connection
function Open ()
{
if (!($ServerConn = @mysql_pconnect($this->DBHost, $this->DBUser, $this->DBPass)))
{
return 0;
} else {
if (!($this->Connection = @mysql_select_db($this->DBName, $ServerConn)))
return 0;
else
return 1;
}
}
}
function dates_time($date_format1, $date_format2, $date_str)
{
$base_struc = split(‘[:/.\ \-]’, $date_format1);
$date_str_parts = split(‘[:/.\ \-]’, $date_str );

// print_r( $base_struc ); echo “\n”; // for testing
// print_r( $date_str_parts ); echo “\n”; // for testing

$date_elements = array();

$p_keys = array_keys( $base_struc );
foreach ( $p_keys as $p_key )
{
if ( !empty( $date_str_parts[$p_key] ))
{
$date_elements[$base_struc[$p_key]] = $date_str_parts[$p_key];
}
else
return false;
}

// print_r($date_elements); // for testing

if (array_key_exists(‘M’, $date_elements)) {
$Mtom=array(
“Jan”=>”01”,
“Feb”=>”02”,
“Maret”=>”03”,
“Apr”=>”04”,
“Mei”=>”05”,
“Jun”=>”06”,
“Jul”=>”07”,
“Aug”=>”08”,
“Sep”=>”09”,
“Oct”=>”10”,
“Nov”=>”11”,
“Dec”=>”12”,
);
$date_elements[‘m’]=$Mtom[$date_elements[‘M’]];
}

// print_r($date_elements); // for testing

$dummy_ts = mktime(
$date_elements[‘H’],
$date_elements[‘i’],
$date_elements[‘s’],
$date_elements[‘m’],
$date_elements[‘d’],
$date_elements[‘Y’]
);

return date( $date_format2, $dummy_ts );
}
$database=new clsDbConn();
$database->Conn();
?>

 


:

Senate | Senat FTTM ITB

 


:

Head of Undergraduate Program
Ketua Program Studi Sarjana

 


:

Head of Graduate Program
Ketua Program Studi Magister & DoktorĀ 

 


:

Head of Research Groups
Ketua Kelompok Keahlian/KeilmuanĀ 

 


:

Laboratories
Manajer LaboratoriumĀ 

 


:

Coordinator of Student Affairs
Koordinator Kemahasiswaan

:Dr. Eng. Akhmad Ardian Korda, ST, MT

Dekanat