{include file="Header.htm"}
<body>
{if $Mode==Edit}
<h3>Manage the project of {$Project.Label}</h3>
<ul>
  <li><a href="#" onclick="switchDisplay('ProjectForm');">Set config of the project.</a></li>
  <li><a href="InitProject.php?ProjectID={$ProjectID}">Init the project</a></li>
  <li><a href="ManageProject.php?ProjectID={$ProjectID}&Mode=Delete">Delete It</a></li>
</ul>
{/if}
<form name="ProjectForm" id="ProjectForm" method="post" action="ManageProject.php" {if $Mode==Edit}style="display:none"{/if}>
  <table align="center" class="tblnarrow noborder">
    <caption>{$TPL.Header}--{$Project.Label}</caption>
    <tr>
      <th>{$TPL.Label}</th>
      <td><input name="Label" id="Label" type="text" value="{$Project.Label}" /></td>
    </tr>
    <tr>
      <th>{$TPL.Name}</th>
      <td><input name="Name" id="Name" type="text" value="{$Project.Name}" /></td>
    </tr>
    <tr>
      <th>{$TPL.WorkingDir}</th>
      <td><input name="WorkingDir" id="WorkingDir" type="text" value="{$Project.WorkingDir}" /></td>
    </tr>
    <tr>
      <th>{$TPL.Type}</th>
      <td><input name="DSN[Type]" id="Type" type="text" value="{$Project.DSN.Type}" /> (mysql)</td>
    </tr>
    <tr>
      <th>{$TPL.Server}</th>
      <td><input name="DSN[Server]" id="Server" type="text" value="{$Project.DSN.Server}" /></td>
    </tr>
    <tr>
      <th>{$TPL.User}</th>
      <td><input name="DSN[User]" id="User" type="text" value="{$Project.DSN.User}" /></td>
    </tr>
    <tr>
      <th>{$TPL.Password}</th>
      <td><input name="DSN[Password]" id="Password" type="password" value="{$Project.DSN.Password}" /></td>
    </tr>
    <tr>
      <th>{$TPL.Database}</th>
      <td><input name="DSN[Database]" id="Database" type="text" value="{$Project.DSN.Database}" /></td>
    </tr>
    <tr>
      <th>{$TPL.CodeStyle}</th>
      <td>{$CodeStyleList}</td>
    </tr>
    <tr>
      <td colspan="6" align="center">
        <input name="Submit" id="Submit" type="submit" class="submit" value="{$TPL.Submit}" />
        <input name="Reset"  id="Reset"  type="reset"  class="reset" value="{$TPL.Reset}" />
        <input name="Mode"   id="Mode"   type="hidden" value="{$Mode}" />
        <input name="ProjectID" id="ProjectID" type="hidden" value="{$ProjectID}" />
      </td>
    </tr>
  </table>
</form>
</body>
</html>