<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RemoveTempFile.aspx.cs" Inherits="CLIP.eForm.Consent.Web.RemoveTempFile" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function ConfirmMessage()
        {
            var calendarDate = '<%= calendar1.SelectedDate.Date.ToShortDateString() %>';
            if (calendarDate == "0001-01-01")
            {
                alert("삭제 기준일자를 선택하여 주십시오.");
                return false;
            }

            if (confirm(calendarDate + "일 이전의 임시파일을 삭제하시겠습니까??") == true) {
                return true;
            }else{   
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>    
        <asp:Calendar ID="calendar1" runat="server" Height="250px" Width="330px" BackColor="White" BorderColor="Black" BorderStyle="Solid" CellSpacing="1" Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" NextPrevFormat="ShortMonth">
            <DayHeaderStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" Height="8pt" />
            <DayStyle BackColor="#CCCCCC" />
            <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="White" />
            <OtherMonthDayStyle ForeColor="#999999" />
            <SelectedDayStyle BackColor="#333399" ForeColor="White" />
            <TitleStyle BackColor="#333399" BorderStyle="Solid" Font-Bold="True" Font-Size="12pt" ForeColor="White" Height="12pt" />
            <TodayDayStyle BackColor="#999999" ForeColor="White" />
        </asp:Calendar>
        <p />
        <asp:Button ID="btnDelete" runat="server" Text="이전 임시파일 삭제하기" OnClick="btnDelete_Click" Width="158px" OnClientClick="return ConfirmMessage();"/>
    
    </div>
    </form>
</body>
</html>
