added field for td and hide show identification parts
This commit is contained in:
@@ -67,7 +67,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
'proddescription',
|
||||
'packaging',
|
||||
'declarconformity',
|
||||
'webaddress'
|
||||
'webaddress',
|
||||
'techspecificationapplied'
|
||||
];
|
||||
|
||||
foreach ($fields as $field) {
|
||||
@@ -216,6 +217,13 @@ $phototwo = $tdquery->getColumnVal("phototwo");
|
||||
$virusprot = $tdquery->getColumnVal("virusprotection");
|
||||
$idarttype = $tdquery->getColumnVal("idarticletype");
|
||||
|
||||
$slippingtext = $tdquery->getColumnVal("slipping") === 'Y' ? 'Sì' : ($tdquery->getColumnVal("slipping") === '' ? 'No' : $tdquery->getColumnVal("slipping"));
|
||||
$autoclavabletext = $tdquery->getColumnVal("autoclavable") === 'Y' ? 'Sì' : ($tdquery->getColumnVal("autoclavable") === '' ? 'No' : $tdquery->getColumnVal("autoclavable"));
|
||||
$ukcatext = $tdquery->getColumnVal("ukca") === 'Y' ? 'Sì' : ($tdquery->getColumnVal("ukca") === '' ? 'No' : $tdquery->getColumnVal("ukca"));
|
||||
$esdtext = $tdquery->getColumnVal("esd") === 'Y' ? 'Sì' : ($tdquery->getColumnVal("esd") === '' ? 'No' : $tdquery->getColumnVal("esd"));
|
||||
$shoesorthopedictext = $tdquery->getColumnVal("shoesorthopedic") === 'Y' ? 'Sì' : ($tdquery->getColumnVal("shoesorthopedic") === '' ? 'No' : $tdquery->getColumnVal("shoesorthopedic"));
|
||||
$shoesorthopedicmodtext = $tdquery->getColumnVal("shoesorthopedicmod") === 'Y' ? 'Sì' : ($tdquery->getColumnVal("shoesorthopedicmod") === '' ? 'No' : $tdquery->getColumnVal("shoesorthopedicmod"));
|
||||
|
||||
|
||||
$conn = new mysqli($servername, $username, $password, $dbname);
|
||||
|
||||
@@ -586,6 +594,7 @@ $destppe = $row['destinationuseppe'];
|
||||
$manprocess = $row['manufacutringprocess'];
|
||||
$ppeage = $row['ppeageing'];
|
||||
$obsol = $row['obsolescencedeadline'];
|
||||
$techspec = $row['techspecificationapplied'];
|
||||
if ($ppeage == 'Y') {
|
||||
$ppeagetext = 'Sì';
|
||||
} else {
|
||||
@@ -636,6 +645,14 @@ $html .= <<<HTML
|
||||
<td class="first-column">DPI soggetto ad invecchiamento</td>
|
||||
<td class="header-data">{$ppeagetext}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first-column">Data di obsolescenza (anni)</td>
|
||||
<td class="header-data">{$obsol}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first-column">{$techapplied}</td>
|
||||
<td class="header-data">{$techspec}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
HTML;
|
||||
@@ -661,6 +678,45 @@ while ($rowstd = $resultstd->fetch_assoc()) {
|
||||
};
|
||||
$html .= '</tbody></table>';
|
||||
|
||||
|
||||
if ($idarttype == 1) {
|
||||
$html .= <<<HTML
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Altre informazioni</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="first-column">Resistenza allo scivolamento</td>
|
||||
<td class="header-data" style="width: 50%;">{$slippingtext}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first-column">Autoclavabile</td>
|
||||
<td class="header-data">{$autoclavabletext}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first-column">Certificazione UKCA</td>
|
||||
<td class="header-data">{$ukcatext}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first-column">Calzature con plantari personalizzati (DGUV)</td>
|
||||
<td class="header-data">{$shoesorthopedictext}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first-column">Calzature modificate con rialzi o inserti nel fondo (DGUV)</td>
|
||||
<td class="header-data">{$shoesorthopedicmodtext}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first-column">Calzature ESD</td>
|
||||
<td class="header-data">{$esdtext}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
HTML;
|
||||
}
|
||||
|
||||
// Add prot category
|
||||
|
||||
$html .= '<table>
|
||||
|
||||
Reference in New Issue
Block a user