product listing

This commit is contained in:
CHIEFSOFT\ameye
2024-10-26 11:32:32 -04:00
parent 9a9d313cc7
commit a978096520
3 changed files with 52 additions and 44 deletions
@@ -1,47 +1,46 @@
<?php
$product_array = [
[
"name" => "Personal Website",
"description" => "Product description here",
"status" => 0,
"product" => 'A000001'
],
[
"name" => "Professional Website",
"description" => "Product description here",
"status" => 0,
"product" => 'A000002'
],
[
"name" => "Personal Blog",
"description" => "Product description here",
"status" => 0,
"product" => 'A000003'
],
[
"name" => "Professional Blog",
"description" => "Product description here",
"status" => 0,
"product" => 'A000004'
],
[
"name" => "Practice EMR",
"description" => "Product description here",
"status" => 0,
"product" => 'A000005'
]
];
//$product_array = [
// [
// "name" => "Personal Website",
// "description" => "Product description here",
// "status" => 0,
// "product" => 'A000001'
// ],
// [
// "name" => "Professional Website",
// "description" => "Product description here",
// "status" => 0,
// "product" => 'A000002'
// ],
// [
// "name" => "Personal Blog",
// "description" => "Product description here",
// "status" => 0,
// "product" => 'A000003'
// ],
// [
// "name" => "Professional Blog",
// "description" => "Product description here",
// "status" => 0,
// "product" => 'A000004'
// ],
// [
// "name" => "Practice EMR",
// "description" => "Product description here",
// "status" => 0,
// "product" => 'A000005'
// ]
//];
?>
<div class="row">
<?php
//for ($i=0; $i<5; $i++)
foreach ($product_array as $row)
{
?>
<div class="col-lg-6 col-xxl-6 m-b-30" style=" min-width: 200px;">
<div style="padding: 2px; border-radius: 10px;">
<a href="/product/<?=$row['product']?>">
<a href="/product/<?=$row['product_id']?>">
<div class="card card-statistics h-25 mb-0" style="background-color: aliceblue;">
<div class="card-header d-flex justify-content-between">
<div class="card-heading" style="padding: 1px;">