" valign="middle"><?php echo $i; ?> </td> <td width="439" colspan="2" height="36" bgcolor="<?php echo $rowColor1; ?> " align="left" class="pad_lft" valign="middle"><?php echo $name; ?> </td> <td width="439" colspan="2" height="36" bgcolor="<?php echo $rowColor; ?> " align="left" class="pad_lft" valign="middle"><?php echo getSuperCategoryName($super_id); ?> </td> <td width="100" height="36" align="center" bgcolor="<?php echo $rowColor1; ?> " valign="middle"><a href="category.php?status_id=<?php echo $id; ?> &change_id=<?php echo $Cate['status']; ?> " onclick="return confirm('Are you change the status in this category?');"><img src="images/<?php echo $status; ?> .png" width="22" height="22" alt="Status" title="Status"/></a></td>
$i = 1; if (count($SubCategory) > 0) { foreach ($SubCategory as $Cate) { $rowColor = ($i % 2 != 0) ? '#dfdfdf' : '#eeeeee'; $rowColor1 = ($i % 2 != 0) ? '#eeeeee' : '#f6f2f2'; $id = $Cate['id']; $name = $Cate['category_name']; $parent = $Cate['parent_id']; $super_id = $Cate['super_id']; $status = ($Cate['status'] == 1) ? 'active' : 'de-active'; ?> <tr style="font-size: 14px;" id="order_<?php echo $id; ?>"> <td width="80" height="36" align="center" bgcolor="<?php echo $rowColor; ?>" valign="middle"><?php echo $i; ?></td> <td width="180" height="36" align="left" bgcolor="<?php echo $rowColor1; ?>" valign="middle" class="pad_lft"><?php echo $name; ?></td> <td width="249" height="36" align="left" bgcolor="<?php echo $rowColor; ?>" valign="middle" class="pad_lft"><?php echo getCategoryName($parent); ?></td> <td width="249" height="36" align="left" bgcolor="<?php echo $rowColor1; ?>" valign="middle" class="pad_lft"><?php echo getSuperCategoryName($super_id); ?></td> <td width="100" height="36" align="center" bgcolor="<?php echo $rowColor; ?>" valign="middle"><a href="subcategory.php?status_id=<?php echo $id; ?>&change_id=<?php echo $Cate['status']; ?>" onclick="return confirm('Are you change the status in this category?');"><img src="images/<?php echo $status; ?>.png" width="22" height="22" alt="Status" title="Status"/></a></td> <td width="140" height="36" align="center" bgcolor="<?php echo $rowColor1; ?>" valign="middle"><a class="fancybox fancybox.iframe" href="edit_sub.php?id=<?php echo $id; ?>"><img src="images/edit.png" alt="Edit" title="Edit" width="22" height="22"/></a><a href="subcategory.php?delete_id=<?php echo $id; ?>" onclick="return confirm('Are you delete this subcategory?');"><img src="images/del.png" alt="Delete" title="Delete" width="22" height="22" class="mar_lft"/></a></td> </tr> <?php $i++; } } else { ?> <tr bgcolor="<?php echo $rowColor; ?>"> <td colspan="5" align="center">There is no sub categories</td> </tr> <?php } ?> </table></td> </tr>
<table width="759" border="0" cellspacing="0" cellpadding="0" class="tbl_repeat"> <?php $i = 1; if (count($Category) > 0) { foreach ($Category as $Cate) { $rowColor = ($i % 2 != 0) ? '#dfdfdf' : '#eeeeee'; $rowColor1 = ($i % 2 != 0) ? '#eeeeee' : '#f6f2f2'; $id = $Cate['id']; $name = $Cate['category_name']; $super_id = $Cate['super_id']; $status = ($Cate['status'] == 1) ? 'active' : 'de-active'; ?> <tr style="font-size: 14px;" id="order_<?php echo $id; ?>"> <td width="80" height="36" align="center" bgcolor="<?php echo $rowColor; ?>" valign="middle"><?php echo $i; ?></td> <td width="439" colspan="2" height="36" bgcolor="<?php echo $rowColor1; ?>" align="left" class="pad_lft" valign="middle"><?php echo $name; ?></td> <td width="439" colspan="2" height="36" bgcolor="<?php echo $rowColor; ?>" align="left" class="pad_lft" valign="middle"><?php echo getSuperCategoryName($super_id);; ?></td> <td width="100" height="36" align="center" bgcolor="<?php echo $rowColor1; ?>" valign="middle"><a href="category.php?status_id=<?php echo $id; ?>&change_id=<?php echo $Cate['status']; ?>" onclick="return confirm('Are you change the status in this category?');"><img src="images/<?php echo $status; ?>.png" width="22" height="22" alt="Status" title="Status"/></a></td> <td width="140" height="36" align="center" bgcolor="<?php echo $rowColor; ?>" valign="middle"> <a class="fancybox fancybox.iframe" href="edit_cat.php?id=<?php echo $id; ?>"><img src="images/edit.png" alt="Edit" title="Edit" width="22" height="22"/></a><a style="text-decoration: none;color:#000;" href="category.php?delete_id=<?php echo $id; ?>" onclick="return confirm('Are you delete this category?');"><img src="images/del.png" alt="Delete" title="Delete" width="22" height="22" class="mar_lft"/></a> </td> </tr> <?php $i++; } } else { ?> <tr bgcolor="<?php echo $rowColor; ?>"> <td colspan="4" align="center">There is no categories</td> </tr> <?php }
if($report_subcat==0 && $report_cat==0) { $cat_colspan=3; } $sku_id = $Prod['sku_id']; $report_productname=$Prod['product_name']; $report_productprice=$Prod['price']; ?> <?php /* if($cat_colspan!=1) { ?> colspan="<?php echo $cat_colspan; ?>" <?php } */ ?> <tr id="order_<?php echo $id; ?>"> <td width="35" align="center" valign="middle" bgcolor="<?php echo $rowColor; ?>" class="pad_btm"><?php echo $i; ?></td> <td width="85" align="left" valign="middle" bgcolor="<?php echo $rowColor1; ?>" class="pad_btm" style="padding-left: 5px;"><?php echo getSuperCategoryName($report_supercat); ?></td> <td width="85" align="left" valign="middle" bgcolor="<?php echo $rowColor; ?>" class="pad_btm" style="padding-left: 5px;"><?php echo getCategoryName($report_cat); ?></td> <td width="85" style="padding-left: 5px;" align="left" valign="middle" bgcolor="<?php echo $rowColor1; ?>" class="pad_btm"><?php echo getSuperCategoryName($report_subcat); ?></td> <td width="75" align="left" valign="middle" bgcolor="<?php echo $rowColor; ?>" class="pad_btm" style="padding-left: 5px;"><?php echo $report_productname; ?></td> <td width="24" align="left" valign="middle" bgcolor="<?php echo $rowColor1; ?>" class="pad_btm" style="padding-left: 5px;">$<?php echo $report_productprice; ?></td> <td width="24" align="left" valign="middle" bgcolor="<?php echo $rowColor; ?>" class="pad_btm"><?php echo $sku_id; ?></td> </tr> <?php $i++; } } else { ?> <tr align="center"> <td colspan="8">There is no orders</td> </tr> <?php } ?>