<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="admin.model.SupportMod"%>
<%
String sp = request.getParameter("sp");
String user = (String) session.getAttribute("user");
%>
<% if (user == null) { response.sendRedirect("login.jsp");} else {
user = user.toLowerCase();
if (!user.equals("admin")){
	response.sendRedirect("permission.jsp");
}
else {
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel=stylesheet href='images/style.css' type=text/css>
<link rel="stylesheet" type="text/css" href="images/AjaxForm.css" />
<script type="text/javascript" src="js/CreatesSp.js"></script>
<script>
document.title="Thêm Hỗ Trợ";
document.getElementById("titleMod").innerHTML = "Thêm Hỗ Trợ";
</script>
<title>Tao Ho Tro Online</title>

</head>
<body>
<% if (sp !=null ) {%>
<div align="Center" style="border:1px solid #cfcfcf;padding:20px 10px 20px 10px;background-color:#f3f3f3; width:410px ">
<b>Đã tạo tối đa số người hỗ trợ cho phép</b>
</div>
<br>
<% } %>
<div align="Center" style="border:1px solid #cfcfcf;padding:20px 10px 10px 10px;background-color:#f3f3f3; width:412px ">

  <form name="form" id="formRegister" action="../Support" onsubmit="return validate(this)" method="post">
  <input type="hidden" name="rep" value="create"/>
  <Table>
<tr><td>Yahoo</td><td><input type="text" name="yahoo" id="yahoo" ></td></tr>
<tr><td>Tên</td><td><input type="text" name="name" id="name" ></td></tr>
<tr><td>Số điện thoại</td><td><input type="text" name="phone" id="phone"></td></tr>
<tr>
<td><br><input type="submit" class="UniXT" value="Thêm"></td>
<td><br><input class="UniXT" type="reset" value="Nhập lại"></td></tr>
   </table> 
  </form>
</div> 
</body>
<% }} %>
</html>
