<!--#include file="../../include/jschedule/calendar.asp"-->
<!--#include file="../../include/jschedule/cal-functions.asp"-->
<%
'jschedule/calendar/propWday.asp (Last Update 2001.02.19)
'-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
'   ESMPRO/JMSS WebClient (JSchedule) Version 6.0
'   Copyright (C) NEC Corporation/NEC Soft, Ltd. 2001
'   All rights reserved
'-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
'**Start Encode**

    Dim nYear       '\N
    Dim nMonth      '\
    Dim nCalID      'J_ID
    Dim nWday       'Tԍ

    nYear  = Request.QueryString("nYear")
    nMonth = Request.QueryString("nMonth")
    nCalID = Request.QueryString("nCalID")
    nWDay  = Request.QueryString("nWday")

    Dim strWeekDayName
    Dim lngWeekFlag
    Dim aryWeekFlg

    aryWeekFlg = Array(0,0,0,0,0)

    '*** j̎擾 ***
'    aryWeekDayName  = Array("","","","","","","y")

    If Len(nWday) > 0 Then
        strWeekDayName= aryWeekDayName(nWday)
    Else
        Response.End
    End If

    '*** Ώۗjx~̎擾 ***

    'ݎ擾łȂ
    'Session("jsch").JSchHolData CLng(14), CLng(202), Null

'   If (Session("jsch").SchCalData.HolPage.Flag = 0) Then
'       opt_Date.value = True
'   ElseIf (Session("jsch").SchCalData.HolPage.Flag = 1) Then
'       opt_Week.value = True
'   ElseIf (Session("jsch").SchCalData.HolPage.Flag = 2) Then
'       opt_Del.value = True
'   End If

'   lngWeekFlag = Session("jsch").SchCalData.HolPage.Week
'   strWeekFlag = Right("00000" & CStr(lngWeekFlag), 5)

'   For i=1 To 5
'       If Mid(strWeekFlag, i, 1) = "1" Then
'           aryWeekFlg(i-1)= 1
'       End If
'   Next

    'lbl_HolID.Caption = Session("jsch").SchCalData.HolPage.Index
    'lbl_CalID.Caption = Session("jsch").SchCalData.CalPage.CalID

    'cmb_WeekDay.ListIndex = Session("jsch").SchCalData.HolPage.WDay
%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">

<title>JMSS - jݒ</title>
<link rel="stylesheet" type="text/css" href="../../include/jmss.css">
<script src="../../include/functions.js"></script>
<!-- ///////////////////////// client script section ////////////////////////// -->
<script language="JavaScript">
<!--
function onClick_Ok(){

    varAry = new Array("0","0","0","0","0");
    varFlg = false;

    for (i=0; i < 5; i++){
        if (eval("document.f.C" + (i+1) + ".checked")){
            varAry[i]="1";
            varFlg = true;
        }
    }

    if (varFlg){
        varAry.reverse();

        varHref = "propCal.asp?nCalID=<% =nCalID %>"
        varHref = varHref + "&nYear=<% =nYear %>&nMonth=<% =nMonth %>";
        varHref = varHref + "&nWday=<% =nWday %>";
        varHref = varHref + "&nRegistType=3";
        varHref = varHref + "&szWeek=" + varAry.join("");

        top.opener.location.href = varHref
    }
    top.close();
}

//-->
</script>

</head>

<!-- ////////////////////////////// main section ////////////////////////////// -->
<body class="dialog">

<form method="POST" action="javascript:parentset();" name="f">
  <table border="0" cellspacing="2" cellpadding="2" hight="100%" width="100%">
    <tr>
    <td bgcolor="#4080C0" nowrap>
      <font color="#FFFFFF"><b><%=strWeekDayName%>j x~ݒ</b></font>
    </td>
    </tr>
    <tr>
      <td nowrap><input type="checkbox" name="C1" checked>&nbsp;P<%=strWeekDayName%>j</td>
    </tr>
    <tr>
      <td nowrap><input type="checkbox" name="C2" checked>&nbsp;Q<%=strWeekDayName%>j</td>
    </tr>
    <tr>
      <td nowrap><input type="checkbox" name="C3" checked>&nbsp;R<%=strWeekDayName%>j</td>
    </tr>
    <tr>
      <td nowrap><input type="checkbox" name="C4" checked>&nbsp;S<%=strWeekDayName%>j</td>
    </tr>
    <tr>
      <td nowrap><input type="checkbox" name="C5" checked>&nbsp;T<%=strWeekDayName%>j</td>
    </tr>
    <tr>
    <td>
      <p>
    </td>
    </tr>
    <tr>
    <td nowrap align="right" valign="middle" bgcolor="#4080C0" nowrap>
        <input type="button" value="@n@j@" onClick="javascript:onClick_Ok();">&nbsp;
        <input type="button" value="LZ" onClick="top.close();">&nbsp;
        <!--
        <input type="button" value="w@@v" onclick="popUpHelp();">
        -->
      </td>
    </tr>
  </table>
</form>

</body>

</html>
