<!--#include file="../include/jschedule/JSCHEDULE.ASP"-->
<% Patt=6%>
<!--#include file="../include/security-vb.inc"-->
<%
'jschedule/title.asp (Last Update 2001.07.19)
'-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
'   ESMPRO/JMSS WebClient (JSchedule) Version 6.0
'   Copyright (C) NEC Corporation/NEC Soft, Ltd. 2001
'   All rights reserved
'-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
'**Start Encode**
    Dim strMsg
    strMsg = ""

    '*** T[oؒfH ***
    If Len(Session("userName")) = 0 Then
        Response.End
    End If

    '*** ŏ̌ďoHiQƁEXV[h̎擾j ***
    If Len(Request.Form("nEditMode")) > 0 Then
        '** Qڈȍ~
        Session("nEditMode")= Request.Form("nEditMode")

    Else
        '** 
        Session("nEditMode")= 0 'defalut

        '*** 擾 ***
        Session("m_JmsHostName") = Request.ServerVariables("REMOTE_HOST") 'zXg
        Session("m_JmsHostAddr") = Request.ServerVariables("REMOTE_ADDR") 'zXgIPAhX
        Session("m_JmsUser") = UCase(Session("userName"))

        '*** IuWFNgڑ ***
        Set Session("jsch") = Server.CreateObject("JWBMSCHE.JSchedule")
        If Session("supermode") = 1 Then
            '*** SuperΉ -- 2001.05.10 ***
            Session("jsch").ConnectServer jsrvDef, jsrvDef, Session("m_JmsHostName"), Session("m_JmsHostAddr"), JWBMSCHE_VER, Session("m_JmsUser")
        Else
            Session("jsch").ConnectServer jsrvDef2, jsrvDef, Session("m_JmsHostName"), Session("m_JmsHostAddr"), JWBMSCHE_VER, Session("m_JmsUser")
        End If

        If Session("jsch").ReturnCode = 0 Then
            '*** SessionID i[ -- 2001.04.16 ***
            Session("JschSessionID") = Session("jsch").SessionID
        Else
            '*** RlNgG[ ***
            If Session("jsch").ReturnCode = CLng(1) Then
                strMsg = JSCH_MSG_S280
                Session("nScheduleConnectError") = 280
            Else
                strMsg = JSCH_MSG_S187
                Session("nScheduleConnectError") = 187
            End If
            strMsg = strMsg & "\n\n" & "jsch.ConnectServer Returns:0x" + Hex(Session("jsch").ReturnCode)
'           ClientMessageBox(strMsg)

            Set Session("jsch") = Nothing
            Session("m_JmsHostName") = ""
            Session("m_JmsHostAddr") = ""
            Session("m_JmsUser") = ""
            Session("JschSessionID") = ""

            '*** G[p^Cg\ -- 2001.05.14 ***
            Response.Redirect "../include/errort.asp?Patt=6"
            Response.End    'I

        End If

    End If
%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
<title>JSchedule</title>
<base target="compocontents">
<link rel="stylesheet" type="text/css" href="../include/jmss.css">
<script src="../include/functions.js"></script>
</head>

<!-- ////////////////////////////// main section ////////////////////////////// -->
<body class="title">
<form name="f">
    <table border="0" width="100%">
      <tr>
        <td valign="middle" nowrap><font class="title"><b>XPW[</b></font></td>
        <td>&nbsp;&nbsp;</td>
        <td valign="middle" nowrap><a href='./schedule/default.asp'><font color='#FFFFFF'>XPW[</font></a></td>
        <td>&nbsp;</td>
        <td valign="middle" nowrap><a href='./calendar/default.asp'><font color='#FFFFFF'>J_[</font></a></td>
        <td>&nbsp;</td>
        <td valign="middle" nowrap><a href='./schevent/default.asp'><font color='#FFFFFF'>CxgNWu</font></a></td>
        <td width="100%" nowrap align="right"><font color="#FFFFFF"><% =Session("jserver")%></font></td>
      </tr>
    </table>
</form>
</body>

</html>
