| Server IP : 199.79.62.161 / Your IP : 216.73.216.245 [ Web Server : Microsoft-IIS/10.0 System : Windows NT MDUS-PP-WB12 10.0 build 20348 (Windows Server 2022) AMD64 User : IWPD_5096(nirmaowd) ( 0) PHP Version : 8.3.30 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/INETPUB/VHOSTS/nirmalamatha.edu.in/ponnuguruvayurappan.org/Admin/ |
Upload File : |
<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="add_newsandevents.aspx.cs" Inherits="admin_add_newsandevents" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="row">
<div class="col-md-12">
<h1 class="page-head-line">ADD/ VIEW NEWS AND EVENTS</h1>
</div>
</div>
<br />
<div class="row">
<div class="col-sm-12">
<div class="portlet portlet-boxed">
<div class="portlet-header">
<h1 class="page-head-line">
ADD NEWS AND EVENTS
</h1>
</div>
<!-- /.portlet-header -->
<div class="portlet-body">
<div class="row">
<div class="col-sm-6">
<div class="form-group has-success">
<label class="control-label" for="success">Title</label>
<asp:TextBox ID="txt_Name" class="form-control" runat="server"></asp:TextBox>
</div>
<div class="form-group has-success">
<label class="control-label" for="success">Description</label>
<asp:TextBox ID="txt_Description" TextMode="MultiLine" class="form-control" runat="server"></asp:TextBox>
</div>
<div class="form-group has-success">
<label class="control-label" for="success">Display Order</label>
<asp:TextBox ID="txt_DisplayOrder" class="form-control" runat="server"></asp:TextBox>
</div>
</div>
</div>
<div class="form-group has-success">
<asp:Label ID="lbl_messages" runat="server" Text=""></asp:Label>
<br />
<br />
<asp:Button ID="btnUpload" CssClass="btn btn-primary" runat="server" Text="SUBMIT" OnClick="btnUpload_Click" />
</div>
</div>
</div>
</div>
</div>
<div class="portlet portlet-boxed">
<br />
<br />
<div class="portlet-header">
<h1 class="page-head-line">
VIEW/ EDIT NEWS AND EVENTS
</h1>
</div>
<!-- /.portlet-header -->
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdateProgress ID="updateProgress" runat="server" DynamicLayout="true">
<ProgressTemplate>
<div id="divLoading" style="margin: 0px; padding: 0px; position: fixed; right: 0px; top: 0px; width: 100%; height: 100%; background-color: rgb(102, 102, 102); z-index: 30001; opacity: 0.8;">
<p style="position: absolute; color: White; top: 50%; left: 45%;">
<img src="/admin/img/apploading.gif">
</p>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<a name="view" href="/default.aspx"></a>
<script language="javascript" type="text/javascript">
function SetScrollEvent() {
window.scrollTo(0,0);
}
</script>
<div class="portlet-body">
<asp:Label ID="lbl_deletemessage" runat="server" Text=""></asp:Label>
<div class="table-responsive">
<asp:GridView ID="GV_DECISIONS" OnRowDeleted="GV_DECISIONS_RowDeleted" DataSourceID="ADS_DataSource" OnRowDeleting="GV_DECISIONS_RowDeleting" CssClass="table table-striped table-bordered table-hover ui-datatable" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="DID" UseAccessibleHeader="False" runat="server">
<Columns>
<asp:TemplateField HeaderText="Title">
<ItemStyle HorizontalAlign="Left" />
<HeaderStyle Font-Bold="true" HorizontalAlign="Left" />
<ItemTemplate>
<%#Eval("Heading")%>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Display Order">
<ItemStyle Width="100px" HorizontalAlign="Left" />
<HeaderStyle Font-Bold="true" HorizontalAlign="Left" />
<ItemTemplate>
<%#Eval("Display")%>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="EDIT">
<ItemStyle Width="50px" HorizontalAlign="Left" />
<HeaderStyle Font-Bold="true" HorizontalAlign="Left" />
<ItemTemplate>
<a href="edit_newsandevents.aspx?DID=<%#Eval("DID")%>" >EDIT</a>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DELETE">
<HeaderStyle Font-Bold="true" HorizontalAlign="Center" />
<ItemStyle Width="50px" HorizontalAlign="Center" />
<ItemTemplate>
<asp:Button ID="Button2" runat="server" CommandName="Delete" CausesValidation="false" OnClientClick="return confirm('Are you sure you want to delete?')" Text="DELETE" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate>
<strong>NO NEWS AND EVENTS FOUND</strong>
</EmptyDataTemplate>
</asp:GridView>
<asp:SqlDataSource ID="ADS_DataSource" runat="server"
SelectCommand="SELECT * FROM [DECISIONS] ORDER BY [DID] DESC"
ConnectionString="<%$ ConnectionStrings:myconnectionstring %>"
ProviderName="<%$ ConnectionStrings:myconnectionstring.ProviderName %>"
DeleteCommand="DELETE FROM [DECISIONS] WHERE (DID = @DID)" >
<DeleteParameters>
<asp:Parameter Name="DID" Type="Int32" />
</DeleteParameters>
</asp:SqlDataSource>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</asp:Content>