|   Yeshayahu Shai  |
 
 
 
 
$val) { $x=0; $div_width = 85; $div_height = 10; $div_top = 16; $width_increment = 110; $increment = 4; foreach ($itemsArr[$key] as $k => $v) { $items_structure[$key]['main_cat'][$k]['title'] = $categoriesArr[$k]['title']; $items_structure[$key]['main_cat'][$k]['div_width'] = $div_width; $items_structure[$key]['main_cat'][$k]['div_height'] = $div_height; $items_structure[$key]['main_cat'][$k]['div_top'] = $div_top; $div_width += $width_increment; $div_height += $increment; $div_top -= $increment; foreach ($v as $i_k => $i_v){ if ($i_k != 0){ $items_structure[$key]['main_cat'][$k]['sub_cat'][$i_k]['title'] = $sub_categoriesArr[$i_k]['title']; $items_structure[$key]['main_cat'][$k]['sub_cat'][$i_k]['subid'] = $i_k; $items_structure[$key]['main_cat'][$k]['sub_cat'][$i_k]['border_width'] = $div_width; $div_width += $width_increment-10; } } $items_structure[$key]['cat_width'] = $div_width; $items_structure[$key]['subject_title'] = $val['title']; } } foreach ($items_structure as $key => $val){?>