update dossier chekcqual
This commit is contained in:
+266
-224
@@ -288,7 +288,11 @@ $partids[] = '0';
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<p class="text-muted mb-3"><?php echo $newtesttitle_help; ?>
|
||||
<div style="border: 2px dashed #007bff; border-radius: 8px; padding: 15px; background-color: #f0f8ff;">
|
||||
<?php echo $newtesttitle_help; ?>
|
||||
</div>
|
||||
|
||||
|
||||
</p>
|
||||
<form class="was-validated" action="" method="post" name="myFormone">
|
||||
<!-- image section -->
|
||||
@@ -319,7 +323,7 @@ $partids[] = '0';
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
</div>
|
||||
<input type="date" required="" onkeydown="return false" class="form-control" id="cmcdatereport" name="cmcdatereport" onchange="validateDate(this.value)" min="2000-01-01" max="<?php echo $todaydate; ?>" disabled value="">
|
||||
<input type="date" required="" class="form-control is-valid" onkeydown="return false" class="form-control" id="cmcdatereport" name="cmcdatereport" onchange="validateDate(this.value)" min="2000-01-01" max="<?php echo $todaydate; ?>" disabled value="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4 mb-3">
|
||||
@@ -332,7 +336,8 @@ $partids[] = '0';
|
||||
<label for="validationServer01"><?php echo $descriptionpart; ?> </label>
|
||||
|
||||
<input type="text" required data-readonly class="form-control is-valid" id="descriptionpartvalue" name="descriptionpartvalue" placeholder="<?php echo $descriptionpart; ?>">
|
||||
<b>Att </b><i><?php echo $addpartphoto; ?></i>
|
||||
<b></b><i><?php //echo $addpartphoto;
|
||||
?></i>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -344,43 +349,80 @@ $partids[] = '0';
|
||||
<label for="validationServer02"><?php echo $articlepart; ?></label>
|
||||
<i class="fas fa-info-circle" data-toggle="modal" data-animation="bounce" data-target=".bs-example-modal-center5"></i>
|
||||
<input type="text" class="form-control is-valid" id="articlepartvalue" name="articlepartvalue" required placeholder="<?php echo $articlepart; ?>" required="">
|
||||
<b>Ex: </b><i><?php echo $searchsentence; ?></i>
|
||||
<b> </b><i><?php echo $searchsentence; ?></i>
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="partid" name="partid">
|
||||
<input type="hidden" id="arttypeid" name="arttypeid" value="<?php echo $idarticletype; ?>">
|
||||
<input type="hidden" id="useridn" name="useridn" value="<?php echo $iduserlog; ?>">
|
||||
<input type="hidden" id="companyidn" name="companyidn" value="<?php echo $idcompany; ?>">
|
||||
|
||||
<div class="col-md-3 mb-2">
|
||||
<label for="validationServer01"><?php echo $descriptionitem; ?> </label>
|
||||
<i class="fas fa-info-circle" data-toggle="modal" data-animation="bounce" data-target=".bs-example-modal-center5"></i>
|
||||
<i class="fas fa-info-circle" data-toggle="modal" data-animation="bounce" data-target=".bs-example-modal-center6"></i>
|
||||
<input type="text" class="form-control is-valid" id="materialpartvalue" name="materialpartvalue" required placeholder="<?php echo $descriptionitem; ?>" required="">
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 mb-2">
|
||||
<label for="validationServerUsername"><?php echo $colorpart; ?></label>
|
||||
<i class="fas fa-info-circle" data-toggle="modal" data-animation="bounce" data-target=".bs-example-modal-center7"></i>
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
</div>
|
||||
<input id="colorvalue" name="colorvalue" required class="form-control" type="text" placeholder="<?php echo $colorpart; ?>" aria-describedby="inputGroupPrepend3" required="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Primo modale -->
|
||||
<div class="modal fade bs-example-modal-center5" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title mt-0" id="exampleModalLabel"><?php echo $m18btitle; ?></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p><?php echo $articlealert; ?><br><br>
|
||||
</p>
|
||||
<p><?php echo nl2br($newtestparthelp1); ?></p>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<div class="col-md-3 mb-2">
|
||||
<label for="validationServerUsername"><?php echo $colorpart; ?></label>
|
||||
<!-- Secondo modale -->
|
||||
<div class="modal fade bs-example-modal-center6" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title mt-0" id="exampleModalLabel"><?php echo $m18btitle; ?></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p><?php echo nl2br($newtestparthelp2); ?></p>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
</div>
|
||||
<input id="colorvalue" name="colorvalue" required class="form-control" type="text" placeholder="<?php echo $colorpart; ?>" aria-describedby="inputGroupPrepend3" required="">
|
||||
<!-- <script>
|
||||
<!-- Terzo modale -->
|
||||
<div class="modal fade bs-example-modal-center7" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title mt-0" id="exampleModalLabel"><?php echo $m18btitle; ?></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p><?php echo nl2br($newtestparthelp3); ?></p>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal --> <!-- <script>
|
||||
|
||||
setTimeout(function(){
|
||||
$("#colorvalue").spectrum({
|
||||
@@ -397,118 +439,118 @@ $partids[] = '0';
|
||||
</script> -->
|
||||
|
||||
|
||||
<input type="hidden" name="idtrf" id="idtrf" value="<?php echo ($trfnumberfinal->getColumnVal("idtrfdetails")); ?>">
|
||||
<input type="hidden" name="idtrf" id="idtrf" value="<?php echo ($trfnumberfinal->getColumnVal("idtrfdetails")); ?>">
|
||||
|
||||
<input type="hidden" name="addpart" id="addpart" value="Y">
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="addpart" id="addpart" value="Y">
|
||||
</div>
|
||||
<div id="display"></div>
|
||||
<!-- <input type="button" onclick="formSubmit()" class="btn btn-gradient-success waves-effect waves-light" value="<?php echo $addpartbutton; ?>"> -->
|
||||
<input type="submit" class="btn btn-gradient-success waves-effect waves-light" value="<?php echo $addpartbutton; ?>">
|
||||
</form>
|
||||
</div>
|
||||
<!--end card-body-->
|
||||
</div>
|
||||
|
||||
<!-- end -->
|
||||
<script>
|
||||
function formSubmit2() {
|
||||
document.forms["myFormtwo"].submit();
|
||||
}
|
||||
</script>
|
||||
<!-- div CMC parts -->
|
||||
|
||||
<!--end card-->
|
||||
<div id="display"></div>
|
||||
<!-- <input type="button" onclick="formSubmit()" class="btn btn-gradient-success waves-effect waves-light" value="<?php echo $addpartbutton; ?>"> -->
|
||||
<input type="submit" class="btn btn-gradient-success waves-effect waves-light" value="<?php echo $addpartbutton; ?>">
|
||||
</form>
|
||||
</div>
|
||||
<!--end col-->
|
||||
<!-- show the parts -->
|
||||
<div class="col-lg-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="mt-0 header-title"><?php echo $assignedparts; ?></h4>
|
||||
<p class="text-muted mb-6"><?php echo $assignedparts_help; ?><br>
|
||||
new=<?php echo $newpartlist; ?>, cmc=<?php echo $cmctesttitle; ?> trd=<?php echo $trdpartlist; ?>
|
||||
</p>
|
||||
<style media="screen">
|
||||
.hidden-x {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
<div id="datatable_wrapper" class="dataTables_wrapper dt-bootstrap4 no-footer">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<table id="datatable" class="table table-bordered dt-responsive nowrap dataTable no-footer dtr-inline" style="border-collapse: collapse; border-spacing: 0px; width: 100%;" role="grid" aria-describedby="datatable_info">
|
||||
<thead>
|
||||
<tr role="row">
|
||||
<th class="sorting_asc" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1">SN</th>
|
||||
<th class="sorting_asc" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 5%" aria-sort="ascending" aria-label="Name: activate to sort column descending">
|
||||
N.
|
||||
</th>
|
||||
<th class="sorting_asc" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 149px" aria-sort="ascending" aria-label="Name: activate to sort column descending">
|
||||
<?php echo $kindpart; ?>
|
||||
</th>
|
||||
<th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 230px" aria-label="Position: activate to sort column ascending">
|
||||
Parte
|
||||
</th>
|
||||
<th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 108px" aria-label="Office: activate to sort column ascending">
|
||||
<?php echo $articlepartlist; ?>
|
||||
</th>
|
||||
<th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 108px" aria-label="Office: activate to sort column ascending">
|
||||
Descrizione
|
||||
</th>
|
||||
<th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 45px" aria-label="Age: activate to sort column ascending">
|
||||
<?php echo $colorpartlist; ?>
|
||||
</th>
|
||||
<th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 97px" aria-label="Start date: activate to sort column ascending">
|
||||
<?php echo $reportlist; ?>
|
||||
</th>
|
||||
<th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 75px" aria-label="Salary: activate to sort column ascending">
|
||||
<?php echo $datereportlist; ?>
|
||||
</th>
|
||||
<!-- <th class="sorting text-center" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 75px" aria-label="Salary: activate to sort column ascending">
|
||||
<!--end card-body-->
|
||||
</div>
|
||||
|
||||
<!-- end -->
|
||||
<script>
|
||||
function formSubmit2() {
|
||||
document.forms["myFormtwo"].submit();
|
||||
}
|
||||
</script>
|
||||
<!-- div CMC parts -->
|
||||
|
||||
<!--end card-->
|
||||
</div>
|
||||
<!--end col-->
|
||||
<!-- show the parts -->
|
||||
<div class="col-lg-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4 class="mt-0 header-title"><?php echo $assignedparts; ?></h4>
|
||||
<p class="text-muted mb-6"><?php echo $assignedparts_help; ?><br>
|
||||
|
||||
</p>
|
||||
<style media="screen">
|
||||
.hidden-x {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
<div id="datatable_wrapper" class="dataTables_wrapper dt-bootstrap4 no-footer">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<table id="datatable" class="table table-bordered dt-responsive nowrap dataTable no-footer dtr-inline" style="border-collapse: collapse; border-spacing: 0px; width: 100%;" role="grid" aria-describedby="datatable_info">
|
||||
<thead>
|
||||
<tr role="row">
|
||||
<th class="sorting_asc" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1">SN</th>
|
||||
<th class="sorting_asc" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 5%" aria-sort="ascending" aria-label="Name: activate to sort column descending">
|
||||
N.
|
||||
</th>
|
||||
<th class="sorting_asc" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 149px" aria-sort="ascending" aria-label="Name: activate to sort column descending">
|
||||
<?php echo $kindpart; ?>
|
||||
</th>
|
||||
<th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 230px" aria-label="Position: activate to sort column ascending">
|
||||
<?= htmlspecialchars($descriptionpart, ENT_QUOTES, 'UTF-8'); ?>
|
||||
</th>
|
||||
<th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 108px" aria-label="Office: activate to sort column ascending">
|
||||
<?php echo $articlepartlist; ?>
|
||||
</th>
|
||||
<th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 108px" aria-label="Office: activate to sort column ascending">
|
||||
<?= htmlspecialchars($descriptionpartlist, ENT_QUOTES, 'UTF-8'); ?>
|
||||
</th>
|
||||
<th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 45px" aria-label="Age: activate to sort column ascending">
|
||||
<?php echo $colorpartlist; ?>
|
||||
</th>
|
||||
<th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 97px" aria-label="Start date: activate to sort column ascending">
|
||||
<?php echo $reportlist; ?>
|
||||
</th>
|
||||
<th class="sorting" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 75px" aria-label="Salary: activate to sort column ascending">
|
||||
<?php echo $datereportlist; ?>
|
||||
</th>
|
||||
<!-- <th class="sorting text-center" tabindex="0" aria-controls="datatable" rowspan="1" colspan="1" style="width: 75px" aria-label="Salary: activate to sort column ascending">
|
||||
<?php echo $action; ?>
|
||||
</th> -->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$wa_startindex = 0;
|
||||
while (!$listinsertedpart->atEnd()) {
|
||||
$wa_startindex = $listinsertedpart->Index; ?>
|
||||
<tr class="tr_<?php echo $listinsertedpart->getColumnVal("partsidnumber"); ?>">
|
||||
<!-- IDENTIFIER -->
|
||||
<td><?php echo $listinsertedpart->getColumnVal("partsidnumber"); ?>_<?php echo $listinsertedpart->getColumnVal("ididentificationparts"); ?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$wa_startindex = 0;
|
||||
while (!$listinsertedpart->atEnd()) {
|
||||
$wa_startindex = $listinsertedpart->Index; ?>
|
||||
<tr class="tr_<?php echo $listinsertedpart->getColumnVal("partsidnumber"); ?>">
|
||||
<!-- IDENTIFIER -->
|
||||
<td><?php echo $listinsertedpart->getColumnVal("partsidnumber"); ?>_<?php echo $listinsertedpart->getColumnVal("ididentificationparts"); ?></td>
|
||||
|
||||
<td>
|
||||
<?php echo $listinsertedpart->getColumnVal("partsidnumber"); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php
|
||||
if (($listinsertedpart->getColumnVal("kindoftest")) == 'new') {
|
||||
echo $newpartlist;
|
||||
}
|
||||
if (($listinsertedpart->getColumnVal("kindoftest")) == 'cmc') {
|
||||
echo $cmcpartlist;
|
||||
}
|
||||
if (($listinsertedpart->getColumnVal("kindoftest")) == 'trd') {
|
||||
echo $trdpartlist;
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td><?php echo $listinsertedpart->getColumnVal("description_identificationparts"); ?></td>
|
||||
<td><?php echo $listinsertedpart->getColumnVal("article_identificationparts"); ?></td>
|
||||
<td><?php echo $listinsertedpart->getColumnVal("material_identificationparts"); ?></td>
|
||||
<td><?php echo $listinsertedpart->getColumnVal("color_identificationparts"); ?></td>
|
||||
<td><?php echo $listinsertedpart->getColumnVal("cmcreportnumber_identificationparts"); ?></td>
|
||||
<td id="td_reportdate_<?php echo $listinsertedpart->getColumnVal("partsidnumber"); ?>_<?php echo $listinsertedpart->getColumnVal("ididentificationparts"); ?>" parts-id-no="<?php echo $listinsertedpart->getColumnVal("partsidnumber"); ?>" current-val="<?php echo ($listinsertedpart->getColumnVal("cmcreportdate_identificationparts") <> '') ? date("m/d/Y", strtotime($listinsertedpart->getColumnVal("cmcreportdate_identificationparts"))) : ""; ?>"><?php echo ($listinsertedpart->getColumnVal("cmcreportdate_identificationparts") <> '') ? date("m/d/Y", strtotime($listinsertedpart->getColumnVal("cmcreportdate_identificationparts"))) : ''; ?></td>
|
||||
<!-- <td class="text-center">
|
||||
<td>
|
||||
<?php echo $listinsertedpart->getColumnVal("partsidnumber"); ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php
|
||||
if (($listinsertedpart->getColumnVal("kindoftest")) == 'new') {
|
||||
echo $newpartlist;
|
||||
}
|
||||
if (($listinsertedpart->getColumnVal("kindoftest")) == 'cmc') {
|
||||
echo $cmcpartlist;
|
||||
}
|
||||
if (($listinsertedpart->getColumnVal("kindoftest")) == 'trd') {
|
||||
echo $trdpartlist;
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td><?php echo $listinsertedpart->getColumnVal("description_identificationparts"); ?></td>
|
||||
<td><?php echo $listinsertedpart->getColumnVal("article_identificationparts"); ?></td>
|
||||
<td><?php echo $listinsertedpart->getColumnVal("material_identificationparts"); ?></td>
|
||||
<td><?php echo $listinsertedpart->getColumnVal("color_identificationparts"); ?></td>
|
||||
<td><?php echo $listinsertedpart->getColumnVal("cmcreportnumber_identificationparts"); ?></td>
|
||||
<td id="td_reportdate_<?php echo $listinsertedpart->getColumnVal("partsidnumber"); ?>_<?php echo $listinsertedpart->getColumnVal("ididentificationparts"); ?>" parts-id-no="<?php echo $listinsertedpart->getColumnVal("partsidnumber"); ?>" current-val="<?php echo ($listinsertedpart->getColumnVal("cmcreportdate_identificationparts") <> '') ? date("m/d/Y", strtotime($listinsertedpart->getColumnVal("cmcreportdate_identificationparts"))) : ""; ?>"><?php echo ($listinsertedpart->getColumnVal("cmcreportdate_identificationparts") <> '') ? date("m/d/Y", strtotime($listinsertedpart->getColumnVal("cmcreportdate_identificationparts"))) : ''; ?></td>
|
||||
<!-- <td class="text-center">
|
||||
<a style="display:none; cursor:pointer;" title="Save" id="btn_save_<?php echo $listinsertedpart->getColumnVal("partsidnumber"); ?>" onclick="highlight_row(<?php echo $listinsertedpart->getColumnVal('partsidnumber'); ?>);"><i class="fas fa-check text-success font-16"></i></a>
|
||||
|
||||
<a href="deleteidentparts.php?ididentpart=<?php echo ($listinsertedpart->getColumnVal("ididentificationparts")); ?>&idtrf=<?php echo $idtrf; ?>"><i class="fas fa-trash-alt text-danger font-16"></i></a>
|
||||
</td> -->
|
||||
</tr>
|
||||
<!-- <tr role="row" class="odd">
|
||||
</tr>
|
||||
<!-- <tr role="row" class="odd">
|
||||
<td tabindex="0" class="sorting_1" style="width:5%">
|
||||
<span class="text-x"><?php echo ($listinsertedpart->getColumnVal("partsidnumber")); ?></span>
|
||||
<span class="input-x hidden-x">
|
||||
@@ -582,107 +624,107 @@ $partids[] = '0';
|
||||
<a href="deleteidentparts.php?ididentpart=<?php echo ($listinsertedpart->getColumnVal("ididentificationparts")); ?>&idtrf=<?php echo $idtrf; ?>"><i class="fas fa-trash-alt text-danger font-16"></i></a>
|
||||
</td>
|
||||
</tr> -->
|
||||
<?php
|
||||
$listinsertedpart->moveNext();
|
||||
}
|
||||
$listinsertedpart->moveFirst(); //return RS to first record
|
||||
unset($wa_startindex);
|
||||
unset($wa_repeatcount);
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<?php
|
||||
// for shoes
|
||||
// Define the mandatory parts
|
||||
$hivis = isset($hivis) ? $hivis : 'N';
|
||||
|
||||
$mandatoryParts = array();
|
||||
if ($idarticletype == '1') {
|
||||
$mandatoryParts = array(4, 11);
|
||||
$totalparthighlight = array(1, 2, 4, 5, 7, 8, 10, 11, 12, 13, 14, 15, 16, 18, 19);
|
||||
} elseif ($idarticletype == '2') {
|
||||
$mandatoryParts = array(2, 3);
|
||||
$totalparthighlight = array(2, 3, 4);
|
||||
} elseif ($idarticletype == '3') {
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '11') {
|
||||
//camice
|
||||
$mandatoryParts = array(1);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '12' && $hivis == 'N') {
|
||||
// felpa
|
||||
$mandatoryParts = array(1);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '12' && $hivis == 'Y') {
|
||||
// felpa hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 'FM', 'RM');
|
||||
} elseif ($idarticletype == '4' && $modelidart == '13' && $hivis == 'N') {
|
||||
// giacca
|
||||
$mandatoryParts = array(1);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '13' && $hivis == 'Y') {
|
||||
// giacca hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 'FM', 'RM');
|
||||
} elseif ($idarticletype == '4' && $modelidart == '14' && $hivis == 'N') {
|
||||
// gilet
|
||||
$mandatoryParts = array(1);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '14' && $hivis == 'Y') {
|
||||
// gilet hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 'FM', 'RM');
|
||||
} elseif ($idarticletype == '4' && $modelidart == '15' && $hivis == 'N') {
|
||||
// pantaloni
|
||||
$mandatoryParts = array(1, 3);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '15' && $hivis == 'Y') {
|
||||
// pantaloni hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 'FM', 'RM');
|
||||
} elseif ($idarticletype == '4' && $modelidart == '16' && $hivis == 'N') {
|
||||
// salopette
|
||||
$mandatoryParts = array(1, 3);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '16' && $hivis == 'Y') {
|
||||
// salopette hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 'FM', 'RM');
|
||||
} elseif ($idarticletype == '4' && $modelidart == '17' && $hivis == 'N') {
|
||||
// shirt
|
||||
$mandatoryParts = array(1);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '17' && $hivis == 'Y') {
|
||||
// shirt hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 'FM', 'RM');
|
||||
} elseif ($idarticletype == '4' && $modelidart == '18' && $hivis == 'N') {
|
||||
// t-shirt
|
||||
$mandatoryParts = array(1);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '18' && $hivis == 'Y') {
|
||||
// t-shirt hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 'FM', 'RM');
|
||||
} elseif ($idarticletype == '4' && $modelidart == '18' && $hivis == 'N') {
|
||||
// tuta
|
||||
$mandatoryParts = array(1, 8);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 8, 9);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '18' && $hivis == 'Y') {
|
||||
// tuta hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 'FM', 'RM');
|
||||
$listinsertedpart->moveNext();
|
||||
}
|
||||
$listinsertedpart->moveFirst(); //return RS to first record
|
||||
unset($wa_startindex);
|
||||
unset($wa_repeatcount);
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
$diffparts = array_diff($totalparthighlight, $partids);
|
||||
$missingMandatoryParts = array_intersect($mandatoryParts, $diffparts);
|
||||
<?php
|
||||
// for shoes
|
||||
// Define the mandatory parts
|
||||
$hivis = isset($hivis) ? $hivis : 'N';
|
||||
|
||||
echo '<button onclick="checkParts()" class="btn btn-success waves-effect waves-light">' . $nextsteptitle . '</button>';
|
||||
$mandatoryParts = array();
|
||||
if ($idarticletype == '1') {
|
||||
$mandatoryParts = array(4, 11);
|
||||
$totalparthighlight = array(1, 2, 4, 5, 7, 8, 10, 11, 12, 13, 14, 15, 16, 18, 19);
|
||||
} elseif ($idarticletype == '2') {
|
||||
$mandatoryParts = array(2, 3);
|
||||
$totalparthighlight = array(2, 3, 4);
|
||||
} elseif ($idarticletype == '3') {
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '11') {
|
||||
//camice
|
||||
$mandatoryParts = array(1);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '12' && $hivis == 'N') {
|
||||
// felpa
|
||||
$mandatoryParts = array(1);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '12' && $hivis == 'Y') {
|
||||
// felpa hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 'FM', 'RM');
|
||||
} elseif ($idarticletype == '4' && $modelidart == '13' && $hivis == 'N') {
|
||||
// giacca
|
||||
$mandatoryParts = array(1);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '13' && $hivis == 'Y') {
|
||||
// giacca hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 'FM', 'RM');
|
||||
} elseif ($idarticletype == '4' && $modelidart == '14' && $hivis == 'N') {
|
||||
// gilet
|
||||
$mandatoryParts = array(1);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '14' && $hivis == 'Y') {
|
||||
// gilet hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 'FM', 'RM');
|
||||
} elseif ($idarticletype == '4' && $modelidart == '15' && $hivis == 'N') {
|
||||
// pantaloni
|
||||
$mandatoryParts = array(1, 3);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '15' && $hivis == 'Y') {
|
||||
// pantaloni hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 'FM', 'RM');
|
||||
} elseif ($idarticletype == '4' && $modelidart == '16' && $hivis == 'N') {
|
||||
// salopette
|
||||
$mandatoryParts = array(1, 3);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '16' && $hivis == 'Y') {
|
||||
// salopette hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 'FM', 'RM');
|
||||
} elseif ($idarticletype == '4' && $modelidart == '17' && $hivis == 'N') {
|
||||
// shirt
|
||||
$mandatoryParts = array(1);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '17' && $hivis == 'Y') {
|
||||
// shirt hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 'FM', 'RM');
|
||||
} elseif ($idarticletype == '4' && $modelidart == '18' && $hivis == 'N') {
|
||||
// t-shirt
|
||||
$mandatoryParts = array(1);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '18' && $hivis == 'Y') {
|
||||
// t-shirt hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 'FM', 'RM');
|
||||
} elseif ($idarticletype == '4' && $modelidart == '18' && $hivis == 'N') {
|
||||
// tuta
|
||||
$mandatoryParts = array(1, 8);
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 8, 9);
|
||||
} elseif ($idarticletype == '4' && $modelidart == '18' && $hivis == 'Y') {
|
||||
// tuta hivis
|
||||
$mandatoryParts = array('FM', 'RM');
|
||||
$totalparthighlight = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 'FM', 'RM');
|
||||
}
|
||||
|
||||
echo '<script>
|
||||
$diffparts = array_diff($totalparthighlight, $partids);
|
||||
$missingMandatoryParts = array_intersect($mandatoryParts, $diffparts);
|
||||
|
||||
echo '<button onclick="checkParts()" class="btn btn-success waves-effect waves-light">' . $nextsteptitle . '</button>';
|
||||
|
||||
echo '<script>
|
||||
function checkParts() {
|
||||
var missingMandatoryParts = ' . json_encode(array_values($missingMandatoryParts)) . ';
|
||||
var missingParts = ' . json_encode(array_values($diffparts)) . ';
|
||||
@@ -690,8 +732,8 @@ $partids[] = '0';
|
||||
if (missingMandatoryParts.length > 0) {
|
||||
Swal.fire({
|
||||
icon: "error",
|
||||
title: "Parti Obbligatorie Mancanti",
|
||||
text: "Le seguenti parti sono obbligatorie e devono essere inserite: " + missingMandatoryParts.join(", "),
|
||||
title: "Attenzione! Parti Obbligatorie Mancanti / Attention: Missing Mandatory Parts",
|
||||
text: "Aggiungere le parti obbligatorie / Add mandatory parts. Mancante/Missing " + missingMandatoryParts.join(", "),
|
||||
confirmButtonText: "OK"
|
||||
});
|
||||
} else if (missingParts.length > 0) {
|
||||
@@ -714,28 +756,28 @@ $partids[] = '0';
|
||||
}
|
||||
}
|
||||
</script>';
|
||||
?>
|
||||
?>
|
||||
|
||||
<button type="button" class="btn btn-dark waves-effect waves-light" onclick="window.location.href='identificationparts.php?idtrf=<?php echo $idtrf; ?>'"><?php echo $backstep; ?></button>
|
||||
<button type="button" class="btn btn-dark waves-effect waves-light" onclick="window.location.href='identificationparts.php?idtrf=<?php echo $idtrf; ?>'"><?php echo $backstep; ?></button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page title end breadcrumb -->
|
||||
</div>
|
||||
<!-- container -->
|
||||
<!-- footer start -->
|
||||
|
||||
</div>
|
||||
<!-- end page content -->
|
||||
<!-- end page title end breadcrumb -->
|
||||
</div>
|
||||
<?php include('include/footer.php'); ?>
|
||||
</footer><!--end footer-->
|
||||
<!-- container -->
|
||||
<!-- footer start -->
|
||||
|
||||
</div>
|
||||
<!-- end page content -->
|
||||
</div>
|
||||
<?php include('include/footer.php'); ?>
|
||||
</footer><!--end footer-->
|
||||
</div>
|
||||
<!-- end page content -->
|
||||
</div>
|
||||
<!-- end page-wrapper -->
|
||||
<script type="text/javascript">
|
||||
function validateDate(date) {
|
||||
|
||||
Reference in New Issue
Block a user