4_15_2019 update

This commit is contained in:
Frank John Begornia
2019-04-15 22:38:53 +08:00
parent 0fe1270756
commit c5862dfbf4
665 changed files with 401297 additions and 194 deletions

View File

@@ -67,7 +67,14 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
<script>
$(document).ready(function(){
$(document).ready(function(){
// console.log($('.data-errors').length);
if($('.data-errors').length > 0){
$('#team-store-login').modal('show')
return false;
}
$("#frm-login").validate({
rules: {
email: {
@@ -120,6 +127,13 @@
submitHandler: submitRegisterForm
});
$('.password-protected').click(function(){
$('#team-store-login').modal('show')
return false;
});
}); // end document ready
function submitLoginForm (){

View File

@@ -34,7 +34,7 @@
.carousel-inner>.item>a>img, .carousel-inner>.item>img, .img-thumb-custom, .thumbnail a>img, .thumbnail>img{
margin: 0 auto;
height: 232px;
height: 418.53px;
}
.panel-design-details{
@@ -78,7 +78,7 @@
<div class="container">
<div class="row">
<div class="col-md-7 col-sm-7 col-xs-12">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">
<h4>My Design
@@ -95,10 +95,16 @@
</div>
@endforeach
</div>
<div class="panel-footer">
<div id="dd_footer_button">
<a href="{{ url('user/my-designs') }}" type="button" class="btn btn-default pull-right"><i class="fa fa-arrow-left"></i> Go to My Designs</a>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<!-- {{ Auth::user()->role }} -->
<div class="col-md-5 col-sm-5 col-xs-12">
<!-- <div class="col-md-5 col-sm-5 col-xs-12">
<form id="frm-roster">
<div class="panel panel-default">
<div class="panel-heading">
@@ -131,12 +137,11 @@
<div id="dd_footer_button">
<a href="{{ url('user/my-designs') }}" type="button" class="btn btn-default pull-right"><i class="fa fa-arrow-left"></i> Go to My Designs</a>
</div>
<!-- <button type="button" class="btn btn-default pull-right" style="margin-left: 5px;">Cancel</button> -->
<div class="clearfix"></div>
</div>
</div>
</form>
</div>
</div> -->
</div>
</div>
</div>
@@ -350,7 +355,7 @@
$.ajax({ //create an ajax request to load_page.php
type: "GET",
url: "http://"+ip+":"+port+"/tb/{{ $client_design_array[0]->DesignCode }}",
url: ip+":"+port+"/tb/{{ $client_design_array[0]->DesignCode }}",
dataType: "jsonp", //expect html to be returned
beforeSend: function() {
console.log('loading images');

View File

@@ -893,7 +893,7 @@
var type = SideAndPath[i]['Type'];
var contentName = "content_" + type + "_" + sideName;
//console.log(canvasName);
console.log(canvasName);
contentName = JSON.stringify(window['canvas_' + type + '_' + sideName].toObject(['idNumber', 'id'])); // = new fabric.Canvas(canvasName);
//console.log(contentName);

View File

@@ -352,42 +352,42 @@
<tr>
<td>
<h3 class="align-center"><b>Order Details</b></h3>
<table class="table table-condensed table-bordered" style="width: 100%; border-collapse: collapse; ">
<tr >
<td class="text-center" colspan="2"><b>Payer Information</b></td>
</tr>
<tr>
<td class="col-md-3">Payer Name</td>
<td>{{ $array_payment_details[0]->Payer_Firstname . ' ' . $array_payment_details[0]->Payer_Lastname }}</td>
</tr>
<tr>
<td class="col-md-3">Payer Email Address</td>
<td>{{ $array_payment_details[0]->Payer_Email }}</td>
</tr>
<tr>
<td class="col-md-3">Payment Method</td>
<td>{{ $array_payment_details[0]->PaymentMethod }}</td>
</tr>
<tr >
<td class="text-center" colspan="2"><b>Transaction Information</b></td>
</tr>
<tr>
<td class="col-md-3">Subtotal</td>
<td>{{ $array_payment_details[0]->SubTotal . ' ' . $array_payment_details[0]->Currency }}</td>
</tr>
<tr>
<td class="col-md-3">Tax</td>
<td>{{ $array_payment_details[0]->Tax . ' ' . $array_payment_details[0]->Currency }}</td>
</tr>
<tr>
<td class="col-md-3">Total</td>
<td>{{ $array_payment_details[0]->Total . ' ' . $array_payment_details[0]->Currency }}</td>
</tr>
<table class="table table-condensed table-bordered" style="width: 100%; border-collapse: collapse; ">
<tr >
<td class="text-center" colspan="2"><b>Payer Information</b></td>
</tr>
<tr>
<td class="col-md-3">Invoice #</td>
<td>{{ $array_payment_details[0]->InvoiceNumber }}</td>
</tr>
</table>
<td class="col-md-3">Payer Name</td>
<td>{{ $array_payment_details[0]->Payer_Firstname . ' ' . $array_payment_details[0]->Payer_Lastname }}</td>
</tr>
<tr>
<td class="col-md-3">Payer Email Address</td>
<td>{{ $array_payment_details[0]->Payer_Email }}</td>
</tr>
<tr>
<td class="col-md-3">Payment Method</td>
<td>{{ $array_payment_details[0]->PaymentMethod }}</td>
</tr>
<tr >
<td class="text-center" colspan="2"><b>Transaction Information</b></td>
</tr>
<tr>
<td class="col-md-3">Subtotal</td>
<td>{{ $array_payment_details[0]->SubTotal . ' ' . $array_payment_details[0]->Currency }}</td>
</tr>
<tr>
<td class="col-md-3">Tax</td>
<td>{{ $array_payment_details[0]->Tax . ' ' . $array_payment_details[0]->Currency }}</td>
</tr>
<tr>
<td class="col-md-3">Total</td>
<td>{{ $array_payment_details[0]->Total . ' ' . $array_payment_details[0]->Currency }}</td>
</tr>
<tr>
<td class="col-md-3">Invoice #</td>
<td>{{ $array_payment_details[0]->InvoiceNumber }}</td>
</tr>
</table>
<br>
<p>Item Order(s):</p>
@foreach($item_goup_array as $item)
@@ -398,7 +398,7 @@
<td align="left">
@foreach($img_thumb as $img)
@if($img->ProductId == $item->ProductId)
<img style="height: 200px; overflow: hidden; object-fit: contain;" src="http://{{ config('site_config.prod_private_server_ip') }}/images/{{ $img->Image }}">
<img style="height: 200px; overflow: hidden; object-fit: contain;" src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $img->Image }}">
@endif
@endforeach
</td>
@@ -481,7 +481,6 @@
<tr>
<td>{{ $sub_item->Price }}</td>
<td>{{ $sub_item->Quantity }}</td>
</tr>
@elseif($item->FormUsed=="name-number-form")
<tr>
@@ -534,7 +533,7 @@
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="content-block">
<span class="apple-link">Copyright &copy 2019 <a href="https://crewsportswear.com">crewsportswear.com. All rights reserved.</a></span>
<span class="apple-link">Copyright &copy 2019 <a href="https://crewsportswear.com">crewsportswear.com</a>. All rights reserved.</span>
</td>
</tr>
</table>

View File

@@ -11,11 +11,11 @@
<meta name="csrf_token" content="{{ csrf_token() }}" />
<meta name="company_url" content="{{ $store_array[0]->StoreUrl }}" />
<meta property="og:url" content="http://uniformnetwork.com/crew/" />
<meta property="og:url" content="https://crewsportswear.com" />
<meta property="og:type" content="article" />
<meta property="og:title" content="CREW Uniform Customizer" />
<meta property="og:description" content="Custom Uniforms offered in a variety colors to match your team. Browse through our baseball, fastpitch, softball, lacrosse, football, volleyball and basketball gear." />
<meta property="og:image" content="{{asset('public/images/fb-share-logo.png')}}" />
<meta property="og:image" content="{{asset('public/images/logo.png')}}" />
<!-- favicons
<link rel="apple-touch-icon" sizes="180x180" href="{{asset('public/favicons/apple-touch-icon.png')}}">
@@ -51,7 +51,7 @@
<!-- Social Media Share button
<script type="text/javascript" src="//platform-api.sharethis.com/js/sharethis.js#property=599bc5cf6d61950012975405&product=sticky-share-buttons"></script>-->
<link href="{{asset('/public/designer/css/build.css')}}" rel="stylesheet">
<link href="{{asset('/public/designer/css/build.css')}}" rel="stylesheet">
<style>
</style>
@@ -73,14 +73,21 @@
<!-- <script type="text/javascript" src="https://cdn.ywxi.net/js/1.js" async></script> -->
<!-- <script src="{{asset('public/assets/js/crew-designer.js')}}"></script> -->
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<!-- jquery.bcSwipe -->
<script src="{{asset('public/assets/js/jquery.bcSwipe.min.js')}}"></script>
<script src="{{asset('public/assets/js/jquery.zoom.js')}}"></script>
<script>
$(document).ready(function() {
myCart();
// $('.img-zoom').zoom();
$('.inputName').keyup(function() {
this.value = this.value.toLocaleUpperCase();
});
$('.carousel').bcSwipe({ threshold: 50 });
$('.btn-number').click(function(e){
e.preventDefault();
@@ -225,7 +232,7 @@
$('#display-product-price').html('$ ' + $('#product_price').val());
}
});
// $(document).on('change', '#product_price', function() {
// var product_price = $('#product_price').val();
// $('#display-product-price').html('$ ' + product_price);

View File

@@ -23,8 +23,7 @@
<input type="hidden" name="template_code" id="template_code" value="{{ $product_array[0]->TemplateCode }}">
<input type="hidden" name="store_url" id="store_url" value="{{ $store_array[0]->StoreUrl }}">
<input type="hidden" name="store_id" id="store_id" value="{{ $store_array[0]->Id }}">
<div class="panel-design-details" id="orderListPanel">
<table class="table" id="tableRow" style="font-size:12px;">
<thead>

View File

@@ -0,0 +1,100 @@
<style>
tbody#orderTableBody>tr>td {
padding: 0px !important;
}
.panel-design-details{
max-height: 300px;
overflow: auto;
}
</style>
<div class="panel panel-default">
<div class="panel-heading">
<!-- <h1>{{ $product_array[0]->ProductName }} <small id="display-product-price">$ {{ $product_array[0]->ProductPrice }} </small></h1> -->
<h1>{{ $product_array[0]->ProductName }} <p class="price"><small>$ {{ $product_array[0]->ProductPrice }}</small></p></h1>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<form id="frm-order-list">
<input type="hidden" value="1" id="orderCounterValue" name="orderCounterValue" />
<input type="hidden" value="{{ $product_array[0]->Id }}" id="product_id" name="product_id" />
<input type="hidden" name="product_price" id="product_price" value="{{ $product_array[0]->ProductPrice }}">
<input type="hidden" name="price_holder" id="price_holder" value="{{ $product_array[0]->ProductPrice }}">
<input type="hidden" name="template_code" id="template_code" value="{{ $product_array[0]->TemplateCode }}">
<input type="hidden" name="store_url" id="store_url" value="{{ $store_array[0]->StoreUrl }}">
<input type="hidden" name="store_id" id="store_id" value="{{ $store_array[0]->Id }}">
<div class="panel-design-details" id="orderListPanel">
<table class="table" id="tableRow" style="font-size:12px;">
<thead>
<tr>
<!-- <th>#</th> -->
<th class="col-md-5">Name</th>
<th class="col-md-3">Number</th>
<th class="col-md-3">Size</th>
<th class="text-center"></th>
</tr>
</thead>
<tbody id="orderTableBody">
<tr class="table-tr-1">
<td>
<input type="text" name="order_names[]" id="order_names" class="form-control input-sm inputName roster-input" placeholder="Name">
</td>
<td>
<!-- <input type="text" name="order_numbers[]" id="order_numbers" class="form-control input-sm inputName" placeholder="Number"> -->
<select class="form-control input-sm roster-input" name="order_number[]" id="order_number">
<option value="none">none</option>
@for($i = 0; $i <= 99; $i++)
<option value="{{ $i }}">{{ $i }}</option>
@endfor
<option value="00">00</option>
</select>
</td>
<td>
<select class="form-control input-sm order-size roster-input" name="order_size[]" id="order_jersey_size_1" data-row-number="1">
@foreach($sizes_array as $size)
<option value="{{ $size->Size }}">{{ $size->Size }}</option>
@endforeach
</select>
</td>
<td id="action-column" class="text-center" style="padding: 4px !important; border-top: none">
<span class="tr-remove-btn">
<button type="button" id="addNewRow_name_number_size" class="btn btn-success btn-sm btn-roster-action" data-toggle="tooltip" title="Add Another"><i class="fa fa-plus" aria-hidden="true"></i></button>
</span>
</td>
</tr>
</tbody>
</table>
</div>
<!-- <hr class="hr-design"> -->
<div id="displayqty"></div>
<br>
<button class="btn btn-primary pull-right" type="submit" id="btn-add-to-cart"><span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span> Add to Cart</button>
</form>
</div>
</div>
<div class="spacer-top"></div>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#productDescription" aria-controls="productDescription" role="tab" data-toggle="tab">Desciption</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="productDescription">
<div class="row">
<div class="col-md-12">
<p>
{{ $product_array[0]->ProductDescription }}
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -142,7 +142,7 @@
<div class="col-md-3 col-sm-6">
<span class="thumbnail">
<a href="{{ url('teamstore') }}/{{ $store_array[0]->StoreUrl }}/product/{{ $product->ProductURL }}">
<img style="height: 201.84px;" src="http://{{ config('site_config.prod_private_server_ip') }}/images/{{ $filename }}" alt="{{ $product->ProductName }}" >
<img style="height: 201.84px;" src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $filename }}" alt="{{ $product->ProductName }}" >
</a>
<h4 class="text-center">{{ $product->ProductName }}</h4>
<!-- (w/ Shorts) -->

View File

@@ -169,6 +169,31 @@
.carousel-control.left {
margin-left: 0px;
}
/* .edge-text { position:absolute; top:3px; right:28px; color:#555; font:bold 13px/1 sans-serif;} */
/* these styles are for the demo, but are not required for the plugin */
.zoom {
display:inline-block;
position: relative;
}
/* magnifying glass icon */
.zoom:after {
content:'';
display:block;
width:33px;
height:33px;
position:absolute;
top:0;
right:0;
/* background:url("{{asset('public/images/icon.png') }}"); */
}
.zoom img {
display: block;
}
.zoom img::selection { background-color: transparent; }
</style>
<div class="container">
@@ -201,15 +226,19 @@
@endif -->
@if($thumbnail->ImageClass == 'active')
<div class="active item" data-slide-number="{{ $i }}">
<img style="height:400px;" src="http://{{ config('site_config.prod_private_server_ip') }}/images/{{ $thumbnail->Image }}">
<div class="active item text-center" data-slide-number="{{ $i }}">
<span class="zoom img-zoom">
<img style="height:400px;" src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $thumbnail->Image }}">
<!-- <p class="edge-text">Click to zoom <i class="fa fa-search-plus"></i></p> -->
</span>
</div>
@else
<div class="item" data-slide-number="{{ $i }}">
<img style="height:400px;" src="http://{{ config('site_config.prod_private_server_ip') }}/images/{{ $thumbnail->Image }}">
<div class="item text-center" data-slide-number="{{ $i }}">
<span class="zoom img-zoom">
<img style="height:400px;" src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $thumbnail->Image }}">
</span>
</div>
@endif
@define $i++
@endforeach
</div>
@@ -234,7 +263,7 @@
@foreach($thumbnails_array as $thumbnail)
<li class="col-sm-3 col-xs-3">
<a class="thumbnail a_thumbnail {{ $thumbnail->ImageClass }}" id="carousel-selector-{{ $j }}">
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="http://{{ config('site_config.prod_private_server_ip') }}/images/{{ $thumbnail->Image }}"/>
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $thumbnail->Image }}"/>
</a>
</li>
@define $j++

View File

@@ -44,11 +44,18 @@
@foreach ($stores_array as $store)
<li class="li-custom col-lg-3 col-md-3 col-sm-4 col-xs-12">
<div style="border: 1px solid #dddddd;">
<a class="thumbnail" href="{{ url('teamstore') . '/' . $store->StoreUrl }}">
<img class="store-logo" src="{{asset('public/images/teamstore') . '/' . $store->StoreUrl . '/' . $store->StoreLogo }}">
</a>
<h4 style="border-top: 1px solid #dddddd; padding: 10px;" class="text-center">{{ $store->StoreName }}</h4>
<div style="border: 1px solid #dddddd; padding: 5px;">
@if($store->Password != null )
<a class="thumbnail password-protected" href="#" data-store-url="{{ $store->StoreUrl }}">
<img class="store-logo" src="{{asset('public/images/teamstore') . '/' . $store->StoreUrl . '/' . $store->StoreLogo }}">
</a>
<h4 style="border-top: 1px solid #dddddd; padding: 10px;" class="text-center">{{ $store->StoreName }} <i class="fa fa-lock" title="This store is password protected."></i></h4>
@else
<a class="thumbnail" href="{{ url('teamstore') . '/' . $store->StoreUrl }}">
<img class="store-logo" src="{{asset('public/images/teamstore') . '/' . $store->StoreUrl . '/' . $store->StoreLogo }}">
</a>
<h4 style="border-top: 1px solid #dddddd; padding: 10px;" class="text-center">{{ $store->StoreName }}</h4>
@endif
</div>
</li>
@endforeach
@@ -57,4 +64,45 @@
</div><!-- /col -->
</div><!-- /row -->
</div><!-- /container -->
<div id="team-store-login" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title">Teamstore Login</h4>
</div>
<div class="modal-body">
@if (\Session::has('errors'))
<div class="alert alert-danger data-errors">
<strong>Whoops!</strong> {!! \Session::get('errors') !!}.<br><br>
</div>
@endif
<form class="form-horizontal" role="form" method="POST" action="{{ url('teamstore/checkpassword') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="form-group">
<label class="col-md-4 control-label">Password</label>
<div class="col-md-6">
<input type="password" class="form-control" name="password">
</div>
</div>
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary btn-block">Login</button>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
@endsection

View File

@@ -25,15 +25,18 @@
@foreach($array_client_designs as $row)
<div class="col-md-3 col-sm-6">
<span class="thumbnail">
<img src="http://{{ config('site_config.prod_private_server_ip') }}/images/{{ $row->DesignCode }}-front-thumbnail.png" alt="{{ $row->DesignName }}" >
<img src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $row->DesignCode }}-front-thumbnail.png" alt="{{ $row->DesignName }}" >
<h4>{{ $row->DesignName }}</h4>
<small>{{ date('F j, Y g:i a', strtotime($row->DateCreated)) }}</small>
<hr class="line">
<div class="row">
<div class="col-md-12 col-sm-12">
<a href="{{ url('/') }}/{{ Request::path() }}/view/{{ $row->DesignCode }} " class="btn btn-warning btn-xs"><i class="fa fa-eye"></i> View</a>
<a href="{{ url('designer/edit') }}/{{ $row->DesignCode }}" class="btn btn-default btn-xs"><i class="fa fa-edit"></i> Edit Design</a>
<!-- <a href="{{ url('designer/edit') }}/{{ $row->DesignCode }}" class="btn btn-default btn-xs"><i class="fa fa-edit"></i> Edit Design</a> -->
<a href="{{ url('designer/preview') }}/{{ $row->DesignCode }}" class="btn btn-primary btn-xs"><i class="fa fa-shopping-cart"></i> Buy</a>
@if(Auth::user()->role == "store_owner")
<a href="{{ url('user/my-designs/sell-design/' . $row->DesignCode) }}" class="btn btn-success btn-xs"><i class="fa fa-usd"></i> Sell</a>
@endif
</div>
</div>
</span>

View File

@@ -85,7 +85,7 @@
<div class="text-center">
@foreach($img_thumb as $img)
@if($img->ProductId == $item->ProductId)
<img class="previewImage" src="http://{{ config('site_config.prod_private_server_ip') }}/images/{{ $img->Image }}">
<img class="previewImage" src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $img->Image }}">
@endif
@endforeach
@@ -111,7 +111,6 @@
<th>Size</th>
<th>Price</th>
<th>Quantity</th>
</tr>
@elseif($item->FormUsed=="quantity-form")

View File

@@ -0,0 +1,162 @@
@extends('user-layouts.user_template')
@section('content')
<style>
.hide-bullets {
list-style:none;
margin-left: -40px;
margin-top:20px;
}
</style>
<div class="content-wrapper" style="min-height: 916px;">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
My Designs
<small>{{ $array_client_designs[0]->DesignName }}</small>
</h1>
<ol class="breadcrumb">
<li><a href="{{ url('user') }}"><i class="fa fa-home"></i> Home</a></li>
<li><a href="{{ url('user/my-designs') }}"><i class="fa fa-th-list"></i> My Designs</a></li>
<li class="active">{{ $array_client_designs[0]->DesignName }} </li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-7">
<div class="box box-primary">
<div class="box-header with-border">
<!-- <a href="{{ url('designer/edit') }}/{{ $array_client_designs[0]->DesignCode }}" type="button" class="btn btn-default pull-right" style="margin-left: 5px;"><i class="fa fa-edit"></i> Edit Design</a>
<button type="button" data-dd="{{ $array_client_designs[0]->DesignCode }}" data-port="{{ $array_cat_name[0]->Port }}" class="btn btn-warning pull-right" id="btn-reload-thumbnails"><i class="fa fa-refresh"></i> Reload Image Thumbnails</button> -->
<h3 class="box-title">
Sell this Design
</h3>
</div>
<div class="box-body custom-box-body">
<div class="row">
<div class="col-md-12">
<div class="thumb-content">
<div class="row">
<div class="col-md-12 text-center">
@foreach($array_client_designs as $row)
@foreach($array_template_paths as $key => $row1)
@if($key == 0)
<img src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $row->DesignCode }}-front-thumbnail.png" alt="{{ $row->DesignName }}" id="main-thumbnail" class="img img-responsive">
@endif
@endforeach
@endforeach
</div>
</div>
<div class="row">
<div class="col-md-12">
<ul class="hide-bullets">
@foreach($array_client_designs as $row)
@foreach($array_template_paths as $key => $row1)
@if($key == 0)
<li class="col-sm-3 col-xs-3">
<a class="thumbnail a_thumbnail active">
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $row->DesignCode }}-front-thumbnail.png"/>
</a>
<!-- <p>Select Default Thumbnail:</p>
<div class="text-center">
<input type="radio" name="active_thumbnail" value="{{ $row1->Side }}" checked>
</div> -->
</li>
@else
<li class="col-sm-3 col-xs-3">
<a class="thumbnail a_thumbnail">
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $row->DesignCode }}-{{ strtolower($row1->Side) }}-thumbnail.png"/>
</a>
<!-- <p>&nbsp;</p>
<div class="text-center">
<input type="radio" name="active_thumbnail" value="{{ $row1->Side }}" >
</div> -->
</li>
@endif
@endforeach
@endforeach
</ul>
</div>
</div>
</div>
</div>
<!-- <div class="col-md-5">
asdasdadadsaad
</div> -->
</div>
</div>
</div>
</div>
<div class="col-md-5">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">
Design Details
</h3>
</div>
<form id="frm_sell_design">
<input type="hidden" name="templateCode" class="form-control" value="{{ $array_client_designs[0]->TemplateCode }}">
<input type="hidden" name="designCode" class="form-control" value="{{ $array_client_designs[0]->DesignCode }}">
<div class="box-body custom-box-body">
<div class="row">
<div class="col-md-12">
<!-- <input type="hidden" class="form-control" name="item_url" placeholder="Item Name"> -->
<div class="form-group">
<div id="sell-design-response-msg"></div>
</div>
<div class="form-group">
<label>Item Name</label>
<input type="text" class="form-control" id="itemName" name="itemName" placeholder="Item Name">
</div>
<div class="form-group">
<label>Item Desription</label>
<textarea class="form-control" name="itemDescription"></textarea>
</div>
<div class="form-group">
<label>Item Price</label>
<input id="item_price" name="itemPrice" class="form-control price_format" type="text" data-error="#err-price" />
</div>
<div class="form-group">
<label>Item Form</label>
<select class="form-control" name="itemForm">
<option value="jersey-and-shorts-form">Jersey and Shorts Form</option>
<option value="tshirt-form">T-Shirt Form</option>
<option value="quantity-form">Quantity Form</option>
<option value="name-and-number-form">Name and Number Form</option>
<option value="name-number-size-form">Name, Number and Size Form</option>
<option value="number-form">Number Only Form</option>
</select>
</div>
<div class="form-group">
<label>Item URL</label>
<div class="input-group">
<span class="input-group-addon" id="basic-addon3">{{ url() . "/teamstore/" . $store_array[0]->StoreUrl . '/'}}</span>
<input type="text" class="form-control" id="product_url" name="itemUrl" aria-describedby="basic-addon3" data-error="#err-itemUrl" >
</div>
<span id="err-itemUrl"></span>
</div>
<div class="form-group">
<label>Item Privacy</label>
<select class="form-control" name="itemPrivacy">
<option value="private">Private</option>
<option value="public">Public</option>
</select>
</div>
</div>
</div>
</div>
<div class="box-footer">
<!-- <button type="submit" class="btn btn-default">Cancel</button> -->
<button type="submit" class="btn btn-primary pull-right">Submit</button>
</div>
</form>
</div>
</div>
</div>
</section>
<!-- /.content -->
</div>
@endsection

View File

@@ -57,7 +57,7 @@
</a>
<ul class="treeview-menu" style="">
<li>
<a href="{{ url('user/store') }}"><i class="fa fa-globe"></i> Store</a>
<a href="{{ url('user/store') }}"><i class="fa fa-globe"></i> My Store</a>
</li>
<li class="{{ Request::is('user/store-items') ? 'active' : '' }}">
<a href="{{ url('user/store-items') }}"><i class="fa fa-th"></i> Store Items</a>

View File

@@ -1,5 +1,10 @@
@extends('user-layouts.user_template')
@section('content')
<style>
.badge-error {
background-color: #b94a48;
}
</style>
<div class="content-wrapper" style="min-height: 916px;">
<!-- Content Header (Page header) -->
<section class="content-header">
@@ -41,15 +46,17 @@
<div class="col-md-3 col-sm-6">
<span class="thumbnail">
<img src="http://{{ config('site_config.prod_private_server_ip') }}/images/{{ $filename }}" alt="{{ $product->ProductName }}" >
<img src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $filename }}" alt="{{ $product->ProductName }}" >
<hr class="line">
<h4>{{ $product->ProductName }}</h4>
<div class="pull-right">
<div style="text-transform: uppercase;" class="badge @if($product->PrivacyStatus== 'private') badge-error @endif">{{ $product->PrivacyStatus }}</div>
</div>
<h4>{{ $product->ProductName }} <br><small>$ {{ $product->ProductPrice }}</small></h4>
<hr class="line">
<div class="row">
<div class="col-md-12 col-sm-12">
<a href="{{ url('user/store-items/item') }}/{{ $product->ProductURL }}" class="btn btn-success" > View Details</a>
</div>
</div>
</span>
</div>

View File

@@ -706,6 +706,44 @@
submitHandler: submitFormVerificationCode
});
$("#frm_sell_design").validate({
rules: {
itemName: {
required: true
},
itemDescription: {
required: true
},
itemPrice: {
required: true
},
itemForm: {
required: true
},
itemUrl: {
required: true
},
itemPrivacy: {
required: true
},
},
messages: {},
errorPlacement: function(error, element) {
var placement = $(element).data('error');
if (placement) {
$(placement).append(error)
}else {
error.insertAfter(element);
}
},
submitHandler: submitSellDesignForm
});
$(document).on('button click', '#chk-currentpass', function(){
if($(this).is(':checked')){
@@ -793,9 +831,6 @@
});
$('.image-thumbnails').click(function(){
// console.log($(this)[0].firstElementChild.geAttribute('class'))
// console.log($(this).attr('src'))
@@ -832,6 +867,13 @@
});
$("#itemName").on('keyup',function(){
var getsportName = $(this).val();
getsportName = getsportName.replace(/\s+/g, '-').toLowerCase(); //new object assigned to var str
$("#product_url").val(getsportName);
});
});
// function
@@ -1081,7 +1123,36 @@
}, 1000);
}
}
function submitSellDesignForm(){
var data = $("#frm_sell_design").serialize();
$.ajax({
type : 'POST',
url : "{{ url('user/my-designs/addstoreitem') }}",
data : data,
dataType: 'json',
beforeSend:function(xhr){
var token = $('meta[name="csrf_token"]').attr('content');
if (token) {
return xhr.setRequestHeader('X-CSRF-TOKEN', token);
}
xhr.setRequestHeader( 'X-Requested-With', 'XMLHttpRequest');
},
success : function(response){
console.log(response);
if(response.success){
alert("Item is successfully added to your store.");
location.reload();
}else{
$("#sell-design-response-msg").html(response.message);
}
}
});
return false;
}
</script>
</body>

View File

@@ -39,7 +39,7 @@
@foreach($array_client_designs as $row)
@foreach($array_template_paths as $key => $row1)
@if($key == 0)
<img src="http://{{ config('site_config.prod_private_server_ip') }}/images/{{ $row->DesignCode }}-front-thumbnail.png" alt="{{ $row->DesignName }}" id="main-thumbnail">
<img src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $row->DesignCode }}-front-thumbnail.png" alt="{{ $row->DesignName }}" id="main-thumbnail" class="img img-responsive">
@endif
@endforeach
@endforeach
@@ -53,13 +53,13 @@
@if($key == 0)
<li class="col-sm-3 col-xs-3">
<a class="thumbnail a_thumbnail active">
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="http://{{ config('site_config.prod_private_server_ip') }}/images/{{ $row->DesignCode }}-front-thumbnail.png"/>
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $row->DesignCode }}-front-thumbnail.png"/>
</a>
</li>
@else
<li class="col-sm-3 col-xs-3">
<a class="thumbnail a_thumbnail">
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="http://{{ config('site_config.prod_private_server_ip') }}/images/{{ $row->DesignCode }}-{{ strtolower($row1->Side) }}-thumbnail.png"/>
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $row->DesignCode }}-{{ strtolower($row1->Side) }}-thumbnail.png"/>
</a>
</li>
@endif

View File

@@ -36,7 +36,7 @@
<div class="col-md-12 text-center">
@foreach($thumbnails_array as $thumbnail)
@if($thumbnail->ImageClass == 'active')
<img style="height:400px" src="http://{{ config('site_config.prod_private_server_ip') }}/images/{{ $thumbnail->Image }}" id="main-thumbnail">
<img style="height:400px" src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $thumbnail->Image }}" id="main-thumbnail">
@endif
@endforeach
</div>
@@ -47,7 +47,7 @@
@foreach($thumbnails_array as $thumbnail)
<li class="col-sm-3 col-xs-3">
<a class="thumbnail a_thumbnail {{ $thumbnail->ImageClass }}">
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="http://{{ config('site_config.prod_private_server_ip') }}/images/{{ $thumbnail->Image }}"/>
<img class="img img-responsive product-center image-thumbnails" style="height: 59.45px;" src="{{ config('site_config.prod_private_server_ip') }}/images/{{ $thumbnail->Image }}"/>
</a>
</li>
@endforeach