$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_MANAGEMENT, 'sPath=' . $sPath . '&cID=' . $cInfo->store_categories_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'move_store_category':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_MOVE_CATEGORY . '</b>');
     $contents = array('form' => smn_draw_form('store_categories', FILENAME_MANAGEMENT, 'action=move_store_category_confirm&sPath=' . $sPath) . smn_draw_hidden_field('store_categories_id', $cInfo->store_categories_id));
     $contents[] = array('text' => sprintf(TEXT_MOVE_CATEGORIES_INTRO, $cInfo->store_categories_name));
     $contents[] = array('text' => '<br>' . sprintf(TEXT_MOVE, $cInfo->store_categories_name) . '<br>' . smn_draw_pull_down_menu('move_to_store_category_id', $store->smn_get_store_category_tree(), $current_store_category_id));
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_move.gif', IMAGE_MOVE) . ' <a href="' . smn_href_link(FILENAME_MANAGEMENT, 'sPath=' . $sPath . '&cID=' . $cInfo->store_categories_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete_store':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_STORE . '</b>');
     $contents = array('form' => smn_draw_form('store', FILENAME_MANAGEMENT, 'action=delete_store_confirm&sPath=' . $sPath) . smn_draw_hidden_field('list_store_id', $pInfo->store_id));
     $contents[] = array('text' => TEXT_DELETE_STORE_INTRO);
     $contents[] = array('text' => '<br><b>' . $pInfo->store_name . '</b>');
     $store_categories_string = '';
     $store_categories = smn_generate_store_category_path($pInfo->store_id, 'store');
     for ($i = 0, $n = sizeof($store_categories); $i < $n; $i++) {
         $store_category_path = '';
         for ($j = 0, $k = sizeof($store_categories[$i]); $j < $k; $j++) {
             $store_category_path .= $store_categories[$i][$j]['text'] . '&nbsp;&gt;&nbsp;';
         }
         $store_category_path = substr($store_category_path, 0, -16);
         $store_categories_string .= smn_draw_checkbox_field('store_categories[]', $store_categories[$i][sizeof($store_categories[$i]) - 1]['id'], true) . '&nbsp;' . $store_category_path . '<br>';
     }
     $store_categories_string = substr($store_categories_string, 0, -4);
     $contents[] = array('text' => '<br>' . $store_categories_string);
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_MANAGEMENT, 'sPath=' . $sPath . '&sID=' . $pInfo->store_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'move_store':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_MOVE_STORE . '</b>');
     $contents = array('form' => smn_draw_form('store', FILENAME_MANAGEMENT, 'action=move_store_confirm&sPath=' . $sPath) . smn_draw_hidden_field('list_store_id', $pInfo->store_id));
function smn_get_generated_store_category_path_ids($id, $from = 'store_category')
{
    $calculated_store_category_path_string = '';
    $calculated_store_category_path = smn_generate_store_category_path($id, $from);
    for ($i = 0, $n = sizeof($calculated_store_category_path); $i < $n; $i++) {
        for ($j = 0, $k = sizeof($calculated_store_category_path[$i]); $j < $k; $j++) {
            $calculated_store_category_path_string .= $calculated_store_category_path[$i][$j]['id'] . '_';
        }
        $calculated_store_category_path_string = substr($calculated_store_category_path_string, 0, -1) . '<br>';
    }
    $calculated_store_category_path_string = substr($calculated_store_category_path_string, 0, -4);
    if (strlen($calculated_store_category_path_string) < 1) {
        $calculated_store_category_path_string = TEXT_TOP;
    }
    return $calculated_store_category_path_string;
}