RemoveTempFile.aspx 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RemoveTempFile.aspx.cs" Inherits="CLIP.eForm.Consent.Web.RemoveTempFile" %>
  2. <!DOCTYPE html>
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5. <title></title>
  6. <script type="text/javascript">
  7. function ConfirmMessage()
  8. {
  9. var calendarDate = '<%= calendar1.SelectedDate.Date.ToShortDateString() %>';
  10. if (calendarDate == "0001-01-01")
  11. {
  12. alert("삭제 기준일자를 선택하여 주십시오.");
  13. return false;
  14. }
  15. if (confirm(calendarDate + "일 이전의 임시파일을 삭제하시겠습니까??") == true) {
  16. return true;
  17. }else{
  18. return false;
  19. }
  20. }
  21. </script>
  22. </head>
  23. <body>
  24. <form id="form1" runat="server">
  25. <div>
  26. <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">
  27. <DayHeaderStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" Height="8pt" />
  28. <DayStyle BackColor="#CCCCCC" />
  29. <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="White" />
  30. <OtherMonthDayStyle ForeColor="#999999" />
  31. <SelectedDayStyle BackColor="#333399" ForeColor="White" />
  32. <TitleStyle BackColor="#333399" BorderStyle="Solid" Font-Bold="True" Font-Size="12pt" ForeColor="White" Height="12pt" />
  33. <TodayDayStyle BackColor="#999999" ForeColor="White" />
  34. </asp:Calendar>
  35. <p />
  36. <asp:Button ID="btnDelete" runat="server" Text="이전 임시파일 삭제하기" OnClick="btnDelete_Click" Width="158px" OnClientClick="return ConfirmMessage();"/>
  37. </div>
  38. </form>
  39. </body>
  40. </html>