Commit 4f105051 authored by wansari's avatar wansari

A15ASPA001 added UploadMediaRecords.jsp for SPA project


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100054 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 40f6f31c
<html>
<head>
<title>Upload records</title>
<!-- Include jQuery form & jQuery script file. -->
<script src="js/jquery.js"></script>
<script src="js/jquery.form.js"></script>
<script src="js/jquery.validate.js"></script>
<script src="js/fileUploadScript.js"></script>
<!-- Include css styles here -->
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script>
function openFile(id)
{
var dropDownValue = document.getElementById("media").value;
if(dropDownValue == "PR")
{
if(id == "badRecords")
{
document.getElementById("badRecords").setAttribute('href', "C:\BIHOME\pr.log");
}
else if(id == "logFile")
{
document.getElementById("logFile").setAttribute('href', "C:\BIHOME\pr.log");
}
}
else if(dropDownValue == "TV")
{
if(id == "badRecords")
{
document.getElementById("badRecords").setAttribute('href', "C:\BIHOME\tv.bad");
}
else if(id == "logFile")
{
document.getElementById("logFile").setAttribute('href', "C:\BIHOME\tv.log");
}
}
else if(dropDownValue == "CL")
{
if(id == "badRecords")
{
document.getElementById("badRecords").setAttribute('href', "C:\BIHOME\cl.bad");
}
else if(id == "logFile")
{
document.getElementById("logFile").setAttribute('href', "C:\BIHOME\cl.log");
}
}
else if(dropDownValue == "RD")
{
if(id == "badRecords")
{
document.getElementById("badRecords").setAttribute('href', "C:\BIHOME\rd.bad");
}
else if(id == "logFile")
{
document.getElementById("logFile").setAttribute('href', "C:\BIHOME\rd.log");
}
}
else if(dropDownValue == "AF")
{
if(id == "badRecords")
{
document.getElementById("badRecords").setAttribute('href', "C:\BIHOME\af.bad");
}
else if(id == "logFile")
{
document.getElementById("logFile").setAttribute('href', "C:\BIHOME\af.log");
}
}
else if(dropDownValue == "DM")
{
if(id == "badRecords")
{
document.getElementById("badRecords").setAttribute('href', "C:\BIHOME\dm.bad");
}
else if(id == "logFile")
{
document.getElementById("logFile").setAttribute('href', "C:\BIHOME\dm.log");
}
}
else if(dropDownValue == "TE")
{
if(id == "badRecords")
{
document.getElementById("badRecords").setAttribute('href', "C:\BIHOME\te.bad");
}
else if(id == "logFile")
{
document.getElementById("logFile").setAttribute('href', "C:\BIHOME\te.log");
}
}
else if(dropDownValue == "MTV")
{
if(id == "badRecords")
{
document.getElementById("badRecords").setAttribute('href', "C:\BIHOME\mtv.bad");
}
else if(id == "logFile")
{
document.getElementById("logFile").setAttribute('href', "C:\BIHOME\mtv.log");
}
}
else if(dropDownValue == "MPR")
{
if(id == "badRecords")
{
document.getElementById("badRecords").setAttribute('href', "C:\BIHOME\mpr.bad");
}
else if(id == "logFile")
{
document.getElementById("logFile").setAttribute('href', "C:\BIHOME\mpr.log");
}
}
else if(dropDownValue == "MCSH")
{
if(id == "badRecords")
{
document.getElementById("badRecords").setAttribute('href', "C:\BIHOME\mcsh.bad");
}
else if(id == "logFile")
{
document.getElementById("logFile").setAttribute('href', "C:\BIHOME\mcsh.log");
}
}
}
</script>
</head>
<!-- <body bgcolor="#B0DBE3"> -->
<body class="bodyclass">
<div class="transHeaderPage">
<div id="headingText">Upload Media Records</div>
</div>
<form id="UploadForm" action="UploadMediaFile" method="post"
enctype="multipart/form-data">
<input type="hidden" name="uploaded_by" value="sejal" />
<table align="center" widyh="100%">
<tr>
<td>Media Type</td>
<td><select id="media" name="mediaType">
<option value="PR">Print</option>
<option value="TV">TV</option>
<option value="CL">Mobile</option>
<option value="RD">Radio</option>
<option value="AF">Adfilm</option>
<option value="DM">Digital Media</option>
<option value="TE">TV Evaluation</option>
<option value="MTV">Master-TV</option>
<option value="MPR">Master-Print</option>
<option value="MCSH">Master-Subhead</option>
</select></td>
</tr>
<tr>
<td>Data sheet</td>
<td><input type="file" size="60" id="myfile" name="myfile">
</td>
</tr>
<tr>
<td>
<input type = "button" id = "bb" value = "OK" onclick = "openFile()"/>
<a href="www.google.com" id = "badRecords" onclick = "openFile(this.id)" target="_new">Bad Recordss</a>
</td>
<td>
<a href="www.google.com" id = "logFile" onclick = "openFile(this.id)" target="_new">Log Files</a>
</td>
</tr>
<tr>
<td></td>
<td><Br /> <input type="submit" value="Upload" class="button orange-Btn"></td>
</tr>
</table>
<br />
<table width="100%">
<tr>
<td align="center"><div id="message"></div></td>
</tr>
</table>
</form>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment