M3 Security Fixes for scan command pass 33 major code smell fixes and style fixes

This commit is contained in:
Mark Gregory
2026-09-17 11:34:41 +01:00
parent 0a05f05843
commit 0c445f89af
69 changed files with 1786 additions and 1752 deletions
@@ -64,4 +64,4 @@ Solon Sentinel Portal - Scan Boxes To Pallet
});
</script>
@endsection
@endsection
@@ -30,11 +30,11 @@
<tr>
<th></th>
<th></th>
<!-- <th align="center">Co-Plt-Whs</th> -->
<th align="center">Delivery method</th>
<th align="center">Ship Via</th>
<th align="center">Route</th>
<th align="center">Intl code</th>
<!-- <th>Co-Plt-Whs</th> -->
<th>Delivery method</th>
<th>Ship Via</th>
<th>Route</th>
<th>Intl code</th>
</tr>
</thead>
<tbody>
@@ -44,7 +44,7 @@
@foreach($ICM664M as $key=>$val)
<tr>
<td></td>
<td align="center">
<td>
@if($power_user->R428PWRUSR=="Y")
<button name="M3DeliveryEdit{{trim($val->AVDELMETH)}}" type="submit" class="btn btn-sm btn-info M3DeliveryEdit_click" id="M3DeliveryEdit_click"
data-AVDELMETH="{{$val->AVDELMETH}}" data-AVSHPVIA="{{trim($val->AVSHPVIA)}}" data-AVSHSRT="{{trim($val->AVSHSRT)}}"
@@ -52,10 +52,10 @@
>Edit</button>
@endif
</td>
<td align="center"> {{ $val->AVDELMETH }} </td>
<td align="center"> {{ $val->AVSHPVIA }} </td>
<td align="center"> {{ $val->AVSHSRT }} </td>
<td align="center"> {{ $val->AVSHORCL }} </td>
<td> {{ $val->AVDELMETH }} </td>
<td> {{ $val->AVSHPVIA }} </td>
<td> {{ $val->AVSHSRT }} </td>
<td> {{ $val->AVSHORCL }} </td>
</tr>
@endforeach
<!-- endif-->
@@ -39,7 +39,7 @@ Solon Sentinel Portal - Manifest Orders
$status_ICM688M1_array[trim($val->A4PICKSTS)] : "";
@endphp
<tr>
<td align="center">
<td>
<a class="btn btn-link" target="_blank" href="{{$sendUrl.'php/AllSentPkr.php?macpkr_input='.$val->AYMACPKR}}" >
{{ $val->AYMACPKR }}
</a>
@@ -138,7 +138,7 @@
<input type="text" class="form-control" name="R658WH" id="R658WHA" required readonly>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" name="R658IZLCF" id="R658IZLCFA" value="1">
<input class="form-check-input" type="checkbox" role="switch" name="R658IZLCF" id="R658IZLCFA" value="1" aria-checked="false">
<label class="form-check-label" for="flexSwitchCheckDefault">Lot Controlled</label>
</div>
</div>
@@ -222,7 +222,7 @@
<input type="text" class="form-control" name="R658WH" id="R658WH" required readonly>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" name="R658IZLCF" id="R658IZLCF" value="1">
<input class="form-check-input" type="checkbox" role="switch" name="R658IZLCF" id="R658IZLCF" value="1" aria-checked="false">
<label class="form-check-label" for="flexSwitchCheckDefault">Lot Controlled</label>
</div>
</div>
@@ -23,12 +23,12 @@
<tr>
<th></th>
<th></th>
<th align="center">SCAC Code</th>
<th align="center">Carrier name</th>
<th align="center">2ship Carrier Code</th>
<th align="center">Parcel Carrier Code</th>
<th align="center">ERP Carrier Code</th>
<th align="center">Timing of M3 closing</th>
<th>SCAC Code</th>
<th>Carrier name</th>
<th>2ship Carrier Code</th>
<th>Parcel Carrier Code</th>
<th>ERP Carrier Code</th>
<th>Timing of M3 closing</th>
</tr>
</thead>
<tbody>
@@ -38,7 +38,7 @@
@foreach($ICM160M as $key=>$val)
<tr>
<td></td>
<td align="center">
<td>
@if(isset($power_user[0]) && trim((string) ($power_user[0]->R428PWRUSR ?? '')) === 'Y')
<button name="carrierEdit{{trim($val->CANUM)}}" type="submit" class="btn btn-sm btn-info carrierEdit_click" id="carrierEdit_click"
data-CANUM="{{trim($val->CANUM)}}" data-CANAM="{{trim($val->CANAM)}}" data-TWOSHIPCARRIERCODE="{{trim($val->TWOSHIPCARRIERCODE)}}"
@@ -47,12 +47,12 @@
>Edit</button>
@endif
</td>
<td align="center"> {{ $val->CANUM }} </td>
<td align="center"> {{ $val->CANAM }} </td>
<td align="center"> {{ $val->TWOSHIPCARRIERCODE }} </td>
<td align="center"> {{ $val->PARCELCARRIERCODE=="X"?"Parcel":"" }} </td>
<td align="center"> {{ $val->CASPR10A01 }} </td>
<td align="center"> {{ $val->CASPR1A01=="Y"?"When closing truck":"" }} </td>
<td> {{ $val->CANUM }} </td>
<td> {{ $val->CANAM }} </td>
<td> {{ $val->TWOSHIPCARRIERCODE }} </td>
<td> {{ $val->PARCELCARRIERCODE=="X"?"Parcel":"" }} </td>
<td> {{ $val->CASPR10A01 }} </td>
<td> {{ $val->CASPR1A01=="Y"?"When closing truck":"" }} </td>
</tr>
@endforeach
<!-- endif-->
@@ -36,4 +36,4 @@ Sentinel API
});
</script>
@endsection
@endsection
@@ -274,4 +274,4 @@ tooltip: {
});
</script>
@endsection
@endsection
@@ -48,4 +48,4 @@
logoutUser();
</script>
@endsection
@endsection
@@ -51,4 +51,4 @@ Solon Sentinel Portal - Order Inquiry
@endsection
@section('scripts')
@endsection
@endsection
@@ -82,7 +82,7 @@ Solon Sentinel Portal - Orders On Hold Summary
</tr>
@endforeach
</tbody>
<tfoot align="right">
<tfoot>
<tr style="text-align:right">
<th style="text-align:right"></th>
<th style="text-align:center"></th>
@@ -166,4 +166,4 @@ Solon Sentinel Portal - Orders On Hold Summary
});
</script>
<script src="/js/raphael.min.js"></script>
@endsection
@endsection
@@ -23,10 +23,10 @@
<tr>
<th></th>
<th></th>
<th align="center">Div-Plt-Whs</th>
<th align="center">Part</th>
<th align="center">Pallet Qty</th>
<th align="center">Hazardous Material</th>
<th>Div-Plt-Whs</th>
<th>Part</th>
<th>Pallet Qty</th>
<th>Hazardous Material</th>
</tr>
</thead>
<tbody>
@@ -36,7 +36,7 @@
@foreach($ICM709M as $key=>$val)
<tr>
<td></td>
<td align="center">
<td>
@if($power_user->R428PWRUSR=="Y")
<button name="qtyEdit{{trim($val->AT9PART)}}" type="submit" class="btn btn-sm btn-info qtyEdit_click" id="qtyEdit_click"
data-AT9CO="{{$val->AT9CO}}" data-AT9PLT="{{trim($val->AT9PLT)}}" data-AT9WHS="{{trim($val->AT9WHS)}}"
@@ -45,10 +45,10 @@
>Edit</button>
@endif
</td>
<td align="center"> {{ $val->AT9CO }} {{ $val->AT9PLT }} {{ $val->AT9WHS }} </td>
<td align="center"> {{ $val->AT9PART }} </td>
<td align="center"> {{ $val->AT9QTY }} </td>
<td align="center"> {{ trim($val->AT9WRN) }} </td>
<td> {{ $val->AT9CO }} {{ $val->AT9PLT }} {{ $val->AT9WHS }} </td>
<td> {{ $val->AT9PART }} </td>
<td> {{ $val->AT9QTY }} </td>
<td> {{ trim($val->AT9WRN) }} </td>
</tr>
@endforeach
<!-- endif-->
@@ -112,7 +112,7 @@ Solon Sentinel Portal - Trucks pending closure with M3
<td> {{ $val->APDOCKDOOR }} </td>
<td> {{ $val->APCARRIER }} </td>
<td> {{ $val->APTRUCKIDT }} </td>
<td align="center"> {{ $val->APSPARE1 }} </td>
<td> {{ $val->APSPARE1 }} </td>
<td> {{ $val->APLDSTRU }} </td>
<td> {{ date('Y-m-d', strtotime($val->APLDSTRD)) }} </td>
<td> {{ strlen($val->APLDSTRT)==6 ? date('H:i:s', strtotime($val->APLDSTRT)):date('H:i:s', strtotime('0'.$val->APLDSTRT)) }} </td>
@@ -34,20 +34,20 @@
<th style="width:100px"></th>
<th style="width:100px">Div-Plt-Whs</th>
<th>Plant name</th>
<th align="center">Status</th>
<th>Status</th>
<th>User profile</th>
<th>First name</th>
<th>Family name</th>
<th>Empl code</th>
<th align="center">Admin user</th>
<th align="center">Power user</th>
<th align="center">CSR</th>
<th align="center">Exec.</th>
<th align="center">Inventory Options</th>
<th align="center">Replenishment</th>
<th align="center">Document Reprints</th>
<th align="center">Loading</th>
<th align="center">Main menu</th>
<th>Admin user</th>
<th>Power user</th>
<th>CSR</th>
<th>Exec.</th>
<th>Inventory Options</th>
<th>Replenishment</th>
<th>Document Reprints</th>
<th>Loading</th>
<th>Main menu</th>
</tr>
</thead>
<tbody>
@@ -57,7 +57,7 @@
@foreach($ICM428M as $key=>$val)
<tr>
<td></td>
<td align="center">
<td>
@if($power_user[0]->R428PWRUSR=="Y" && trim($val->R428US)!="TWOSHIP" && trim($val->R428US)!="TWOSHIP303" && trim($val->R428US)!="TWOSHIP322")
<!-- <a href="userControl/callCL?ACTION=P&USERID={{trim($val->R428US)}}">
<button name="userCallCLP{{trim($val->R428US)}}" type="submit" class="btn btn-sm btn-info userCallCL_click"
@@ -116,20 +116,20 @@
@endif
@endforeach
</td>
<td align="center"> {{ $val->R428STS=="A"?"Active":"Inactive" }} </td>
<td> {{ $val->R428STS=="A"?"Active":"Inactive" }} </td>
<td> {{ $val->R428US }} </td>
<td> {{ $val->R428FIRST }} </td>
<td> {{ $val->R428FAMILY }} </td>
<td align="left"> {{ $val->R428EMPCDE }} </td>
<td align="center"> {{ $val->R428ADMUSR }} </td>
<td align="center"> {{ $val->R428PWRUSR }} </td>
<td align="center"> {{ $val->R42811A }} </td>
<td align="center"> {{ $val->R42821A }} </td>
<td align="left"><pre><font size=+1> {{ str_replace("N"," ",$val->MENU2OPT) }} </font></pre></td>
<td align="left"><pre><font size=+1> {{ str_replace("N"," ",$val->MENU3OPT) }} </font></pre></td>
<td align="left"><pre><font size=+1> {{ str_replace("N"," ",$val->MENU4OPT) }} </font></pre></td>
<td align="left"><pre><font size=+1> {{ str_replace("N"," ",$val->MENU5OPT) }} </font></pre></td>
<td align="left"><pre><font size=+1> {{ str_replace("N"," ",$val->MENU6OPT) }} </font></pre></td>
<td> {{ $val->R428EMPCDE }} </td>
<td> {{ $val->R428ADMUSR }} </td>
<td> {{ $val->R428PWRUSR }} </td>
<td> {{ $val->R42811A }} </td>
<td> {{ $val->R42821A }} </td>
<td><pre><font size=+1> {{ str_replace("N"," ",$val->MENU2OPT) }} </font></pre></td>
<td><pre><font size=+1> {{ str_replace("N"," ",$val->MENU3OPT) }} </font></pre></td>
<td><pre><font size=+1> {{ str_replace("N"," ",$val->MENU4OPT) }} </font></pre></td>
<td><pre><font size=+1> {{ str_replace("N"," ",$val->MENU5OPT) }} </font></pre></td>
<td><pre><font size=+1> {{ str_replace("N"," ",$val->MENU6OPT) }} </font></pre></td>
</tr>
@endforeach
<!-- endif-->
@@ -192,4 +192,4 @@ Solon Sentinel Portal - Graph User Efficiency
});
</script>
@endsection
@endsection
@@ -92,4 +92,4 @@ Change Warehouse
});
</script>
@endsection
@endsection