<?php

use yii\helpers\Html;
?>
<div class="dt213-form">

  	<table class="Table notbb nolb norb">
		<tr>
			<td class=" notbb nolb norb" rowspan="2" align="left"><?= yii\helpers\Html::IMG('/images/logo.jpg', ['alt' => '']) ?></td>
			<th class=" notbb nolb norb" rowspan="2" align="center">Welders Work Return - Aluminothermic Plain Line Repairs TEF/3035 Issue 1 December 2008</th>
			<td class=" notbb nolb norb DarkerBlueC" valign="Bottom">Pad No</td>
		</tr>
		<tr>
    		<td><?= $model->padno ?></td>
		</tr>
	</table>
	<br />
	<table class="Table notbb nolb norb">
		<tr>
			<th class="DarkerBlue" width="16.7%">Sheet</th>
			<td width="16.7%"></td>
			<th class="DarkerBlue"  width="16.7%">Welders Name</th>
			<td width="16.7%"><?= is_array($model->weldersname) == true ? implode(',', $model->weldersname) : $model->weldersname ?></td>

			<th class="DarkerBlue" width="16.7%">Week No</th>
			<td  width="16.7%"><?= $model->weekno ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">From</th>
			<td><?= $model->from ?></td>
			<th class="DarkerBlue">Signature</th>
			<td>
			<?= HTML::IMG($model->weldersignature, ['alt' => 'NO IMAGE', 'height' => '125px']) ?>
			</td>
			<th class="DarkerBlue">Date</th>
			<td><?= $model->date ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">Grade</th>
			<td><?= $model->grade ?></td>
			<th class="DarkerBlue" rowspan="2" colspan="2">This return must highlight any changes from initial request.</th>
			<th class="DarkerBlue">JCN NO</th>
			<td><?= $model->jcnno ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">Tel</th>
			<td><?= $model->telephoneno ?></td>
			<th class="DarkerBlue">W/O No</th>
			<td><?= $model->workorderno ?></td>
		</tr>
	</table>
<br />
    <table class="Table notbb nolb norb">
    	<tr>
    		<td class="notb nolb norb">&nbsp;</td>
    		<th colspan="10" class="DarkerBlueC">Site Details</th>
    	</tr>
    	<tr>
    		<th class="DarkerBlueC">REPAIR NO.</th>
    		<th class="DarkerBlueC">LOCATION</th>
    		<th class="DarkerBlueC" colspan="2">GPS CO-ORDINATES</th>
    		<th class="DarkerBlueC">FROM <br /> MILEAGE</th>
    		<th class="DarkerBlueC">TO <br /> MILEAGE</th>
    		<th class="DarkerBlueC">ELR</th>
    		<th class="DarkerBlueC">TRACK ID</th>
    		<th class="DarkerBlueC">RAIL<BR /> LH/RH</th>
    		<th class="DarkerBlueC">&nbsp;</th>
    		<th class="DarkerBlueC">&nbsp;</th>
    	</tr>
    	<tr>
    		<th class="DarkerBlue">1</th>
    		<td><?= $model->r1location ?></td>
		    <td><?= $model->r1long ?></td>
		    <td><?= $model->r1lat ?></td>
		    <td><?= $model->r1frommileage1.' '.$model->r1frommileage2.' '.$model->r1frommileage3.' '.$model->r1frommileage4 ?></td>
		    <td><?= $model->r1tomileage1.' '.$model->r1tomileage2.' '.$model->r1tomileage3.' '.$model->r1tomileage4 ?></td>
		    <td><?= $model->r1elr ?></td>
		    <td><?= $model->r1trackid ?></td>
		    <td><?= $model->r1rail ?></td>
    	</tr>
    	<tr>
    		<th class="DarkerBlue">2</th>
    		<td><?= $model->r2location ?></td>
		    <td><?= $model->r2long ?></td>
		    <td><?= $model->r2lat ?></td>
		    <td><?= $model->r2frommileage1.' '.$model->r2frommileage2.' '.$model->r2frommileage3.' '.$model->r2frommileage4 ?></td>
		    <td><?= $model->r2tomileage1.' '.$model->r2tomileage2.' '.$model->r2tomileage3.' '.$model->r2tomileage4 ?></td>
		    <td><?= $model->r2elr ?></td>
		    <td><?= $model->r2trackid ?></td>
		    <td><?= $model->r2rail ?></td>
    	</tr>
    </table>
<br />
    <table  class="Table notbb nolb norb">
    	<tr>
    		<td class="nolb notb">&nbsp;</td>
    		<th class="DarkerBlueC" colspan="6">DEFECT DETAILS (FROM FORM TEF/3037)</th>
    		<th class="DarkerBlueC" colspan="5">WELDING DETAILS</th>
    	</tr>
    	<tr>
    		<th class="DarkerBlueC" rowspan="2">REPAIR No.</th>
    		<th class="DarkerBlueC" rowspan="2">DEFECT NO.</th>
    		<th class="DarkerBlueC" rowspan="2">DEFECT TYPE </th>
    		<th class="DarkerBlueC" rowspan="2">MIN  ACTION <br /> CODE 2F etc</th>
    		<th class="DarkerBlueC" rowspan="2">LAST U/S TEST<br />DATE</th>
    		<th class="DarkerBlueC" colspan="2">DEFECT</th>
    		<th class="DarkerBlueC" colspan="3">RAIL</th>
    		<th class="DarkerBlueC" colspan="2">EXCAVATION</th>
    	</tr>
  		<tr>
  			<th class="DarkerBlueC">LENGTH</th>	
  			<th class="DarkerBlueC">DEPTH</th>	
  			<th class="DarkerBlueC">SECTION</th>	
  			<th class="DarkerBlueC">GRADE</th>	
  			<th class="DarkerBlueC">WEAR</th>	
  			<th class="DarkerBlueC">SIZE</th>	
  			<th class="DarkerBlueC">MPI</th>	
  		</tr>
  		<tr>
  			<th class="DarkerBlueC" rowspan="3">1</th>
  	<td style="height: 18pt"><?= $model->r1defectno ?></td>
    <td><?= $model->r1defecttype ?></td>
    <td><?= $model->r1minaction ?></td>
    <td><?= $model->r1lastusdate ?></td>
    <td><?= $model->r1dlength ?></td>
    <td><?= $model->r1ddepth ?></td>
    <td><?= $model->r1section ?></td>
    <td><?= $model->r1grade  ?></td>
    <td><?= $model->r1wear ?></td>
    <td><?= $model->r1size ?></td>
    <td><?= $model->r1mpi ?></td>
    
  		</tr>
	 	<tr>
  			<td class="norb" rowspan="2" valign="top">Welders Comments</td>
		  	<td class="nolb" rowspan="2" colspan="5"><?= $model->r1comments ?></td>
	 		<th class="DarkerBlueC">GAS KIT NO</th>	
	 		<th class="DarkerBlueC">BATCH NO</th>	
	 		<th class="DarkerBlueC">PORTION NO</th>	
	 		<th class="DarkerBlueC">TAP TIME</th>	
	 		<th class="DarkerBlueC">STAMP NO</th>	
	 	</tr> 		
  		<tr>
		    <td style="height: 18pt"><?= $model->r1gaskitno ?></td>
		    <td><?= $model->r1batchno ?></td>
		    <td><?= $model->r1portionno ?></td>
		    <td><?= $model->r1taptime ?></td>
		    <td><?= $model->r1stampno ?></td>
  		</tr>
    	<tr>
    		<th class="DarkerBlueC" rowspan="2">REPAIR No.</th>
    		<th class="DarkerBlueC" rowspan="2">DEFECT NO.</th>
    		<th class="DarkerBlueC" rowspan="2">DEFECT TYPE </th>
    		<th class="DarkerBlueC" rowspan="2">MIN  ACTION <br /> CODE 2F etc</th>
    		<th class="DarkerBlueC" rowspan="2">LAST U/S TEST<br />DATE</th>
    		<th class="DarkerBlueC" colspan="2">DEFECT</th>
    		<th class="DarkerBlueC" colspan="3">RAIL</th>
    		<th class="DarkerBlueC" colspan="2">EXCAVATION</th>
    	</tr>
  		<tr>
  			<th class="DarkerBlueC">LENGTH</th>	
  			<th class="DarkerBlueC">DEPTH</th>	
  			<th class="DarkerBlueC">SECTION</th>	
  			<th class="DarkerBlueC">GRADE</th>	
  			<th class="DarkerBlueC">WEAR</th>	
  			<th class="DarkerBlueC">SIZE</th>	
  			<th class="DarkerBlueC">MPI</th>	
  		</tr>

      	<tr>
  			<th class="DarkerBlueC" rowspan="3">2</th>
		  	<td style="height: 18pt"><?= $model->r2defectno ?></td>
		    <td><?= $model->r2defecttype ?></td>
		    <td><?= $model->r2minaction ?></td>
		    <td><?= $model->r2lastusdate ?></td>
		    <td><?= $model->r2dlength ?></td>
		    <td><?= $model->r2ddepth ?></td>
		    <td><?= $model->r2section ?></td>
		    <td><?= $model->r2grade ?></td>
		    <td><?= $model->r2wear ?></td>
		    <td><?= $model->r2size ?></td>
		    <td><?= $model->r2mpi ?></td>
    
  		</tr>
	 	<tr>
		  	<td class="norb" rowspan="2" valign="top">Welders Comments</td>
		  	<td class="nolb" rowspan="2" colspan="5"><?= $model->r2comments ?></td>
	 		<th class="DarkerBlueC">GAS KIT NO</th>	
	 		<th class="DarkerBlueC">BATCH NO</th>	
	 		<th class="DarkerBlueC">PORTION NO</th>	
	 		<th class="DarkerBlueC">TAP TIME</th>	
	 		<th class="DarkerBlueC">STAMP NO</th>	
	 	</tr> 		
  		<tr>
  			<td style="height: 18pt"><?= $model->r2gaskitno ?></td>
		    <td><?= $model->r2batchno ?></td>
		    <td><?= $model->r2portionno ?></td>
		    <td><?= $model->r2taptime ?></td>
		    <td><?= $model->r2stampno ?></td>
  		</tr>
    </table>
	<br />
	<table class="Table notbb nolb norb">
		<tr>
			<th class="DarkerBlueC" colspan="7">INSPECTION</th>
		</tr>
		<tr>
			<th class="DarkerBlueC">VISUAL</th>
			<th class="DarkerBlueC">DATE INSPECTED</th>
			<th class="DarkerBlueC">INSPECTED BY</th>
			<th colspan="2" class="DarkerBlueC">RESULT</th>
			<th class="DarkerBlueC">COMMENTS</th>
			<th class="DarkerBlueC">NWD NO</th>
		</tr>
		<tr>
			<td class="DarkerBlueC">1</td>
		    <td><?= $model->insv1date ?></td>
		    <td><?= $model->insv1by ?></td>
		    <td colspan="2"><?= $model->insv1result ?></td>
		    <td><?= $model->insv1comments ?></td>
		    <td><?= $model->insv1nwdno ?></td>
		</tr>
		<tr>
			<td class="DarkerBlueC">2</td>
		    <td><?= $model->insv2date ?></td>
		    <td colspan="2"><?= $model->insv2result ?></td>
		    <td><?= $model->insv2comments ?></td>
		    <td><?= $model->insv2nwdno ?></td>
		</tr>
		<tr>
			<th class="DarkerBlueC">ULTRASONIC</th>
			<th class="DarkerBlueC">DATE INSPECTED</th>
			<th class="DarkerBlueC">INSPECTED BY</th>
			<th class="DarkerBlueC">TECHNIQUE</th>
			<th class="DarkerBlueC">RESULT</th>
			<th class="DarkerBlueC">COMMENTS</th>
			<th class="DarkerBlueC">RFD REF</th>
		</tr>
		<tr>
			<td class="DarkerBlueC">1</td>
		    <td><?= $model->insus1date ?></td>
		    <td><?= $model->insus1by ?></td>
		    <td><?= $model->insus1teq ?></td>
		    <td><?= $model->insus1result ?></td>
		    <td><?= $model->insus1comments ?></td>
		    <td><?= $model->insus1rfdno ?></td>
		</tr>
		<tr>
			<td class="DarkerBlueC">2</td>
		    <td><?= $model->insus2date ?></td>
		    <td><?= $model->insus2by ?></td>
		    <td><?= $model->insus2teq ?></td>
		    <td><?= $model->insus2result ?></td>
		    <td><?= $model->insus2comments ?></td>
		    <td><?= $model->insus2rfdno ?></td>			
		</tr>
	</table>
    



</div>
