<%@ include file="validate.jsp"%>
<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="GBK"%>
<%@ page import="cn.sendsms.jdsmsserver.*"%>
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragrma","no-cache");
response.setDateHeader("Expires",0);
%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title><%
		out.println(ResourceManager.getInstance().getBykey(ResourceManager.getInstance().m_sDefault).getString("settings.home_title"));
	%></title>
<link href="css.css?v=369_2" type="text/css" rel="stylesheet">
<style type="text/css">
a{color:#5785b2;}
a:hover{text-decoration:underline;}
</style>
</head>
<body style="background:#fff;">

<div id="top"><span><img src="img/tu1.jpg"></span><%
		out.println(ResourceManager.getInstance().getBykey(ResourceManager.getInstance().m_sDefault).getString("settings.home_title"));
	%></div>
<div id="center">
<div id="welcome" class="content" style="display:block;">
       
  <div align="center" style="background: none;">
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <div style="width:584px;text-align:left;">
            <strong style="font-size:32px;color:#5785b2;"><%
                out.println(ResourceManager.getInstance().getBykey(ResourceManager.getInstance().m_sDefault).getString("settings.home_hello"));
            %><%
        //String username1 = (String)request.getSession().getAttribute("user").getUserId();
            String username1=user.getUserId();
            out.print(username1+"!");   
        %>
        </strong><strong style="font-size:32px;color:#5785b2;display: block;">
        <%
                out.println(" "+ResourceManager.getInstance().getBykey(ResourceManager.getInstance().m_sDefault).getString("settings.home_welcome"));
            %></strong>            
    </div>    
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <table border="0" style="border:none;min-width: 584px;"><tr>
    <%
      if(user.getFlag() == 1 || "admin".equals(user.getUserId())){
    	  
    %>    
    <td style="border:none;text-align:center;background:#33b1d8;color:#fff;border-radius:12px;font-size:16px;width:140px;height:120px;padding:0px;" ><a href="/device-config?action=refresh" style="display:block;width:140px;height:140px;color:#fff;" target="main" ><img border="0" style="width:80px;margin-top:15px;margin-bottom:6px" src="w_img/id_sp1.gif"><br/><%
		out.println(ResourceManager.getInstance().getBykey(ResourceManager.getInstance().m_sDefault).getString("settings.menu_device_settings"));
	%></a></td>
    <td style="border:none"> <img src="img/id_tu1.png"></td>
    <td style="border:none;text-align:center;background:#33b1d8;color:#fff;border-radius:12px;font-size:16px;width:140px;height:140px;padding:0px;"><a href="/datasource-config?action=Init" style="display:block;width:140px;height:140px;color:#fff;" target="main"><img border="0" style="width:75px;margin-top:15px;margin-bottom:7px" src="w_img/id_sp3.gif"><br/><%
		out.println(ResourceManager.getInstance().getBykey(ResourceManager.getInstance().m_sDefault).getString("settings.menu_db"));
	%></a></td>
    <td style="border:none"> <img src="img/id_tu1.png"></td>
    <td style="border:none;text-align:center;background:#33b1d8;color:#fff;border-radius:12px;font-size:16px;width:140px;height:140px;padding:0px;"><a href="/smsAction?action=Init" style="display:block;width:140px;height:140px;color:#fff;" target="main"><img border="0" src="w_img/id_sp2.gif" style="width:70px;margin-top:15px;margin-bottom:15px"><br/><%
		out.println(ResourceManager.getInstance().getBykey(ResourceManager.getInstance().m_sDefault).getString("settings.menu_send_msg"));
	%></a></td></tr></table>
   <%
      }
    %>
    </div>
    <p style="clear: both;text-align: center;padding-bottom: 20px;position: fixed;bottom: 0px;left: 0px;width: 100%;z-index:-1;"><a href="/doc/JDSMS_Web_UserGuide.pdf"><% out.println(ResourceManager.getInstance().getBykey(ResourceManager.getInstance().m_sDefault).getString("settings.user_guide"));%></a></p>
</div>

</div>

</body>
</html>