
<center><br>
<table width="600" border="0">
<tr><td>
	- If you are upgrading from the old version, we strongly recommend you should backup existing database before doing next steps.<br><br>
	- <font color="#FF0000"><strong>Importance</strong></font>: If you install S.o.S.o. News Express on localhost, please enable internet connection so that the installer can download needed files from our website.<br>
</td></tr>
</table>
<br>

<form name="CONFIGFORM" method="POST" action="install.php?step=3">
<table class="tblborder" cellpadding="0" cellspacing="1" width="600">
  <tr>
    <td width="100%">  
	<table border="0" cellpadding="2" cellspacing="1" width="100%">
	  <tr>
	    <td class=tdmenu width="100%" colspan="2" align="center">Basic Configuration</td>
	  </tr>
	  <tr>
	    <td class=tdtext1 width="45%">Installation Type:</td>
	    <td class=tdtext2 width="55%">
			<select class="form" name="install_type" onchange="javascript: ShowHideDiv(this.options[this.selectedIndex].value);">
			<option value="new" selected>New Installation (2.2.0 Beta 1)</option>
			<option value="upgrade_2.1.1">Upgrade From Version 2.1.1</option>
			<option value="upgrade_2.1.0">Upgrade From Version 2.1.0</option>
			<option value="upgrade_2.0.4">Upgrade From Version 2.0.4</option>
			<option value="upgrade_2.0.3">Upgrade From Version 2.0.3</option>
			<option value="upgrade_2.0.2">Upgrade From Version 2.0.2</option>
			<option value="upgrade_2.0.1">Upgrade From Version 2.0.1</option>
			<option value="upgrade_2.0.0">Upgrade From Version 2.0</option>
			<option value="upgrade_1.2">Upgrade From Version 1.2.x</option>
			<option value="upgrade_1.1">Upgrade From Version 1.1.x</option>
			<option value="upgrade_1.0">Upgrade From Version 1.0.x</option>
			</select>
		</td>
	  </tr>
	  <tr><td colspan="2" class="tdtext2">&nbsp;</td></tr>
	  <tr>
	    <td class=tdtext1>Site Name:</td>
	    <td class=tdtext2><input class=form type="text" name="site_name" value="Company Name" size="50"></td>
	  </tr>
	  <tr>
	    <td class=tdtext1>Site Slogan:</td>
	    <td class=tdtext2><input class=form type="text" name="site_slogan" value="Your Company Description" size="50"></td>
	  </tr>
	  <tr>
	    <td class=tdtext1>Site URL:</td>
	    <td class=tdtext2><input class=form type="text" name="site_url" value="{SITE_URL}" size="50"></td>
	  </tr>
	  <tr>
	    <td class=tdtext1>Site Path:</td>
	    <td class=tdtext2><input class=form type="text" name="site_path" value="{SITE_PATH}" size="50"></td>
	  </tr>
	  <!-- START IF: apache -->
	  <tr>
	    <td class=tdtext1>Use Friendly URL:<br><font class="date">(Only for Apache with mod Rewrite)</font></td>
	    <td class=tdtext2>
		<input type="radio" name="short_url_enabled" value="1">Yes
		<input type="radio" name="short_url_enabled" value="0" checked>No
		</td>
	  </tr>
	  <tr>
	    <td class=tdtext1>URL Separator:<br><font class="date">(SEO URL must be turned on)</font></td>
	    <td class=tdtext2><input class=form type="text" name="short_url_sep" value="/" size="5"></td>
	  </tr>
	  <!-- END IF: apache -->
	  <tr>
	    <td class=tdtext1>Cookie Domain:<br><font class="date">(You should use .yourdomain.com)</font></td>
	    <td class=tdtext2><input class=form type="text" name="cookie_domain" value="{COOKIE_DOMAIN}" size="50"></td>
	  </tr>
	  <tr>
	    <td class=tdtext1>Cookie Path:</td>
	    <td class=tdtext2><input class=form type="text" name="cookie_path" value="{COOKIE_PATH}" size="50"></td>
	  </tr>
	  <tr>
	    <td class=tdmenu width="100%" colspan="2" align="center">Database Configuration</td>
	  </tr>
	  <tr>
	    <td class=tdtext1>Database Host name:</td>
	    <td class=tdtext2><input class=form type="text" name="host_name" value="localhost" size="50"></td>
	  </tr>
	  <tr>
	    <td class=tdtext1>Database Name:</td>
	    <td class=tdtext2><input class=form type="text" name="db_name" size="50"></td>
	  </tr>
	  <tr>
	    <td class=tdtext1>Database Username:</td>
	    <td class=tdtext2><input class=form type="text" name="db_username" size="50"></td>
	  </tr>
	  <tr>
	    <td class=tdtext1>Database Password:</td>
	    <td class=tdtext2><input class=form type="text" name="db_password" size="50"></td>
	  </tr>
	  <tr>
	    <td class=tdtext1>Table Prefix: <font class="date">(You can leave this blank)</font></td>
	    <td class=tdtext2><input class=form type="text" name="tbl_prefix" value="news_" size="50"></td>
	  </tr>
	  <tr id="DivInstall_1">
	    <td class=tdmenu width="100%" colspan="2" align="center">Admin Configuration</td>
	  </tr>
	  <tr id="DivInstall_2">
	    <td class=tdtext1>Admin Email Address:</td>
	    <td class=tdtext2><input class=form type="text" name="admin_email" size="50"></td>
	  </tr>
	  <tr id="DivInstall_3">
	    <td class=tdtext1>Admin Username:</td>
	    <td class=tdtext2><input class=form type="text" name="username" size="50"></td>
	  </tr>
	  <tr id="DivInstall_4">
	    <td class=tdtext1>Admin Password:</td>
	    <td class=tdtext2><input class=form type="password" name="password" size="50"></td>
	  </tr>
	  <tr id="DivInstall_5">
	    <td class=tdtext1>Retype Your Password:</td>
	    <td class=tdtext2><input class=form type="password" name="confirm_pwd" size="50"></td>
	  </tr>
	</table>        
    </td>
  </tr>
</table>
<br><input class="submit" type="button" name="smBack" value="&laquo; Back" onclick="javascript:window.location='install.php?step=1'"> <input class="submit" type="submit" name="smNext" value="Next &raquo;"><br><br>
</form>
</center>

<script language="javascript">
	function ShowHideDiv(the_value){
		if ( the_value == "new" ){
			the_style	= (document.body.all) ? "block" : "table-row";
		}
		else{
			the_style	= "none";
		}

		document.getElementById('DivInstall_1').style.display	= the_style;
		document.getElementById('DivInstall_2').style.display	= the_style;
		document.getElementById('DivInstall_3').style.display	= the_style;
		document.getElementById('DivInstall_4').style.display	= the_style;
		document.getElementById('DivInstall_5').style.display	= the_style;
	}
</script>
