fixed transaltion issue

This commit is contained in:
Claudio 2024-09-25 17:09:43 +02:00
parent e5df9684e6
commit 251fbfcd33
8 changed files with 92 additions and 60 deletions

View File

@ -27,7 +27,6 @@ LEFT JOIN article_type ON `trf-details`.idarticletype=article_type.idarticletype
LEFT JOIN certificationtype ON certificationtype.idcertificationtype=`trf-details`.idcertification
WHERE `trf-details`.idcompany='$idcompany'
AND `trf-details`.signedon =''
AND `trf-details`.revcs != 'Y'
ORDER BY `trf-details`.trfnumber");
$drafttrf->execute();
?>

View File

@ -145,20 +145,21 @@ $companyData = mysqli_fetch_assoc($companydetails);
</div><!--end col-->
<div class="card">
<div class="card-body">
<h4 class="mt-0 header-title">Carica Logo Aziendale</h4>
<h4 class="mt-0 header-title"><?php echo $uploadCompanyLogoTitle; ?></h4>
<form action="upload_logocompany.php" method="post" enctype="multipart/form-data">
Seleziona l'immagine da caricare (solo JPG, JPEG, PNG):
<?php echo $selectImageToUploadTitle; ?>
<input type="file" name="companyLogo" id="companyLogo" accept=".jpg, .jpeg, .png">
<button type="submit" class="btn btn-primary">Carica</button>
<button type="submit" class="btn btn-primary"><?php echo $uploadButtonTitle; ?></button>
</form>
<?php if (!empty($companyData["logoimage"])) : ?>
<div class="logo-container" style="margin-top: 20px;">
<img src="<?php echo htmlspecialchars("logos/" . $companyData["logoimage"]); ?>" alt="Logo Aziendale" style="max-width: 200px; max-height: 200px;">
<img src="<?php echo htmlspecialchars("logos/" . $companyData["logoimage"]); ?>" alt="<?php echo $companyLogoAltTitle; ?>" style="max-width: 200px; max-height: 200px;">
</div>
<?php endif; ?>
</div>
</div>
</div>
<!-- end page title end breadcrumb -->

View File

@ -1,4 +1,3 @@
<?php
ini_set('display_errors', 1);
@ -14,7 +13,6 @@ include('../extra/auth.php');
if (! Auth::check()) {
redirectTo('login');
}
$user = Auth::user();
@ -41,10 +39,12 @@ $companyname="Company Name";
?>
<?php require_once('../Connections/cmctrfdb.php'); ?>
<?php require_once('../webassist/mysqli/rsobj.php'); ?>
<?php // require_once('@@RSObjectPath@@'); ?>
<?php // require_once('@@RSObjectPath@@');
?>
<?php require_once('../webassist/mysqli/queryobj.php'); ?>
<?php // require_once("../webassist/form_validations/wavt_scripts_php.php"); ?>
<?php // require_once("../webassist/form_validations/wavt_scripts_php.php");
?>
<?php include('generalsettings.php'); ?>
@ -65,7 +65,9 @@ $timestampnow=time();
$temporarycode = $iduserlog . "-" . $timestampnow;
$_SESSION["tempcode"] = $temporarycode;
$tempcode = $_SESSION["tempcode"];
} else { $tempcode=$_SESSION["tempcode"]; }
} else {
$tempcode = $_SESSION["tempcode"];
}
?>
<?php
if (isset($_GET['info'])) {
@ -76,10 +78,30 @@ if (isset($_SESSION["infobox"])) {
$infobox = $_SESSION["infobox"];
}
?>
<?php // session language
// If present GET 'languageselect'
if (isset($_GET['languageselect']) && ($_GET['languageselect'] == 'it' || $_GET['languageselect'] == 'en')) {
$_SESSION['langselect'] = $_GET['languageselect'];
} elseif (!isset($_SESSION['langselect'])) {
// Use browser language
$browserLang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
<?php include('languages/it/general.php');
include('languages/it/questionaire.php');
if ($browserLang == 'en') {
$_SESSION['langselect'] = 'en';
} else {
// Italian default
$_SESSION['langselect'] = 'it';
}
}
echo $_SESSION['langselect'];
?>
<?php
// Include files based on the language session
include('languages/' . $_SESSION['langselect'] . '/general.php');
include('languages/' . $_SESSION['langselect'] . '/questionaire.php');
?>
@ -118,7 +140,3 @@ $companyData = mysqli_fetch_assoc($companydetails);
//include('securitycheck.php');
?>

View File

@ -339,3 +339,10 @@ $certd_1 = "Initial certification";
$certd_2 = "Annual certification surveillance";
$certd_3 = "Renewal";
$certd_4 = "Extension";
$certtotesttitle = "I have a certificate to test:";
$formetitle = "For me";
$foranotherclienttitle = "For another client";
$uploadCompanyLogoTitle = "Upload Company Logo";
$selectImageToUploadTitle = "Select the image to upload (only JPG, JPEG, PNG):";
$uploadButtonTitle = "Upload";
$companyLogoAltTitle = "Company Logo";

View File

@ -343,3 +343,10 @@ $certd_1 = "Certificazione iniziale";
$certd_2 = "Sorveglianza annuale";
$certd_3 = "Rinnovo";
$certd_4 = "Estensione";
$certtotesttitle = "Ho un certificato da testare:";
$formetitle = "Per me";
$foranotherclienttitle = "Per un altro cliente";
$uploadCompanyLogoTitle = "Carica Logo Aziendale";
$selectImageToUploadTitle = "Seleziona l'immagine da caricare (solo JPG, JPEG, PNG):";
$uploadButtonTitle = "Carica";
$companyLogoAltTitle = "Logo Aziendale";

Binary file not shown.

Binary file not shown.

View File

@ -229,20 +229,20 @@ $conn->close();
<!-- card for optional TRF -->
<div class="card">
<div class="card-body">
<h4 class="mt-0 header-title">Ho un certificato da testare:</h4>
<h4 class="mt-0 header-title"><?php echo $certtotesttitle; ?></h4>
<p class="text-muted mb-3"><?php echo $addparameterstitle_help; ?></p>
<form id="otherclientForm" action="" method="POST">
<div class="col-md-9">
<div class="my-2">
<div class="custom-control custom-radio">
<input type="radio" id="customRadio3" name="customRadio" class="custom-control-input" value="N" <?php if ($otherclient == 'N') echo 'checked'; ?>>
<label class="custom-control-label" for="customRadio3">Per me</label>
<label class="custom-control-label" for="customRadio3"><?php echo $formetitle; ?></label>
</div>
</div>
<div class="my-2">
<div class="custom-control custom-radio">
<input type="radio" id="customRadio4" name="customRadio" class="custom-control-input" value="Y" <?php if ($otherclient == 'Y') echo 'checked'; ?>>
<label class="custom-control-label" for="customRadio4">Per un mio cliente</label>
<label class="custom-control-label" for="customRadio4"><?php echo $foranotherclienttitle; ?></label>
</div>
</div>
<input type="hidden" id="idtrf" name="idtrf" class="custom-control-input" value='<?php echo $idtrf; ?>'>