<?

    
require_once('lib/nusoap/nusoap.php');

    
//$client = new soapclient("http://118.175.19.15/mis/centralize/admin/response.php");

    //$result = $client->call('SubmitUpdate',array('collegeID'=>'03'));

    //$result = $client->call('getUpdateInfo',array('queryID'=>'1'));

    //print_r($tmp);

    
$client = new soapclient('http://202.29.105.1/emanage/nusoap/server.php');
    
//$client = new soapclient('http://202.29.105.1/emanage/nusoap/server.php');
    
    //$result = $client->call('getResearchTB',array('researchCode'=>'2'));
    //$result = $client->call('test');
    
    
$result $client->call('getResearchID',array('tableName'=>'research_tb'));
    
//$result = $client->call('getResearchID',array('tableName'=>'research_char_tb'));
    //$result = $client->call('getResearchID',array('tableName'=>'research_file_tb'));
    //$result = $client->call('getResearchID',array('tableName'=>'research_public_tb'));
    //$result = $client->call('getResearchID',array('tableName'=>'research_success_tb'));
    
    //$result = $client->call('getResearchCharTB',array('researchCode'=>'1'));
    //$result = $client->call('getResearchCharTB',array('researchCode'=>'1'));
        
?>

<meta http-equiv="Content-Type" content="text/html; charset=tis-620">

<?
    
//$msg = "";

    //for($i=0;$i<sizeof($result);$i++){
        //echo base64_decode($result[0])." ,".base64_decode($result[1])." ,".base64_decode($result[2])." ,".base64_decode($result[3])." ,".base64_decode($result[4])." ,".base64_decode($result[5])." ,".base64_decode($result[6])." ,".base64_decode($result[7])." ,".base64_decode($result[8]);
        //$msg = $msg.base64_decode($result[$i]).",";
    //}

    //echo $msg;

    
$data split(',',$result);
    
//print_r($data);
    //echo sizeof($data);
    //echo $result;
    //echo $data;    

    
for($i=0;$i<sizeof($data);$i++){
        
$result $client->call('getResearchTB',array('researchCode'=>$data[$i]));
        
//$result = $client->call('getResearchCharTB',array('researchCode'=>$data[$i]));
        //$result = $client->call('getResearchFileTB',array('researchCode'=>$data[$i]));
        //$result = $client->call('getResearchPublicTB',array('researchCode'=>$data[$i]));
        //$result = $client->call('getResearchSuccessTB',array('researchCode'=>$data[$i]));
                
        
$msg "";
        for(
$n=0;$n<sizeof($result);$n++){        
            
$msg $n == base64_decode($result[$n]) : $msg.",".base64_decode($result[$n]);
        }
        
$msg .= "<br>";

        echo 
$msg;
    }

?>