{include file="Header.htm"}
<body>
<h3>Build Admin List Page of {$Table.Label}</h3>
{if $Codes}
  <ul>
    <li><a href="{$CFG.BaseURL}{$DemoURL}" target="_blank">Preview the result</a></li>
    <li><a href="ManageAdminList.php?Showing=true">Edit the page again</a></li>
  </ul>
{$Codes.PHP}
{$Codes.HTML}
{else}
  <ul>
    <li><a href="#" onclick="switchDisplay('ManagePage');">Setting the page.</a></li>
    {if $PageCFG}{include file='Page/ViewAndDownLink.htm'}{/if}
  </ul>
<form name="ManagePage" id="ManagePage" method="post" {if !$Showing}style="display:none"{/if}>
  <table align="center" class="tblwide">
    <caption>Manage Admin List Page of {$Table.Label}</caption>
    <tr class="colhead">
      <th>FieldName</th>
      <th>FieldType</th>
      <th>Show Or Not</th>
    </tr>
    {foreach from=$Table.Fields key=FieldName item=Field}
    <tr align="center">
      <th>{$Field.Label}</th>
      <td>{$Field.Type}</td>
      <td>
        <input type="radio" name="Fields[{$Field.Name}]" value="Yes" {if $Field.Showing=="Yes"}checked="checked"{/if} class="radio" />
        <input type="radio" name="Fields[{$Field.Name}]" value="No"  {if $Field.Showing=="No"}checked="checked"{/if}  class="radio" />
      </td>
    </tr>
    {/foreach}
    <tr>
      <td colspan="3" align="center">
        <input type="submit" name="Submit"  value="Save" class="submit" />
      </td>
    </tr>
 </table>
</form>
{/if}
</body>
</html>
