<?php

use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model modules\forms\models\Dt126 */
/* @var $form yii\widgets\ActiveForm */
//$form = ActiveForm::begin() ?>




<div class="dt126-view">
    <table class="Table notbb nolb norb">
        <tr>
            <td colspan="14" rowspan="2" style="padding: none; border:none;">
                <?= $this->render('//common/_viewheader', ['title' => 'Electric Welding Switch Repair & Timesheet Form DT126']) ?>
            </td>
            <td class="DarkerBlue">Pad no</td>
            <td class="DarkerBlue">Week no</td>
        </tr>
        <tr>
            <td><?= $model->padno ?></td>
            <td><?= $model->weekno ?></td>
        </tr>
        <tr>
            <th colspan="4" class="DarkerBlue">Installation Date</th>
            <th colspan="4" class="DarkerBlue">Welder's Name (Print)</th>
            <th colspan="4" class="DarkerBlue">Welding Assistant's Name</th>
            <th colspan="4" class="DarkerBlue">Inline Job Cost No.</th>
        </tr>
        <tr>
            <td colspan="4"><?= isset($model->insdate) ? ($model->insdate) : '(NOT SET)' ?></td>
            <td colspan="4"><?= $model->weldersname ?></td>
            <td colspan="4"><?= $model->weldersasstname ?></td>
            <td colspan="4"><?= $model->inlinejobcostno ?></td>
        </tr>
        <tr>
            <th colspan="4" class="DarkerBlue">Area</th>
            <th colspan="4" class="DarkerBlue">Work Site Location</th>
            <th colspan="4" class="DarkerBlue">Start Time</th>
            <th colspan="4" class="DarkerBlue">Finish Time</th>
        </tr>
        <tr>
            <td colspan="4" class=""><?= $model->area ? $model->area : '&nbsp;' ?></td>
            <td colspan="4" class=""><?= $model->worksitelocation ?></td>
            <td colspan="4" class=""><?= $model->starttime ?></td>
            <td colspan="4" class=""><?= $model->finishtime ?></td>
        </tr>

        <tr>
            <th colspan="4" class="DarkerBlue">Client </th>
            <th colspan="4" class="DarkerBlue">Process Used</th>
            <th colspan="4" class="DarkerBlue">Travel Time To Site</th>
            <th colspan="4" class="DarkerBlue">Travel Time From Site</th>
        </tr>
        <tr>
            <td colspan="4" class=""><?= $model->account ? $model->account->account_name : null ?></td>
            <td colspan="4" class=""><?= $model->processused ?></td>
            <td colspan="4" class=""><?= $model->timetosite ?></td>
            <td colspan="4" class=""><?= $model->timefromsite ?></td>
        </tr>
        <tr class="DarkerBlue">
            <td colspan="">Location</td>
            <td colspan="2">GPS Co-Ordinates</td>
            <td>ELR</td>
            <td colspan="2">Track ID</td>
            <td colspan="2">Mileage</td>
            <td>Points No.</td>
            <td>Switch L/H R/H</td>
            <td colspan="2">Facing/Trailing</td>
            <td colspan="2">Rail Section</td>
            <td colspan="2">Rail Grade</td>
        </tr>
        <tr>
            <td><?= $model->location ?></td>
            <td colspan="2"><?= $model->gps ?></td>
            <td><?= $model->elr ?></td>
            <td colspan="2"><?= $model->trackid ?></td>
            <td colspan="2"><?= $model->mileage ." ". $model->mileageb." ".$model->mileagec." ".$model->mileaged ?></td>
            <td><?= $model->pointsno ?></td>
            <td><?= $model->switch ?></td>
            <td colspan="2"><?= $model->facetrail ?></td>
            <td colspan="2"><?= $model->railsec ?></td>
            <td colspan="2"><?= $model->railgrade ?></td>
        </tr>
        <tr class="">
            <td colspan="16" class="DarkerBlue">NR/L2/TRK/0053 ASSESSMENT DETAILS</td>
        </tr>
        <tr>
            <td colspan="7" class="">Extent of damage repair required</td>
			<td colspan="5" class="DarkerBlue">&nbsp;</td>
            <td colspan="2" class="DarkerBlue">LENGTH</td>
            <td colspan="2"><?= $model->damlength ?></td>
        </tr>
        <tr>
            <td colspan="7" class="">Extent of sidewear repair to stock rail front required</td>
            <td class="DarkerBlue">STEP NO</td>
            <td><?= $model->frontstepno ?></td>
            <td class="DarkerBlue">ANGLE</td>
            <td><?= $model->frontangle ?></td>
            <td>deg</td>
            <td colspan="2"  class="DarkerBlue">LENGTH</td>
            <td colspan="2"><?= $model->frontlength ?></td>
        </tr>
        <tr>
            <td colspan="7" class="">Extent of sidewear repair to stock rail behind switchblade required</td>
            <td class="DarkerBlue"></td>
            <td class="DarkerBlue"></td>
            <td class="DarkerBlue">ANGLE</td>
            <td><?= $model->behindangle ?></td>
            <td>deg</td>
            <td colspan="2"  class="DarkerBlue">LENGTH</td>
            <td colspan="2"><?= $model->behindlength ?></td>
        </tr>
        <tr>
            <td colspan="7" class="">Extent of sidewear repair to switchblade required</td>
            <td class="DarkerBlue"> </td>
            <td class="DarkerBlue"> </td>
            <td class="DarkerBlue">ANGLE</td>
            <td><?= $model->repairangle ?></td>
            <td>deg</td>
            <td colspan="2"  class="DarkerBlue">LENGTH</td>
            <td colspan="2"><?= $model->repairlength ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">VERTICAL DISTORTION</td>
            <td width="5%"  class="DarkerBlue">toe</td>
            <td width="5%" class="DarkerBlue">2</td>
            <td width="5%"  class="DarkerBlue">3</td>
            <td width="5%"  class="DarkerBlue">4</td>
            <td width="5%"  class="DarkerBlue">5</td>
            <td width="5%"  class="DarkerBlue">6</td>
            <td width="5%"  class="DarkerBlue">7</td>
            <td width="5%"  class="DarkerBlue">8</td>
            <td width="5%"  class="DarkerBlue">9</td>
            <td width="5%"  class="DarkerBlue">10</td>
            <td width="5%"  class="DarkerBlue">11</td>
            <td width="5%"  class="DarkerBlue">12</td>
            <td width="5%"  class="DarkerBlue">13</td>
            <td width="5%"  class="DarkerBlue">14</td>
            <td class="DarkerBlue">Inspected By</td>
        </tr>
        <tr>
            <td class="DarkerBlue">Initial Inspection</td>
            <td><?= $model->vdiitoe ?></td>
            <td><?= $model->vdii2 ?></td>
            <td><?= $model->vdii3 ?></td>
            <td><?= $model->vdii4 ?></td>
            <td><?= $model->vdii5 ?></td>
            <td><?= $model->vdii6 ?></td>
            <td><?= $model->vdii7 ?></td>
            <td><?= $model->vdii8 ?></td>
            <td><?= $model->vdii9 ?></td>
            <td><?= $model->vdii10 ?></td>
            <td><?= $model->vdii11 ?></td>
            <td><?= $model->vdii12 ?></td>
            <td><?= $model->vdii13 ?></td>
            <td><?= $model->vdii14 ?></td>
            <td><?= $model->vdiiinsby ?></td>

        </tr>
        <tr>
            <td class="DarkerBlue">Pre-welding Inspection</td>
            <td><?= $model->vdprewitoe ?></td>
            <td><?= $model->vdprewi2 ?></td>
            <td><?= $model->vdprewi3 ?></td>
            <td><?= $model->vdprewi4 ?></td>
            <td><?= $model->vdprewi5 ?></td>
            <td><?= $model->vdprewi6 ?></td>
            <td><?= $model->vdprewi7 ?></td>
            <td><?= $model->vdprewi8 ?></td>
            <td><?= $model->vdprewi9 ?></td>
            <td><?= $model->vdprewi10 ?></td>
            <td><?= $model->vdprewi11 ?></td>
            <td><?= $model->vdprewi12 ?></td>
            <td><?= $model->vdprewi13 ?></td>
            <td><?= $model->vdprewi14 ?></td>
            <td><?= $model->vdprewiinsby ?></td>

        </tr>
        <tr>
            <td class="DarkerBlue">Post-welding Inspection</td>
            <td><?= $model->vdpostwitoe ?></td>
            <td><?= $model->vdpostwi2 ?></td>
            <td><?= $model->vdpostwi3 ?></td>
            <td><?= $model->vdpostwi4 ?></td>
            <td><?= $model->vdpostwi5 ?></td>
            <td><?= $model->vdpostwi6 ?></td>
            <td><?= $model->vdpostwi7 ?></td>
            <td><?= $model->vdpostwi8 ?></td>
            <td><?= $model->vdpostwi9 ?></td>
            <td><?= $model->vdpostwi10 ?></td>
            <td><?= $model->vdpostwi11 ?></td>
            <td><?= $model->vdpostwi12 ?></td>
            <td><?= $model->vdpostwi13 ?></td>
            <td><?= $model->vdpostwi14 ?></td>
            <td><?= $model->vdpostwiinsby ?></td>

        </tr>
        <tr>
            <td class="DarkerBlue">Follow Up Inspection</td>
            <td><?= $model->vdfupitoe ?></td>
            <td><?= $model->vdfupi2 ?></td>
            <td><?= $model->vdfupi3 ?></td>
            <td><?= $model->vdfupi4 ?></td>
            <td><?= $model->vdfupi5 ?></td>
            <td><?= $model->vdfupi6 ?></td>
            <td><?= $model->vdfupi7 ?></td>
            <td><?= $model->vdfupi8 ?></td>
            <td><?= $model->vdfupi9 ?></td>
            <td><?= $model->vdfupi10 ?></td>
            <td><?= $model->vdfupi11 ?></td>
            <td><?= $model->vdfupi12 ?></td>
            <td><?= $model->vdfupi13 ?></td>
            <td><?= $model->vdfupi14 ?></td>
            <td><?= $model->vdfupiinsby ?></td>
        </tr>

        <tr class="DarkerBlue">
            <td>SIDEWEAR ANGLE</td>
            <td class="DarkerBlue">toe</td>
            <td class="DarkerBlue">2</td>
            <td class="DarkerBlue">3</td>
            <td class="DarkerBlue">4</td>
            <td class="DarkerBlue">5</td>
            <td class="DarkerBlue">6</td>
            <td class="DarkerBlue">7</td>
            <td class="DarkerBlue">8</td>
            <td class="DarkerBlue">9</td>
            <td class="DarkerBlue">10</td>
            <td class="DarkerBlue">11</td>
            <td class="DarkerBlue">12</td>
            <td class="DarkerBlue">13</td>
            <td class="DarkerBlue">14</td>
            <td class="DarkerBlue">Inspected By</td>
        </tr>

        <tr>
            <td class="DarkerBlue">Initial Inspection</td>
            <td><?= $model->swiitoe ?></td>
            <td><?= $model->swii2 ?></td>
            <td><?= $model->swii3 ?></td>
            <td><?= $model->swii4 ?></td>
            <td><?= $model->swii5 ?></td>
            <td><?= $model->swii6 ?></td>
            <td><?= $model->swii7 ?></td>
            <td><?= $model->swii8 ?></td>
            <td><?= $model->swii9 ?></td>
            <td><?= $model->swii10 ?></td>
            <td><?= $model->swii11 ?></td>
            <td><?= $model->swii12 ?></td>
            <td><?= $model->swii13 ?></td>
            <td><?= $model->swii14 ?></td>
            <td><?= $model->swiiinsby ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Pre-welding Inspection</td>
            <td><?= $model->swprewitoe ?></td>
            <td><?= $model->swprewi2 ?></td>
            <td><?= $model->swprewi3 ?></td>
            <td><?= $model->swprewi4 ?></td>
            <td><?= $model->swprewi5 ?></td>
            <td><?= $model->swprewi6 ?></td>
            <td><?= $model->swprewi7 ?></td>
            <td><?= $model->swprewi8 ?></td>
            <td><?= $model->swprewi9 ?></td>
            <td><?= $model->swprewi10 ?></td>
            <td><?= $model->swprewi11 ?></td>
            <td><?= $model->swprewi12 ?></td>
            <td><?= $model->swprewi13 ?></td>
            <td><?= $model->swprewi14 ?></td>
            <td><?= $model->swprewiinsby ?></td>

        </tr>
        <tr>
            <td class="DarkerBlue">Post-welding Inspection</td>
            <td><?= $model->swpostwitoe ?></td>
            <td><?= $model->swpostwi2 ?></td>
            <td><?= $model->swpostwi3 ?></td>
            <td><?= $model->swpostwi4 ?></td>
            <td><?= $model->swpostwi5 ?></td>
            <td><?= $model->swpostwi6 ?></td>
            <td><?= $model->swpostwi7 ?></td>
            <td><?= $model->swpostwi8 ?></td>
            <td><?= $model->swpostwi9 ?></td>
            <td><?= $model->swpostwi10 ?></td>
            <td><?= $model->swpostwi11 ?></td>
            <td><?= $model->swpostwi12 ?></td>
            <td><?= $model->swpostwi13 ?></td>
            <td><?= $model->swpostwi14 ?></td>
            <td><?= $model->swpostwiinsby ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Follow Up Inspection</td>
            <td><?= $model->swfupitoe ?></td>
            <td><?= $model->swfupi2 ?></td>
            <td><?= $model->swfupi3 ?></td>
            <td><?= $model->swfupi4 ?></td>
            <td><?= $model->swfupi5 ?></td>
            <td><?= $model->swfupi6 ?></td>
            <td><?= $model->swfupi7 ?></td>
            <td><?= $model->swfupi8 ?></td>
            <td><?= $model->swfupi9 ?></td>
            <td><?= $model->swfupi10 ?></td>
            <td><?= $model->swfupi11 ?></td>
            <td><?= $model->swfupi12 ?></td>
            <td><?= $model->swfupi13 ?></td>
            <td><?= $model->swfupi14 ?></td>
            <td><?= $model->swfupiinsby ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue"></td>
            <td colspan="7" class="DarkerBlue">Switch Details</td>
            <td colspan="8"  class="DarkerBlue">Welding Details</td>
        </tr>
        <tr>
            <td class="DarkerBlue">Repair No.</td>
            <td colspan="2"  class="DarkerBlue">Type</td>
            <td colspan="" class="DarkerBlue">Design</td>
            <td colspan="" class="DarkerBlue">Angle</td>
            <td colspan="2"  class="DarkerBlue">Component</td>
            <td colspan="" class="DarkerBlue">Defect No.</td>
            <td colspan="2"  class="DarkerBlue">Repair Type</td>
            <td colspan="" class="DarkerBlue">Length</td>
            <td colspan="" class="DarkerBlue">Depth</td>
            <td colspan="2"  class="DarkerBlue">Preheat Temp</td>
            <td colspan="" class="DarkerBlue">Type</td>
            <td colspan="" class="DarkerBlue">Size</td>
        </tr>

        <tr>
            <td class="DarkerBlue">1</td>
            <td colspan="2"><?= $model->type1 ?></td>
            <td colspan=""><?= $model->design1 ?></td>
            <td colspan=""><?= $model->angle1 ?></td>
            <td colspan="2"><?= $model->component1 ?></td>
            <td colspan=""><?= $model->defectno1 ?></td>
            <td colspan="2"><?= $model->repairtype1 ?></td>
            <td colspan=""><?= $model->length1 ?></td>
            <td colspan=""><?= $model->depth1 ?></td>
            <td colspan="2"><?= $model->preheattemp1 ?></td>
            <td colspan=""><?= $model->contype1 ?></td>
            <td colspan=""><?= $model->consize1 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">2</td>
            <td colspan="2"><?= $model->type2 ?></td>
            <td colspan=""><?= $model->design2 ?></td>
            <td colspan=""><?= $model->angle2 ?></td>
            <td colspan="2"><?= $model->component2 ?></td>
            <td colspan=""><?= $model->defectno2 ?></td>
            <td colspan="2"><?= $model->repairtype2 ?></td>
            <td colspan=""><?= $model->length2 ?></td>
            <td colspan=""><?= $model->depth2 ?></td>
            <td colspan="2"><?= $model->preheattemp2 ?></td>
            <td colspan=""><?= $model->contype2 ?></td>
            <td colspan=""><?= $model->consize2 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">3</td>
            <td colspan="2"><?= $model->type3 ?></td>
            <td colspan=""><?= $model->design3 ?></td>
            <td colspan=""><?= $model->angle3 ?></td>
            <td colspan="2"><?= $model->component3 ?></td>
            <td colspan=""><?= $model->defectno3 ?></td>
            <td colspan="2"><?= $model->repairtype3 ?></td>
            <td colspan=""><?= $model->length3 ?></td>
            <td colspan=""><?= $model->depth3 ?></td>
            <td colspan="2"><?= $model->preheattemp3 ?></td>
            <td colspan=""><?= $model->contype3 ?></td>
            <td colspan=""><?= $model->consize3 ?></td>
        </tr>
        <tr>
            <td colspan="10" rowspan="1" class="DarkerBlue" >Welders Comments</td>
            <td colspan="6" class="DarkerBlue" >Equipment Serial Numbers</td>
        </tr>
        <tr>
            <td colspan="10" rowspan="2"><?= $model->welderscomments?></td>
            <td colspan="2" class="DarkerBlue">Pre heater</td>
            <td colspan="2" class="DarkerBlue">Generator</td>
            <td colspan="2" class="DarkerBlue">WFU</td>
        </tr>
        <tr>
            <td colspan="2"><?= $model->preheater ?></td>
            <td colspan="2"><?= $model->generator ?></td>
            <td colspan="2"><?= $model->wfu ?></td>
        </tr>
        <tr>
            <td colspan="4">
				Indicate location and extent of repairs
            </td>
            <td colspan="12">
				<img width="auto" height="150px" src='<?= $model->drawingloc ?>' />
            </td>
        </tr>

        <tr>
            <td colspan="16" class="DarkerBlue Title">Inspection</td>
        </tr>
        <tr>
            <td class="DarkerBlue"></td>
            <td colspan="3" class="DarkerBlue">Date Inspected</td>
            <td colspan="3" class="DarkerBlue">Inspected By</td>
            <td colspan="3" class="DarkerBlue">Result</td>
            <td colspan="3" class="DarkerBlue">Comments</td>
            <td colspan="3" class="DarkerBlue">Database No</td>
        </tr>
        <tr>
            <td class="DarkerBlue">Repair 1</td>
            <td colspan="3"><?= $model->insdateins1 ?></td>
            <td colspan="3"><?= $model->inspectedby1 ?></td>
            <td colspan="3"><?= $model->insresult1 ?></td>
            <td colspan="3"><?= $model->inscomments1 ?></td>
            <td colspan="3"><?= $model->insdbno1 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Repair 2</td>
            <td colspan="3"><?= $model->insdateins2 ?></td>
            <td colspan="3"><?= $model->inspectedby2 ?></td>
            <td colspan="3"><?= $model->insresult2 ?></td>
            <td colspan="3"><?= $model->inscomments2 ?></td>
            <td colspan="3"><?= $model->insdbno2 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Repair 3</td>
            <td colspan="3"><?= $model->insdateins3 ?></td>
            <td colspan="3"><?= $model->inspectedby3 ?></td>
            <td colspan="3"><?= $model->insresult3 ?></td>
            <td colspan="3"><?= $model->inscomments3 ?></td>
            <td colspan="3"><?= $model->insdbno3 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Post Weld Dimension</td>
            <td colspan="3"><?= $model->postwelddim ?></td>

        </tr>
        <tr>
            <td class="DarkerBlue">053 Checks Completed</td>
            <td colspan="8" class="LighterBlue"><?= $model->checked053 ?></td>
            <td colspan="2" class="DarkerBlue">FPL Checks Completed</td>
            <td colspan="5" class="LighterBlue"><?= $model->fplchecks ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Name</td>
            <td colspan="3"><?= $model->name053 ?></td>
            <td class="DarkerBlue" colspan="1">Date</td>
            <td colspan="3"><?= $model->date053 ?></td>
            <td class="DarkerBlue" colspan="1">Name</td>
            <td colspan="3"><?= $model->namefpl ?></td>
            <td class='DarkerBlue'>Date</td>
            <td colspan="3"><?= $model->datefpl ?></td>
        </tr>

        <tr>
            <td colspan="5" class="DarkerBlue">Client on site Representitive</td>
            <td colspan="4" class="DarkerBlue">Comments</td>
            <td colspan="7" class="DarkerBlue">This record to be completed on site at the time of welding</td>
        </tr>
        <tr>
            <td class="DarkerBlue">SIGNATURE</td>
            <td colspan="4">
                <img height="75px" width="auto" src="<?php echo $model->signatureloc ?>" />
			</td>
            <td colspan="4" class="LighterBlue" rowspan="2"><?= $model->comments ?></td>
            <td colspan="7" class="DarkerBlue" rowspan="2">AS A MINIMUM, ONE COPY EACH TO<br> BE GIVEN TO SITE
                SUPERVISOR,<br> WELDING MANAGER AND 053 INSPECTOR</td>
        </tr>
        <tr>
            <td class="DarkerBlue">PRINT</td>
            <td colspan="4"><?= $model->clientrepname ?></td>
        </tr>
    </table>

    <div align="center">DT126 / <?= $model->id ?> / <?= $model->weldersname ?> </div>

</div>
<style>
.dt126-view th, .dt126-view td{
	padding: 2px 5px;
}
.dt126-view{
	text-transform:uppercase;
	wordwrap:avoid-word-break;
}
</style>