Location: PHPKode > projects > ExiteCMS > themes/exitecms8/templates/setup_db_selection.tpl
{***************************************************************************}
{* ExiteCMS Web Application Framework                                      *}
{***************************************************************************}
{* Copyright 2008-2009 Exite BV, The Netherlands                           *}
{* for support, please visit http://www.exitecms.org                       *}
{***************************************************************************}
{*                                                                         *}
{* Theme name: ExiteCMS v8 default theme                                   *}
{* Author    : Rollsroyce, ExiteCMS development team                       *}
{* Template  : setup template, page 0, welcome page                        *}
{*                                                                         *}
{***************************************************************************}
{html_header type="js" name="forms" value="form_elements.js"}
{html_header type="js" name="tooltip" value="tooltip.js"}
<div class="panelcontent">

	<h3 style="margin-bottom:30px;">{lang line="page2_title"}</h3>

	<fieldset>
		<legend>{lang line="page2_info_title"}</legend>
		<div>{asset type="images" class="icon" name="setup_help.png" style=""}</div>
		<div class="spacing">
			{lang line="page2_info_text"}
		</div>
	</fieldset>

	<form action="{$setup_url|cat:"step2"|site_url}" method="post">

		<fieldset>
			<legend>{lang line="page2_info_selection"}</legend>

			<table id="db_selection" cellspacing="0" cellpadding="0" width="100%" summary="{lang line="page2_summary"}">
				<caption>{lang line="page2_caption"}</caption>

				<tr>
					<td width="25%" style="white-space:nowrap; text-align:right;" class="odd">
						{lang line="page2_field_database" label="database"}
					</td>
					<td>
						{assign var="elList" value=""}
						{foreach from=$databases key=cidbname item=database name=database}
							{if ! $smarty.foreach.database.first}
								{assign var="elList" value=$elList|cat:","}
							{/if}
							{assign var="elList" value=$elList|cat:$cidbname}
						{/foreach}
						<select name='database' class='styled' style='width:400px;'onChange="flipdivs(this.options[this.selectedIndex].value, '{$elList}');">
								{foreach from=$databases key=cidbname item=database}
								<option value='{$cidbname}' {if $cidbname == $selected}selected="selected"{/if}>{$database.name}</option>
							{/foreach}
						</select>
						{asset name="setup_info.png" type="icon" class="tooltip" title="lang:page2_field_database_help"}
					</td>
				</tr>

			</table>

			{foreach from=$databases key=cidbname item=database}
			<table id="{$cidbname}" cellspacing="0" cellpadding="0" width="100%" style="border-top:0px;{if $cidbname != $selected}display:none;{/if}">

				{foreach from=$database.fields item=field}
				<tr>
					<td width="25%" style="white-space:nowrap; text-align:right;" class="odd">
						{lang line="page2_field_"|cat:$field label=$field}
					</td>
					<td>
						{variable var=$field assign="value"}
						{if $field == "password"}
							<input type='password' name='{$cidbname}_{$field}' value='{$value}' class='textbox' style='width:300px;' />
						{elseif $field == "port"}
							<input type='text' name='{$cidbname}_{$field}' value='{$value}' class='textbox' style='width:50px;' />
						{elseif $field == "dbname"}
							<input type='text' name='{$cidbname}_{$field}' value='{$value}' class='textbox' style='width:500px;' />
						{elseif $field == "dbprefix"}
							<input type='text' name='{$cidbname}_{$field}' value='{$value}' class='textbox' style='width:150px;' />
						{else}
							<input type='text' name='{$cidbname}_{$field}' value='{$value}' class='textbox' style='width:300px;' />
						{/if}
						{asset name="setup_info.png" type="icon" class="tooltip" title="lang:page2_field_"|cat:$field|cat:"_help"}
					</td>
				</tr>
				{/foreach}

			</table>
			{/foreach}


		</fieldset>

		{buttons style="text-align: center;margin-top:5px;"}
			{button name="connect" type="submit" title="lang:page2_button_verify_help" text="lang:page2_button_verify"}
		{/buttons}
	</form>

</div>
{***************************************************************************}
{* End of Template                                                         *}
{***************************************************************************}
Return current item: ExiteCMS