<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ManageWebSpace.ascx.vb"
    Inherits="Controls_ManageWebSpace" %>
<%@ Register Src="../Controls/CustomContent.ascx" TagName="CustomContent" TagPrefix="uc" %>
<!-- begin content area -->
<!-- ################################# -->
    <script type="text/JavaScript">

  window.onload = function()
  {
        var myBoxObject = new curvyCorners(settings, "ValidationSummary");
        myBoxObject.applyCornersToAll();
  }

 function hideRoundBox()
  {
        if (document.getElementById ("summaryBox"))
            document.getElementById ("summaryBox").className = "HideValidationSummaryBox"; 
  }

 function hideRoundBox2()
  {
        if (document.getElementById ("summaryBox2"))
            document.getElementById ("summaryBox2").className = "HideValidationSummaryBox"; 
  }
    </script>
<!-- ################################# -->
<!-- ################################# -->
<p class="innerHeader2"><asp:Literal ID="headerText" runat="server" Visible ="true"></asp:Literal>&nbsp;<a style="font-weight:normal;margin-left:250px;" href="../Account/InternetTools.aspx">Return to Internet Services & Tools</a></p>
<asp:Panel ID="pnlMSPackageDropDown" runat="server" Visible="true">
<%--    <p class="innerHeader2">Manage My Web Space&nbsp;<a style="font-weight:normal;margin-left:40%;" href="../Account/InternetTools.aspx">Return to Internet Services & Tools</a></p>
--%>
    <p>
        <b>Use the dropdown to select a package to manage.</b><br />
        <br />
        <asp:DropDownList ID="ddlMSPackage" runat="server" Width="208px" AutoPostBack="true">
        </asp:DropDownList>
        <br />
        <br />
    </p>
</asp:Panel>
<asp:Panel ID="pnlExistingUser" runat="server" Visible="true">
    <asp:Literal ID="introTxt" runat="server"></asp:Literal>
    <br />
    <table width="95%" border="0" align="center" cellpadding="3" cellspacing="0" style="border: 1px solid #78c4de;
        margin-left: 10px;">
        <tr align="left" valign="top">
            <td>
                <p>
                    <asp:Label ID="lblPackageDescription" runat="server" Font-Bold="true" ForeColor="black"></asp:Label></p>
            </td>
            <td style="text-align: center; font-weight: bolder;">
                Edit</td>
            <td style="text-align: center; font-weight: bolder;">
                Delete</td>
        </tr>
        <tr align="left" valign="top" bgcolor="#F1FAFD">
            <td style="text-align: left;">
                <p>
                    <asp:Label ID="lblWebSpaceName" runat="server" ForeColor="black"></asp:Label></p>
            </td>
            <td style="text-align: center">
                <asp:LinkButton ID="linkbtnChangeWebSpacePassword" runat="server" Text="Edit" />
            </td>
            <td style="text-align: center;">
                &nbsp; &nbsp;<asp:LinkButton ID="linkbtnRemoveWebspace" runat="server" Text="Delete" />
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td style="background-color: #e8e8e8;">
                <asp:Label ID="ltrRemoveWebspaceMessage" runat="server" ForeColor="red"></asp:Label></td>
        </tr>
    </table>
    <br />
</asp:Panel>
<asp:Panel ID="pnlNewUser" runat="server" DefaultButton="btnSubmit" Visible="true">
    <div style="padding-left:10px;">
        <div id="summaryBox2" style="padding:10px;"><asp:Label ID="ltrMessage" runat="server" ForeColor="red"></asp:Label></div>        
            <uc:CustomContent ID="CustomContent1" runat="server" ContentKey="myaccount:managewebspace:newuser" />
        <font color="red">*Required Fields</font>        
    </div> 

   
<table width="95%" border="0" cellpadding="0" cellspacing="0" style="margin-top: 10px;line-height: 22px; margin-left: 20px;">
  <tr>
    <td width="26%"></td>
    <td><asp:TextBox ID="txtProvisioningID" runat="server" Visible="false" Style="padding-left: 1px" ValidationGroup="pnlNewUser"></asp:TextBox></td>
  </tr>
  <tr>
    <td width="26%" style="text-align:right;"><font color="red">*</font>Username&nbsp;</td>
    <td>
      <asp:TextBox TabIndex="1001" ID="txtUserName" runat="server" Width="200px" Style="padding-left: 1px" ValidationGroup="pnlNewUser"></asp:TextBox>&nbsp;<a href="../customers/support.aspx?SupportArticleID=1777" target="_blank">Username/Password Suggestions</a>         </td>
  </tr>
  <tr>
    <td width="26%" nowrap>&nbsp;</td>
    <td nowrap><asp:RegularExpressionValidator ValidationGroup="pnlNewUser" ID="vldUserNameSpecialChar" runat="server" ControlToValidate="txtUserName"
                    ErrorMessage="The only special characters allowed for <b>Username</b> are .(dot), -(dash) or _(underscore)."
                    Text="" Display="Dynamic" ValidationExpression="^[a-zA-Z0-9._-]+$"></asp:RegularExpressionValidator> 
    </td>
  </tr>
  <tr>
    <td width="26%" style="text-align:right;"><font color="red">*</font>Password&nbsp;</td>
    <td nowrap><asp:TextBox TabIndex="1002" ID="txtPassword" MaxLength="20" ValidationGroup="pnlNewUser" runat="server" TextMode="Password" Width="200px" Style="padding-left: 1px"></asp:TextBox>&nbsp;(Minimum of 8 characters, passwords are case sensitive.)    </td>
  </tr>
  <tr>
    <td width="26%">&nbsp;</td>
    <td nowrap><asp:RegularExpressionValidator ValidationGroup="pnlNewUser" ID="vldPasswordSpecialChar" runat="server" ControlToValidate="txtPassword"
                                ErrorMessage="<b>Password</b> does not allow \(back slash) or &quot;(quotes)."
                                Text="" Display="dynamic" ValidationExpression="^[^\\^&quot;]*$"></asp:RegularExpressionValidator></td>
  </tr>
  <tr>
    <td width="26%" style="text-align:right;"><font color="red">*</font>Confirm Password&nbsp;</td>
    <td nowrap><asp:TextBox TabIndex="1003" ID="txtPassword2" MaxLength="20" ValidationGroup="pnlNewUser" runat="server" TextMode="Password" Width="200px" Style="padding-left: 1px"></asp:TextBox>    </td>
  </tr>
  <tr>
    <td width="26%">&nbsp;</td>
    <td>
      <asp:RegularExpressionValidator ValidationGroup="pnlNewUser" ID="vldPassword2SpecialChar" runat="server" ControlToValidate="txtPassword2"
      ErrorMessage="<b>Confirm Password</b> does not allow \(back slash) or &quot;(quotes)." Text="" Display="dynamic" ValidationExpression="^[^\\^&quot;]*$"></asp:RegularExpressionValidator></td>
  </tr>
  <tr>
    <td width="26%">&nbsp;</td>
    <td><asp:ImageButton TabIndex="1004" OnClientClick="hideRoundBox2()" ID="btnSubmit" runat="server" ImageUrl="../Images/createwebspace.ccom" ValidationGroup="pnlNewUser" /><br /><br />    </td>
  </tr>
</table>

</asp:Panel>
<asp:Panel ID="pnlEditPassword" runat="server" Visible="true" DefaultButton="btnChangePassword">
    <div style="padding: 20px;">
         <!-- there should be no space between summarBox div and the asp:leteral -->
        <div id="summaryBox" style="padding:0px; color:Red;"><asp:Literal ID="ltrEditWebSpacePWMessage" runat="server"></asp:Literal></div>
        <br />
        <div style="padding-left: 10px;">
            <b>Edit Web space Password</b><br />
            <font color="red">*Required Fields</font></div>
        <table width="95%" border="0" cellpadding="0" cellspacing="0" style="margin-top: 10px;
            line-height: 22px; margin-left: 10px;">
            <tr>
                <td width="26%" style="text-align:right">
                    <font color="red">*</font>Username&nbsp;</td>
                <td>
                    <asp:TextBox ID="txtWebspaceAccount_EditPW" runat="server" Enabled="false" Width="150"
                        Style="padding-left: 1px"></asp:TextBox>&nbsp;<a href="../customers/support.aspx?SupportArticleID=1777"
                            target="_blank">Username/Password Suggestions</a>
                </td>
            </tr>
            <tr>
                <td width="26%" nowrap>
                </td>
                <td nowrap>&nbsp;
                    </td>
            </tr>
            <tr>
                <td width="26%" style="text-align:right">
                    <font color="red">*</font>Password&nbsp;</td>
                <td nowrap>
                    <asp:TextBox ID="txtPassword_EditPW" runat="server" MaxLength="20" TextMode="Password" Width="150"
                        Style="padding-left: 1px"></asp:TextBox>&nbsp;(Minimum of 8 characters, passwords
                    are case sensitive.)
                </td>
            </tr>
            <tr>
                <td width="26%">&nbsp;
                    </td>
                <td nowrap>
                    <asp:RegularExpressionValidator ID="vldPasswordEditSpecialChar" runat="server" ControlToValidate="txtPassword_EditPW"
                        ErrorMessage="<b>Password</b> does not allow \(back slash) or &quot;(quotes)."  ValidationGroup="editEmailAccount" 
                        Text="" Display="Dynamic" ValidationExpression="^[^\\^&quot;]*$"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator  ValidationGroup="editEmailAccount" ID="vldPasswordRequired_EditPW" runat="server" ControlToValidate="txtPassword_EditPW"
                        Display="Dynamic" ErrorMessage="<b>Password</b> is a required field."></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td width="26%" style="text-align:right">
                    <font color="red">*</font>Confirm Password&nbsp;</td>
                <td nowrap>
                    <asp:TextBox ID="txtPassword_EditPW2" runat="server" TextMode="Password" Width="150" MaxLength="20"
                        Style="padding-left: 1px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="vldPassword2EditSpecialChar" runat="server" ControlToValidate="txtPassword_EditPW2"
                         ValidationGroup="editEmailAccount" ErrorMessage="<b>Confirm Password</b> does not allow \(back slash) or &quot;(quotes)."
                        Text="" Display="Dynamic" ValidationExpression="^[^\\^&quot;]*$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td width="26%">&nbsp;
                    </td>
                <td nowrap>
                    <asp:RequiredFieldValidator ID="vldPassword2Required_EditPW" runat="server" ControlToValidate="txtPassword_EditPW2"
                        Display="Dynamic" ValidationGroup="editEmailAccount" ErrorMessage="<b>Confirm Password</b> is a required field."></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="vldPassword2Compare_EditPW" runat="server" ControlToCompare="txtPassword_EditPW"  ValidationGroup="editEmailAccount" 
                        ControlToValidate="txtPassword_EditPW2" Display="Dynamic" ErrorMessage="<b>Confirm Password</b> does not match <b>Password</b>."></asp:CompareValidator></td>
            </tr>
            <tr>
                <td width="26%">&nbsp;
                    </td>
                <td nowrap>
                    <asp:ImageButton ID="btnChangePassword" runat="server" ImageUrl="../Images/savechanges.ccom"
                        OnClientClick="hideRoundBox()" ValidationGroup="editEmailAccount"  />
                    &nbsp;&nbsp;&nbsp;
                    <asp:ImageButton ID="btnReset" runat="server" ImageUrl="../Images/reset.ccom" ValidationGroup="none" /></td>
            </tr>
        </table>

    </div>
</asp:Panel>
<!-- end content area -->
<!-- end PanelSubpanelBlue template -->
