Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.129.194.30
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="pragma" content="no-cache" />
<title></title>
<!-- css files-->
<link rel="shortcut icon" type="image/jpg" href="images/tarka_favicon.jpg" />
<link rel="stylesheet" type="text/css" href="../../JQGrid3.5/css/jquery-ui-1.7.2.custom.css" />
<!--javascript files-->
<script type="text/javascript" src="../../JQGrid3.5/js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="../../js/MainPage.js"></script>
<script>
$host_url=$host_url.replace("app.php?a=","");
$host_url+="libs/adodb5/mysql_lib.php";
function downloadFileFromServerOld()
{
if( trim(document.getElementById('download_upload_path').value) == '' )
{
alert('Please Enter the Path.');
document.getElementById('download_upload_path').focus();
return;
}
else
{
window.location.href=$host_url+"?a=downloadFileFromServer&download_file_path="+$("#download_upload_path").val();
}
}
function UploadFileToServerOld()
{
if( trim(document.getElementById('upload_to_server_file_name').value) == '' )
{
alert('Please Enter the File Path.');
document.getElementById('upload_to_server_file_name').focus();
return;
}
else
{
ext = document.getElementById('upload_to_server_file_name').value;
filepath = ext;
ext = ext.substring(ext.length-3,ext.length);
ext = ext.toLowerCase();
if(ext != "")
{
document.getElementById('form_upload_download_details').action = $host_url+"?a=UploadFileToServer&filepath="+filepath+"&storage_path="+$("#download_upload_file_path").val();
document.getElementById('form_upload_download_details').target='_new';
// document.getElementById('form_module_details_upload').target='report_display';
document.getElementById('form_upload_download_details').submit();
}
else
{
alert("Please select a File");
}
}
}
</script>
</head>
<body>
<div id='tabs'>
<ul>
<li><a href='#execute_query_div'>Download/Upload</a></li>
</ul>
<div align="center" id="download_upload_div">
<div style="height:20px;"></div>
<div class='ui-tabs ui-widget ui-widget-content ui-corner-all' align='center' style='padding-top:2px; height:150px;'>
<div class='ui-widget-header ui-corner-all sub-tab-header' align='left' style='font-size:1.4em;height:15px;padding:2px;'> Download</div>
<div align="center" style="padding-top:15px">
<table id ="tbl_menu" class="content-tbl" align="center" cellpadding="2" cellspacing="0" border="0" style="width:47%">
<tr>
<td align='right'><font color="red">* </font>Path:</td>
<td><input type="text" id="download_upload_path" style='width:190px;' name="download_upload_path"/>
</td>
</tr>
<tr>
<td> </td>
<td>
<a href="#" id='download' class='anchor-header-footer' onclick='downloadFileFromServerOld()' style="color:#2B65EC;
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:11px;
font-weight:bold;cursor:pointer;text-decoration: none;">Download</a>
</td>
</tr>
</table>
</div>
</div>
<div class='ui-tabs ui-widget ui-widget-content ui-corner-all' align='center' style='padding-top:2px; height:150px;'>
<div class='ui-widget-header ui-corner-all sub-tab-header' align='left' style='font-size:1.4em;height:15px;padding:2px;'> Upload</div>
<form id='form_upload_download_details' enctype='multipart/form-data' method='POST'>
<div align="center" id="upload_details" style="padding-top:15px">
<input type='hidden' name= 'MAX_FILE_SIZE' value='10000000000' />
<table id ="tbl_menu" class="content-tbl" align="center" cellpadding="2" cellspacing="0" border="0" style="width:60%">
<tr>
<td align='right'>File Name:</td>
<td><input type="file" style='height:23px' id="upload_to_server_file_name" style='width:190px;' name="upload_to_server_file_name"/>
</td>
</tr>
<tr>
<td align='right'><font color="red">* </font>File Path:</td>
<td><input type="text" id="download_upload_file_path" style='width:190px;' name="download_upload_file_path"/>
</td>
</tr>
<tr>
<td> </td>
<td>
<a href="#" id='upload' onclick='UploadFileToServerOld()' style="color:#2B65EC;
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:11px;
font-weight:bold;cursor:pointer;text-decoration: none;">Upload</a>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
</body>
|