diff --git a/public/userarea/importify/add_analysis.php b/public/userarea/importify/add_analysis.php
new file mode 100644
index 0000000..abaf3a6
--- /dev/null
+++ b/public/userarea/importify/add_analysis.php
@@ -0,0 +1,16 @@
+
+query($query)) {
+ echo json_encode(['success' => true]);
+ } else {
+ echo json_encode(['error' => true]);
+ }
+}
+?>
diff --git a/public/userarea/importify/add_compunds_voc.php b/public/userarea/importify/add_compunds_voc.php
index bff4950..c2ba263 100644
--- a/public/userarea/importify/add_compunds_voc.php
+++ b/public/userarea/importify/add_compunds_voc.php
@@ -1,79 +1,79 @@
setQuery("SELECT * FROM analysisvocabulary where nameanalysisvoc like '$analysis_name'");
- $arr_analysis_refdata->execute();
- $arr_analysis_ref = $arr_analysis_refdata->Results;
- if(count($arr_analysis_ref) == 0) {
- $analysis_refid = $arr_analysis_ref[0]['refid'];
- }
+$analysis_refid = 0;
+if ($analysis_name != "") {
+ $arr_analysis_refdata = new WA_MySQLi_RS("rsl", $repnew, 0);
+ $arr_analysis_refdata->setQuery("SELECT * FROM analysisvocabulary where nameanalysisvoc like '$analysis_name'");
+ $arr_analysis_refdata->execute();
+ $arr_analysis_ref = $arr_analysis_refdata->Results;
+ if (count($arr_analysis_ref) > 0) {
+ $analysis_refid = $arr_analysis_ref[0]['refid'];
+ }
+}
+
+if ($type == 0) {
+ $InsertQuery = new WA_MySQLi_Query($repnew);
+ $InsertQuery->Action = "insert";
+ $InsertQuery->Table = "`compundsvocabulary`";
+ $InsertQuery->bindColumn("namecompoundsvocabulary", "s", "" . $str_name, "WA_DEFAULT");
+ $InsertQuery->bindColumn("cascompoundvocabulary", "s", "" . $str_kind, "WA_DEFAULT");
+ $InsertQuery->bindColumn("analysisrefid", "i", "" . $analysis_refid, "WA_DEFAULT");
+ $InsertQuery->bindColumn("refid", "i", "0", "WA_DEFAULT");
+ $InsertQuery->bindColumn("preferred", "s", "Y", "WA_DEFAULT");
+ $InsertQuery->saveInSession("");
+ $InsertQuery->execute();
+
+ $inserted_query = new WA_MySQLi_RS("getquery", $repnew, 0);
+ $inserted_query->setQuery("SELECT * FROM compundsvocabulary WHERE namecompoundsvocabulary like '$str_name' and preferred like 'Y' and refid=0");
+ $inserted_query->execute();
+
+ $inserted_data = $inserted_query->Results;
+ $ref_id = 0;
+ if (count($inserted_data) > 0) {
+ $ref_id = $inserted_data[0]['idcompoundsvocabulary'];
}
- if($type == 0) {
- $InsertQuery = new WA_MySQLi_Query($repnew);
- $InsertQuery->Action = "insert";
- $InsertQuery->Table = "`compundsvocabulary`";
- $InsertQuery->bindColumn("namecompoundsvocabulary", "s", "" . $str_name, "WA_DEFAULT");
- $InsertQuery->bindColumn("cascompoundvocabulary", "s", "" .$str_kind, "WA_DEFAULT");
- $InsertQuery->bindColumn("analysisrefid", "i", "".$analysis_refid, "WA_DEFAULT");
- $InsertQuery->bindColumn("refid", "i", "0", "WA_DEFAULT");
- $InsertQuery->bindColumn("preferred", "s", "Y", "WA_DEFAULT");
- $InsertQuery->saveInSession("");
- $InsertQuery->execute();
-
- $inserted_query = new WA_MySQLi_RS("getquery", $repnew, 0);
- $inserted_query->setQuery("SELECT * FROM compundsvocabulary WHERE namecompoundsvocabulary like '$str_name' and preferred like 'Y' and refid=0");
- $inserted_query->execute();
-
- $inserted_data = $inserted_query->Results;
- $ref_id = 0;
- if(count($inserted_data) > 0) {
- $ref_id = $inserted_data[0]['idcompoundsvocabulary'];
- }
-
- if($ref_id > 0) {
- $UpdateQuery = new WA_MySQLi_Query($repnew);
- $UpdateQuery->Action = "update";
- $UpdateQuery->Table = "`compundsvocabulary`";
- $UpdateQuery->bindColumn("refid", "i", "" . $ref_id . "", "WA_DEFAULT");
- $UpdateQuery->addFilter("idcompoundsvocabulary", "=", "i", "" . ($ref_id) . "");
- $UpdateQuery->execute();
-
- die(json_encode(array(
- 'code' => "success",
- 'info' => array(
- 'name' => $str_name,
- 'kind' => $str_kind,
- 'ref_id' => $ref_id,
- )
- )));
- } else {
- die("error");
- }
- } else {
- $InsertQuery = new WA_MySQLi_Query($repnew);
- $InsertQuery->Action = "insert";
- $InsertQuery->Table = "`compundsvocabulary`";
- $InsertQuery->bindColumn("namecompoundsvocabulary", "s", "" . $str_name, "WA_DEFAULT");
- $InsertQuery->bindColumn("analysisrefid", "i", "".$analysis_refid, "WA_DEFAULT");
- $InsertQuery->bindColumn("refid", "i", $type, "WA_DEFAULT");
- $InsertQuery->bindColumn("preferred", "s", "N", "WA_DEFAULT");
- $InsertQuery->saveInSession("");
- $InsertQuery->execute();
+ if ($ref_id > 0) {
+ $UpdateQuery = new WA_MySQLi_Query($repnew);
+ $UpdateQuery->Action = "update";
+ $UpdateQuery->Table = "`compundsvocabulary`";
+ $UpdateQuery->bindColumn("refid", "i", "" . $ref_id . "", "WA_DEFAULT");
+ $UpdateQuery->addFilter("idcompoundsvocabulary", "=", "i", "" . ($ref_id) . "");
+ $UpdateQuery->execute();
die(json_encode(array(
'code' => "success",
'info' => array(
'name' => $str_name,
'kind' => $str_kind,
- 'ref_id' => $type,
+ 'ref_id' => $ref_id,
)
)));
- }
\ No newline at end of file
+ } else {
+ die("error");
+ }
+} else {
+ $InsertQuery = new WA_MySQLi_Query($repnew);
+ $InsertQuery->Action = "insert";
+ $InsertQuery->Table = "`compundsvocabulary`";
+ $InsertQuery->bindColumn("namecompoundsvocabulary", "s", "" . $str_name, "WA_DEFAULT");
+ $InsertQuery->bindColumn("analysisrefid", "i", "" . $analysis_refid, "WA_DEFAULT");
+ $InsertQuery->bindColumn("refid", "i", $type, "WA_DEFAULT");
+ $InsertQuery->bindColumn("preferred", "s", "N", "WA_DEFAULT");
+ $InsertQuery->saveInSession("");
+ $InsertQuery->execute();
+
+ die(json_encode(array(
+ 'code' => "success",
+ 'info' => array(
+ 'name' => $str_name,
+ 'kind' => $str_kind,
+ 'ref_id' => $type,
+ )
+ )));
+}
diff --git a/public/userarea/importify/add_synonim.php b/public/userarea/importify/add_synonim.php
new file mode 100644
index 0000000..f4a9a16
--- /dev/null
+++ b/public/userarea/importify/add_synonim.php
@@ -0,0 +1,19 @@
+query($query)) {
+ echo json_encode(['success' => true]);
+ } else {
+ echo json_encode(['error' => $conn->error]);
+ }
+}
diff --git a/public/userarea/importify/add_synonym.php b/public/userarea/importify/add_synonym.php
new file mode 100644
index 0000000..f4a9a16
--- /dev/null
+++ b/public/userarea/importify/add_synonym.php
@@ -0,0 +1,19 @@
+query($query)) {
+ echo json_encode(['success' => true]);
+ } else {
+ echo json_encode(['error' => $conn->error]);
+ }
+}
diff --git a/public/userarea/importify/analysisname.php b/public/userarea/importify/analysisname.php
new file mode 100644
index 0000000..1c2fb3c
--- /dev/null
+++ b/public/userarea/importify/analysisname.php
@@ -0,0 +1,504 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Analysis Name |
+ Type |
+ Actions |
+
+
+
+ query($query);
+ while ($row = $result->fetch_assoc()) {
+ echo '';
+ echo '| ' . $row['nameanalysisvoc'] . ' | ';
+ echo '' . $row['kindanalysisvoc'] . ' | ';
+ echo '
+
+
+
+
+ | ';
+ echo '
';
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/userarea/importify/components.php b/public/userarea/importify/components.php
new file mode 100644
index 0000000..dcafd4a
--- /dev/null
+++ b/public/userarea/importify/components.php
@@ -0,0 +1,238 @@
+
+
+
+query($query);
+
+// Recupera il nome dell'analisi
+$analysisQuery = "SELECT nameanalysisvoc FROM analysisvocabulary WHERE idanalysisvocabulary = $analysisrefid AND preferred = 'Y'";
+$analysisResult = $conn->query($analysisQuery);
+$analysisn = $analysisResult->fetch_assoc();
+$analysisName = $analysisn['nameanalysisvoc']; // Nome dell'analisi
+?>
+
+
+
+
+
+
+
+
+ Components
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Components of Analysis:
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Component Name |
+ CAS Number |
+ Actions |
+
+
+
+ fetch_assoc()) {
+ echo '';
+ echo '| ' . $row['namecompoundsvocabulary'] . ' | ';
+ echo '' . $row['cascompoundvocabulary'] . ' | ';
+ echo '
+
+
+ | ';
+ echo '
';
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/userarea/importify/delete_analysis.php b/public/userarea/importify/delete_analysis.php
new file mode 100644
index 0000000..c3720a9
--- /dev/null
+++ b/public/userarea/importify/delete_analysis.php
@@ -0,0 +1,21 @@
+query($query1) && $conn->query($query2)) {
+ echo json_encode(['success' => true]);
+ } else {
+ echo json_encode(['error' => true]);
+ }
+}
diff --git a/public/userarea/importify/delete_component.php b/public/userarea/importify/delete_component.php
new file mode 100644
index 0000000..5ede95d
--- /dev/null
+++ b/public/userarea/importify/delete_component.php
@@ -0,0 +1,18 @@
+query($query1) && $conn->query($query2)) {
+ echo json_encode(['success' => true]);
+} else {
+ echo json_encode(['error' => true]);
+}
diff --git a/public/userarea/importify/delete_synonym.php b/public/userarea/importify/delete_synonym.php
new file mode 100644
index 0000000..aea83ca
--- /dev/null
+++ b/public/userarea/importify/delete_synonym.php
@@ -0,0 +1,14 @@
+
+query($query)) {
+ echo json_encode(['success' => true]);
+ } else {
+ echo json_encode(['error' => true]);
+ }
+}
+?>
diff --git a/public/userarea/importify/delete_synonymcomp.php b/public/userarea/importify/delete_synonymcomp.php
new file mode 100644
index 0000000..03a6c24
--- /dev/null
+++ b/public/userarea/importify/delete_synonymcomp.php
@@ -0,0 +1,17 @@
+query($query)) {
+ echo json_encode(['success' => true]);
+ } else {
+ echo json_encode(['error' => true]);
+ }
+}
diff --git a/public/userarea/importify/get_component_synonyms.php b/public/userarea/importify/get_component_synonyms.php
new file mode 100644
index 0000000..302f253
--- /dev/null
+++ b/public/userarea/importify/get_component_synonyms.php
@@ -0,0 +1,16 @@
+query($query);
+
+$synonyms = [];
+while ($row = $result->fetch_assoc()) {
+ $synonyms[] = $row;
+}
+
+echo json_encode($synonyms);
diff --git a/public/userarea/importify/get_synonyms.php b/public/userarea/importify/get_synonyms.php
new file mode 100644
index 0000000..f54ad6f
--- /dev/null
+++ b/public/userarea/importify/get_synonyms.php
@@ -0,0 +1,16 @@
+
+query($query);
+
+ $synonyms = [];
+ while ($row = $result->fetch_assoc()) {
+ $synonyms[] = $row;
+ }
+
+ echo json_encode($synonyms);
+}
diff --git a/public/userarea/importify/reportdetails.php b/public/userarea/importify/reportdetails.php
new file mode 100644
index 0000000..3a958b6
--- /dev/null
+++ b/public/userarea/importify/reportdetails.php
@@ -0,0 +1,153 @@
+
+prepare($queryReportDetails);
+$stmt->bind_param("i", $idreports);
+$stmt->execute();
+$reportDetails = $stmt->get_result()->fetch_assoc();
+
+// Query per ottenere le parti e i risultati del report
+$queryPartsAndResults = "
+ SELECT rp.*, a.nameanalysisvoc AS testName, av.nameanalysisvoc AS analytsName
+ FROM result_project rp
+ LEFT JOIN analysisvocabulary a ON rp.result_TestName = a.idanalysisvocabulary
+ LEFT JOIN analysisvocabulary av ON rp.result_AnalytsName = av.idanalysisvocabulary
+ WHERE rp.idreports = ?";
+$stmtParts = $conn->prepare($queryPartsAndResults);
+$stmtParts->bind_param("i", $idreports);
+$stmtParts->execute();
+$partsAndResults = $stmtParts->get_result();
+?>
+
+
+
+
+
+
+
+
+ Report Details
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Report Date:
+
Product Ref:
+
Product Description:
+
Style:
+
Color:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Part Number |
+ Test Name |
+ Analyts Name |
+ Result Value |
+ Rating |
+
+
+
+ fetch_assoc()) { ?>
+
+ |
+ |
+ |
+ |
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/userarea/importify/templatediv.php b/public/userarea/importify/templatediv.php
new file mode 100644
index 0000000..1d985bb
--- /dev/null
+++ b/public/userarea/importify/templatediv.php
@@ -0,0 +1,205 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/userarea/include/filterselected.php b/public/userarea/include/filterselected.php
new file mode 100644
index 0000000..693156a
--- /dev/null
+++ b/public/userarea/include/filterselected.php
@@ -0,0 +1,16 @@
+
+
+
+ Filter Selected:
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/userarea/include/parsedatachart.php b/public/userarea/include/parsedatachart.php
index 94536f5..24571c3 100644
--- a/public/userarea/include/parsedatachart.php
+++ b/public/userarea/include/parsedatachart.php
@@ -1,101 +1,248 @@
-
-
+ 0) {
+ $percanalysisfail = round(($num_rows_analysis_fail / $num_rows_analysis) * 100, 1);
+} else {
+ $percanalysisfail = 0; // Oppure un altro valore di default
+}
+
+//create an array
+
+if (!function_exists('replaceSmartQuotes')) {
+ function replaceSmartQuotes($string)
+ {
+ $search = array(chr(145), chr(146), chr(147), chr(148), chr(151));
+ $replace = array("'", "'", '"', '"', '-');
+ return str_replace($search, $replace, $string);
+ }
+}
+
+if (!function_exists('replaceSmartQuotesInArray')) {
+ function replaceSmartQuotesInArray($array)
+ {
+ foreach ($array as $key => $value) {
+ if (is_string($value)) {
+ $array[$key] = replaceSmartQuotes($value);
+ } elseif (is_array($value)) {
+ $array[$key] = replaceSmartQuotesInArray($value);
+ }
+ }
+ return $array;
+ }
+}
+
+$reportsarray = array();
+while ($row = mysqli_fetch_assoc($result)) {
+ $reportsarray[] = replaceSmartQuotesInArray($row);
+}
+//$totalreport=
+if ((!empty($num_rows)) && (!empty($num_rows_fail))) {
+ $perfail = round(($num_rows_fail / $num_rows) * 100, 1);
+}
+if ((!empty($num_rows)) && (!empty($num_rows_data))) {
+ $perdata = round(($num_rows_data / $num_rows) * 100, 1);
+}
+if ((!empty($num_rows)) && (isset($num_rows_fail)) && (!empty($num_rows_data))) {
+ $numpassres = ($num_rows - $num_rows_data - $num_rows_fail);
+}
+if ((!empty($perfail)) && (!empty($perdata))) {
+ $perpass = round(100 - $perfail - $perdata, 1);
+}
+
+?>
+
+
+
\ No newline at end of file
diff --git a/public/userarea/include/sessionmanagement.php b/public/userarea/include/sessionmanagement.php
new file mode 100644
index 0000000..cca9a07
--- /dev/null
+++ b/public/userarea/include/sessionmanagement.php
@@ -0,0 +1,53 @@
+
+
+
\ No newline at end of file
diff --git a/public/userarea/products/bckproducts.php b/public/userarea/products/bckproducts.php
new file mode 100644
index 0000000..32c341b
--- /dev/null
+++ b/public/userarea/products/bckproducts.php
@@ -0,0 +1,227 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Products
+
Dahboard
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Ref. Number |
+ Description |
+ Ref. Number |
+ Description |
+ Test Out |
+ Rating |
+ Action |
+
+
+
+
+
+
+
+
+ setQuery("SELECT * FROM products");
+ $productslist->execute();
+
+ $wa_startindex = 0;
+ while (!$productslist->atEnd()) {
+ $wa_startindex = $productslist->Index;
+ ?>
+ | getColumnVal("products_refnumber")); ?> |
+ getColumnVal("products_description")); ?> |
+ getColumnVal("products_refnumber")); ?> |
+ getColumnVal("products_description")); ?> |
+ getColumnVal("reportsDateOut")); ?> |
+ getColumnVal("reportsRating")); ?> |
+
+
+
+
+
+ " role="button" data-toggle="tooltip" title="Go">
+ " role="button" data-toggle="tooltip" title="Expand">
+
+ |
+
+
+ moveNext();
+ }
+ $productslist->moveFirst(); //return RS to first record
+ unset($wa_startindex);
+ unset($wa_repeatcount);
+
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/userarea/products/get_analysis.php b/public/userarea/products/get_analysis.php
new file mode 100644
index 0000000..abcbc31
--- /dev/null
+++ b/public/userarea/products/get_analysis.php
@@ -0,0 +1,22 @@
+query($query);
+
+ $analysis = [];
+ while ($row = $result->fetch_assoc()) {
+ $analysis[] = $row;
+ }
+
+ echo json_encode($analysis);
+} else {
+ echo json_encode([]);
+}
diff --git a/public/userarea/products/get_reports.php b/public/userarea/products/get_reports.php
new file mode 100644
index 0000000..b0c9bb1
--- /dev/null
+++ b/public/userarea/products/get_reports.php
@@ -0,0 +1,15 @@
+query($query);
+
+$reports = [];
+while ($row = $result->fetch_assoc()) {
+ $reports[] = $row;
+}
+echo json_encode($reports);
diff --git a/public/userarea/products/get_reports_and_analysis.php b/public/userarea/products/get_reports_and_analysis.php
new file mode 100644
index 0000000..c2fd933
--- /dev/null
+++ b/public/userarea/products/get_reports_and_analysis.php
@@ -0,0 +1,71 @@
+query($queryReports);
+
+ $reports = [];
+ while ($report = $resultReports->fetch_assoc()) {
+ // Query per ottenere le analisi associate a ogni report con LEFT JOIN su analysisvocabulary
+ $reportId = $report['idreports'];
+ $queryAnalysis = "
+ SELECT rp.*, av.nameanalysisvoc
+ FROM result_project rp
+ LEFT JOIN analysisvocabulary av ON rp.result_TestName = av.idanalysisvocabulary
+ WHERE rp.idreports = $reportId";
+ $resultAnalysis = $conn->query($queryAnalysis);
+
+ // Mappa per aggregare i risultati delle analisi in base a 'result_TestName' e calcolare il peggior rating
+ $analysisGrouped = [];
+ while ($analysis = $resultAnalysis->fetch_assoc()) {
+ $testName = $analysis['nameanalysisvoc'];
+
+ // Normalizza il rating per confrontare varianti diverse
+ $normalizedRating = strtoupper(trim($analysis['test_Rating']));
+
+ // Gestiamo anche varianti come "Complies", "Doesn't Comply", "//" e "N/A"
+ if ($normalizedRating === 'P' || $normalizedRating === 'PASS' || $normalizedRating === 'COMPLIES') {
+ $normalizedRating = 'PASS';
+ } elseif ($normalizedRating === 'F' || $normalizedRating === 'FAIL' || $normalizedRating === 'DOESN\'T COMPLY') {
+ $normalizedRating = 'FAIL';
+ } elseif ($normalizedRating === '//' || $normalizedRating === 'N/A') {
+ $normalizedRating = '//';
+ } else {
+ $normalizedRating = 'N/A'; // Per valori non riconosciuti
+ }
+
+ // Se l'analisi per questo test è già stata trovata, confronta i rating e prendi il peggiore
+ if (isset($analysisGrouped[$testName])) {
+ $currentRating = $analysisGrouped[$testName]['finalRating'];
+ // Logica di priorità: Fail > // > Pass
+ if ($currentRating === 'PASS' && ($normalizedRating === 'FAIL' || $normalizedRating === '//')) {
+ $analysisGrouped[$testName]['finalRating'] = $normalizedRating;
+ } elseif ($currentRating === '//' && $normalizedRating === 'FAIL') {
+ $analysisGrouped[$testName]['finalRating'] = 'FAIL'; // Peggiora il rating
+ }
+ } else {
+ // Prima occorrenza dell'analisi, aggiungila alla mappa
+ $analysisGrouped[$testName] = [
+ 'name' => $testName,
+ 'finalRating' => $normalizedRating
+ ];
+ }
+ }
+
+ // Aggiungi le analisi raggruppate al report
+ $report['analysis'] = array_values($analysisGrouped); // Converte la mappa in un array
+ $reports[] = $report;
+ }
+
+ // Restituisci i report e le analisi in formato JSON
+ echo json_encode(['reports' => $reports]);
+} else {
+ echo json_encode(['error' => 'Product ID not provided']);
+}
diff --git a/public/userarea/products/products.php b/public/userarea/products/products.php
index 32c341b..8a397f6 100644
--- a/public/userarea/products/products.php
+++ b/public/userarea/products/products.php
@@ -1,6 +1,14 @@
-
+
+query($query);
?>
+
@@ -8,220 +16,241 @@
-
+ Products
-
+
+
-
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
Products
-
Dahboard
-
-
-
-
-
-
-
-
-
+
-
- | Ref. Number |
- Description |
- Ref. Number |
- Description |
- Test Out |
- Rating |
- Action |
-
-
-
-
-
+ Product Ref |
+ Description |
+ Style |
+ Color |
+ Season |
+ Market |
+ Action |
- setQuery("SELECT * FROM products");
- $productslist->execute();
-
- $wa_startindex = 0;
- while (!$productslist->atEnd()) {
- $wa_startindex = $productslist->Index;
- ?>
- | getColumnVal("products_refnumber")); ?> |
- getColumnVal("products_description")); ?> |
- getColumnVal("products_refnumber")); ?> |
- getColumnVal("products_description")); ?> |
- getColumnVal("reportsDateOut")); ?> |
- getColumnVal("reportsRating")); ?> |
-
-
-
-
+ fetch_assoc()) { ?>
+
+ |
+ |
+ |
+ |
+ |
+ |
- " role="button" data-toggle="tooltip" title="Go">
- " role="button" data-toggle="tooltip" title="Expand">
-
+
|
-
- moveNext();
- }
- $productslist->moveFirst(); //return RS to first record
- unset($wa_startindex);
- unset($wa_repeatcount);
-
- ?>
+
+
-
-
+
-
-
-
-
-
-
-
+
+
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-