<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%><%
// *** Restrict Access To Page: Grant or deny access to this page
var MM_authorizedUsers="";
var MM_authFailedURL="sorryauthor.asp";
var MM_grantAccess=false;
if (String(Session("MM_Username")) != "undefined") {
if (true || (String(Session("MM_UserAuthorization"))=="") || (MM_authorizedUsers.indexOf(String(Session("MM_UserAuthorization"))) >=0)) {
MM_grantAccess = true;
}
}
if (!MM_grantAccess) {
var MM_qsChar = "?";
if (MM_authFailedURL.indexOf("?") >= 0) MM_qsChar = "&";
var MM_referrer = Request.ServerVariables("URL");
if (String(Request.QueryString()).length > 0) MM_referrer = MM_referrer + "?" + String(Request.QueryString());
MM_authFailedURL = MM_authFailedURL + MM_qsChar + "accessdenied=" + Server.URLEncode(MM_referrer);
Response.Redirect(MM_authFailedURL);
}
%>
<!--#include file="Connections/author.asp" -->
<%
var rsName__MMColParam = "1";
if (String(Session("MM_Username")) != "undefined" &&
String(Session("MM_Username")) != "") {
rsName__MMColParam = String(Session("MM_Username"));
}
%>
<%
var rsName = Server.CreateObject("ADODB.Recordset");
rsName.ActiveConnection = MM_author_STRING;
rsName.Source = "SELECT * FROM authors WHERE authUsername = '"+ rsName__MMColParam.replace(/'/g, "''") + "'";
rsName.CursorType = 0;
rsName.CursorLocation = 2;
rsName.LockType = 1;
rsName.Open();
var rsName_numRows = 0;
%>
<html>
<head>
<script language="javascript">
function fun ()
{
var path = document.upform.blob.value;
var pattern = /\s/;
file = path.split("\\");
file.reverse();
if (pattern.test(file[0])) {
alert ("Your filename includes spaces. Please rename your file per the guidelines on this page and try again.");
}
else if (document.upform.docName.value.length == 0)
{
alert("Please enter the Paper Title");
}
else
{
LimitAttach(this.upform, this.upform.blob.value);
} //{document.upform.submit();}
}
extArray = new Array(".htm", ".html", ".pdf", ".doc");
function LimitAttach(form, file)
{
allowSubmit = false;
if (!file)
{
return;
}
while (file.indexOf("\\") != -1)
{
file = file.slice(file.indexOf("\\") + 1);
ext = file.slice(file.indexOf(".")).toLowerCase();
for (var i = 0; i < extArray.length; i++)
{
if (extArray[i] == ext)
{
allowSubmit = true; break;
}
}
}
if (allowSubmit)
{
form.submit();
}
else
{
alert("Please only submit files that end in: "
+ (extArray.join(" ")) + "\nPlease select a new "
+ "file and try again. Thank you.");
}
}
</script>
</script>
<title>ISPR | Paper Submission Page</title>
<link rel="stylesheet" href="../../style.css" type="text/css">
</head>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="100%"> </td>
</tr>
</table>
<table width="640" border="0" align="center" bgcolor="#CCCCCC">
<tr>
<td><div align="center"><font size="4" face="Arial, Helvetica, sans-serif">
ISPR
PAPER SUBMISSION PAGE</font></div></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="100%">
<p align="center"> <br>
NOTE: This page works <b>best with Microsoft Internet Explorer 5.x </b>or higher
and with javascript enabled<br>
(to enable javascript in IE, select the menu options "Tools," then "Internet
Options...," then click<br>
on the "Advanced" tab and check the appropriate option box).<br>
</td>
</tr>
</table>
<center>
<TABLE ALIGN="CENTER style=" WIDTH="789" style="border-
collapse: collapse; border-collapse:collapse" bordercolor="#111111" cellpadding="5">
<TR>
<TD colspan="2" width="785">
<font face="Arial,Helvetica">
<p><b><font face="Arial, Helvetica, sans-serif"> Please use the form and
follow the guidelines below to submit your paper. </font>
</b>
<p><font face="Arial, Helvetica, sans-serif"> <b>If you have any problems,
please send an e-mail message to </b> <a href="mailto:help@ispr.info">
<b>help@ispr.info</b></a><b>.</b></font><p> <font face="Arial, Helvetica, sans-serif"><u>
Guidelines</u></font></font><ul>
<li type="square"><Font face="Arial, Helvetica, sans-serif" size="2">Your
file must be in hypertext markup language (.html), MS Word (.doc) or
Acrobat Reader (.pdf) format. <br>
</font></li>
<li type="square"><Font face="Arial, Helvetica, sans-serif" size="2">
.html files cannot contain embedded files of any kind (including
graphics, images, etc.). <br>
</font></li>
<li type="square"><Font face="Arial, Helvetica, sans-serif" size="2">The
maximum file size is 2 megabytes.<br>
</font></li>
<li type="square"><Font face="Arial, Helvetica, sans-serif" size="2">Do
not include your name or any contact information anywhere in your
.html, .doc
or .pdf file.</font><font face="Arial, Helvetica, sans-serif"> <br>
</font></li>
<li type="square"><Font face="Arial, Helvetica, sans-serif" size="2">Do
not include your name anywhere in the name of your file.<br>
</font></li>
<li type="square"><Font face="Arial, Helvetica, sans-serif" size="2">
<u>Do not include spaces</u> in the name of your file. Replace spaces with the
underscore character (e.g., <i>file_name.html</i></font><font face="Arial, Helvetica, sans-serif"><i><Font size="2">).<br>
</font></i></font></li>
<li type="square">Be sure to fill in all of the fields below.</li>
</ul>
<p>
<font size="2" face="Arial, Helvetica, sans-serif">To submit your
paper, fill in your registered User Name and the title of your paper in
the form below. Then click the Browse button to locate the file that
contains your paper on
your computer. Once you have located and selected the file, click the
Submit button.</font><p>
</td>
</tr>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="outputFile.asp" name="upform">
<TR align="left" valign="top">
<TD width="290"><Font face="Arial" size="2"><b><font color="#008888">
Your User Name</font></b> <br>
<font color="#008888">(This is the name with which you registered and
logged into this system)<br>
</font></font></td>
<TD width="491">
<INPUT NAME="authUsername" id="authUsername" value="<%=(rsName.Fields.Item("authUsername").Value)%>"
size="20" maxlength="255"></td>
</tr>
<TR align="left" valign="top">
<TD width="290"><b>
<font face="Arial, Helvetica, sans-serif" color="#008888">Paper</font></b><font color="#008888" size="2" face="Arial, Helvetica, sans-serif"><b>
Title</b><br>
(This is the full title of the paper you are submitting; it can be
as long as 60 characters and can contain spaces between the words.
<i>Do not leave this blank</i>!)<br>
</font></td>
<TD width="491">
<input name="docName" type="text" id="docName" size="46"> </td>
</tr>
<TR align="left" valign="top">
<TD width="290"><Font face="Arial" size="2" color="#008888"><b>File Name</b><br>
(This is the name of the file on your computer that contains your
paper; it must not contain spaces and it must end in <i>.html</i>,
<i>.doc</i>, or <i>.pdf</i>) <br>
</font></td>
<TD width="491">
<INPUT TYPE="file" NAME="blob" size="20">
</td>
</tr>
<TR>
<TD width="290"></td>
<TD width="491"></td>
</tr>
<TR>
<TD colspan="2" width="785">
<p align="center">
<input type="button" value="Submit" name="Enter" onClick="fun()" style="font-weight: bold">
</td>
</tr>
</FORM>
</TABLE>
</center>
<p align="center"> </p>
</html>
<%
rsName.Close();
%>