added edit visualizer

This commit is contained in:
franknstayn
2020-01-18 17:14:03 +08:00
parent ed4227bd05
commit 5e663d5891
5 changed files with 476 additions and 106 deletions

View File

@@ -367,6 +367,44 @@ class AdminModel extends Model
return $i;
}
function selectTemplatePath($tempCode){
$i = DB::table('template_paths')
->where("TemplateCode", $tempCode)
->get();
return $i;
}
function selectDefaultBodyColor($tempCode){
$i = DB::table('template_body_colors')
->where("TemplateCode", $tempCode)
->get();
return $i;
}
function selectDefaultTrimColor($tempCode){
$i = DB::table('template_trim_colors')
->where("TemplateCode", $tempCode)
->get();
return $i;
}
function updateDefaultBodyColor($tempCode, $data){
$i = DB::table('template_body_colors')
->where("TemplateCode", $tempCode)
->update($data);
return $i;
}
function updateVisualizerPath($id, $data){
$i = DB::table('template_paths')
->where("Id", $id)
->update($data);
return $i;
}
}