added field for td and hide show identification parts
This commit is contained in:
@@ -48,11 +48,24 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
// Lista dei campi da sanificare e controllare se sono piene
|
||||
$fields = [
|
||||
'productionplace_same', 'classificationshoes', 'destinationuseppe',
|
||||
'manufacutringprocess', 'ppeageing', 'obsolescencedeadline',
|
||||
'localisationppemarking', 'manufacturerlogoid', 'sizeexamplecemark',
|
||||
'monthyearprod', 'serialbatchnumber', 'standarduse', 'symbolsaddreq',
|
||||
'proddescription', 'packaging', 'declarconformity', 'webaddress'
|
||||
'productionplace_same',
|
||||
'classificationshoes',
|
||||
'destinationuseppe',
|
||||
'manufacutringprocess',
|
||||
'ppeageing',
|
||||
'obsolescencedeadline',
|
||||
'localisationppemarking',
|
||||
'manufacturerlogoid',
|
||||
'sizeexamplecemark',
|
||||
'monthyearprod',
|
||||
'serialbatchnumber',
|
||||
'standarduse',
|
||||
'symbolsaddreq',
|
||||
'proddescription',
|
||||
'packaging',
|
||||
'declarconformity',
|
||||
'webaddress',
|
||||
'techspecificationapplied'
|
||||
];
|
||||
|
||||
foreach ($fields as $field) {
|
||||
@@ -201,6 +214,13 @@ $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);
|
||||
|
||||
|
||||
@@ -562,6 +582,7 @@ $destppe = $row['destinationuseppe'];
|
||||
$manprocess = $row['manufacutringprocess'];
|
||||
$ppeage = $row['ppeageing'];
|
||||
$obsol = $row['obsolescencedeadline'];
|
||||
$techspec = $row['techspecificationapplied'];
|
||||
if ($ppeage == 'Y') {
|
||||
$ppeagetext = 'Sì';
|
||||
} else {
|
||||
@@ -612,11 +633,20 @@ $html .= <<<HTML
|
||||
<td class="first-column">DPI soggetto ad invecchiamento</td>
|
||||
<td class="header-data">{$ppeagetext}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first-column">{$obsoldate}</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;
|
||||
|
||||
|
||||
|
||||
// dpi standard
|
||||
|
||||
$html .= '<table>
|
||||
@@ -637,6 +667,47 @@ while ($rowstd = $resultstd->fetch_assoc()) {
|
||||
};
|
||||
$html .= '</tbody></table>';
|
||||
|
||||
//other info
|
||||
|
||||
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