added edit visualizer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user