Category List

Add New Category

'."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; if (cntSubCat($cat_row['type_seq'], $cat_row['cat']) > 0) { echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; } } ?>
Category Description Category
Type
Base
Category
Action
'."\n"; $CatDisp=disp_cat($cat_row['type_seq'], $cat_row['cat']); echo ''.$CatDisp.''."\n"; echo ''."\n"; echo $cat_row['cat_desc']."\n"; echo ''."\n"; echo disp_type(get_type($cat_row['type_seq']))."\n"; echo ''."\n"; switch ($cat_row['base']) { case 'N': echo 'No'; break; case 'Y': echo 'Yes'; break; default: echo 'Unknown'; } echo "\n"; echo ''."\n"; echo 'Change'."\n"; echo ''."\n"; $query='select count(*) from entry where type_seq="'.$cat_row['type_seq'].'" and cat="'.$cat_row['cat'].'"'; $cnt_res=mysqli_query($db, $query); $cnt_row=mysqli_fetch_row($cnt_res); if ($cnt_row[0] > 0) { echo 'Remove'."\n"; } else { echo 'Remove'."\n"; } echo '
 '."\n"; $query='select * from style_sub where sg="'.$Comp_SG.'" and type_seq="'.$cat_row['type_seq'].'" and cat="'.$cat_row['cat'].'" order by sub_cat'; $subcat_res=mysqli_query($db, $query); while ($subcat_row=mysqli_fetch_assoc($subcat_res)) { echo ''.$subcat_row['sub_cat'].' – '.$subcat_row['cat_desc'].'
'."\n"; } echo '

Add New Category