fixed user dashboard for store owner (store settings, store reports)/ fixed login/register page/

This commit is contained in:
Frank John Begornia
2019-09-24 19:52:38 +08:00
parent 502b13e793
commit 83f0624f07
45 changed files with 17655 additions and 373 deletions

View File

@@ -41,7 +41,7 @@ class DesignerModel extends Model {
function selectDefaultTemplateColor($templateCode){
$pdo = DB::connection()->getPdo();
$query = $pdo->prepare("SELECT NULL AS RGBIndex, RGBColor AS default_Color FROM template_body_colors WHERE TemplateCode = '$templateCode' UNION SELECT TrimNumber, RGBColor AS default_Color FROM template_trim_colors WHERE TemplateCode = '$templateCode'");
$query = $pdo->prepare("SELECT NULL AS RGBIndex, RGBColor AS default_Color, DisplayName FROM template_body_colors WHERE TemplateCode = '$templateCode' UNION SELECT TrimNumber, RGBColor AS default_Color, DisplayName FROM template_trim_colors WHERE TemplateCode = '$templateCode'");
$query->execute();//$query->execute(array($bindings ));
// $row=$query->fetch(\PDO::FETCH_OBJ);
@@ -51,9 +51,11 @@ class DesignerModel extends Model {
}else{
$IndexName = $row->RGBIndex;
}
$arr_default_mainColor[] = array($IndexName => $row->default_Color);
$arr_default_mainColor[] = array(
$IndexName => $row->default_Color,
'h4_Trim_' . $IndexName => $row->DisplayName,
);
}
// var_dump($arr_default_mainColor);
return $arr_default_mainColor;
}