removed bck files and imporved passowrd on env
This commit is contained in:
@@ -1,65 +0,0 @@
|
||||
<?php
|
||||
if (isset($idtrf)) {
|
||||
include('include/checkstepfile.php');
|
||||
include('include/chemicalsquerycheck.php');
|
||||
}
|
||||
?>
|
||||
<div class="left-sidenav">
|
||||
<ul class="metismenu left-sidenav-menu">
|
||||
<li>
|
||||
<a href="dashboard.php"><i class="ti-bar-chart"></i><span><?php echo $dashboard; ?></span></a>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
<?php if (isset($codelist)) { ?>
|
||||
<a href=""><i class="ti-angle-double-down"></i><span><?php echo $trfinprogress; ?></span></a>
|
||||
<ul class="nav-second-level mm-collapse mm-show" style="">
|
||||
|
||||
|
||||
|
||||
<!-- end seven line trf -->
|
||||
<!-- seveeightn line trf -->
|
||||
|
||||
<li>
|
||||
<a href="adddocument2.php?idtrf=<?php echo $idtrf; ?>" style="color:green"><i class="fas fa-check-circle" style="color:green"></i><?php echo $uploaddocsteptitle; ?> </a>
|
||||
</li>
|
||||
|
||||
|
||||
<!-- end eight line trf -->
|
||||
|
||||
|
||||
</ul><?php } ?>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a href="archivetrf.php"><i class="fas fa-history"></i><span><?php echo $historicaltrf; ?></span></a>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.php"><i class="ti-help"></i><span><?php echo $helptitle; ?></span></a>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.php"><i class="fas fa-users"></i><span><?php echo $contactus; ?></span></a>
|
||||
|
||||
</li>
|
||||
|
||||
<?php if ((Auth::user()->hasRole('Admin')) OR (Auth::user()->hasRole('User'))): ?>
|
||||
<li>
|
||||
<a href="javascript: void(0);"><i class="ti-lock"></i><span>Admin Area</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>
|
||||
<ul class="nav-second-level mm-collapse" aria-expanded="false">
|
||||
<li class="nav-item"><a class="nav-link" href="admin-dashboard.php"><i class="fas fa-cogs"></i>Admin Panel</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="cstrf.php"><i class="fas fa-archive"></i>CS TRF Board</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="others/icons-fontawesome.html"><i class="ti-control-record"></i>Template</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
@@ -1,36 +0,0 @@
|
||||
<?php
|
||||
$globalsett = new WA_MySQLi_RS("globalsett",$cmctrfdb,1);
|
||||
$globalsett->setQuery("SELECT * FROM optionportal WHERE optionportal.idoptionportal='1'");
|
||||
$globalsett->execute();
|
||||
?>
|
||||
|
||||
<?php
|
||||
$linkglobal="https://www.cimac.it/modulo_certificazione/";
|
||||
$fromaddresssmail=$globalsett->getColumnVal("fromaddressmail");
|
||||
$mailhost=$globalsett->getColumnVal("mailhost"); // Specify main and backup server // Enable SMTP authentication
|
||||
$mailusername=$globalsett->getColumnVal("mailusername"); // SMTP username
|
||||
$mailpassword=$globalsett->getColumnVal("mailpassword"); // SMTP password
|
||||
$mailmethod=$globalsett->getColumnVal("mailmethod"); // Enable encryption, 'ssl' also accepted
|
||||
$mailport=$globalsett->getColumnVal("mailport");
|
||||
$csmail=$globalsett->getColumnVal("csmail");
|
||||
$csmail2=$globalsett->getColumnVal("csmail2");
|
||||
$csmail3=$globalsett->getColumnVal("csmail3");
|
||||
$csmailccn="info@scattoviaggiando.com";
|
||||
$undermanteinance=$globalsett->getColumnVal("undermanteinance");
|
||||
?>
|
||||
|
||||
|
||||
<?php /*
|
||||
$linkglobal="http://localhost/cmc-frontend-authorize/";
|
||||
$fromaddresssmail="info@acscreativesolutions.com";
|
||||
$mailhost="premium88.web-hosting.com"; // Specify main and backup server // Enable SMTP authentication
|
||||
$mailusername="info@acscreativesolutions.com"; // SMTP username
|
||||
$mailpassword="!NuovaZelanda2020"; // SMTP password
|
||||
$mailmethod="tls"; // Enable encryption, 'ssl' also accepted
|
||||
$mailport="587";
|
||||
$csmail="info@acscreativesolutions.com";
|
||||
$csmail2="info@claudiosironi.com";
|
||||
$csmail3="info@acscreativesolutions.com";
|
||||
$csmailccn="info@scattoviaggiando.com";
|
||||
$undermanteinance="no"; /*
|
||||
?>
|
||||
@@ -1,67 +0,0 @@
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
$todaytms=time();
|
||||
$namefilezip=$idtrf.'-'.$todaytms.".zip";
|
||||
$namefilezippath="uploaddocuments/zip/".$idtrf.'-'.$todaytms.".zip";
|
||||
$zipnamefile=$namefilezip;
|
||||
// change path ... name for link on pdf with website address
|
||||
$namefilezippathpdf=$linkglobal."public/uploaddocuments/zip/".$idtrf.'-'.$todaytms.".zip";
|
||||
|
||||
$documentlist = new WA_MySQLi_RS("documentlist",$cmctrfdb,0);
|
||||
$documentlist->setQuery("SELECT * FROM fileattached WHERE fileattached.idtrfdetails='$idtrf'");
|
||||
$documentlist->execute();
|
||||
|
||||
$photolist = new WA_MySQLi_RS("photolist",$cmctrfdb,0);
|
||||
$photolist->setQuery("SELECT * FROM `trf-details` WHERE `trf-details`.idtrfdetails='$idtrf'");
|
||||
$photolist->execute();
|
||||
|
||||
if (!empty($documentlist->getColumnVal("idfileattached"))) {
|
||||
$zip = new ZipArchive;
|
||||
if ($zip->open($namefilezippath, ZipArchive::CREATE) === TRUE)
|
||||
{
|
||||
// Add files to the zip file
|
||||
$wa_startindex = 0;
|
||||
while(!$documentlist->atEnd()) {
|
||||
$wa_startindex = $documentlist->Index;
|
||||
|
||||
|
||||
$newdocname=$documentlist->getColumnVal("filename_fileattached");
|
||||
$pathnewdocname="uploaddocuments/".$newdocname;
|
||||
|
||||
$zip->addFile($pathnewdocname, $newdocname);
|
||||
|
||||
|
||||
|
||||
$documentlist->moveNext();
|
||||
}
|
||||
$documentlist->moveFirst(); //return RS to first record
|
||||
unset($wa_startindex);
|
||||
unset($wa_repeatcount);
|
||||
// add photos to zip
|
||||
if (!empty($photolist->getColumnVal("photofilename"))) {
|
||||
$newdocname=$photolist->getColumnVal("photofilename");
|
||||
$pathnewdocname="uploaddocuments/".$newdocname;
|
||||
|
||||
$zip->addFile($pathnewdocname, $newdocname);
|
||||
}
|
||||
if (!empty($photolist->getColumnVal("photoone"))) {
|
||||
$newdocname=$photolist->getColumnVal("photoone");
|
||||
$pathnewdocname="uploaddocuments/".$newdocname;
|
||||
|
||||
$zip->addFile($pathnewdocname, $newdocname);
|
||||
}
|
||||
if (!empty($photolist->getColumnVal("phototwo"))) {
|
||||
$newdocname=$photolist->getColumnVal("phototwo");
|
||||
$pathnewdocname="uploaddocuments/".$newdocname;
|
||||
|
||||
$zip->addFile($pathnewdocname, $newdocname);
|
||||
}
|
||||
|
||||
|
||||
// All files are added, so close the zip file.
|
||||
$zip->close();
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -1,93 +0,0 @@
|
||||
|
||||
<div class="topbar">
|
||||
|
||||
<!-- LOGO -->
|
||||
<div class="topbar-left"> <a href="dashboard.php" class="logo"> <span> <img src="../images/CIMAC-logo-white-1024x259-1.png" alt="logo-small" class="logo-sm"> </span> <span>
|
||||
<!-- <img src="../images/CIMAC-logo-white-1024x259-1.png" alt="logo-large" class="logo-lg logo-light">
|
||||
<img src="../images/CIMAC-logo-white-1024x259-1.png" alt="logo-large" class="logo-lg"> -->
|
||||
</span> </a> </div>
|
||||
<!--end logo-->
|
||||
<!-- Navbar -->
|
||||
<?php
|
||||
// Inizializza le variabili prima di qualsiasi output HTML
|
||||
$currentLangName = "English"; // Valore di default
|
||||
$currentLangFlag = "en.png"; // Valore di default
|
||||
|
||||
// Se la sessione ha già una lingua selezionata, aggiorna le variabili
|
||||
if (isset($_SESSION['langselect'])) {
|
||||
// Cicla attraverso le lingue per trovare quella attiva
|
||||
while (!$languageselection->atEnd()) {
|
||||
$currentLangAcronym = $languageselection->getColumnVal("acronym_languages");
|
||||
if ($_SESSION['langselect'] == $currentLangAcronym) {
|
||||
$currentLangName = $languageselection->getColumnVal("name_languages");
|
||||
$currentLangFlag = $languageselection->getColumnVal("flag_languages");
|
||||
break; // Uscire dal ciclo una volta trovata la lingua attiva
|
||||
}
|
||||
$languageselection->moveNext();
|
||||
}
|
||||
$languageselection->moveFirst(); // Resettare il recordset
|
||||
}
|
||||
?>
|
||||
|
||||
<nav class="navbar-custom">
|
||||
<ul class="list-unstyled topbar-nav float-right mb-0">
|
||||
<li class="hidden-sm">
|
||||
<a class="nav-link dropdown-toggle waves-effect waves-light" data-toggle="dropdown" href="javascript: void(0);" role="button"
|
||||
aria-haspopup="false" aria-expanded="false">
|
||||
<?php echo $currentLangName; ?>
|
||||
<img src="assets/images/flags/<?php echo $currentLangFlag; ?>" class="ml-2" height="16" alt=""/>
|
||||
<i class="mdi mdi-chevron-down"></i>
|
||||
</a>
|
||||
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<?php
|
||||
while (!$languageselection->atEnd()) {
|
||||
$currentLangAcronym = $languageselection->getColumnVal("acronym_languages");
|
||||
$isActive = (isset($_SESSION['langselect']) && $_SESSION['langselect'] == $currentLangAcronym) ? 'active' : '';
|
||||
|
||||
// Il link punta direttamente a dashboard.php con il parametro di selezione della lingua
|
||||
$href = 'dashboard.php?languageselect=' . $currentLangAcronym;
|
||||
?>
|
||||
<a class="dropdown-item <?php echo $isActive; ?>" href="<?php echo $href; ?>">
|
||||
<span> <?php echo $languageselection->getColumnVal("name_languages"); ?></span>
|
||||
<img src="assets/images/flags/<?php echo $languageselection->getColumnVal("flag_languages"); ?>" alt="" class="ml-2 float-right" height="14"/>
|
||||
</a>
|
||||
<?php
|
||||
$languageselection->moveNext();
|
||||
}
|
||||
$languageselection->moveFirst(); // Reset del recordset per un altro uso futuro
|
||||
?>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="dropdown">
|
||||
<a class="nav-link dropdown-toggle waves-effect waves-light nav-user" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false"> <img src="upload/users/<?php echo $avatarname; ?>" alt="profile-user" class="rounded-circle" /> <span class="ml-1 nav-user-name hidden-sm"><?php echo $nameuser; ?> <i class="mdi mdi-chevron-down"></i></span> </a>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<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="#"><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> </div>
|
||||
</li>
|
||||
</ul>
|
||||
<!--end topbar-nav-->
|
||||
<ul class="list-unstyled topbar-nav mb-0">
|
||||
<li>
|
||||
<button class="nav-link button-menu-mobile waves-effect waves-light"> <i class="ti-menu nav-icon"></i> </button>
|
||||
</li>
|
||||
<li class="hide-phone app-search">
|
||||
<form role="search" class="">
|
||||
<input type="text" id="AllCompo" placeholder="Search..." class="form-control">
|
||||
<a href=""><i class="fas fa-search"></i></a>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- end navbar-->
|
||||
</div>
|
||||
@@ -1,61 +0,0 @@
|
||||
|
||||
<?php if($idarticletype=="1") { ?>
|
||||
<?php include('languages/it/shoesnamepart.php'); ?>
|
||||
<!-- Image Map Generated by http://www.image-map.net/ -->
|
||||
<img src="../images/calzatura.png" usemap="#map" width="1153" height="684">
|
||||
|
||||
<map name="map">
|
||||
<area target="" alt="<?php echo $twos; ?>" title="<?php echo $twos; ?>" coords="286,177,292,239,286,288,318,338,344,383,324,392,264,306,255,296,252,248,245,211,236,201,256,184" shape="poly"
|
||||
onclick="setInputVal('descriptionpartvalue', '<?php echo $twos; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $threes; ?>" title="<?php echo $threes; ?>" coords="192,192,202,307,284,416,263,453,297,476,346,426,256,297,242,211" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $threes; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $fours; ?>" title="<?php echo $fours; ?>" coords="331,393,349,383,380,422,466,459,454,490,397,509,380,532,365,564,263,530,211,493,170,457,161,449,161,421,219,433,264,455,291,478,345,431" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $fours; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $fives; ?>" title="<?php echo $fives; ?>" coords="370,565,398,509,455,491,472,461,507,476,517,494,517,530,496,555,438,570,407,568" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $fives; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $fives; ?>" title="<?php echo $fives; ?>" coords="121,213,191,244,202,310,285,414,262,451,202,429,156,419,161,339,123,298,112,277" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $sevens; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $sevens; ?>" title="<?php echo $sevens; ?>" coords="81,395,90,342,112,284,153,330,159,353,156,416,155,449,99,412" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $eights; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $eights; ?>" title="<?php echo $eights; ?>" coords="75,405,79,445,128,483,153,493,163,480,181,488,244,547,335,586,408,601,485,589,508,577,527,556,523,536,505,553,473,569,433,572,379,572,339,567,277,545" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $nines; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $tens; ?>" title="<?php echo $tens; ?>" coords="180,495,169,577,201,586,201,512" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $tens; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $twelves; ?>" title="<?php echo $twelves; ?>" coords="798,439,882,466,941,486,987,512,1010,527,1003,496,968,476,904,449,865,421,853,407,811,417" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $twelves; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $thirteens; ?>" title="<?php echo $thirteens; ?>" coords="1026,412,996,490,1015,523,1076,435" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $thirteens; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $ones; ?>" title="<?php echo $ones; ?>" coords="115,185,115,210,189,240,189,189,229,200,270,174,265,168,199,164,173,161,125,173" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $ones; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $fourteens; ?>" title="<?php echo $fourteens; ?>" coords="1005,558,920,544,802,507,730,463,677,430,616,396,620,384,679,418,753,465,857,511" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $fourteens; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $fifteens; ?>" title="<?php echo $fifteens; ?>" coords="797,479,719,430,636,376,618,369,644,363,698,387,745,413,811,445,912,475,976,510,1009,532,986,537,914,523,870,510" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $fifteens; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $sixteens; ?>" title="<?php echo $sixteens; ?>" coords="729,468,698,570,750,582,765,489" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $sixteens; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $seventeens; ?>" title="<?php echo $seventeens; ?>" coords="520,318,519,349,601,353,612,353,617,323" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $seventeens; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $nineteens; ?>" title="<?php echo $nineteens; ?>" coords="633,215,629,295,661,303,705,344,708,380,744,407,795,434,846,406,791,346,765,291,764,243,761,208,668,205" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $nineteens; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $eighteens; ?>" title="<?php echo $eighteens; ?>" coords="628,301,614,355,644,354,683,366,707,379,700,340,661,302,642,299,653,300" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $eighteens; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $twentys; ?>" title="<?php echo $twentys; ?>" coords="976,100,921,167,923,204,966,204,1000,160,1017,119" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $twentys; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $ones; ?>" title="<?php echo $ones; ?>" coords="647,171,654,186,636,208,703,201,765,205,781,173,723,164" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $ones; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $sixs; ?>" title="<?php echo $sixs; ?>" coords="18,192,14,239,114,259,114,218" shape="poly" onclick="setInputVal('descriptionpartvalue', '<?php echo $sixs; ?>')" href="javascript:void(0)">
|
||||
</map>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php if($idarticletype=="2") { ?>
|
||||
<?php include('languages/it/glovesnamepart.php'); ?>
|
||||
<img src="../images/glove.png" usemap="#map" width="1042" height="596">
|
||||
|
||||
<map name="map">
|
||||
<area target="" alt="<?php echo $oneg; ?>" title="<?php echo $oneg; ?>" coords="49,222,148,293" shape="rect" onclick="setInputVal('descriptionpartvalue', '<?php echo $oneg; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $twog; ?>" title="<?php echo $twog; ?>" coords="1031,320,930,384" shape="rect" onclick="setInputVal('descriptionpartvalue', '<?php echo $twog; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $threeg; ?>" title="<?php echo $threeg; ?>" coords="644,260,837,349" shape="rect" onclick="setInputVal('descriptionpartvalue', '<?php echo $threeg; ?>')" href="javascript:void(0)">
|
||||
<area target="" alt="<?php echo $fourg; ?>" title="<?php echo $fourg; ?>" coords="518,445,776,520" shape="rect" onclick="setInputVal('descriptionpartvalue', '<?php echo $fourg; ?>')" href="javascript:void(0)">
|
||||
</map>
|
||||
<?php } ?>
|
||||
<?php if($idarticletype=="3") { ?>
|
||||
<?php include('languages/it/semimask.php'); ?>
|
||||
<img src="../images/semimask.png" usemap="#map" width="889" height="799">
|
||||
|
||||
<map name="map">
|
||||
<!-- #$-:Image map file created by GIMP Image Map plug-in -->
|
||||
<!-- #$-:GIMP Image Map plug-in by Maurits Rijk -->
|
||||
<!-- #$-:Please do not edit lines starting with "#$" -->
|
||||
<!-- #$VERSION:2.3 -->
|
||||
<!-- #$AUTHOR:info -->
|
||||
<area shape="rect" coords="418,33,852,86" alt="<?php echo $onem; ?>" title="<?php echo $onem; ?>" onclick="setInputVal('descriptionpartvalue', '<?php echo $onem; ?>')" href="javascript:void(0)" />
|
||||
<area shape="rect" coords="624,190,848,247" alt="<?php echo $twom; ?>" title="<?php echo $twom; ?>" onclick="setInputVal('descriptionpartvalue', '<?php echo $twom; ?>')" href="javascript:void(0)" />
|
||||
<area shape="rect" coords="664,490,824,701" alt="<?php echo $threem; ?>" title="<?php echo $threem; ?>" onclick="setInputVal('descriptionpartvalue', '<?php echo $threem; ?>')" href="javascript:void(0)" />
|
||||
<area shape="poly" coords="233,64,237,117,418,119,419,92,397,71,232,65,234,66" alt="<?php echo $fourm; ?>" title="<?php echo $fourm; ?>" onclick="setInputVal('descriptionpartvalue', '<?php echo $fourm; ?>')" href="javascript:void(0)" />
|
||||
<area shape="rect" coords="55,559,264,620" alt="<?php echo $fivem; ?>" title="<?php echo $fivem; ?>" onclick="setInputVal('descriptionpartvalue', '<?php echo $fivem; ?>')" href="javascript:void(0)" />
|
||||
<area shape="rect" coords="90,702,641,775" alt="<?php echo $sixm; ?>" title="<?php echo $sixm; ?>" onclick="setInputVal('descriptionpartvalue', '<?php echo $sixm; ?>')" href="javascript:void(0)" />
|
||||
</map>
|
||||
<?php } ?>
|
||||
@@ -1,151 +0,0 @@
|
||||
<?php
|
||||
ini_set('display_errors', 0);
|
||||
ini_set('display_startup_errors', 0);
|
||||
ini_set('buffer_output', 1);
|
||||
//error_reporting(E_ALL | E_STRICT);
|
||||
// This should be equal to: PATH_TO_VANGUARD_FOLDER/extra/auth.php
|
||||
include('../extra/auth.php');
|
||||
//require_once __DIR__ . '/extra/auth.php';
|
||||
// Here we just check if user is not
|
||||
// logged in, and in that case we redirect
|
||||
// the user to vanguard login page.
|
||||
if (! Auth::check()) {
|
||||
|
||||
redirectTo('login');
|
||||
|
||||
}
|
||||
$user = Auth::user();
|
||||
$iduserlogin=$user->present()->id;
|
||||
$nameuser=$user->present()->name;
|
||||
$emailuser=$user->present()->email;
|
||||
$idcompany=$user->present()->idcompany;
|
||||
$langid=$user->present()->langid;
|
||||
$privacyacc=$user->present()->privacyaccepted;
|
||||
$loginusername=$user->present()->username;
|
||||
$roleuser=$user->present()->role_id;
|
||||
//$user = "1";
|
||||
//$iduserlogin="1";
|
||||
//$idcompany="1";
|
||||
//$companyname="Company Name";
|
||||
//$nameuser="Claudio";
|
||||
//$emailuser="info@acscreativesolutions.com";
|
||||
?>
|
||||
<?php require_once('../Connections/cmctrfdb.php'); ?>
|
||||
<?php require_once('../webassist/mysqli/rsobj.php'); ?>
|
||||
<?php // require_once('@@RSObjectPath@@'); ?>
|
||||
<?php require_once('../webassist/mysqli/queryobj.php'); ?>
|
||||
<?php // require_once("../webassist/form_validations/wavt_scripts_php.php"); ?>
|
||||
<?php include('generalsettings.php'); ?>
|
||||
<?php
|
||||
if (session_status() == PHP_SESSION_NONE) {
|
||||
session_start();
|
||||
}
|
||||
if (!isset($_SESSION["idowneruser"])) {
|
||||
$_SESSION["iduserlogin"]=$iduserlogin;
|
||||
}
|
||||
$iduserlog=$_SESSION["iduserlogin"];
|
||||
$_SESSION["nameuser"]=$nameuser;
|
||||
$_SESSION["emailuser"]=$emailuser;
|
||||
if (!isset($_SESSION["tempcode"])) {
|
||||
$timestampnow=time();
|
||||
$temporarycode=$iduserlog."-".$timestampnow;
|
||||
$_SESSION["tempcode"]=$temporarycode;
|
||||
$tempcode=$_SESSION["tempcode"];
|
||||
} else { $tempcode=$_SESSION["tempcode"]; }
|
||||
?>
|
||||
<?php
|
||||
|
||||
// if undermanteinance
|
||||
if ($undermanteinance == "yes" && $roleuser != 1 && $roleuser != 4 && $roleuser != 5) {
|
||||
header("Location: undermanteinance.php");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
//check privacy policy accepted
|
||||
if (empty($privacyacc)) {
|
||||
header("location: privacyaccept.php");
|
||||
die();
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if (isset($_GET['info'])) {
|
||||
$infobox=$_GET['info'];
|
||||
$_SESSION["infobox"]=$infobox;
|
||||
}
|
||||
if (isset($_SESSION["infobox"])) {
|
||||
$infobox=$_SESSION["infobox"];
|
||||
}
|
||||
?>
|
||||
|
||||
<?php include('languages/it/general.php');
|
||||
include('languages/it/questionaire.php');
|
||||
?>
|
||||
<!-- query languages -->
|
||||
<?php
|
||||
$langselect = new WA_MySQLi_RS("langselect",$cmctrfdb,1);
|
||||
$langselect->setQuery("SELECT * FROM languages WHERE languages.idlanguages='$langid'");
|
||||
$langselect->execute();
|
||||
$lang=$langselect->getColumnVal("acronym_languages");
|
||||
?>
|
||||
<?php
|
||||
$languageselection = new WA_MySQLi_RS("languageselection",$cmctrfdb,0);
|
||||
$languageselection->setQuery("SELECT * FROM languages WHERE languages.active_languages='Y' ORDER BY languages.name_languages");
|
||||
$languageselection->execute();
|
||||
?>
|
||||
<?php
|
||||
$avat = new WA_MySQLi_RS("avat",$cmctrfdb,0);
|
||||
$avat->setQuery("SELECT avatar,id FROM auth_users WHERE auth_users.id='$iduserlogin'");
|
||||
$avat->execute();
|
||||
$avatarname=$avat->getColumnVal("avatar");
|
||||
?>
|
||||
<?php
|
||||
//$companydetails = new WA_MySQLi_RS("companydetails",$cmctrfdb,1);
|
||||
//$companydetails->setQuery("SELECT * FROM company WHERE company.idcompany='1'");
|
||||
//$companydetails->execute();
|
||||
if (!isset($idcompany)) {
|
||||
$InsertQuery = new WA_MySQLi_Query($cmctrfdb);
|
||||
$InsertQuery->Action = "insert";
|
||||
$InsertQuery->Table = "company";
|
||||
$InsertQuery->bindColumn("companyname_company", "s", "-", "WA_DEFAULT");
|
||||
$InsertQuery->saveInSession("");
|
||||
$InsertQuery->execute();
|
||||
$InsertGoTo = "";
|
||||
$InsertQuery->redirect($InsertGoTo);
|
||||
|
||||
$lastcompany = new WA_MySQLi_RS("lastcompany",$cmctrfdb,1);
|
||||
$lastcompany->setQuery("SELECT * FROM company ORDER BY company.idcompany DESC");
|
||||
$lastcompany->execute();
|
||||
|
||||
$lastcompanyid=$lastcompany->getColumnVal("idcompany");
|
||||
|
||||
$UpdateQuery = new WA_MySQLi_Query($cmctrfdb);
|
||||
$UpdateQuery->Action = "update";
|
||||
$UpdateQuery->Table = "auth_users";
|
||||
$UpdateQuery->bindColumn("idcompany", "i", "$lastcompanyid", "WA_DEFAULT");
|
||||
$UpdateQuery->addFilter("id", "=", "i", "".($iduserlogin) ."");
|
||||
$UpdateQuery->execute();
|
||||
$UpdateGoTo = "";
|
||||
$companyData["edited"]='N';
|
||||
}
|
||||
if (isset($idcompany)) {
|
||||
$companydetails = mysqli_query($cmctrfdb, "SELECT * FROM company LEFT JOIN countries ON company.country_company=countries.idcountries WHERE company.idcompany='$idcompany'");
|
||||
$companyData = mysqli_fetch_assoc($companydetails);
|
||||
$companyname=$companyData["companyname_company"];
|
||||
//echo $companyData["companyname_company"];
|
||||
}
|
||||
//include('securitycheck.php');
|
||||
?>
|
||||
<?php
|
||||
//check company profile filled
|
||||
if ($companyData["edited"]!="Y") {
|
||||
|
||||
header("location: companyprofile.php");
|
||||
die();
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
|
||||
|
||||
<?php
|
||||
if (isset($_SESSION["alertstd"])) {
|
||||
if ($_SESSION["alertstd"]=='YES') { ?>
|
||||
<div class="alert alert-outline-warning alert-warning-shadow mb-0 alert-dismissible fade show" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true"><i class="mdi mdi-close"></i></span>
|
||||
</button>
|
||||
<strong><?php echo $stderrorfill; ?></strong>
|
||||
</div>
|
||||
<?php }} ?>
|
||||
@@ -1,114 +0,0 @@
|
||||
<?php
|
||||
ini_set('display_errors', 0);
|
||||
ini_set('display_startup_errors', 0);
|
||||
ini_set('buffer_output', 1);
|
||||
//error_reporting(E_ALL | E_STRICT);
|
||||
// This should be equal to: PATH_TO_VANGUARD_FOLDER/extra/auth.php
|
||||
include('../extra/auth.php');
|
||||
//require_once __DIR__ . '/extra/auth.php';
|
||||
// Here we just check if user is not
|
||||
// logged in, and in that case we redirect
|
||||
// the user to vanguard login page.
|
||||
if (! Auth::check()) {
|
||||
|
||||
redirectTo('login');
|
||||
|
||||
}
|
||||
$user = Auth::user();
|
||||
$iduserlogin=$user->present()->id;
|
||||
$nameuser=$user->present()->name;
|
||||
$emailuser=$user->present()->email;
|
||||
$idcompany=$user->present()->idcompany;
|
||||
$langid=$user->present()->langid;
|
||||
$privacyacc=$user->present()->privacyaccepted;
|
||||
//$user = "1";
|
||||
//$iduserlogin="1";
|
||||
//$idcompany="1";
|
||||
//$companyname="Company Name";
|
||||
//$nameuser="Claudio";
|
||||
//$emailuser="info@acscreativesolutions.com";
|
||||
?>
|
||||
<?php include('generalsettings.php'); ?>
|
||||
<?php
|
||||
if (session_status() == PHP_SESSION_NONE) {
|
||||
session_start();
|
||||
}
|
||||
if (!isset($_SESSION["idowneruser"])) {
|
||||
$_SESSION["iduserlogin"]=$iduserlogin;
|
||||
}
|
||||
$iduserlog=$_SESSION["iduserlogin"];
|
||||
$_SESSION["nameuser"]=$nameuser;
|
||||
$_SESSION["emailuser"]=$emailuser;
|
||||
if (!isset($_SESSION["tempcode"])) {
|
||||
$timestampnow=time();
|
||||
$temporarycode=$iduserlog."-".$timestampnow;
|
||||
$_SESSION["tempcode"]=$temporarycode;
|
||||
$tempcode=$_SESSION["tempcode"];
|
||||
} else { $tempcode=$_SESSION["tempcode"]; }
|
||||
?>
|
||||
<?php
|
||||
//check privacy policy accepted
|
||||
if (empty($privacyacc)) {
|
||||
header("location: privacyaccept.php");
|
||||
die();
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
if (isset($_GET['info'])) {
|
||||
$infobox=$_GET['info'];
|
||||
$_SESSION["infobox"]=$infobox;
|
||||
}
|
||||
if (isset($_SESSION["infobox"])) {
|
||||
$infobox=$_SESSION["infobox"];
|
||||
}
|
||||
?>
|
||||
<?php require_once('../Connections/cmctrfdb.php'); ?>
|
||||
<?php require_once('../webassist/mysqli/rsobj.php'); ?>
|
||||
<?php // require_once('@@RSObjectPath@@'); ?>
|
||||
<?php require_once('../webassist/mysqli/queryobj.php'); ?>
|
||||
<?php // require_once("../webassist/form_validations/wavt_scripts_php.php"); ?>
|
||||
<?php include('languages/it/general.php');
|
||||
include('languages/it/questionaire.php');
|
||||
?>
|
||||
<!-- query languages -->
|
||||
<?php
|
||||
$langselect = new WA_MySQLi_RS("langselect",$cmctrfdb,1);
|
||||
$langselect->setQuery("SELECT * FROM languages WHERE languages.idlanguages='$langid'");
|
||||
$langselect->execute();
|
||||
$lang=$langselect->getColumnVal("acronym_languages");
|
||||
?>
|
||||
<?php
|
||||
$languageselection = new WA_MySQLi_RS("languageselection",$cmctrfdb,0);
|
||||
$languageselection->setQuery("SELECT * FROM languages WHERE languages.active_languages='Y' ORDER BY languages.name_languages");
|
||||
$languageselection->execute();
|
||||
?>
|
||||
<?php
|
||||
$avat = new WA_MySQLi_RS("avat",$cmctrfdb,0);
|
||||
$avat->setQuery("SELECT avatar,id FROM auth_users WHERE auth_users.id='$iduserlogin'");
|
||||
$avat->execute();
|
||||
$avatarname=$avat->getColumnVal("avatar");
|
||||
?>
|
||||
<?php
|
||||
//$companydetails = new WA_MySQLi_RS("companydetails",$cmctrfdb,1);
|
||||
//$companydetails->setQuery("SELECT * FROM company WHERE company.idcompany='1'");
|
||||
//$companydetails->execute();
|
||||
if (isset($idcompany)) {
|
||||
$companydetails = mysqli_query($cmctrfdb, "SELECT * FROM company LEFT JOIN countries ON company.country_company=countries.idcountries WHERE company.idcompany='$idcompany'");
|
||||
$companyData = mysqli_fetch_assoc($companydetails);
|
||||
//echo $companyData["companyname_company"];
|
||||
}
|
||||
//include('securitycheck.php');
|
||||
?>
|
||||
<?php
|
||||
//check company profile filled
|
||||
if ($companyData["edited"]!="Y") {
|
||||
|
||||
header("location: companyprofile.php");
|
||||
die();
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,192 +0,0 @@
|
||||
<?php
|
||||
if (isset($idtrf)) {
|
||||
include('include/checkstepfile.php');
|
||||
include('include/chemicalsquerycheck.php');
|
||||
}
|
||||
?>
|
||||
<div class="left-sidenav">
|
||||
<ul class="metismenu left-sidenav-menu">
|
||||
|
||||
<?php if ((Auth::user()->hasRole('Admin')) || (Auth::user()->hasRole('User')) || (Auth::user()->hasRole('Superuser'))): ?>
|
||||
<li>
|
||||
<a href="dashboard.php"><i class="ti-bar-chart"></i><span><?php echo $dashboard; ?></span></a>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
<?php if (isset($codelist)) { ?>
|
||||
<a href=""><i class="ti-angle-double-down"></i><span><?php echo $trfinprogress; ?></span></a>
|
||||
<ul class="nav-second-level mm-collapse mm-show" style="">
|
||||
<!-- first line trf -->
|
||||
|
||||
<?php if (in_array(1,$stepscertif))
|
||||
{ ?>
|
||||
<?php if (in_array(1,$codelist))
|
||||
{ ?>
|
||||
|
||||
|
||||
|
||||
<li>
|
||||
<a href="" style="color:green"><i class="fas fa-check-circle" style="color:green"></i><?php echo $certificationtitle; ?> </a>
|
||||
</li> <?php } else { ?>
|
||||
<li>
|
||||
<a style="color:darkorange"><i class="fas fa-times-circle" style="color:darkorange"></i><?php echo $certificationtitle; ?> </a>
|
||||
</li>
|
||||
<?php }}?>
|
||||
<!-- end first line trf -->
|
||||
<!-- second line trf -->
|
||||
<?php if (in_array(2,$stepscertif))
|
||||
{ ?>
|
||||
<?php if (in_array(2,$codelist))
|
||||
{ ?>
|
||||
<li>
|
||||
<a href="trfdetails.php?idtrf=<?php echo $idtrf; ?>" style="color:green"><i class="fas fa-check-circle" style="color:green"></i><?php echo $descriptionsteptitle; ?> </a>
|
||||
</li> <?php } else { ?>
|
||||
<li>
|
||||
<a style="color:darkorange"><i class="fas fa-times-circle" style="color:darkorange"></i><?php echo $descriptionsteptitle; ?> </a>
|
||||
</li>
|
||||
<?php }}?>
|
||||
<!-- end second line trf -->
|
||||
<!-- third line trf -->
|
||||
<?php if (in_array(3,$stepscertif))
|
||||
{ ?>
|
||||
<?php if (in_array(3,$codelist))
|
||||
{ ?>
|
||||
<li>
|
||||
<a href="standardstep.php?idtrf=<?php echo $idtrf; ?>" style="color:green"><i class="fas fa-check-circle" style="color:green"></i><?php echo $standardsteptitle; ?> </a>
|
||||
</li> <?php } else { ?>
|
||||
<li>
|
||||
<a style="color:darkorange"><i class="fas fa-times-circle" style="color:darkorange"></i><?php echo $standardsteptitle; ?> </a>
|
||||
</li>
|
||||
<?php }}?>
|
||||
<!-- end third line trf -->
|
||||
<!-- fourth line trf -->
|
||||
<?php if (in_array(4,$stepscertif))
|
||||
{ ?>
|
||||
<?php if (in_array(4,$codelist))
|
||||
{ ?>
|
||||
<li>
|
||||
<a href="additionalinfo.php?idtrf=<?php echo $idtrf; ?>" style="color:green"><i class="fas fa-check-circle" style="color:green"></i><?php echo $additionalinfosteptitle; ?> </a>
|
||||
</li> <?php } else { ?>
|
||||
<li>
|
||||
<a style="color:darkorange"><i class="fas fa-times-circle" style="color:darkorange"></i><?php echo $additionalinfosteptitle; ?> </a>
|
||||
</li>
|
||||
<?php }}?>
|
||||
<!-- end fourth line trf -->
|
||||
<!-- first five trf -->
|
||||
<?php if (in_array(5,$stepscertif))
|
||||
{ ?>
|
||||
<?php if (in_array(5,$codelist))
|
||||
{ ?>
|
||||
<li>
|
||||
<a href="addrequirements.php?idtrf=<?php echo $idtrf; ?>" style="color:green"><i class="fas fa-check-circle" style="color:green"></i><?php echo $addrequirementssteptitle; ?> </a>
|
||||
</li> <?php } else { ?>
|
||||
<li>
|
||||
<a style="color:darkorange"><i class="fas fa-times-circle" style="color:darkorange"></i><?php echo $addrequirementssteptitle; ?> </a>
|
||||
</li>
|
||||
<?php }}?>
|
||||
<!-- end five line trf -->
|
||||
<!-- six line trf -->
|
||||
<?php if (isset($chemicalstep) && ($chemicalstep=="Y")) { ?>
|
||||
|
||||
<?php if (in_array(6,$codelist))
|
||||
{ ?>
|
||||
<li>
|
||||
<a href="chemicalagent.php?idtrf=<?php echo $idtrf; ?>" style="color:green"><i class="fas fa-check-circle" style="color:green"></i><?php echo $chemicalagentsteptitle; ?> </a>
|
||||
</li> <?php } else { ?>
|
||||
<li>
|
||||
<a style="color:darkorange"><i class="fas fa-times-circle" style="color:darkorange"></i><?php echo $chemicalagentsteptitle; ?> </a>
|
||||
</li>
|
||||
<?php }} else {?>
|
||||
<?php } ?>
|
||||
<!-- end six line trf -->
|
||||
<!-- seven line trf -->
|
||||
<?php if (in_array(7,$stepscertif))
|
||||
{ ?>
|
||||
<?php if (in_array(7,$codelist))
|
||||
{ ?>
|
||||
<li>
|
||||
<a href="identificationparts.php?idtrf=<?php echo $idtrf; ?>" style="color:green"><i class="fas fa-check-circle" style="color:green"></i><?php echo $identificationpartssteptitle; ?> </a>
|
||||
</li> <?php } else { ?>
|
||||
<li>
|
||||
<a style="color:darkorange"><i class="fas fa-times-circle" style="color:darkorange"></i><?php echo $identificationpartssteptitle; ?> </a>
|
||||
</li>
|
||||
<?php }}?>
|
||||
<!-- end seven line trf -->
|
||||
<!-- seveeightn line trf -->
|
||||
<?php if (in_array(8,$stepscertif))
|
||||
{ ?>
|
||||
<?php if (in_array(8,$codelist))
|
||||
{ ?>
|
||||
<li>
|
||||
<a href="adddocument.php?idtrf=<?php echo $idtrf; ?>" style="color:green"><i class="fas fa-check-circle" style="color:green"></i><?php echo $uploaddocsteptitle; ?> </a>
|
||||
</li> <?php } else { ?>
|
||||
<li>
|
||||
<a style="color:darkorange"><i class="fas fa-times-circle" style="color:darkorange"></i><?php echo $uploaddocsteptitle; ?> </a>
|
||||
</li>
|
||||
<?php }}?>
|
||||
<!-- end eight line trf -->
|
||||
<?php if (in_array(9,$stepscertif))
|
||||
{ ?>
|
||||
<?php if (in_array(9,$codelist))
|
||||
{ ?>
|
||||
<li>
|
||||
<a href="trfoption.php?idtrf=<?php echo $idtrf; ?>" style="color:green"><i class="fas fa-check-circle" style="color:green"></i><?php echo $addparameterstitle; ?> </a>
|
||||
</li> <?php } else { ?>
|
||||
<li>
|
||||
<a style="color:darkorange"><i class="fas fa-times-circle" style="color:darkorange"></i><?php echo $addparameterstitle; ?> </a>
|
||||
</li>
|
||||
<?php }}?>
|
||||
|
||||
</ul><?php } ?>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a href="archivetrf.php"><i class="fas fa-history"></i><span><?php echo $historicaltrf; ?></span></a>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.cimac.it/contatti/" target="_blank"><i class="ti-help"></i><span><?php echo $helptitle; ?></span></a>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.cimac.it/contatti/" target="_blank"><i class="fas fa-users"></i><span><?php echo $contactus; ?></span></a>
|
||||
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if ((Auth::user()->hasRole('Admin')) || (Auth::user()->hasRole('Superuser'))): ?>
|
||||
<li>
|
||||
<a href="javascript: void(0);"><i class="ti-lock"></i><span>Admin Area</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>
|
||||
<ul class="nav-second-level mm-collapse" aria-expanded="false">
|
||||
<li class="nav-item"><a class="nav-link" href="admin-dashboard.php"><i class="fas fa-cogs"></i>Admin Panel</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="repositoryupload.php"><i class="fas fa-archive"></i>Files Download</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="cstrf.php"><i class="fas fa-archive"></i>CS TRF Board</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if (Auth::user()->hasRole('CustomerService')): ?>
|
||||
<li>
|
||||
|
||||
<li class="nav-item"><a class="nav-link" href="cstrf.php"><i class="fas fa-archive"></i>CS TRF Board</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if (Auth::user()->hasRole('Admin')): ?>
|
||||
<li>
|
||||
|
||||
<li class="nav-item"><a class="nav-link" href="others/icons-fontawesome.html"><i class="ti-control-record"></i>Template</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,124 +0,0 @@
|
||||
|
||||
<?php
|
||||
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('display_startup_errors', 1);
|
||||
error_reporting(E_ALL | E_STRICT);
|
||||
// This should be equal to: PATH_TO_VANGUARD_FOLDER/extra/auth.php
|
||||
include('../extra/auth.php');
|
||||
//require_once __DIR__ . '/extra/auth.php';
|
||||
|
||||
// Here we just check if user is not
|
||||
// logged in, and in that case we redirect
|
||||
// the user to vanguard login page.
|
||||
if (! Auth::check()) {
|
||||
|
||||
redirectTo('login');
|
||||
|
||||
}
|
||||
|
||||
$user = Auth::user();
|
||||
|
||||
$iduserlogin=$user->present()->id;
|
||||
$nameuser=$user->present()->name;
|
||||
$emailuser=$user->present()->email;
|
||||
$idcompany=$user->present()->idcompany;
|
||||
$langid=$user->present()->langid;
|
||||
$privacyacc=$user->present()->privacyaccepted;
|
||||
$loginusername=$user->present()->username;
|
||||
$roleuser=$user->present()->role_id;
|
||||
|
||||
|
||||
//$user = "1";
|
||||
//$iduserlogin="1";
|
||||
//$idcompany="1";
|
||||
$companyname="Company Name";
|
||||
//$nameuser="Claudio";
|
||||
//$emailuser="info@acscreativesolutions.com";
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<?php require_once('../Connections/cmctrfdb.php'); ?>
|
||||
<?php require_once('../webassist/mysqli/rsobj.php'); ?>
|
||||
<?php // require_once('@@RSObjectPath@@'); ?>
|
||||
|
||||
<?php require_once('../webassist/mysqli/queryobj.php'); ?>
|
||||
<?php // require_once("../webassist/form_validations/wavt_scripts_php.php"); ?>
|
||||
<?php include('generalsettings.php'); ?>
|
||||
|
||||
|
||||
<?php
|
||||
if (session_status() == PHP_SESSION_NONE) {
|
||||
session_start();
|
||||
}
|
||||
|
||||
if (!isset($_SESSION["idowneruser"])) {
|
||||
$_SESSION["iduserlogin"]=$iduserlogin;
|
||||
}
|
||||
$iduserlog=$_SESSION["iduserlogin"];
|
||||
$_SESSION["nameuser"]=$nameuser;
|
||||
$_SESSION["emailuser"]=$emailuser;
|
||||
|
||||
if (!isset($_SESSION["tempcode"])) {
|
||||
$timestampnow=time();
|
||||
$temporarycode=$iduserlog."-".$timestampnow;
|
||||
$_SESSION["tempcode"]=$temporarycode;
|
||||
$tempcode=$_SESSION["tempcode"];
|
||||
} else { $tempcode=$_SESSION["tempcode"]; }
|
||||
?>
|
||||
<?php
|
||||
if (isset($_GET['info'])) {
|
||||
$infobox=$_GET['info'];
|
||||
$_SESSION["infobox"]=$infobox;
|
||||
}
|
||||
if (isset($_SESSION["infobox"])) {
|
||||
$infobox=$_SESSION["infobox"];
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<?php include('languages/it/general.php');
|
||||
include('languages/it/questionaire.php');
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<!-- query languages -->
|
||||
<?php
|
||||
$langselect = new WA_MySQLi_RS("langselect",$cmctrfdb,1);
|
||||
$langselect->setQuery("SELECT * FROM languages WHERE languages.idlanguages='$langid'");
|
||||
$langselect->execute();
|
||||
$lang=$langselect->getColumnVal("acronym_languages");
|
||||
?>
|
||||
<?php
|
||||
$languageselection = new WA_MySQLi_RS("languageselection",$cmctrfdb,0);
|
||||
$languageselection->setQuery("SELECT * FROM languages WHERE languages.active_languages='Y' ORDER BY languages.name_languages");
|
||||
$languageselection->execute();
|
||||
|
||||
|
||||
?>
|
||||
<?php
|
||||
$avat = new WA_MySQLi_RS("avat",$cmctrfdb,0);
|
||||
$avat->setQuery("SELECT avatar,id FROM auth_users WHERE auth_users.id='$iduserlogin'");
|
||||
$avat->execute();
|
||||
$avatarname=$avat->getColumnVal("avatar");
|
||||
|
||||
?>
|
||||
<?php
|
||||
//$companydetails = new WA_MySQLi_RS("companydetails",$cmctrfdb,1);
|
||||
//$companydetails->setQuery("SELECT * FROM company WHERE company.idcompany='1'");
|
||||
//$companydetails->execute();
|
||||
if (isset($idcompany)) {
|
||||
$companydetails = mysqli_query($cmctrfdb, "SELECT * FROM company WHERE company.idcompany='$idcompany'");
|
||||
$companyData = mysqli_fetch_assoc($companydetails);
|
||||
//echo $companyData["companyname_company"];
|
||||
|
||||
}
|
||||
//include('securitycheck.php');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,159 +0,0 @@
|
||||
|
||||
<?php if (isset($_GET['idcertificate'])) {
|
||||
$idcertificate=$_GET['idcertificate']; ?>
|
||||
<?php if ($idcertificate=="2") { ?>
|
||||
<div id="alertcertification" class="modal fade">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title"><?php echo $certificatealertm15c; ?></h5>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-warning border-0" role="alert">
|
||||
<strong><?php echo $certificatealertmesm15c; ?></strong>
|
||||
</div>
|
||||
<div class="alert alert-link border-0" role="alert">
|
||||
<strong><?php echo $certificatealertmesm15ca; ?></strong><br>
|
||||
<strong><?php echo $certificatealertmesm15cb; ?></strong>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-success" data-dismiss="modal"><?php echo $confirmalert; ?></button>
|
||||
<a href="typeofcertificate.php?varcertificate=0"><button type="submit" class="btn btn-danger"><?php echo $unconfirmalert; ?></button></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><?php } ?>
|
||||
|
||||
<?php if ($idcertificate=="3") { ?>
|
||||
<div id="alertcertification" class="modal fade">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title"><?php echo $certificatealertm15bm30s; ?></h5>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-warning border-0" role="alert">
|
||||
<strong><?php echo $certificatealertmesm15bm30s; ?></strong>
|
||||
</div>
|
||||
<div class="alert alert-link border-0" role="alert">
|
||||
<strong><?php echo $certificatealertmesm15bm30sa; ?></strong><br>
|
||||
<strong><?php echo $certificatealertmesm15bm30sb; ?></strong><br>
|
||||
<strong><?php echo $certificatealertmesm15bm30sc; ?></strong><br>
|
||||
<strong><?php echo $certificatealertmesm15bm30sd; ?></strong><br>
|
||||
<strong><?php echo $certificatealertmesm15bm30se; ?></strong><br>
|
||||
</div>
|
||||
|
||||
<a href=""><button type="submit" class="btn btn-success" data-dismiss="modal"><?php echo $confirmalert; ?></button></a>
|
||||
<a href="typeofcertificate.php?varcertificate=0><button type="submit" class="btn btn-danger"><?php echo $unconfirmalert; ?></button></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><?php } ?>
|
||||
<!-- M15A M30S -->
|
||||
<?php if ($idcertificate=="4") { ?>
|
||||
<div id="alertcertification" class="modal fade">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title"><?php echo $certificatealertm15bm30s; ?></h5>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-warning border-0" role="alert">
|
||||
<strong><?php echo $certificatealertmesm15am30s; ?></strong>
|
||||
</div>
|
||||
<div class="alert alert-link border-0" role="alert">
|
||||
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-success" data-dismiss="modal"><?php echo $confirmalert; ?></button>
|
||||
<a href="typeofcertificate.php?varcertificate=0"><button type="submit" class="btn btn-danger"><?php echo $unconfirmalert; ?></button></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><?php } ?>
|
||||
<!-- M18A -->
|
||||
<?php if ($idcertificate=="5") { ?>
|
||||
<div id="alertcertification" class="modal fade">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title"><?php echo $certificatealertm18a; ?></h5>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-warning border-0" role="alert">
|
||||
<strong><?php echo $certificatealertmesm18a; ?></strong>
|
||||
</div>
|
||||
<div class="alert alert-link border-0" role="alert">
|
||||
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-success" data-dismiss="modal"><?php echo $confirmalert; ?></button>
|
||||
<a href="typeofcertificate.php?varcertificate=0"><button type="submit" class="btn btn-danger"><?php echo $unconfirmalert; ?></button></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><?php } ?>
|
||||
|
||||
<?php if ($idcertificate=="6") { ?>
|
||||
<div id="alertcertification" class="modal fade">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title"><?php echo $certificatealertm18a; ?></h5>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-warning border-0" role="alert">
|
||||
<strong><?php echo $certificatealertmesm18a; ?></strong>
|
||||
</div>
|
||||
<div class="alert alert-link border-0" role="alert">
|
||||
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-success" data-dismiss="modal"><?php echo $confirmalert; ?></button>
|
||||
<a href="typeofcertificate.php?varcertificate=0"><button type="submit" class="btn btn-danger"><?php echo $unconfirmalert; ?></button></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><?php } ?>
|
||||
|
||||
<?php if ($idcertificate=="md") { ?>
|
||||
<div id="alertcertification" class="modal fade">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title"><?php echo $certificateforclient; ?></h5>
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-warning border-0" role="alert">
|
||||
<strong><?php echo $certificateforclientquestion; ?></strong>
|
||||
</div>
|
||||
<div class="alert alert-link border-0" role="alert">
|
||||
<?php echo $intermiedateclient; ?>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-success" data-dismiss="modal"><?php echo $confirmalert; ?></button>
|
||||
<a href="typeofcertificate.php?varcertificate=0"><button type="submit" class="btn btn-danger"><?php echo $unconfirmalert; ?></button></a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
@@ -1,4 +0,0 @@
|
||||
<div class="media-body align-self-center">
|
||||
<h4 class="mt-0 header-title"><?php echo $certificationrequired; ?><?php echo $etrfcodetitle; ?> <?php echo($trfnumberfinal->getColumnVal("iduser")); ?>-<?php echo($trfnumberfinal->getColumnVal("trfnumber")); ?></h4>
|
||||
|
||||
</div><!--end media-body-->
|
||||
Reference in New Issue
Block a user