package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import project.ConnectionProvider;
import java.sql.*;

public final class HomeForAll_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List<String> _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList<String>(1);
    _jspx_dependants.add("/header for userHome.jsp");
  }

  private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector;

  public java.util.List<String> getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"error.jsp", true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;
      _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");

      out.write('\n');
      out.write('\n');
      out.write("\n");
      out.write("<!DOCTYPE html>\n");
      out.write("<html>\n");
      out.write("    <head>\n");
      out.write("        <link rel=\"stylesheet\" href=\"css/home-style.css\">\n");
      out.write("       \n");
      out.write("    </head>\n");
      out.write("    <!--Header-->\n");
      out.write("    \n");
      out.write("    <div class=\"topnav sticky\">\n");
      out.write("        \n");
      out.write("\n");
      out.write("        <img src=\"images/CLINIHR Logo.png\" alt=\"CLINICA\" style=\"width:90px; height: 49px; float: left; background-color: white\"> \n");
      out.write("        \n");
      out.write("        <a href=\"HomeForAll.jsp\">Home</a>\n");
      out.write("        <a href=\"aboutForAll.jsp\">About </a>\n");
      out.write("        <a href=\"login.jsp\">Login </a>\n");
      out.write("        \n");
      out.write("    </div>\n");
      out.write("    <br>");
      out.write("\n");
      out.write("\n");
      out.write("<html lang=\"en\">\n");
      out.write("<head>\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n");
      out.write(" <link rel=\"stylesheet\" href=\"css/alerts.css\"> \n");
      out.write("<title>Home</title>\n");
      out.write("<style>\n");
      out.write("*{\n");
      out.write("margin: 0px;\n");
      out.write("}\n");
      out.write(" \n");
      out.write("            .about-me {\n");
      out.write("                display: flex;\n");
      out.write("                justify-content: center;\n");
      out.write("                align-items: center;\n");
      out.write("                padding: 40px 80px;\n");
      out.write("            }\n");
      out.write("\n");
      out.write("            .about-me img {\n");
      out.write("                width: 500px;\n");
      out.write("                max-width: 100%;\n");
      out.write("                height: auto;\n");
      out.write("                border-radius: 10px;\n");
      out.write("            }\n");
      out.write("\n");
      out.write("            .about-me-text h2 {\n");
      out.write("                font-size: 30px;\n");
      out.write("                color: #333333;\n");
      out.write("                text-transform: uppercase;\n");
      out.write("                margin: 0;\n");
      out.write("            }\n");
      out.write("\n");
      out.write("            .about-me-text p {\n");
      out.write("                font-size: 15px;\n");
      out.write("                color: #585858;\n");
      out.write("                margin: 10px 0px 10px;\n");
      out.write("                margin-right: 60px;\n");
      out.write("                justify-content: space-between;\n");
      out.write("            }\n");
      out.write("            .register {\n");
      out.write("                align-self: center;\n");
      out.write("                width: 25%;\n");
      out.write("                padding: 10px 10px;\n");
      out.write("                background-color: navy;\n");
      out.write("                color: white;\n");
      out.write("                text-align: center;\n");
      out.write("                border-radius: 10px;\n");
      out.write("                border: none;\n");
      out.write("                text-decoration: none;\n");
      out.write("            }\n");
      out.write("        \n");
      out.write("</style>\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("    <div class=\"modal-content animate\">\n");

String msg=request.getParameter("msg");
if("login".equals(msg)){

      out.write("\n");
      out.write("<div class=\"alert\"> \n");
      out.write("  <button class=\"closebtn\"><i class=\"fa fa-close\"></i></button>\n");
      out.write("  <strong>Login to Buy Products</strong>\n");
      out.write("</div>\n");
}
      out.write("\n");
      out.write("\n");
      out.write("\n");

if("invalid".equals(msg)){

      out.write("\n");
      out.write("<div class=\"alert\"> \n");
      out.write("  <button class=\"closebtn\"><i class=\"fa fa-close\"></i></button>\n");
      out.write("<strong>Something Went Wrong!!! Try Again</strong>\n");
      out.write("</div>\n");
}
      out.write("\n");
      out.write("    </div>\n");
      out.write("    <script>\n");
      out.write("var close = document.getElementsByClassName(\"closebtn\");\n");
      out.write("var i;\n");
      out.write("\n");
      out.write("for (i = 0; i < close.length; i++) {\n");
      out.write("  close[i].onclick = function(){\n");
      out.write("    var div = this.parentElement;\n");
      out.write("    div.style.opacity = \"0\";\n");
      out.write("    setTimeout(function(){ div.style.display = \"none\"; }, 600);\n");
      out.write("  }\n");
      out.write("}\n");
      out.write("</script>\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("<div class=\"about-me\">\n");
      out.write("            <div class=\"about-me-text\">\n");
      out.write("                \n");
      out.write("                <p>CLINICA Research Solutions LLP is a Navi Mumbai based full-service Clinical Research Organization (CRO) with a focus on human studies. Comprehensive services provided by us support pharmaceuticals (Allopathic, Herbal, and Homeopathy medicines), Nutraceuticals, Cosmeceuticals, Biotechnology, Medical Diagnostics and Medical Device companies with their pre- and post-approval clinical development strategies. We have expertise in designing, executing, and concluding the studies to satisfy Regulatory requirements and Market needs. We, as a group have conducted hundreds of studies and have gained vast knowledge and learned important tricks in completion of the studies. We are known for conducting studies in the most efficient manner either of cost or timelines. Our trained staff work with the concept of an ?Extended Arm of Your Team?, unlike working as a CRO.</p>\n");
      out.write("                <button type=\"submit\" class=\"register\"><a href=\"aboutForAll.jsp\" class=\"register\">Know More</a></button>\n");
      out.write("            </div>\n");
      out.write("            <img src=\"images/coamplifi_workforcemgmt-750x550.jpg\" alt=\"me\">\n");
      out.write("        </div>  \n");
      out.write("\n");
      out.write("</body>\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
