<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="footer.ascx.cs" Inherits="SedonaWeb.controls.footer" %>
<%@ Import Namespace="SedonaWeb.SWSCore" %>
<br />
<br />
<asp:Panel ID="foot" runat="server" CssClass="footerAddress">
    <div>
        <strong><a href='https://www.boldgroup.com/financial-management-solutions/sedonaoffice/'>SedonaOffice</a></strong>
        <span> | 4050 Lee Vance Dr. Suite 250, Colorado Springs, CO, 80919 | (800) 255-2653</span>
    </div>
    <div>Copyright ©Bold Group <%= this.CopyrightYear %>. All rights reserved.</div>
</asp:Panel>
<%
  PerennialScriptPanel.Visible = WebSettings.ShowPerennialCustomizations;
%>
<asp:Panel ID="PerennialScriptPanel" runat="server">
  <script type="text/javascript">
    $(function () {
      $("#UserDef3DropDown").change(function () {
        var jqDropDown = $(this);
        var ticketId = $("#UserDef3TicketId").val();
        var table3Id = jqDropDown.val();
        var jqImg = $("img", jqDropDown.parent());
        var jqResult = $("#UserDef3Result").hide();
        jqImg.show();
        $.ajax({
          url: "/UserDef/ChangeUserDef3",
          type: "POST",
          dataType: "json",
          data: JSON.stringify({ "ticketId": ticketId, "table3Id": table3Id }),
          contentType: "application/json; charset=utf-8",
          success: function (result) {
            jqImg.hide();

            if (result) {
              jqResult.addClass("success_message").removeClass("error_message").html("Thanks for the input.").show();
              return;
            }

            jqResult.removeClass("success_message").addClass("error_message").html("Unable to process your input.").show();
          }
        });
      });
    });
  </script>
</asp:Panel>