update designer with sleeves and all over print

This commit is contained in:
Frank John Begornia
2019-06-03 18:00:37 +08:00
parent 30962d3b4e
commit 03f9649f9b
7 changed files with 598 additions and 210 deletions

View File

@@ -382,9 +382,9 @@ class DesignerController extends Controller {
<div class="row">
<div class="form-group col-md-12">
<button class="btn btn-sm btn-default pull-right addMarginLeft" id="btn-close-clipart-properties" title="Close Clipart Properties"><i class="fa fa-remove" aria-hidden="true"></i> Close</button>
<button type="button" class="btn btn-danger pull-right btn-sm remove addMarginLeft" title="Remove object"><i class="fa fa-trash" aria-hidden="true"></i></button>
<!-- <button type="button" class="btn btn-danger pull-right btn-sm remove addMarginLeft" title="Remove object"><i class="fa fa-trash" aria-hidden="true"></i></button> -->
<!-- <button type="button" class="btn btn-danger pull-right btn-sm addMarginLeft pasteObject" title="Paste object(s)"><i class="fa fa-paste" aria-hidden="true"></i></button> -->
<button type="button" class="btn btn-danger pull-right btn-sm addMarginLeft copyObject" title="Duplicate object"><i class="fa fa-copy" aria-hidden="true"></i></button>
<!-- <button type="button" class="btn btn-danger pull-right btn-sm addMarginLeft copyObject" title="Duplicate object"><i class="fa fa-copy" aria-hidden="true"></i></button> -->
</div>
</div>
@@ -442,9 +442,13 @@ class DesignerController extends Controller {
<!-- <button class="btn btn-sm btn-default " style="margin:2px;" onclick="centerOnly();">Center</button>
<button class="btn btn-sm btn-default" style="margin:2px;" onclick="centerVer();"> <img src="images/align-v1.png" height="16px;" /> Center Vertical</button>
<button class="btn btn-sm btn-default" style="margin:2px;" onclick="centerHor();" > <img src="images/align-h1.png" height="16px;" /> Center Horizontal</button> -->
<button class="btn btn-sm btn-default btn-send-middle" style="margin:2px;" onclick="centerOnly();"></button>
<!-- <button class="btn btn-sm btn-default btn-send-middle" style="margin:2px;" onclick="centerOnly();"></button>
<button class="btn btn-sm btn-default center-vertical" style="margin:2px;" onclick="centerVer();"></button>
<button class="btn btn-sm btn-default center-horizontal" style="margin:2px;" onclick="centerHor();" ></button>
<button class="btn btn-sm btn-default center-horizontal" style="margin:2px;" onclick="centerHor();" ></button> -->
<button class="btn btn-sm btn-default" style="min-width:35px;" title="Center Vertical" onclick="centerVer();"><i class="fa fa-arrows-v"></i></button>
<button class="btn btn-sm btn-default" style="min-width:35px;" title="Center Horizontal" onclick="centerHor();" ><i class="fa fa-arrows-h"></i></button>
<button class="btn btn-sm btn-default flip-vertically" style="min-width:35px;" title="Flip Vertically"><i class="fa fa-angle-double-up"></i></button>
<button class="btn btn-sm btn-default flip-horizontally" style="min-width:35px;" title="Flip Horizontally"><i class="fa fa-angle-double-right"></i></button>
</div>
</div>
@@ -462,49 +466,49 @@ class DesignerController extends Controller {
$getTemPlateCode = $tempDecode[0]->templateCode;
$designCode = sha1(time() . "-" .date('ymd'));
if(isset($post['json_Jersey_Front'])){
$json_Jersey_Front = $post['json_Jersey_Front'];
if(isset($post['json_Front'])){
$json_Front = $post['json_Front'];
}else{
$json_Jersey_Front = null;
$json_Front = null;
}
if(isset($post['json_Jersey_Back'])){
$json_Jersey_Back = $post['json_Jersey_Back'];
if(isset($post['json_Back'])){
$json_Back = $post['json_Back'];
}else{
$json_Jersey_Back = null;
$json_Back = null;
}
if(isset($post['json_Shorts_Left'])){
$json_Shorts_Left = $post['json_Shorts_Left'];
if(isset($post['json_Left'])){
$json_Left = $post['json_Left'];
}else{
$json_Shorts_Left = null;
$json_Left = null;
}
if(isset($post['json_Shorts_Right'])){
$json_Shorts_Right = $post['json_Shorts_Right'];
if(isset($post['json_Right'])){
$json_Right = $post['json_Right'];
}else{
$json_Shorts_Right = null;
$json_Right = null;
}
if(isset($post['json_Shirts_Front'])){
$json_Jersey_Front = $post['json_Shirts_Front'];
}
// if(isset($post['json_Shirts_Front'])){
// $json_Jersey_Front = $post['json_Shirts_Front'];
// }
if(isset($post['json_Shirts_Back'])){
$json_Jersey_Back = $post['json_Shirts_Back'];
}
// if(isset($post['json_Shirts_Back'])){
// $json_Jersey_Back = $post['json_Shirts_Back'];
// }
try {
$design_info = array(
'ClientId' => $clientId,
'DesignName' => $design_name,
'TemplateCode' => $getTemPlateCode,
'DesignCode' => $designCode,
'TemplateDesign' => $post['templateDetails'],
'ContentFrontJersey' => $json_Jersey_Front,
'ContentBackJersey' => $json_Jersey_Back,
'ContentLeftShorts' => $json_Shorts_Left,
'ContentRightShorts' => $json_Shorts_Right
'ClientId' => $clientId,
'DesignName' => $design_name,
'TemplateCode' => $getTemPlateCode,
'DesignCode' => $designCode,
'TemplateDesign'=> $post['templateDetails'],
'ContentFront' => $json_Front,
'ContentBack' => $json_Back,
'ContentLeft' => $json_Left,
'ContentRight' => $json_Right
);
}
@@ -547,12 +551,15 @@ class DesignerController extends Controller {
// var_dump($this->getProductCode());
$templatepaths_arrays = $newDesignerModel->selectTemplatePathsByTemplateCode($client_design_array[0]->TemplateCode);
$array_cat_name = $newMainModel->selectCategoryName($client_design_array[0]->TemplateCode);
// var_dump($array_cat_name);
$array_cat_name = $newMainModel->selectCategoryName($client_design_array[0]->TemplateCode);
$array_templates = $newDesignerModel->selectTemplate(md5($client_design_array[0]->TemplateCode));
// var_dump($array_templates);
return view('designer.design_preview')
->with('client_design_array', $client_design_array)
->with('templatepaths_arrays', $templatepaths_arrays)
->with('teamstore_array', $teamstore_array)
->with('array_cat_name', $array_cat_name);
->with('array_cat_name', $array_cat_name)
->with('array_templates', $array_templates);
}
protected function getProductCode()