Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddClient.aspx.cs" Inherits="OsiguritelnaKompanija.Registration" %>
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title></title>
- <link href="bootstraaaap/css/bootstrap.css" rel="stylesheet" />
- <style type="text/css">
- .auto-style1 {
- width: 100%;
- }
- .auto-style2 {
- height: 16px;
- text-align: center;
- }
- .auto-style4 {
- height: 16px;
- text-align: right;
- }
- .auto-style5 {
- height: 224px;
- text-align: center;
- }
- .auto-style6 {
- height: 25px;
- text-align: right;
- }
- .auto-style12 {
- width: 246px;
- text-align: left;
- margin-left: 40px;
- }
- .auto-style15 {
- width: 166px;
- }
- .auto-style16 {
- width: 281px;
- text-align: right;
- }
- .auto-style17 {
- width: 281px;
- }
- .auto-style20 {
- width: 166px;
- text-align: right;
- }
- .auto-style21 {
- text-align: center;
- }
- .auto-style23 {
- text-align: left;
- }
- .auto-style26 {
- width: 709px;
- text-align: right;
- height: 49px;
- }
- .auto-style27 {
- text-align: left;
- height: 49px;
- width: 544px;
- }
- .auto-style28 {
- width: 101%;
- }
- .auto-style8 {
- margin-left: 0px;
- }
- .auto-style39 {
- height: 16px;
- text-align: left;
- }
- .auto-style40 {
- text-align: left;
- width: 268435520px;
- }
- .auto-style41 {
- width: 268435520px;
- }
- .auto-style46 {
- height: 25px;
- text-align: left;
- }
- .auto-style56 {
- width: 246px;
- text-align: left;
- }
- .auto-style57 {
- width: 246px;
- }
- .auto-style58 {
- height: 104px;
- text-align: center;
- }
- body{
- background-image: url("Background.jpg");
- background-size: cover;
- }
- #txtClientID0 ,#tbSSNN0, #tbPhone0, #tbStName0, #tbStNumber0, #tbMunicipality0{
- margin-bottom: 10px;
- }
- ##tbFNLN0{
- margin-bottom: 15px;
- }
- .auto-style62 {
- text-align: left;
- width: 544px;
- }
- .auto-style63 {
- text-align: left;
- height: 30px;
- width: 544px;
- }
- .auto-style64 {
- width: 544px;
- }
- .auto-style65 {
- width: 613px;
- text-align: right;
- }
- .auto-style66 {
- width: 613px;
- text-align: right;
- height: 30px;
- }
- .auto-style67 {
- width: 613px;
- }
- .auto-style68 {
- width: 709px;
- text-align: right;
- }
- .auto-style69 {
- width: 709px;
- text-align: right;
- height: 30px;
- }
- .auto-style70 {
- width: 709px;
- }
- #Label9, #Label10, #Label11 {
- font-size: 1.1em;
- }
- #Label12, #Label13
- {
- font-size: 1.1em;
- }
- #txtAgent, #txtClient , #txtPolisa, #txtCena{
- margin-bottom: 15px;
- }
- #ddlPolisa{
- margin-bottom: 10px;
- margin-top: 10px;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <form id="form1" runat="server">
- <asp:MultiView ID="MultiView1" runat="server">
- <asp:View ID="View1" runat="server">
- <table class="auto-style28">
- <tr>
- <td class="auto-style39" colspan="3">
- <asp:HyperLink ID="hlLogOut" runat="server" cssClass="btn btn-primary; " Font-Names="Century Gothic" Font-Size="Large" ForeColor="White" BackColor="#5CB85C" Width="131px" NavigateUrl="~/LogOut.aspx">Log out</asp:HyperLink>
- </td>
- <td class="auto-style4" colspan="2">
- <asp:Image ID="Image3" runat="server" CssClass="auto-style8" Height="47px" ImageUrl="~/PERSON.png" Width="50px" />
- <asp:Label ID="Label7" runat="server" Font-Names="Century Gothic" Font-Size="Large" Text="Username ID: "></asp:Label>
- <asp:Label ID="lblLogiranKorisnik" runat="server" Font-Bold="False" Font-Names="Century Gothic" Font-Size="Large"></asp:Label>
- </td>
- </tr>
- <tr>
- <td class="auto-style39" colspan="3">
- <asp:HyperLink ID="hlHelp" runat="server" cssClass="btn btn-success; " Font-Names="Century Gothic" Font-Size="Large" ForeColor="White" BackColor="#5CB85C" Width="131px" NavigateUrl="~/Contact.aspx">Help ?</asp:HyperLink>
- </td>
- <td class="auto-style4" colspan="2"></td>
- </tr>
- <tr>
- <td class="auto-style2" colspan="5">
- <asp:Image ID="Image2" runat="server" ImageUrl="~/Screenshot_2.png" style="text-align: center" Width="514px" />
- </td>
- </tr>
- <tr>
- <td class="auto-style68">
-
- </td>
- <td class="auto-style68">
- <asp:Label ID="Label9" runat="server" Font-Names="Century Gothic" Text="Client ID: "></asp:Label>
- </td>
- <td class="auto-style62" colspan="2">
- <asp:TextBox ID="txtClientID0" runat="server" ReadOnly="True" BackColor="#CCCCCC" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- </td>
- <td class="auto-style40" rowspan="9">
- <asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Names="Century Gothic" Font-Size="Large" ForeColor="Red" ValidationGroup="gr" />
- </td>
- </tr>
- <tr>
- <td class="auto-style68">
- </td>
- <td class="auto-style68">
- <asp:Label ID="Label10" runat="server" Font-Names="Century Gothic" Text="SSN: "></asp:Label>
- </td>
- <td class="auto-style62" colspan="2">
- <asp:TextBox ID="tbSSN0" runat="server" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="tbSSN0" ErrorMessage="Please enter SSN!" Display="None" ValidationGroup="gr"></asp:RequiredFieldValidator>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbSSN0" Display="None" ErrorMessage="Invalid format of SSN!" ValidationExpression="[0-9]{13}" ValidationGroup="gr"></asp:RegularExpressionValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style26">
- </td>
- <td class="auto-style26">
- <asp:Label ID="Label11" runat="server" Font-Names="Century Gothic" Text="First name and last name: "></asp:Label>
- </td>
- <td class="auto-style27" colspan="2">
- <asp:TextBox ID="tbFNLN0" runat="server" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="tbFNLN0" ErrorMessage="Please enter first and last name!" Display="None" ValidationGroup="gr"></asp:RequiredFieldValidator>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="tbFNLN0" Display="None" ErrorMessage="Invalid format of first and last name!" ValidationExpression="[A-Z][a-z]+ [A-Z][a-z]+" ValidationGroup="gr"></asp:RegularExpressionValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style69">
- </td>
- <td class="auto-style69">
- <asp:Label ID="Label12" runat="server" Font-Names="Century Gothic" Text="Phone number: "></asp:Label>
- </td>
- <td class="auto-style63" colspan="2">
- <asp:TextBox ID="tbPhone0" runat="server" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="tbPhone0" Display="None" ErrorMessage="Invalid format of phone number!" ValidationExpression="07[0,1,2,5,6,7,8]\d{6}" ValidationGroup="gr"></asp:RegularExpressionValidator>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="tbPhone0" ErrorMessage="Please enter phone number!" Display="None" ValidationGroup="gr"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style68">
- </td>
- <td class="auto-style68">
- <asp:Label ID="Label13" runat="server" Font-Names="Century Gothic" Text="Street name: "></asp:Label>
- </td>
- <td class="auto-style62" colspan="2">
- <asp:TextBox ID="tbStName0" runat="server" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="tbStName0" Display="None" ErrorMessage="Invalid format of street name!" ValidationExpression="[A-Z][a-z]+ [A-Z][a-z]+" ValidationGroup="gr"></asp:RegularExpressionValidator>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="tbStName0" ErrorMessage="Please enter street name!" Display="None" ValidationGroup="gr"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style69">
- </td>
- <td class="auto-style69">
- <asp:Label ID="Label14" runat="server" Font-Names="Century Gothic" Text="Street number: "></asp:Label>
- </td>
- <td class="auto-style63" colspan="2">
- <asp:TextBox ID="tbStNumber0" runat="server" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="tbStNumber0" Display="None" ErrorMessage="Invalid format of street number!" ValidationExpression="\d+" ValidationGroup="gr"></asp:RegularExpressionValidator>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="tbStNumber0" ErrorMessage="Please enter street number!" Display="None" ValidationGroup="gr"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style69">
- </td>
- <td class="auto-style69">
- <asp:Label ID="Label15" runat="server" Font-Names="Century Gothic" Text="Municipality: "></asp:Label>
- </td>
- <td class="auto-style63" colspan="2">
- <asp:TextBox ID="tbMunicipality0" runat="server" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="tbMunicipality0" Display="None" ErrorMessage="Invalid format of municipality!" ValidationExpression="^([A-Z][a-z]+)(\s[A-Z][a-z]+)*$" ValidationGroup="gr"></asp:RegularExpressionValidator>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="tbMunicipality0" ErrorMessage="Please enter municipality!" Display="None" ValidationGroup="gr"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style68" colspan="2">
- <asp:Label ID="Label16" runat="server" Font-Names="Century Gothic" Text="City: "></asp:Label>
- </td>
- <td class="auto-style62" colspan="2">
- <asp:DropDownList ID="ddlCity0" runat="server" Height="34px" Width="149px" BackColor="#337AB7" Font-Names="Century Gothic" ForeColor="White">
- </asp:DropDownList>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="ddlCity0" ErrorMessage="Please enter city!" Display="None" ValidationGroup="gr"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style70" colspan="2">
- </td>
- <td class="auto-style64" colspan="2">
- <asp:Label ID="lblPoraka" runat="server"></asp:Label>
- </td>
- </tr>
- <tr>
- <td class="auto-style70" colspan="2"> </td>
- <td class="auto-style64" colspan="2"> </td>
- <td class="auto-style41"> </td>
- </tr>
- <tr>
- <td class="auto-style70" colspan="2"> </td>
- <td class="auto-style64" colspan="2"> </td>
- <td class="auto-style41"> </td>
- </tr>
- <tr>
- <td class="auto-style21" colspan="5">
- <asp:Button ID="btnCancel0" runat="server" CausesValidation="False" Text="Cancel" cssClass="btn btn-primary; " Font-Names="Century Gothic" Font-Size="Large" ForeColor="White" BackColor="#337AB7" Width="131px" OnClick="btnCancel0_Click1"/>
- <asp:Button ID="btnAdd0" runat="server" OnClick="btnAdd0_Click" Text="Next" ValidationGroup="gr" cssClass="btn btn-primary; " Font-Names="Century Gothic" Font-Size="Large" ForeColor="White" BackColor="#337AB7" Width="131px" />
- </td>
- </tr>
- </table>
- <br />
- </asp:View>
- <asp:View ID="View2" runat="server">
- <table class="auto-style1">
- <tr>
- <td class="auto-style46" colspan="2">
- <asp:HyperLink ID="hlLogOut0" runat="server" cssClass="btn btn-success; " Font-Names="Century Gothic" Font-Size="Large" ForeColor="White" BackColor="#5CB85C" Width="131px" NavigateUrl="~/LogOut.aspx">Log out</asp:HyperLink>
- </td>
- <td class="auto-style6" colspan="2">
- <asp:Image ID="Image5" runat="server" CssClass="auto-style8" Height="47px" ImageUrl="~/PERSON.png" Width="50px" />
- <asp:Label ID="Label8" runat="server" Font-Names="Century Gothic" Font-Size="Large" Text="Username ID: "></asp:Label>
- <asp:Label ID="lblLogiranKorisnik0" runat="server" Font-Bold="False" Font-Names="Century Gothic" Font-Size="Large"></asp:Label>
- </td>
- </tr>
- <tr>
- <td class="auto-style46" colspan="2">
- <asp:HyperLink ID="hlHelp0" runat="server" cssClass="btn btn-success; " Font-Names="Century Gothic" Font-Size="Large" ForeColor="White" BackColor="#5CB85C" Width="131px" NavigateUrl="~/Contact.aspx">Help ?</asp:HyperLink>
- </td>
- <td class="auto-style6" colspan="2"> </td>
- </tr>
- <tr>
- <td class="auto-style5" colspan="4">
- <asp:Image ID="Image1" runat="server" ImageUrl="~/Screenshot_2.png" style="text-align: center" Width="514px" />
- </td>
- </tr>
- <tr>
- <td class="auto-style58" colspan="4"></td>
- </tr>
- <tr>
- <td class="auto-style16">
- <asp:Label ID="Label17" runat="server" Font-Names="Century Gothic" Text="Agent ID: "></asp:Label>
- </td>
- <td class="auto-style12">
- <asp:TextBox ID="txtAgent" runat="server" ReadOnly="True" Width="160px" BackColor="#CCCCCC" Font-Names="Century Gothic" CssClass="form-control" ></asp:TextBox>
- </td>
- <td class="auto-style20">
- <asp:Label ID="Label1" runat="server" Visible="False" Font-Names="Century Gothic"></asp:Label>
- </td>
- <td class="auto-style23">
- <asp:TextBox ID="TextBox1" runat="server" Visible="False" Width="160px" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="TextBox1" Display="None" Font-Names="Century Gothic" ForeColor="Red" ValidationGroup="grupa"></asp:RequiredFieldValidator>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" ControlToValidate="TextBox1" Display="None" ValidationExpression="\d+" ValidationGroup="grupa"></asp:RegularExpressionValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style16">
- <asp:Label ID="Label18" runat="server" Font-Names="Century Gothic" Text="Client ID: "></asp:Label>
- </td>
- <td class="auto-style56">
- <asp:TextBox ID="txtKlient" runat="server" ReadOnly="True" Width="160px" BackColor="#CCCCCC" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- </td>
- <td class="auto-style20">
- <asp:Label ID="Label2" runat="server" Visible="False" Font-Names="Century Gothic"></asp:Label>
- </td>
- <td class="auto-style23">
- <asp:TextBox ID="TextBox2" runat="server" Visible="False" Width="160px" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="TextBox2" Display="None" Font-Names="Century Gothic" ForeColor="Red" ValidationGroup="grupa"></asp:RequiredFieldValidator>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" ControlToValidate="TextBox2" Display="None" ValidationExpression="\d+" ValidationGroup="grupa"></asp:RegularExpressionValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style16">
- <asp:Label ID="Label19" runat="server" Font-Names="Century Gothic" Text="Type of policy:"></asp:Label>
- </td>
- <td class="auto-style56">
- <asp:DropDownList ID="ddlPolisa" runat="server" Width="160px" BackColor="#337AB7" Font-Names="Century Gothic" ForeColor="White" AutoPostBack="True" OnSelectedIndexChanged="ddlPolisa_SelectedIndexChanged">
- <asp:ListItem>Choose an item</asp:ListItem>
- <asp:ListItem Value="10000">Health insurance</asp:ListItem>
- <asp:ListItem Value="20000">Property insurance</asp:ListItem>
- <asp:ListItem Value="30000">Vehicle insurance</asp:ListItem>
- </asp:DropDownList>
- </td>
- <td class="auto-style20">
- <asp:Label ID="Label3" runat="server" Visible="False" Font-Names="Century Gothic"></asp:Label>
- </td>
- <td class="auto-style23">
- <asp:TextBox ID="TextBox3" runat="server" Visible="False" Width="160px" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="TextBox3" Display="None" Font-Names="Century Gothic" ForeColor="Red" ValidationGroup="grupa"></asp:RequiredFieldValidator>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" ControlToValidate="TextBox3" Display="None" ValidationExpression="\d+" ValidationGroup="grupa"></asp:RegularExpressionValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style16">
- <asp:Label ID="Label20" runat="server" Font-Names="Century Gothic" Text="Policy ID: "></asp:Label>
- </td>
- <td class="auto-style56">
- <asp:TextBox ID="txtPolisa" runat="server" Width="160px" BackColor="#CCCCCC" Enabled="False" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- </td>
- <td class="auto-style20">
- <asp:Label ID="Label4" runat="server" Visible="False" Font-Names="Century Gothic"></asp:Label>
- </td>
- <td class="auto-style23">
- <asp:TextBox ID="TextBox4" runat="server" Visible="False" Width="160px" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="TextBox4" Display="None" Font-Names="Century Gothic" ForeColor="Red" ValidationGroup="grupa"></asp:RequiredFieldValidator>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server" ControlToValidate="TextBox4" Display="None" ValidationExpression="\d+" ValidationGroup="grupa"></asp:RegularExpressionValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style16">
- <asp:Label ID="Label21" runat="server" Font-Names="Century Gothic" Text="Price (MKD): "></asp:Label>
- </td>
- <td class="auto-style56">
- <asp:TextBox ID="txtCena" runat="server" Width="160px" BackColor="#CCCCCC" Enabled="False" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- </td>
- <td class="auto-style20">
- <asp:Label ID="Label5" runat="server" Visible="False" Font-Names="Century Gothic"></asp:Label>
- </td>
- <td class="auto-style23">
- <asp:RegularExpressionValidator ID="RegularExpressionValidator11" runat="server" ControlToValidate="TextBox5" Display="None" ValidationExpression="\d+" ValidationGroup="grupa"></asp:RegularExpressionValidator>
- <asp:TextBox ID="TextBox5" runat="server" Visible="False" Width="160px" Font-Names="Century Gothic" CssClass="form-control"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="TextBox5" Display="None" Font-Names="Century Gothic" ForeColor="Red" ValidationGroup="grupa"></asp:RequiredFieldValidator>
- </td>
- </tr>
- <tr>
- <td class="auto-style17"> </td>
- <td class="auto-style57"> </td>
- <td class="auto-style20"> </td>
- <td> </td>
- </tr>
- <tr>
- <td class="auto-style17"> </td>
- <td class="auto-style57">
- <asp:Label ID="Label6" runat="server" Font-Names="Century Gothic"></asp:Label>
- </td>
- <td class="auto-style15"> </td>
- <td> </td>
- </tr>
- <tr>
- <td class="auto-style17"> </td>
- <td class="auto-style57">
- </td>
- <td colspan="2">
- <asp:ValidationSummary ID="ValidationSummary2" runat="server" Font-Names="Century Gothic" Font-Size="Large" ForeColor="Red" HeaderText="All fields should be filled with numeric values." ValidationGroup="grupa" />
- </td>
- </tr>
- <tr>
- <td class="auto-style17"> </td>
- <td class="auto-style57"> </td>
- <td class="auto-style15"> </td>
- <td> </td>
- </tr>
- <tr>
- <td class="auto-style17"> </td>
- <td class="auto-style57"> </td>
- <td class="auto-style15"> </td>
- <td> </td>
- </tr>
- <tr>
- <td class="auto-style17"> </td>
- <td class="auto-style57"> </td>
- <td class="auto-style15"> </td>
- <td> </td>
- </tr>
- <tr>
- <td class="auto-style21" colspan="4">
- <asp:Button ID="btnBack" runat="server" OnClick="btnBack_Click" cssClass="btn btn-primary; " Font-Names="Century Gothic" Font-Size="Large" ForeColor="White" BackColor="#337AB7" Width="131px" Text="Back" />
- <asp:Button ID="btnFinal" runat="server" OnClick="btnFinal_Click" Text="Add" cssClass="btn btn-primary; " Font-Names="Century Gothic" Font-Size="Large" ForeColor="White" BackColor="#337AB7" Width="131px" ValidationGroup="grupa" />
- </td>
- </tr>
- <tr>
- <td class="auto-style21" colspan="4"> </td>
- </tr>
- <tr>
- <td class="auto-style21" colspan="4"> </td>
- </tr>
- </table>
- </asp:View>
- </asp:MultiView>
- </form>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement