<a href="tiki-admin_structures.php" class="pagetitle">{tr}Structures{/tr}</a>

{if $feature_help eq 'y'}
<!-- the help link info --->
<a href="http://tikiwiki.org/tiki-index.php?page=Structures" target="tikihelp" class="tikihelp" title="{tr}Tikiwiki.org help{/tr}: {tr}Structures{/tr}">
<img border='0' src='img/icons/help.gif' alt='help' />
</a>{/if}

<!--- beginning of next bit --->

<br/><br/>
<h2>{tr}Create new structure{/tr}</h2>
<form action="tiki-admin_structures.php" method="post">
<table class="normal">
<tr>
   <td class="formcolor">{tr}name{/tr}:</td>
   <td class="formcolor"><input type="text" name="name" /></td>
</tr>    
<tr>
   <td class="formcolor">&nbsp;</td>
   <td class="formcolor"><input type="submit" value="{tr}create new empty structure{/tr}" name="create" /></td>
</tr>
</table>
</form>

<h3>{tr}Structures{/tr}</h3>
{if $askremove eq 'y'}
<a class="link" href="tiki-admin_structures.php?rremove={$remove|escape:"url"}">{tr}Destroy the structure leaving the wiki pages{/tr}</a><br/>
<a class="link" href="tiki-admin_structures.php?rremovex={$remove|escape:"url"}">{tr}Destroy the structure and remove the pages{/tr}</a>
<br/><br>
{/if}
<table class="normal">
<tr>
  <td class="heading">{tr}Structure{/tr}</td>
  <td width="11%" class="heading">&nbsp;</td>
</tr>
{cycle values="odd,even" print=false}
{section loop=$channels name=ix}
<tr>
  <td class="{cycle advance=false}">
  <a class="tablename" href="tiki-edit_structure.php?structure={$channels[ix].page|escape:"url"}">{$channels[ix].page}</a>
  </td>
  <td class="{cycle}">
  <a class="link" href="tiki-admin_structures.php?export={$channels[ix].page|escape:"url"}"><img src='img/icons/export.gif' alt='{tr}export pages{/tr}' title='{tr}export pages{/tr}' border='0' /></a>
  <a class="link" href="tiki-admin_structures.php?export_tree={$channels[ix].page|escape:"url"}"><img src='img/icons/expand.gif' alt='{tr}dump tree{/tr}' title='{tr}dump tree{/tr}' border='0' /></a>
  <a class="link" href="tiki-admin_structures.php?remove={$channels[ix].page|escape:"url"}"><img src='img/icons2/delete.gif' alt='{tr}remove{/tr}' title='{tr}remove{/tr}' border='0' /></a>
  </td>
</tr>
{/section}
</table>

<h3>{tr}Create structure from tree{/tr}</h3>
<small>{tr}Use single spaces to indent structure levels{/tr}</small>
<form action="tiki-admin_structures.php" method="post">
<table class="normal">
<tr>
   <td class="formcolor">{tr}tree{/tr}:</td>
   <td class="formcolor"><textarea rows="5" cols="60" name="tree"></textarea></td>
</tr>    
<tr>
   <td class="formcolor">&nbsp;</td>
   <td class="formcolor"><input type="submit" value="{tr}create{/tr}" name="create_from_tree" /></td>
</tr>
</table>
</form>
