Ejemplo n.º 1
0
                  </div>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <div class="table-responsive">
                    <table class="table no-margin">
                      <thead>
                        <tr>
                          <th>Color Id</th>
                          <th>Color name</th>
                          <th>Created At</th>
                          <th>Actions</th>
                        </tr>
                      </thead>
                      <tbody>
                          <?php 
$result = getAllProductsColors();
if ($result > 0) {
    while ($topmenu = mysql_fetch_array($result)) {
        ?>
                          <tr>
                          <td><?php 
        echo $topmenu['color_id'];
        ?>
</td>
                          <td><?php 
        echo $topmenu['color_name'];
        ?>
</td>                         
                          <td><div class="sparkbar" data-color="#00a65a" data-height="20"><?php 
        echo date("j F, Y", strtotime($topmenu['createdAt']));
        ?>
Ejemplo n.º 2
0
        ?>
</option> 
                          <?php 
    }
}
?>
                      </select>
                    </div>
                    
                    
                    <div class="form-group">
                      <label for="exampleInputEmail1">Color Name</label>
                    <select name="color_id" id="color_id">
                          <option value="">Select Color</option>    
                          <?php 
$clothing_colors = getAllProductsColors();
if ($clothing_colors > 0) {
    while ($clothing_color = mysql_fetch_array($clothing_colors)) {
        ?>
                          <option value="<?php 
        echo $clothing_color['color_id'];
        ?>
"><?php 
        echo $clothing_color['color_name'];
        ?>
</option> 
                          <?php 
    }
}
?>
                      </select>