<%@ page language="C#" masterpagefile="~/login/Super Admin.master" autoeventwireup="true" inherits="add_downloads, App_Web_add reports.aspx.6cb53fb3" title="Welcome To Lokmangal Institute of Versatile Education" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   
    <style type="text/css">
        .style110
        {
            font-family: Verdana;
            font-size: 10pt;
        }
        .style111
        {
            width: 503px;
            text-align: left;
        }
        .style112
        {
            font-family: Verdana;
            font-size: 10pt;
            text-align: left;
        }
        .style113
        {
            text-align: left;
        }
    </style>
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="style3" style="width: 925px">
    <tr>
        <td class="style112" style="font-weight: bold">
            Add Monthly Reports ::</td>
    </tr>
</table>
<table style="width: 928px">
    <tr>
        <td class="style114">
            <table border="1" class="style3" 
                style="width: 924px; font-family: Verdana; font-size: 10pt">
                <tr>
                    <td class="style112" style="width: 171px; font-weight: normal" valign="top">
                        Select Category :</td>
                    <td class="style111">
                        <asp:DropDownList ID="DropDownList1" runat="server" Height="22px" Width="223px">
                            <asp:ListItem>Select</asp:ListItem>
                            <asp:ListItem>Camp Monthly Report</asp:ListItem>
                            <asp:ListItem>Hospital Monthly Report</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style112" style="width: 171px; font-weight: normal" valign="top">
                        Enter Heading :</td>
                    <td class="style111">
                        <font size="2">
                        <span class="style101405">
                        <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Width="503px"></asp:TextBox>
                        </span>
                        </font>
                    </td>
                </tr>
                <tr>
                    <td class="style113">
                        <asp:Label ID="Label1" runat="server" Font-Bold="False" Font-Italic="False" 
                            style="color: #000000" Text="Select Attachment :"></asp:Label>
                        &nbsp;</td>
                    <td class="style111">
                        <font size="2">
                        <span class="style101405">
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                        <asp:TextBox ID="TextBox2" runat="server" Visible="False"></asp:TextBox>
                        </span>
                        </font>
                    </td>
                </tr>
                <tr>
                    <td class="style112" style="width: 171px; font-weight: normal">
                        &nbsp;</td>
                    <td class="style111">
                        <font size="2">
                        <span class="style101405">
                        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                            style="font-weight: 700" Text="Submit" Width="182px" />
                        <asp:TextBox ID="TextBox3" runat="server" Visible="False"></asp:TextBox>
                        </span>
                        </font>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" 
    CellPadding="4" CellSpacing="2" DataKeyNames="Sr_No" 
    DataSourceID="AccessDataSource1" ForeColor="Black" Width="930px" 
        CssClass="style110" Font-Bold="False" 
        onselectedindexchanged="GridView1_SelectedIndexChanged">
    <RowStyle BackColor="White" />
    <Columns>
        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
        <asp:BoundField DataField="Sr_No" HeaderText="Sr_No" ReadOnly="True" 
            SortExpression="Sr_No" />
            <asp:BoundField DataField="Category" HeaderText="Report Type" 
            SortExpression="Category" />
        <asp:BoundField DataField="Heading" HeaderText="Heading" 
            SortExpression="Heading" />
        <asp:TemplateField HeaderText="URL" SortExpression="URL">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("URL") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:HyperLink ID="HyperLink22" runat="server" Font-Underline="False" 
                    NavigateUrl='<%# Eval("URL", "../reports/{0}") %>' 
                    Text='<%# "View Here" %>'></asp:HyperLink>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="Upload_Date" HeaderText="Upload Date" 
            SortExpression="Upload_Date" />
    </Columns>
    <FooterStyle BackColor="#CCCCCC" />
    <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
</asp:GridView>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" 
    ConflictDetection="CompareAllValues" DataFile="~/App_Data/superwit.mdb" 
    DeleteCommand="DELETE FROM [reports] WHERE (([Sr_No] = ?) OR ([Sr_No] IS NULL AND ? IS NULL))" 
    InsertCommand="INSERT INTO [reports] ([Sr_No], [Category],[Heading], [Attachment]) VALUES (?,?, ?, ?)" 
    OldValuesParameterFormatString="original_{0}" 
    SelectCommand="SELECT * FROM [reports] WHERE ([Sr_No] &lt;&gt; ?) ORDER BY [Category]" 
    
        UpdateCommand="UPDATE [reports] SET [Category]=?,[Heading] = ?, [URL] = ? WHERE (([Sr_No] = ?) OR ([Sr_No] IS NULL AND ? IS NULL))">
    <SelectParameters>
        <asp:Parameter DefaultValue="0" Name="Sr_No" Type="Int32" />
    </SelectParameters>
    <DeleteParameters>
        <asp:Parameter Name="original_Sr_No" Type="Int32" />
        <asp:Parameter Name="original_Category" Type="String" />
        <asp:Parameter Name="original_Heading" Type="String" />
        <asp:Parameter Name="original_URL" Type="String" />
    </DeleteParameters>
    <UpdateParameters>
        <asp:Parameter Name="Category" Type="String" />
        <asp:Parameter Name="Heading" Type="String" />
        <asp:Parameter Name="Attachment" Type="String" />
        <asp:Parameter Name="original_Sr_No" Type="Int32" />
        <asp:Parameter Name="original_Category" Type="String" />
        <asp:Parameter Name="original_Heading" Type="String" />
        <asp:Parameter Name="original_Attachment" Type="String" />
    </UpdateParameters>
    <InsertParameters>
        <asp:Parameter Name="Sr_No" Type="Int32" />
        <asp:Parameter Name="Category" Type="String" />
        <asp:Parameter Name="Heading" Type="String" />
        <asp:Parameter Name="Attachment" Type="String" />
    </InsertParameters>
</asp:AccessDataSource>
</asp:Content>

