| 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 Language="C#" AutoEventWireup="true" CodeFile="flashnews.aspx.cs" Inherits="admin_flashnews" ValidateRequest="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Administrator</title>
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/color_functions.js"></script>
<script language="JavaScript" type="text/javascript" src="js/richtext_compressed.js"></script>
<script language="javascript" type="text/javascript">
function ValidateEditovalue(source, args)
{
updateRTEs();
document.getElementById('<%= EditorValue.ClientID %>').value = "" + document.aspnetform.rte1.value + "";
var editorcontent=document.getElementById('<%= EditorValue.ClientID %>').value;
args.IsValid = true;
if(Trim(editorcontent).length < 1)
args.IsValid = false
else
args.IsValid = true;
if(Trim(editorcontent).length > 50000)
{
alert("Content Length Exceed");
args.IsValid = false
}
}
</script>
<script language="JavaScript" type="text/javascript">
function LTrim(str)
{
var whitespace = new String(" \t\n\r ");
// last space character is not a space, but alt+0160,
// another invisible char.
var s = new String(str);
if (whitespace.indexOf(s.charAt(0)) != -1) {
// We have a string with leading blank(s)...
var j=0, i = s.length;
// Iterate from the far left of string until we
// don't have any more whitespace...
while (j < i && whitespace.indexOf(s.charAt(j)) != -1)
j++;
// Get the substring from the first non-whitespace
// character to the end of the string...
s = s.substring(j, i);
}
return s;
}
// Trims all spaces to the right of a specific string
function RTrim(str)
{
// We don't want to trip JUST spaces, but also tabs,
// line feeds, etc. Add anything else you want to
// "trim" here in whitespace
var whitespace = new String(" \t\n\r ");
// last space character is not a space, but alt+0160,
// another invisible char.
var s = new String(str);
if (whitespace.indexOf(s.charAt(s.length-1)) != -1) {
// We have a string with trailing blank(s)...
var i = s.length - 1; // Get length of string
// Iterate from the far right of string until we
// don't have any more whitespace...
while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1)
i--;
// Get the substring from the front of the string to
// where the last non-whitespace character is...
s = s.substring(0, i+1);
}
return s;
}
// Trims all spaces to the left and right of a specific string by calling RTim
// and LTrim
function Trim(str)
{
return RTrim(LTrim(str));
}
//Usage: initRTE(imagesPath, includesPath, cssFile, genXHTML, encHTML)
initRTE("./images/", "./", "", false);
//-->
</script>
</head>
<body>
<div class="divContent" style="; text-align: center;vertical-align:middle;" >
<span class="ContentHeader">FLASH NEWS</span></div>
<div class="divContent" style="text-align: center;vertical-align:middle;" >
<div align="right" style="width:100%; vertical-align: middle; text-align: center;" id="oldhtml">
<%Response.Write(str_OldContent); %>
</div>
<form id="aspnetform" name="aspnetform" runat="server">
<div style="text-align: left">
<table border="0" cellpadding="0" cellspacing="0" style="text-align: left" align="center">
<tr>
<td align="left" style="width: 20px; height: 16px;">
</td>
<td align="left" style="text-align: left;">
</td>
<td align="left" style="width: 20px; text-align: center;" class="LogoHeader">
</td>
<td align="left" style="height: 16px">
</td>
<td align="left" style="width: 20px; height: 16px">
</td>
<td align="left" style="height: 16px">
</td>
</tr>
<tr>
<td align="left" style="width: 20px; height: 16px">
</td>
<td align="left" style="text-align: left;" class="LogoHeader">
Content</td>
<td align="left" style="width: 20px; text-align: center" class="LogoHeader">
</td>
<td align="left" style="height: 16px">
</td>
<td align="left" style="width: 20px; height: 16px">
</td>
<td align="left" style="height: 16px">
</td>
</tr>
<tr>
<td align="left" style="width: 20px; height: 16px">
</td>
<td align="left" style="text-align: left;" colspan="3">
<textarea style="display: none" name="EditorValue" rows="50" id="EditorValue" runat="server"></textarea>
<script language="JavaScript" type="text/javascript">
<!--
//build new richTextEditor
var rte1 = new richTextEditor('rte1');
//rte1.html = '';
rte1.html = document.getElementById('oldhtml').innerHTML;
document.getElementById('oldhtml').style.display='none';
//enable all commands for demo
rte1.cmdFormatBlock = true;
rte1.cmdFontName = true;
rte1.cmdFontSize = true;
rte1.cmdIncreaseFontSize = true;
rte1.cmdDecreaseFontSize = true;
rte1.cmdBold = true;
rte1.cmdItalic = true;
rte1.cmdUnderline = true;
rte1.cmdStrikethrough = true;
rte1.cmdSuperscript = true;
rte1.cmdSubscript = true;
rte1.cmdJustifyLeft = true;
rte1.cmdJustifyCenter = true;
rte1.cmdJustifyRight = true;
rte1.cmdJustifyFull = true;
rte1.cmdInsertHorizontalRule = true;
rte1.cmdInsertOrderedList = true;
rte1.cmdInsertUnorderedList = true;
rte1.cmdOutdent = true;
rte1.cmdIndent = true;
rte1.cmdForeColor = true;
rte1.cmdHiliteColor = true;
rte1.cmdInsertLink = true;
rte1.cmdInsertImage = true;
rte1.cmdInsertSpecialChars = true;
rte1.cmdInsertTable = true;
rte1.cmdSpellcheck = true;
rte1.cmdCut = true;
rte1.cmdCopy = true;
rte1.cmdPaste = true;
rte1.cmdUndo = true;
rte1.cmdRedo = true;
rte1.cmdRemoveFormat = true;
rte1.cmdUnlink = true;
rte1.toggleSrc = true;
rte1.build();
//-->
</script>
<asp:CustomValidator ID="customeditorcheck" runat="server" ClientValidationFunction="ValidateEditovalue"
ErrorMessage="Please write the content."></asp:CustomValidator>
</td>
<td align="left" style="width: 20px; height: 16px">
</td>
<td align="left" style="height: 16px">
</td>
</tr>
<tr>
<td align="left" style="width: 20px; height: 16px">
</td>
<td align="left" style="text-align: left;">
</td>
<td align="left" style="width: 20px; text-align: center" class="LogoHeader">
</td>
<td align="left" style="height: 16px">
</td>
<td align="left" style="width: 20px; height: 16px">
</td>
<td align="left" style="height: 16px">
</td>
</tr>
<tr>
<td align="left" style="width: 20px; height: 16px;">
</td>
<td align="left" style="text-align: left;">
</td>
<td align="left" style="width: 20px; text-align: center;" class="LogoHeader">
</td>
<td align="left" style="text-align: left; height: 16px;">
</td>
<td align="left" style="width: 20px; height: 16px; text-align: left">
</td>
<td align="left" style="text-align: left; height: 16px;">
</td>
</tr>
<tr>
<td align="left" style="width: 20px; height: 10px">
</td>
<td align="left" style="text-align: left;">
</td>
<td align="left" style="width: 20px; text-align: center;" class="LogoHeader">
</td>
<td align="left" style="height: 10px; text-align: left">
</td>
<td align="left" style="width: 20px; height: 10px; text-align: left">
</td>
<td align="left" style="height: 10px; text-align: left">
</td>
</tr>
<tr>
<td align="left" style="width: 20px">
</td>
<td align="left" style="text-align: left">
</td>
<td align="left" style="width: 20px; text-align: center;" class="LogoHeader">
</td>
<td align="left" style="text-align: left">
<asp:Button ID="btn_UpdateContent" runat="server" OnClick="btn_UpdateContent_Click"
Text="Update Flashnews" /></td>
<td align="left" style="width: 20px; text-align: left">
</td>
<td align="left" style="text-align: left">
</td>
</tr>
</table>
</div>
</form>
</div>
</body>
</html>