Beispiel #1
0
<!--content wrapper start!-->
<div class="content_wrapper">
<!--sidebar!-->
<div class="sidebar">
<div class="sidebar_title">Categories</div>
<ul id="cats">
<?php 
getCats();
?>

</ul>

<div class="sidebar_title">Brands</div>
<ul id="cats">
<?php 
getBrands();
?>
</ul>
</div>

<div id="content_area">
<div id="shopping_cart">
 <span style=" font-size:10px;padding:10;" ><h1><center>
 <?php 
if (isset($_SESSION['customer_email'])) {
    echo "<b>Welcome :</b>" . $_SESSION['customer_email'] . "<b style='color:yellow;'>YOUR :</b>";
} else {
    echo "<b>Welcome Guest!</b>";
}
?>
 
                            <?php 
getCats($con);
?>


                        </ul>
                    </div>


                    <div id="sidebar_title">Tipo</div>
                        <!-- Brand-->
                        <div id="cats">
                            <ul>

                                <?php 
getBrands($con);
?>
                            </ul>
                        </div>


                </div>
                <!-- Conteúdo -->
                <div id="content_area">

                   <div id="shopping_card">

                    <span style="float: right; font-size:18px; padding:5px; line-height: 40px;">Bem-vindo Carlos! <b style="color: yellow">Carrinho - </b>  Itens no Carrinho -  Valor Total:  <a href="cart.php" style="color: yellow">Ir Para o Carrinho</a></span>

                   </div>
Beispiel #3
0
/**
 * displayBrands function
 * this funciton is to renders the list of all brands and aub brand alond with thier parent and child relation.
 * @return void
 * @author Ankit Balyan - sf.ankit@gmail.com
 **/
function displayBrands()
{
    global $status;
    $Brands = getBrands();
    if (count($Brands)) {
        ?>
		<table id="displayBrand" class="table table-striped">
			<thead>
				<tr>
					<th>Brand Name</th>
					<th>Brand Description</th>
					<th>Patrent Brand</th>

					<th>Status</th>
					<th>Created date</th>
				</tr>
			</thead>
			<tbody>
			<?php 
        foreach ($Brands as $brand) {
            ?>
				<tr>
					<td><a href=""><span class="glyphicon glyphicon-edit"></span></a> <?php 
            echo $brand->brand_name;
            ?>
</td>
					<td><?php 
            echo $brand->brand_desc;
            ?>
</td>
					<td><?php 
            echo $brand->brand_parent_id ? $brand->parent_brand : '-- Main Brand --';
            ?>
</td>

					<td><?php 
            echo $status["{$brand->brand_actv_ind}"];
            ?>
</td>
					<td><?php 
            echo date('d M, Y', strtotime($brand->created_dt));
            ?>
</td>
				</tr>
			<?php 
        }
        ?>
			</tbody>
		</table>
	<?php 
    }
}
function content()
{
    ?>
    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">Brands</h1>
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <!-- /.row -->
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        Brand Details
                    </div>
                    <!-- /.panel-heading -->
                    <div class="panel-body">
                        <div class="dataTable_wrapper">
                            <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                                <tr>
                                    <th width="40">Edit</th>
                                    <th>ObjectId</th>
                                    <th>Brand Name</th>
                                    <th>Logo</th>
                                    <th>Location</th>
                                    <th>Multiplier</th>
                                    <th>Description</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php 
    $brands = getBrands();
    foreach ($brands as $brand) {
        echo "\n                                        <tr>\n                                            <td align='center'>\n                                                <a class='open-modal' data-toggle='modal' href='../files/ajax.php?class=Brand&objectId={$brand->objectId}&name={$brand->name}&type=edit' data-target='#myModal'>\n                                                <i class='fa fa-pencil-square' style='font-size: 20px;transition: color 1s;'></i>\n                                                </a>\n                                            </td>\n                                            <td onclick=\"showSuccessToast('az',false)\">{$brand->objectId}</td>\n                                            <td>{$brand->name}</td>\n                                            <td><img src='{$brand->brandImage}' width='30' /></td>\n                                            <td>{$brand->location}</td>\n                                            <td>{$brand->multiplier}</td>\n                                            <td>{$brand->description}</td>\n                                        </tr>\n\n                                    ";
        //echo $brands[2]->brandImage->getUrl(); //getting image
        //exit;
    }
    ?>
                                </tbody>
                            </table>
                        </div>
                        <!-- /.table-responsive -->
                        <!-- Modal -->
                        <span id="onLoad" style="position:absolute;left:100px;top:100px;z-index:1000000;" hidden>Loading...</span>
                        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                            <div class="modal-dialog">
                                <div class="modal-content">
                                </div>
                                <!-- /.modal-content -->
                            </div>
                            <!-- /.modal-dialog -->
                        </div>
                        <!-- /.modal -->
                    </div>
                    <!-- /.panel-body -->
                </div>
                <!-- /.panel -->
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <!-- /.row -->
    </div>

    <?php 
}
Beispiel #5
0
	      <input value="" type="text" class="form-control" name="brand" id="brand" required>
	  </div>

      <div class="col-sm-2">
        <input name="action" type="hidden" value="addBrand">
        <button type="submit" formaction="." class="brand btn btn-default">Add Brand</button>
      </div>
    </div>
	</form> <!-- end brand form -->

  <div class="row">

    <div class="Brands">
        <ul class="list-group col-sm-4">
        	<?php 
    $brands = getBrands();
    ?>
        	
        	<?php 
    foreach ($brands as $brand) {
        ?>
        		<li class="list-group-item"><?php 
        echo $brand['brandName'];
        ?>
</li>
            <?php 
    }
    ?>
            <ul>
    </div>
  </div>
Beispiel #6
0
								<div class="product-information"><!--/product-information-->
									<form action="" method="POST" name="productOrder" id="productOrder">
										<input type="hidden" name="product_id" value="<?php 
    echo $product->product_id;
    ?>
" id="">
										
										<h2><?php 
    echo $product->product_name;
    ?>
</h2>
                    <p> <img src="<?php 
    echo getBrands($product->brandId)[0]->brand_image;
    ?>
" width="200" heigh ="150" alt="<?php 
    echo getBrands($product->brandId)[0]->parent_brand;
    ?>
"> </p>
										<p>FG Code: <?php 
    echo $product->product_code;
    ?>
</p>
                      <p> <a id="details" href="javascript:void(0)">View Details...</a></p>
                        <div class="responsess">
                           <a href="javascript:void(0)" class="closedeails">&#10060</a>
                          <div class="col-sm-12 text-left">
										<p><?php 
    $attrs = $product->product_attr;
    $attrs = explode(',', $attrs);
    ?>
</p>