fixes the installation and uninstallation SQL scripts
This commit is contained in:
parent
e7e50acb3d
commit
a7de4e1fec
5 changed files with 381 additions and 233 deletions
37
web/Views/Admin/InitDb.aspx
Normal file
37
web/Views/Admin/InitDb.aspx
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<%@ Page Title="Restore" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<DataAccess>" %>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<%= Html.ValidationSummary("Restore a database backup") %>
|
||||
<% using (Html.BeginForm("Restore","Admin")) { %>
|
||||
|
||||
<% string [] bcfiles = (string[]) ViewData["Backups"]; %>
|
||||
<select name="backupName">
|
||||
<% foreach (string s in bcfiles)
|
||||
{
|
||||
%>
|
||||
<option value="<%=s%>"><%=s%></option>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</select>
|
||||
<label for="dataOnly">Data only :</label>
|
||||
<%= Html.CheckBox("dataOnly")%>
|
||||
|
||||
<%= Html.LabelFor(model => model.Host) %>:
|
||||
<%= Html.TextBox( "Host" ) %>
|
||||
<%= Html.ValidationMessage("Host", "*") %><br/>
|
||||
<%= Html.LabelFor(model => model.Port) %>:
|
||||
<%= Html.TextBox( "Port" ) %>
|
||||
<%= Html.ValidationMessage("Port", "*") %><br/>
|
||||
<%= Html.LabelFor(model => model.Dbname) %>:
|
||||
<%= Html.TextBox( "Dbname" ) %>
|
||||
<%= Html.ValidationMessage("Dbname", "*") %><br/>
|
||||
<%= Html.LabelFor(model => model.Dbuser) %>:
|
||||
<%= Html.TextBox( "Dbuser" ) %>
|
||||
<%= Html.ValidationMessage("Dbuser", "*") %><br/>
|
||||
<%= Html.LabelFor(model => model.Password) %>:
|
||||
<%= Html.Password( "Password" ) %>
|
||||
<%= Html.ValidationMessage("Password", "*") %><br/>
|
||||
|
||||
<input type="submit"/>
|
||||
<% } %>
|
||||
</asp:Content>
|
||||
Loading…
Add table
Add a link
Reference in a new issue