add currency for teamstore

This commit is contained in:
Frank John Begornia
2019-08-19 21:37:47 +08:00
parent e60bb3baf8
commit b7e81adf31
68 changed files with 9977 additions and 442 deletions

View File

@@ -284,9 +284,7 @@ class DesignerController extends Controller {
$newDesignerModel = new DesignerModel;
$clipart_cat_array = $newDesignerModel->selectClipartCategories();
$clipart_cat_array = $newDesignerModel->selectClipartCategories();
?>
<div class="row">
@@ -295,31 +293,39 @@ class DesignerController extends Controller {
</div>
</div>
<hr>
<!-- <div class="row">
<div class="form-group col-md-12">
<form role="search">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search" name="q">
<div class="input-group-btn">
<button class="btn btn-default" type="button"><i class="glyphicon glyphicon-search"></i></button>
</div>
</div>
</form>
</div>
</div> -->
<div id="show-clipart-content">
<div class="row">
<?php
foreach($clipart_cat_array as $row){
if($row->UserId != null){
if(!Auth::guest()){
if(Auth::user()->id == $row->UserId){
?>
<div class="form-group col-md-6">
<a href="#" class="clipart-category" data-id="<?php echo $row->Id ?>" data-type="category" data-title="<?php echo $row->CategoryName ?>">
<div style="height:100px; background-color:#f4f4f4; border-radius: 5px;" class="text-center">
<span style="position:absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 16px;"><?php echo $row->CategoryName ?></span>
</div>
</a>
</div>
<?php
}
}
}
}
foreach($clipart_cat_array as $row){
if($row->UserId == null){
?>
<div class="form-group col-md-6">
<a href="#" class="clipart-category" data-id="<?php echo $row->Id ?>" data-type="category" data-title="<?php echo $row->CategoryName ?>">
<div style="height:100px; background-color:#f4f4f4; border-radius: 5px;" class="text-center">
<span style="position:absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 16px;"><?php echo $row->CategoryName ?></span>
</div>
</a>
</div>
<div class="form-group col-md-6">
<a href="#" class="clipart-category" data-id="<?php echo $row->Id ?>" data-type="category" data-title="<?php echo $row->CategoryName ?>">
<div style="height:100px; background-color:#f4f4f4; border-radius: 5px;" class="text-center">
<span style="position:absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 16px;"><?php echo $row->CategoryName ?></span>
</div>
</a>
</div>
<?php
}
}
?>
</div>
@@ -1114,6 +1120,7 @@ class DesignerController extends Controller {
$post = $request->all();
$trCount = $post['itemCount'];
$tempCode = $post['tempCode'];
// $product_array = $m->selectTeamStoreProducts('ProductURL', $productURL);
$newDesignerModel = new DesignerModel;
$jersey_sizes = $newDesignerModel->getAvailableSizes($tempCode, 'JERSEY');
@@ -1149,6 +1156,64 @@ class DesignerController extends Controller {
<?php
}
public function addGamerField(Request $request){
$post = $request->all();
$trCount = $post['itemCount'];
$tempCode = $post['tempCode'];
$product_url = $post['product_url'];
$m = new TeamStoreModel;
$product_array = $m->selectTeamStoreProducts('ProductURL', $product_url);
$x = explode(",", $product_array[0]->AvailableSizes );
foreach($x as $s){
$h[] = $m->getSizesByBracket($s);
}
foreach($h as $d){
foreach($d as $g){
$sizes_array[] = $g;
}
}
?>
<tr class="<?php echo 'table-tr-' . $trCount ?>">
<td>
<input type="text" name="order_names[]" id="order_names" class="form-control input-sm inputName roster-input" placeholder="Gamer Tag" >
</td>
<td>
<input type="text" name="order_names2[]" id="order_names2" class="form-control input-sm inputName roster-input" placeholder="Name">
</td>
<td>
<select class="form-control input-sm order-size roster-input" name="order_size[]" id="<?php echo 'order_size_' . $trCount ?>" data-row-number="<?php echo $trCount ?>">
<?php
foreach($sizes_array as $size){
echo '<option value="'.$size->Size.'">'.$size->Size.'</option>';
}
?>
</select>
</td>
<td id="action-column" class="text-center roster-action-column" style="padding: 4px !important; border-top: none">
<span class="tr-remove-btn">
<button type="button" class="btn btn-danger btn-sm removeRow-gamer-field btn-roster-action" data-toggle="tooltip" title="Remove"><i class="fa fa-remove" aria-hidden="true"></i></button>
</span>
</td>
</tr>
<tr id="addnew-btn-tbl-row">
<td colspan="4" ><button type="button" id="addNewRow_gamer_field" class="btn btn-link btn-sm pull-left" data-toggle="tooltip" title="Add Another"><i class="fa fa-plus" aria-hidden="true"></i> Add Row</button></td>
<!-- <td colspan="2" ><button type="button" class="btn btn-link btn-sm pull-right" data-toggle="tooltip" title="Add Another">Manage List</button></td> -->
<td style="padding: 4px !important; border-top: none"></td>
</tr>
<?php
}
}