function rsa_postform() { if ($this->status) { $client = new SoapClient('http://eaisto.gibdd.ru/common/ws/arm_expert.php?wsdl'); $test = $client->GetCardByVin(array("user" => array("Name" => "Avtotest177.com", "Password" => "734581", "ExtSystem" => "sys1"), "Purpose" => "ForDublicate", "vin" => $_POST['vin'], "regNumber" => $_POST['regNumber'], "BodyNumber" => $_POST['BodyNumber'], "FrameNumber" => $_POST['FrameNumber'], "formNumber" => $_POST['formNumber'], "formSeries" => $_POST['formSeries'])); if (count($test->GetCardByVinResult) < 1) { echo '<center><h2><br>Нет результатов!</h2></center>'; } else { echo '<br><br><center><table cellpadding="0" cellspacing="0" width=90%" style="text-align: center;" border="">'; echo ' <tr style="font-weight: bold;"> <td width="11%">Серия/Номер бланка</td> <td width="11%">Дата выдачи</td> <td width="11%">VIN</td> <td width="11%">Кузов №</td> <td width="11%">Регистр. номер</td> <td width="11%">Действует до </td> <td width="11%">Кем выдан </td> <td width="11%">Д/К</td> </tr> '; for ($i = 0; $i < count($test->GetCardByVinResult); $i++) { echo '<tr>'; if (!empty($_POST['formNumber'])) { $todump = $test->GetCardByVinResult; } else { $todump = $test->GetCardByVinResult[$i]; } $toform = $todump->Form; $tooper = $todump->Operator; $plink = ''; if (trim($tooper->ShortName) == 'ООО Автотест') { $plink = '<a href="?download&id=' . $todump->BodyNumber . '">Скачать</a>'; } else { $plink = '-'; } echo '<td width="11%">'; echo $toform->Number; echo '</td><td width="11%">'; echo str_replace('T00:00:00', '', $todump->DateOfDiagnosis); echo '</td><td width="11%">'; echo $todump->Vin; echo '</td><td width="11%">'; echo $todump->BodyNumber; echo '</td><td width="11%">'; echo $todump->RegistrationNumber; echo '</td><td width="11%">'; echo str_replace('T00:00:00', '', $toform->Validity); echo '</td><td width="11%">'; echo $tooper->ShortName; echo '</td><td width="11%"> ' . $plink . ' </td></tr>'; } echo '</table></center>'; } } }
<?php $client = new SoapClient('http://eaisto.gibdd.ru/common/ws/arm_expert.php?wsdl'); $test = $client->GetCardByVin(array("user" => array("Name" => "Avtotest177.com", "Password" => "734581", "ExtSystem" => "sys1"), "Purpose" => "ForDublicate", "vin" => $_GET['vin'], "regNumber" => $_GET['regNumber'], "BodyNumber" => $_GET['BodyNumber'], "FrameNumber" => $_GET['FrameNumber'], "formNumber" => $_GET['formNumber'], "formSeries" => $_GET['formSeries'])); if (count($test->GetCardByVinResult) < 1) { echo 'Нет результатов!'; } for ($i = 0; $i < count($test->GetCardByVinResult); $i++) { $todump = $test->GetCardByVinResult[$i]; $toform = $todump->Form; echo $toform->Number; echo ' '; echo str_replace('T00:00:00', '', $todump->DateOfDiagnosis); echo ' '; echo $todump->Vin; echo ' '; echo $todump->BodyNumber; echo ' '; echo $todump->RegistrationNumber; echo ' '; echo str_replace('T00:00:00', '', $toform->Validity); echo '<br>'; }