small change
@ -26,6 +26,7 @@ if (isset($formnameedit)) {
|
||||
$UpdateQuery->bindColumn("iddpicategory", "i", "" . ((isset($_POST["categorydpi"])) ? $_POST["categorydpi"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("virusset", "s", "" . ((isset($_POST["virusprotection"])) ? $_POST["virusprotection"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("chemicalsset", "s", "" . ((isset($_POST["chemicalagent"])) ? $_POST["chemicalagent"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("active", "s", "" . ((isset($_POST["active"])) ? $_POST["active"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->addFilter("idstandards", "=", "i", "" . ($idstandards) . "");
|
||||
$UpdateQuery->execute();
|
||||
$UpdateGoTo = "";
|
||||
@ -152,6 +153,7 @@ $standardlist->execute();
|
||||
|
||||
<th>Virus</th>
|
||||
<th>Chemical</th>
|
||||
<th>Active</th>
|
||||
|
||||
<th><?php echo $action; ?></th>
|
||||
</tr>
|
||||
@ -183,7 +185,7 @@ $standardlist->execute();
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
|
||||
<td><?php echo ($standardlist->getColumnVal("active")); ?></td>
|
||||
<td>
|
||||
<a href="edit-standard.php?idstandards=<?php echo ($standardlist->getColumnVal("idstandards")); ?>" class="mr-2"><i class="fas fa-edit text-info font-16"></i></a>
|
||||
<a href="edit-protcategory.php?idstandards=<?php echo ($standardlist->getColumnVal("idstandards")); ?>">PC</a>
|
||||
|
||||
@ -243,11 +243,15 @@ $chemicalagentlist->execute();
|
||||
<div class="progress-bar" role="progressbar" style="width: 95%;" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100">95%</div>
|
||||
</div>
|
||||
<!-- send to client to sign -->
|
||||
<?php if ((Auth::user()->hasRole('Admin')) || (Auth::user()->hasRole('CustomerService')) || (Auth::user()->hasRole('Superuser'))) : ?>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php if ((Auth::user()->hasRole('Admin')) || (Auth::user()->hasRole('CustomerService')) || (Auth::user()->hasRole('Superuser'))) : ?>
|
||||
<h4 class="mt-0 header-title">Invia a Cliente per Firma</h4>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php if ((Auth::user()->hasRole('User'))) : ?>
|
||||
<h4 class="mt-0 header-title"><?php echo $respsign; ?></h4>
|
||||
<?php endif; ?>
|
||||
<form action="previewtrf.php" method="post" name="myForm2" id="myForm2" class="form-parsley">
|
||||
|
||||
|
||||
@ -287,7 +291,7 @@ $chemicalagentlist->execute();
|
||||
|
||||
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<!-- card for optional TRF -->
|
||||
<?php if ((Auth::user()->hasRole('Admin')) || (Auth::user()->hasRole('User')) || (Auth::user()->hasRole('Superuser'))) : ?>
|
||||
|
||||
@ -1,49 +1,48 @@
|
||||
<?php
|
||||
include('include/headscript.php'); ?>
|
||||
|
||||
<?php
|
||||
include('include/headscript.php'); ?>
|
||||
|
||||
<?php
|
||||
// pickup the get variable
|
||||
if (isset($_GET["idstandards"])) {
|
||||
$idstandards=$_GET["idstandards"];
|
||||
}
|
||||
// pickup the get variable
|
||||
if (isset($_GET["idstandards"])) {
|
||||
$idstandards = $_GET["idstandards"];
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<?php
|
||||
$standarddetail = new WA_MySQLi_RS("standarddetail",$cmctrfdb,0);
|
||||
$standarddetail = new WA_MySQLi_RS("standarddetail", $cmctrfdb, 0);
|
||||
$standarddetail->setQuery("SELECT * FROM standards WHERE standards.idstandards='$idstandards' ORDER BY standards.idarticletype, standards.standardcode");
|
||||
$standarddetail->execute();
|
||||
|
||||
?>
|
||||
<?php
|
||||
$articletypelist = new WA_MySQLi_RS("articletypelist",$cmctrfdb,0);
|
||||
$articletypelist = new WA_MySQLi_RS("articletypelist", $cmctrfdb, 0);
|
||||
$articletypelist->setQuery("SELECT * FROM article_type ORDER BY article_type.name_articletype");
|
||||
$articletypelist->execute();
|
||||
?>
|
||||
<?php
|
||||
$articlecharacteristiclist = new WA_MySQLi_RS("articlecharacteristiclist",$cmctrfdb,0);
|
||||
$articlecharacteristiclist = new WA_MySQLi_RS("articlecharacteristiclist", $cmctrfdb, 0);
|
||||
$articlecharacteristiclist->setQuery("SELECT * FROM article_characteristic ORDER BY article_characteristic.idarticletype, article_characteristic.name_articlecharacteristic");
|
||||
$articlecharacteristiclist->execute();
|
||||
?>
|
||||
<?php
|
||||
$categorydpilist = new WA_MySQLi_RS("categorydpilist",$cmctrfdb,0);
|
||||
$categorydpilist = new WA_MySQLi_RS("categorydpilist", $cmctrfdb, 0);
|
||||
$categorydpilist->setQuery("SELECT * FROM dpicategory ORDER BY dpicategory.value_dpicategory");
|
||||
$categorydpilist->execute();?>
|
||||
$categorydpilist->execute(); ?>
|
||||
<?php
|
||||
$idarticletypen=$standarddetail->getColumnVal("idarticletype");
|
||||
$articletypesel = new WA_MySQLi_RS("articletypesel",$cmctrfdb,1);
|
||||
$idarticletypen = $standarddetail->getColumnVal("idarticletype");
|
||||
$articletypesel = new WA_MySQLi_RS("articletypesel", $cmctrfdb, 1);
|
||||
$articletypesel->setQuery("SELECT * FROM article_type WHERE article_type.idarticletype='$idarticletypen'");
|
||||
$articletypesel->execute();?>
|
||||
$articletypesel->execute(); ?>
|
||||
<?php
|
||||
$idarticlecharacteristicn=$standarddetail->getColumnVal("idarticlecharacteristic");
|
||||
$artcharactcheck = new WA_MySQLi_RS("artcharactcheck",$cmctrfdb,1);
|
||||
$idarticlecharacteristicn = $standarddetail->getColumnVal("idarticlecharacteristic");
|
||||
$artcharactcheck = new WA_MySQLi_RS("artcharactcheck", $cmctrfdb, 1);
|
||||
$artcharactcheck->setQuery("SELECT * FROM article_characteristic WHERE article_characteristic.idarticlecharacteristic='$idarticlecharacteristicn'");
|
||||
$artcharactcheck->execute();?>
|
||||
$artcharactcheck->execute(); ?>
|
||||
<?php
|
||||
$iddpicategoryn=$standarddetail->getColumnVal("iddpicategory");
|
||||
$dpicategorycheck = new WA_MySQLi_RS("dpicategorycheck",$cmctrfdb,1);
|
||||
$iddpicategoryn = $standarddetail->getColumnVal("iddpicategory");
|
||||
$dpicategorycheck = new WA_MySQLi_RS("dpicategorycheck", $cmctrfdb, 1);
|
||||
$dpicategorycheck->setQuery("SELECT * FROM dpicategory WHERE dpicategory.iddpicategory='$iddpicategoryn'");
|
||||
$dpicategorycheck->execute();
|
||||
?>
|
||||
@ -53,19 +52,19 @@ if (isset($formnameedit)) {
|
||||
$UpdateQuery = new WA_MySQLi_Query($cmctrfdb);
|
||||
$UpdateQuery->Action = "update";
|
||||
$UpdateQuery->Table = "standards";
|
||||
$UpdateQuery->bindColumn("fmidstandards", "i", "".((isset($_POST["fmcode"]))?$_POST["fmcode"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("standardname", "s", "".((isset($_POST["itastdname"]))?$_POST["itastdname"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("standardname_eng", "s", "".((isset($_POST["engstdname"]))?$_POST["engstdname"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("standardcode", "s", "".((isset($_POST["standardcode"]))?$_POST["standardcode"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("idarticletype", "i", "".((isset($_POST["idarticletype"]))?$_POST["idarticletype"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("idarticlecharacteristic", "i", "".((isset($_POST["articlecharact"]))?$_POST["articlecharact"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("iddpicategory", "i", "".((isset($_POST["categorydpi"]))?$_POST["categorydpi"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("virusset", "s", "".((isset($_POST["virusprotection"]))?$_POST["virusprotection"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("chemicalsset", "s", "".((isset($_POST["chemicalagent"]))?$_POST["chemicalagent"]:"") ."", "WA_DEFAULT");
|
||||
$UpdateQuery->addFilter("idstandards", "=", "i", "".($idstandards) ."");
|
||||
$UpdateQuery->bindColumn("fmidstandards", "i", "" . ((isset($_POST["fmcode"])) ? $_POST["fmcode"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("standardname", "s", "" . ((isset($_POST["itastdname"])) ? $_POST["itastdname"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("standardname_eng", "s", "" . ((isset($_POST["engstdname"])) ? $_POST["engstdname"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("standardcode", "s", "" . ((isset($_POST["standardcode"])) ? $_POST["standardcode"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("idarticletype", "i", "" . ((isset($_POST["idarticletype"])) ? $_POST["idarticletype"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("idarticlecharacteristic", "i", "" . ((isset($_POST["articlecharact"])) ? $_POST["articlecharact"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("iddpicategory", "i", "" . ((isset($_POST["categorydpi"])) ? $_POST["categorydpi"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("virusset", "s", "" . ((isset($_POST["virusprotection"])) ? $_POST["virusprotection"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->bindColumn("chemicalsset", "s", "" . ((isset($_POST["chemicalagent"])) ? $_POST["chemicalagent"] : "") . "", "WA_DEFAULT");
|
||||
$UpdateQuery->addFilter("idstandards", "=", "i", "" . ($idstandards) . "");
|
||||
$UpdateQuery->execute();
|
||||
$UpdateGoTo = "";
|
||||
if (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo?rel2abs($UpdateGoTo,dirname(__FILE__)):"";
|
||||
if (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo ? rel2abs($UpdateGoTo, dirname(__FILE__)) : "";
|
||||
$UpdateQuery->redirect($UpdateGoTo);
|
||||
}
|
||||
?>
|
||||
@ -97,16 +96,16 @@ if (isset($formnameedit)) {
|
||||
|
||||
|
||||
<!-- submit form with button -->
|
||||
<script>
|
||||
function formSubmit() {
|
||||
<script>
|
||||
function formSubmit() {
|
||||
document.forms["myForm"].submit();
|
||||
}
|
||||
</script>
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body>
|
||||
|
||||
<!-- Top Bar Start -->
|
||||
<?php include('include/topbar.php'); ?>
|
||||
@ -154,28 +153,28 @@ function formSubmit() {
|
||||
<div class="form-group row">
|
||||
<label for="standardcode" class="col-sm-2 col-form-label text-right">Standard Code</label>
|
||||
<div class="col-sm-10">
|
||||
<input class="form-control" type="text" value="<?php echo($standarddetail->getColumnVal("standardcode")); ?>" id="standardcode" name="standardcode">
|
||||
<input class="form-control" type="text" value="<?php echo ($standarddetail->getColumnVal("standardcode")); ?>" id="standardcode" name="standardcode">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="itastdname" class="col-sm-2 col-form-label text-right">Nome STD Italiano</label>
|
||||
<div class="col-sm-10">
|
||||
<input class="form-control" type="text" value="<?php echo($standarddetail->getColumnVal("standardname")); ?>" id="itastdname" name="itastdname">
|
||||
<input class="form-control" type="text" value="<?php echo ($standarddetail->getColumnVal("standardname")); ?>" id="itastdname" name="itastdname">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="engstdname" class="col-sm-2 col-form-label text-right">Nome STD Inglese</label>
|
||||
<div class="col-sm-10">
|
||||
<input class="form-control" type="text" value="<?php echo($standarddetail->getColumnVal("standardname_eng")); ?>" id="engstdname" name="engstdname">
|
||||
<input class="form-control" type="text" value="<?php echo ($standarddetail->getColumnVal("standardname_eng")); ?>" id="engstdname" name="engstdname">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label for="fmcode" class="col-sm-2 col-form-label text-right">Codice FM</label>
|
||||
<div class="col-sm-10">
|
||||
<input class="form-control" type="text" value="<?php echo($standarddetail->getColumnVal("fmidstandards")); ?>" id="fmcode" name="fmcode">
|
||||
<input class="form-control" type="text" value="<?php echo ($standarddetail->getColumnVal("fmidstandards")); ?>" id="fmcode" name="fmcode">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -183,16 +182,20 @@ function formSubmit() {
|
||||
<label class="col-sm-2 col-form-label text-right">Tipologia Articolo</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="idarticletype" id="idarticletype">
|
||||
<option value="" <?php if (!(strcmp("", ($articletypesel->getColumnVal("idarticletype"))))) {echo "selected=\"selected\"";} ?>>Seleziona</option>
|
||||
<option value="" <?php if (!(strcmp("", ($articletypesel->getColumnVal("idarticletype"))))) {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>Seleziona</option>
|
||||
<?php
|
||||
while(!$articletypelist->atEnd()) { //dyn select
|
||||
?>
|
||||
<option value="<?php echo($articletypelist->getColumnVal("idarticletype")); ?>"<?php if (!(strcmp($articletypelist->getColumnVal("idarticletype"), ($articletypesel->getColumnVal("idarticletype"))))) {echo "selected=\"selected\"";} ?>><?php echo($articletypelist->getColumnVal("name_articletype")); ?></option>
|
||||
while (!$articletypelist->atEnd()) { //dyn select
|
||||
?>
|
||||
<option value="<?php echo ($articletypelist->getColumnVal("idarticletype")); ?>" <?php if (!(strcmp($articletypelist->getColumnVal("idarticletype"), ($articletypesel->getColumnVal("idarticletype"))))) {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>><?php echo ($articletypelist->getColumnVal("name_articletype")); ?></option>
|
||||
<?php
|
||||
$articletypelist->moveNext();
|
||||
} //dyn select
|
||||
$articletypelist->moveFirst();
|
||||
?>
|
||||
} //dyn select
|
||||
$articletypelist->moveFirst();
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -201,16 +204,20 @@ $articletypelist->moveFirst();
|
||||
<label class="col-sm-2 col-form-label text-right">Caratteristiche Articolo</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" id="articlecharact" name="articlecharact">
|
||||
<option value="" <?php if (!(strcmp("", ($standarddetail->getColumnVal("idarticlecharacteristic"))))) {echo "selected=\"selected\"";} ?>>Seleziona</option>
|
||||
<option value="" <?php if (!(strcmp("", ($standarddetail->getColumnVal("idarticlecharacteristic"))))) {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>Seleziona</option>
|
||||
<?php
|
||||
while(!$articlecharacteristiclist->atEnd()) { //dyn select
|
||||
?>
|
||||
<option value="<?php echo($articlecharacteristiclist->getColumnVal("idarticlecharacteristic")); ?>"<?php if (!(strcmp($articlecharacteristiclist->getColumnVal("idarticlecharacteristic"), ($standarddetail->getColumnVal("idarticlecharacteristic"))))) {echo "selected=\"selected\"";} ?>><?php echo($articlecharacteristiclist->getColumnVal("name_articlecharacteristic")); ?></option>
|
||||
while (!$articlecharacteristiclist->atEnd()) { //dyn select
|
||||
?>
|
||||
<option value="<?php echo ($articlecharacteristiclist->getColumnVal("idarticlecharacteristic")); ?>" <?php if (!(strcmp($articlecharacteristiclist->getColumnVal("idarticlecharacteristic"), ($standarddetail->getColumnVal("idarticlecharacteristic"))))) {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>><?php echo ($articlecharacteristiclist->getColumnVal("name_articlecharacteristic")); ?></option>
|
||||
<?php
|
||||
$articlecharacteristiclist->moveNext();
|
||||
} //dyn select
|
||||
$articlecharacteristiclist->moveFirst();
|
||||
?>
|
||||
} //dyn select
|
||||
$articlecharacteristiclist->moveFirst();
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@ -219,27 +226,53 @@ $articlecharacteristiclist->moveFirst();
|
||||
<label class="col-sm-2 col-form-label text-right">Categoria DPI</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" id="categorydpi" name="categorydpi">
|
||||
<option value="" <?php if (!(strcmp("", ($standarddetail->getColumnVal("iddpicategory"))))) {echo "selected=\"selected\"";} ?>>Seleziona</option>
|
||||
<option value="" <?php if (!(strcmp("", ($standarddetail->getColumnVal("iddpicategory"))))) {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>Seleziona</option>
|
||||
<?php
|
||||
while(!$categorydpilist->atEnd()) { //dyn select
|
||||
?>
|
||||
<option value="<?php echo($categorydpilist->getColumnVal("iddpicategory")); ?>"<?php if (!(strcmp($categorydpilist->getColumnVal("iddpicategory"), ($standarddetail->getColumnVal("iddpicategory"))))) {echo "selected=\"selected\"";} ?>><?php echo($categorydpilist->getColumnVal("value_dpicategory")); ?></option>
|
||||
while (!$categorydpilist->atEnd()) { //dyn select
|
||||
?>
|
||||
<option value="<?php echo ($categorydpilist->getColumnVal("iddpicategory")); ?>" <?php if (!(strcmp($categorydpilist->getColumnVal("iddpicategory"), ($standarddetail->getColumnVal("iddpicategory"))))) {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>><?php echo ($categorydpilist->getColumnVal("value_dpicategory")); ?></option>
|
||||
<?php
|
||||
$categorydpilist->moveNext();
|
||||
} //dyn select
|
||||
$categorydpilist->moveFirst();
|
||||
?>
|
||||
} //dyn select
|
||||
$categorydpilist->moveFirst();
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label text-right">Active</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" id="active" name="active">
|
||||
<option value="" <?php if (!(strcmp("", ($standarddetail->getColumnVal("active"))))) {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>Seleziona</option>
|
||||
<option value="Y" <?php if (!(strcmp("Y", ($standarddetail->getColumnVal("active"))))) {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>Y</option>
|
||||
<option value="N" <?php if (!(strcmp("N", ($standarddetail->getColumnVal("active"))))) {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>N</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input <?php if (!(strcmp(($standarddetail->getColumnVal("virusset")),"Y"))) {echo "checked=\"checked\"";} ?> type="checkbox" class="custom-control-input" id="virusprotection" name="virusprotection" value="Y" data-parsley-multiple="groups" data-parsley-mincheck="2">
|
||||
<input <?php if (!(strcmp(($standarddetail->getColumnVal("virusset")), "Y"))) {
|
||||
echo "checked=\"checked\"";
|
||||
} ?> type="checkbox" class="custom-control-input" id="virusprotection" name="virusprotection" value="Y" data-parsley-multiple="groups" data-parsley-mincheck="2">
|
||||
<label class="custom-control-label" for="virusprotection">Protezione Virus</label>
|
||||
</div>
|
||||
<br>
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input <?php if (!(strcmp(($standarddetail->getColumnVal("chemicalsset")),"Y"))) {echo "checked=\"checked\"";} ?> type="checkbox" class="custom-control-input" id="chemicalagent" name="chemicalagent" value="Y" data-parsley-multiple="groups" data-parsley-mincheck="2">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input <?php if (!(strcmp(($standarddetail->getColumnVal("chemicalsset")), "Y"))) {
|
||||
echo "checked=\"checked\"";
|
||||
} ?> type="checkbox" class="custom-control-input" id="chemicalagent" name="chemicalagent" value="Y" data-parsley-multiple="groups" data-parsley-mincheck="2">
|
||||
<label class="custom-control-label" for="chemicalagent">Agenti Chimici</label>
|
||||
</div>
|
||||
<br>
|
||||
@ -266,7 +299,7 @@ $categorydpilist->moveFirst();
|
||||
|
||||
|
||||
</div><!-- container -->
|
||||
<!-- footer start -->
|
||||
<!-- footer start -->
|
||||
<?php include('include/footer.php'); ?>
|
||||
</footer><!--end footer-->
|
||||
</div>
|
||||
@ -292,6 +325,6 @@ $categorydpilist->moveFirst();
|
||||
<!-- App js -->
|
||||
<script src="assets/js/app.js"></script>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@ -68,7 +68,7 @@
|
||||
<a class="dropdown-item" href="profile"><i class="ti-user text-muted mr-2"></i> <?php echo $profile; ?></a>
|
||||
<a class="dropdown-item" href="companyprofile.php"><i class="ti-wallet text-muted mr-2"></i> <?php echo $mycompany; ?></a>
|
||||
<a class="dropdown-item" href="signaturetok.php"><i class="ti-wallet text-muted mr-2"></i> <?php echo $signaturetokentitle; ?></a>
|
||||
<a class="dropdown-item" href="newusercolleague2.php"><i class="ti-wallet text-muted mr-2"></i> Aggiungi Utente</a>
|
||||
<a class="dropdown-item" href="newusercolleague2.php"><i class="ti-wallet text-muted mr-2"></i> <?php echo $adduserundersamecompany; ?></a>
|
||||
<a class="dropdown-item" href="#"><i class="ti-settings text-muted mr-2"></i> <?php echo $settings; ?></a>
|
||||
<div class="dropdown-divider mb-0"></div>
|
||||
<a class="dropdown-item" href="logout"><i class="ti-power-off text-muted mr-2"></i> <?php echo $logoutst; ?></a>
|
||||
|
||||
@ -346,3 +346,5 @@ $uploadCompanyLogoTitle = "Upload Company Logo";
|
||||
$selectImageToUploadTitle = "Select the image to upload (only JPG, JPEG, PNG):";
|
||||
$uploadButtonTitle = "Upload";
|
||||
$companyLogoAltTitle = "Company Logo";
|
||||
$respsign = "Send to Sign to another colleagues of the same company";
|
||||
$adduserundersamecompany = "Add User";
|
||||
|
||||
@ -350,3 +350,5 @@ $uploadCompanyLogoTitle = "Carica Logo Aziendale";
|
||||
$selectImageToUploadTitle = "Seleziona l'immagine da caricare (solo JPG, JPEG, PNG):";
|
||||
$uploadButtonTitle = "Carica";
|
||||
$companyLogoAltTitle = "Logo Aziendale";
|
||||
$respsign = "Invia a collega della stessa azienda per Firma";
|
||||
$adduserundersamecompany = "Aggiungi utente";
|
||||
|
||||
BIN
public/pdf/1003rev0applicationform20241210093024.pdf
Normal file
BIN
public/pdf/1003rev0applicationformb20241210093024.pdf
Normal file
BIN
public/pdf/963rev0applicationform20250116134119.pdf
Normal file
BIN
public/pdf/963rev0applicationform20250116134341.pdf
Normal file
BIN
public/pdf/963rev0applicationform20250116134406.pdf
Normal file
BIN
public/pdf/963rev0applicationform20250116134450.pdf
Normal file
BIN
public/pdf/963rev0applicationform20250116134538.pdf
Normal file
BIN
public/pdf/963rev0applicationform20250116134729.pdf
Normal file
BIN
public/pdf/963rev0applicationform20250116135024.pdf
Normal file
BIN
public/pdf/963rev0applicationform20250116135307.pdf
Normal file
BIN
public/pdf/963rev0applicationformb20250116134119.pdf
Normal file
BIN
public/pdf/963rev0applicationformb20250116134730.pdf
Normal file
BIN
public/pdf/963rev0applicationformb20250116135024.pdf
Normal file
BIN
public/pdf/963rev0applicationformb20250116135307.pdf
Normal file
BIN
public/pdf/974rev0applicationform20250117083739.pdf
Normal file
BIN
public/pdf/974rev0applicationform20250117083831.pdf
Normal file
BIN
public/pdf/974rev0applicationformb20250117083739.pdf
Normal file
BIN
public/pdf/974rev0applicationformb20250117083831.pdf
Normal file
BIN
public/pdf/975rev0applicationform20241209100207.pdf
Normal file
BIN
public/pdf/975rev0applicationform20241209100314.pdf
Normal file
BIN
public/pdf/975rev0applicationform20241209100605.pdf
Normal file
BIN
public/pdf/975rev0applicationform20241209100638.pdf
Normal file
BIN
public/pdf/975rev0applicationform20241209100813.pdf
Normal file
BIN
public/pdf/975rev0applicationform20241209101021.pdf
Normal file
BIN
public/pdf/975rev0applicationform20241209101308.pdf
Normal file
BIN
public/pdf/975rev0applicationformb20241209101021.pdf
Normal file
BIN
public/pdf/975rev0applicationformb20241209101308.pdf
Normal file
BIN
public/pdf/977rev0applicationform20241016093332.pdf
Normal file
BIN
public/pdf/977rev0applicationformb20241016093332.pdf
Normal file
BIN
public/pdf/981rev0applicationform20241016093003.pdf
Normal file
BIN
public/pdf/981rev0applicationformb20241016093003.pdf
Normal file
@ -30,7 +30,10 @@ $pdf->Cell(40, 6, $addresspdf, 1, 0, 'L');
|
||||
|
||||
|
||||
$contactsaddress = html_entity_decode($contactsinfoData['address']);
|
||||
$contactsaddress = iconv('UTF-8', 'windows-1252', $contactsaddress);
|
||||
$contactsaddress = mb_convert_encoding($contactsaddress, 'ISO-8859-1', 'UTF-8'); // Conversione diretta
|
||||
$contactsaddress = iconv('ISO-8859-1', 'windows-1252//TRANSLIT', $contactsaddress);
|
||||
|
||||
|
||||
$pdf->Cell(150, 6, $contactsaddress, 1, 0, 'L', TRUE);
|
||||
$pdf->Ln();
|
||||
$pdf->Cell(40, 6, $citytitleb, 1, 0, 'L');
|
||||
|
||||
@ -19,7 +19,8 @@ $pdf->SetFillColor(232, 242, 255);
|
||||
$pdf->Cell(150, 6, $companyname, 1, 0, 'L', TRUE);
|
||||
$pdf->Ln();
|
||||
$pdf->Cell(40, 6, $addresspdf, 1, 0, 'L');
|
||||
$pdf->Cell(150, 6, $contactsinfoData['address'], 1, 0, 'L', TRUE);
|
||||
$pdf->Cell(150, 6, iconv('UTF-8', 'ISO-8859-1//TRANSLIT', $contactsinfoData['address']), 1, 0, 'L', TRUE);
|
||||
|
||||
$pdf->Ln();
|
||||
$pdf->Cell(40, 6, $citytitleb, 1, 0, 'L');
|
||||
$pdf->Cell(55, 6, $contactsinfoData['city'], 1, 0, 'L', TRUE);
|
||||
|
||||
@ -4,9 +4,15 @@ if (Auth::user()->hasRole('User')) :
|
||||
$nameuser = $_SESSION["nameuser"];
|
||||
//$pdf->Cell(120,6,'Intendo sottoporre questo modello a sorveglianza (presso CIMAC)',1,0,'C');
|
||||
//$pdf->Cell(70,6,$trfData['surveillanceselectoption'],1,0,'C',TRUE);
|
||||
if (!mb_check_encoding($statement, 'UTF-8')) {
|
||||
$statement = utf8_encode($statement); // Forza la codifica in UTF-8
|
||||
}
|
||||
|
||||
$statement = html_entity_decode($statement);
|
||||
$statement = iconv('UTF-8', 'windows-1252', $statement);
|
||||
$statement = mb_convert_encoding($statement, 'windows-1252', 'UTF-8');
|
||||
|
||||
//$statement = iconv('UTF-8', 'iso-8859-1', $statement);
|
||||
|
||||
$addstatement = html_entity_decode($addstatement);
|
||||
$addstatement = iconv('UTF-8', 'windows-1252', $addstatement);
|
||||
//$addstatement = iconv('UTF-8', 'iso-8859-1', $addstatement);
|
||||
|
||||
2
public/phpinfo.php
Normal file
@ -0,0 +1,2 @@
|
||||
<?php
|
||||
phpinfo();
|
||||
@ -259,6 +259,7 @@ if ($tokenid != $tokensignatureon) {
|
||||
require 'phpmailer/src/PHPMailer.php';
|
||||
require 'phpmailer/src/SMTP.php';
|
||||
//mail to client
|
||||
|
||||
$mail = new PHPMailer(true);
|
||||
try {
|
||||
$mail->isSMTP(); // Set mailer to use SMTP
|
||||
@ -283,14 +284,17 @@ if ($tokenid != $tokensignatureon) {
|
||||
$mail->Subject = $appformn . 'r' . $revnumb;
|
||||
$mail->Body = $htmlContent;
|
||||
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
|
||||
error_log("Attempting to send email to: $emailuser with idtrf: $idtrf");
|
||||
if ($adminconfirm == 'N') {
|
||||
$mail->send();
|
||||
error_log("Email sent successfully to: $emailuser with idtrf: $idtrf");
|
||||
}
|
||||
// echo 'Message has been sent';
|
||||
} catch (Exception $e) {
|
||||
echo "Message could not be sent CL. Mailer Error: {$mail->ErrorInfo}";
|
||||
}
|
||||
// mail to CS
|
||||
|
||||
$mail = new PHPMailer(true);
|
||||
try {
|
||||
$mail->isSMTP(); // Set mailer to use SMTP
|
||||
|
||||
@ -552,21 +552,7 @@ include('include/trfqueryscript.php'); ?>
|
||||
if (!empty($rows)) {
|
||||
|
||||
foreach ($rows as $row) {
|
||||
// Controllo se l'idarticletype è uguale a 4
|
||||
if ($row['idarticletype'] == 4) {
|
||||
// Mostra l'opzione solo se l'utente è admin o superuser
|
||||
if (Auth::user()->hasRole('Admin') || Auth::user()->hasRole('Superuser')) {
|
||||
?>
|
||||
<option value="<?php echo $row['idarticletype']; ?>" <?php if (!(strcmp($row['idarticletype'], ($trfnumberfinal->getColumnVal("idarticletype"))))) {
|
||||
echo "selected=\"selected\"";
|
||||
} ?>>
|
||||
<?php
|
||||
echo ($_SESSION['langselect'] == 'it') ? $row['name_articletype'] : $row['name_articletypeeng'];
|
||||
?>
|
||||
</option>
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
|
||||
// Mostra normalmente gli altri articletype
|
||||
?>
|
||||
<option value="<?php echo $row['idarticletype']; ?>" <?php if (!(strcmp($row['idarticletype'], ($trfnumberfinal->getColumnVal("idarticletype"))))) {
|
||||
@ -577,7 +563,7 @@ include('include/trfqueryscript.php'); ?>
|
||||
?>
|
||||
</option>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
After Width: | Height: | Size: 1.1 MiB |
BIN
public/uploaddocuments/1375-1733822999images (1).jpg
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
public/uploaddocuments/1375-1733823006images.jpg
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
BIN
public/uploaddocuments/3172-1733479572HALIFAX_2 - Copia.png
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
public/uploaddocuments/3172-1733479572HALIFAX_2.png
Normal file
|
After Width: | Height: | Size: 390 KiB |
BIN
public/uploaddocuments/3177-1733482464CONVAIR_2.png
Normal file
|
After Width: | Height: | Size: 423 KiB |
BIN
public/uploadimages/1344-17337382413172-1733469663HALIFAX_2.png
Normal file
|
After Width: | Height: | Size: 337 KiB |
|
After Width: | Height: | Size: 337 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
BIN
public/uploadimages/1375-17338222231325-1713448301aaaa.JPG
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
public/uploadimages/3172-1733469663HALIFAX_2.png
Normal file
|
After Width: | Height: | Size: 390 KiB |
BIN
public/uploadimages/3177-1733481458CONVAIR_2.png
Normal file
|
After Width: | Height: | Size: 423 KiB |
BIN
public/uploadimages/3308-1736770121PVCyelnew.jpg
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
public/uploadimages/3310-1736773365PVC (dol) new.jpg
Normal file
|
After Width: | Height: | Size: 125 KiB |