<?php include_once( "../../../spider.inc.php" ); header('Content-Type: application/xml; charset=UTF-8'); ?>{charset:UTF-8}{module:shopping.category.LoadList}
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<categories>
{foreach:shopping.category.data_array categoryObject}
{set:childCategoryArray categoryObject->'child_category_object_array'}
  <category id="{write:categoryObject->'category_id'}"
  number="{write:categoryObject->'category_number'}"
  name="{write:categoryObject->'category_name'}"
  kana="{write:categoryObject->'category_kana'}"
  description="{write:categoryObject->'description'}">
    <?php for( $GLOBALS['num']=0; $GLOBALS['num']<10; $GLOBALS['num']++ ){ ?>{if:categoryObject->getImageURI(request,num)}
    <image number="{write:num}" uri="{write:categoryObject->getImageURI(request,num)}" />
    {/if}<?php } ?>
  {if:is_array(childCategoryArray) && count(childCategoryArray)>0}
  {foreach:childCategoryArray childCategoryObject}
  {set:gChildCategoryArray childCategoryObject->'child_category_object_array'}
    <category id="{write:childCategoryObject->'category_id'}"
    number="{write:childCategoryObject->'category_number'}"
    name="{write:childCategoryObject->'category_name'}"
    kana="{write:categoryObject->'category_kana'}"
    description="{write:childCategoryObject->'description'}">
      <?php for( $GLOBALS['num']=0; $GLOBALS['num']<10; $GLOBALS['num']++ ){ ?>{if:childCategoryObject->getImageURI(request,num)}
      <image number="{write:num}" uri="{write:childCategoryObject->getImageURI(request,num)}" />
      {/if}<?php } ?>
    {if:is_array(gChildCategoryArray) && count(gChildCategoryArray)>0}
    {foreach:gChildCategoryArray gChildCategoryObject}
      <category id="{write:gChildCategoryObject->'category_id'}"
      number="{write:gChildCategoryObject->'category_number'}"
      name="{write:gChildCategoryObject->'category_name'}"
      kana="{write:categoryObject->'category_kana'}"
      description="{write:gChildCategoryObject->'description'}">
        <?php for( $GLOBALS['num']=0; $GLOBALS['num']<10; $GLOBALS['num']++ ){ ?>{if:gChildCategoryObject->getImageURI(request,num)}
        <image number="{write:num}" uri="{write:gChildCategoryObject->getImageURI(request,num)}" />
        {/if}<?php } ?>
      </category>
    {/foreach}
    {/if}
    </category>
  {/foreach}
  {/if}
  </category>
{/foreach}
</categories>