{literal}
<script type="text/javascript">
function toggleCDB(s){
 if(s==1){
  document.getElementById("cdb1").style.display='block';
//  document.getElementById("cdb2").style.display='block';
 }
 else{
  document.getElementById("cdb1").style.display='none';
//  document.getElementById("cdb2").style.display='none';
 }
}
</script>
{/literal}
<table border="0" cellpadding="8" cellspacing="0" width="100%"><tr><td>
{if $uninstall}
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="content" colspan="2"><strong>{$hashmap.uninstall}</strong><br /><br />
      {if $filebackuplink neq '' or $dbbackuplink neq ''}
      {$hashmap.backupfile}<br /><br />
      {if $filebackuplink neq ''}
      &nbsp;&nbsp;<a href="{$filebackuplink}"><strong>{$filebackupname}</strong></a><br />
      {/if}
      {if $dbbackuplink neq ''}
      &nbsp;&nbsp;<a href="{$dbbackuplink}"><strong>{$dbbackupname}</strong></a>
      {/if}
      {else}
      <strong>{$hashmap.nobackupwarn}</strong>
      {/if}
      <br /><br /><br />
  </tr>
  <tr>
    <td class="error" colspan="2" style="padding:6px;">
      {$hashmap.uninstintro2}<br /></td>
  </tr>
</table>
{else}
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="content" colspan="2"><strong>{$hashmap.dbtitle}</strong><br />{$hashmap.db_explain}</td>
  </tr>
  <tr><td colspan="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="10"></td></tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <table border="0" cellpadding="0" cellspacing="0">
	<tr colspan="2"><td><img src="{$imgpathmaster}/space.gif" alt="" width="240" height="1"></td></tr>
	<tr>
	  <td class="content">{$hashmap.databasetxt}:</td>
	  <td class="content">{html_options name="dbtype" options=$dbs selected=$dbtype}</td>
	</tr>
	<tr>
	  <td class="content">{$hashmap.dbhosttxt}:</td>
	  <td class="content"><input type="text" name="dbhost" value="{$dbhost}" class="input" /></td>
	</tr>
	<tr>
	  <td class="content">{$hashmap.dbusertxt}:</td>
	  <td class="content"><input type="text" name="dbuser" value="{$dbuser}" class="input" /></td>
	</tr>
	<tr>
	  <td class="content">{$hashmap.dbpwtxt}:</td>
	  <td class="content"><input type="password" name="dbpass" value="" class="input" /></td>
	</tr>
	<tr>
	  <td class="content">{$hashmap.dbnametxt}:</td>
	  <td class="content"><input type="text" name="dbname" value="{$dbname}" class="input" /></td>
	</tr>
	<tr>
	  <td class="content">{$hashmap.createdb_txt}:</td>
	  <td class="content"><input type="checkbox" name="trytocreatedb" value="1" onChange="toggleCDB(this.form.trytocreatedb.checked);" /></td>
	</tr>
	<tr>
	  <td class="content" colspan="2" style="text-align:right; padding-left:5px;">
	    <table id="cdb1" style="display:none;" border="0" cellpadding="0" cellspacing="0">
	      <tr>
		<td class="content">{$hashmap.cdbusertxt}:&nbsp;</td>
		<td class="content"><input type="text" name="cdbuser" value="" class="input" style="width:120px;" /></td>
	      </tr>
	      <tr>
		<td class="content">{$hashmap.cdbpwtxt}:&nbsp;</td>
		<td class="content"><input type="password" name="cdbpass" value="" class="input" style="width:120px;" /></td>
	      </tr>
	    </table>
	  </td>
	</tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="content" colspan="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="12"></td>
  </tr>
  <tr>
    <td class="content" colspan="2"><strong>{$hashmap.misctitle}</strong><br />{$hashmap.misc_explain}</td>
  </tr>
  <tr><td colspan="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="10"></td></tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <table border="0" cellpadding="0" cellspacing="0">
	<tr colspan="2"><td><img src="{$imgpathmaster}/space.gif" alt="" width="240" height="1"></td></tr>
	<tr>
	  <td class="content">{$hashmap.rooturltxt}:</td>
	  <td class="content"><input type="text" name="rooturl" value="{$rooturl}" class="input" /></td>
	</tr>
	<tr>
	  <td class="content">{$hashmap.skipurlcheck}:</td>
	  <td class="content"><input type="checkbox" name="skipurlcheck" value="1" {$skipurlchecked} /></td>
	</tr>
	<tr>
	  <td class="content">{$hashmap.dynamicurl}:</td>
	  <td class="content"><input type="checkbox" name="dynamicurl" value="1" {$dynamicurlchecked} /></td>
	</tr>
	<tr>
	  <td class="content">{$hashmap.forcessl}:</td>
	  <td class="content"><input type="checkbox" name="forcessl" value="1" {$forcesslchecked} /></td>
	</tr>
	<tr>
	  <td class="content">{$hashmap.sessionnametxt}:</td>
	  <td class="content"><input type="text" name="sessionname" value="{$sessionname}" class="input" /></td>
	</tr>
	<tr>
	  <td class="content">{$hashmap.usedbsessions}:</td>
	  <td class="content"><input type="checkbox" name="usedbsessions" {$usedbsessions} /></td>
	</tr>
	<tr>
	  <td class="content">{$hashmap.rootpathtxt}:</td>
	  <td class="content"><input type="text" name="rootpath" value="{$rootpath}" class="input" /></td>
	</tr>
	<tr>
	  <td class="content">{$hashmap.authmethodtxt}:</td>
	  <td class="content">{html_options options=$amethods selected=$auth_method name="auth_method"}</td>
	</tr>
	<tr>
	  <td class="content">{$hashmap.encrypt_pwd}:</td>
	  <td class="content"><input type="checkbox" name="encrypt_pwd" value="1" {$encrypt_pwd_checked} /></td>
	</tr>
      </table>
    </td>
  </tr>
  <tr><td colspan="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="10"></td></tr>
  <tr>
    <td class="content" colspan="2"><strong>{$hashmap.adminpass}</strong><br />{$hashmap.adminpass_explain}</td>
  </tr>
  <tr><td colspan="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="10"></td></tr>
  <tr>
    <td>&nbsp;</td>
    <td>
      <table border="0" cellpadding="0" cellspacing="0">
	<tr colspan="2"><td><img src="{$imgpathmaster}/space.gif" alt="" width="240" height="1"></td></tr>
	<tr>
	  <td class="content">{$hashmap.adminpass}:</td>
	  <td class="content"><input type="password" name="adminpw1" value="" class="input" /><br />
	  <input type="password" name="adminpw2" value="" class="input" /></td>
	</tr>
      </table>
    </td>
  </tr>
</table>
{/if}
</td></tr></table>
