forked from agmip/ace-dssat-import
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inputFiles01.php
66 lines (62 loc) · 2.44 KB
/
inputFiles01.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php include("parts_checkSession.php"); ?>
<?php $p_pageNum=1; $p_page="input01"; include("parts_checkTabsStatus.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en-US" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/frame.css" />
<script src="js/function.js" type="text/javascript"></script>
<title>Input Files step01</title>
</head>
<body>
<div id="container">
<?php include("parts_header.php"); ?>
<div id="content">
<?php include("parts_title.php"); ?>
<?php include("parts_inputTabs.php"); ?>
<form id="form1" method="post" action="checkInputXFiles.php" enctype="multipart/form-data">
<?php include("parts_explain.php"); ?>
<table id="inputArea" align="center">
<tr>
<td id="titleCol">File Format:</td>
<td id="inputCol">DSSAT</td>
</tr>
<?php
include("dbTempUpdate.php");
$fileTypes = checkUploadStatus();
?>
<tr>
<td id="titleCol" rowspan="2">File path:</td>
<td id="inputCol">
<?php if (isset($fileTypes["X"])) { ?>
Read From <strong><?php for($i=0; $i<count($fileTypes["X"]); $i++) echo $fileTypes["X"][$i] . ", "; ?></strong> OR<br/>
<?php } ?>
<input id="FilePath" name="FilePath" type="file" size="60" onchange="changeToUpload();" />
</td>
</tr>
<tr>
<td id="inputCol"><div><input id="FilesPath" type="text" size="60" disabled="disabled" /></div>
<input id="IsReadMultiFiles" name="IsReadMultiFiles" type="checkbox" disabled="disabled" />
Read Multi-files<br /></td>
</tr>
<input type="hidden" id="submitType" name="submitType" value="next" />
<?php
if (isset($fileTypes["X"])) { //TODO
echo "<input type='hidden' id='upload_file' name='upload_file' value='1' />\r\n";
} else {
echo "<input type='hidden' id='upload_file' name='upload_file' value='0' />\r\n";
}
?>
</table>
<div id="subBtns">
<input type="button" value="Back" onclick="goBack();" />
<input id="Submit" type="button" value="Next" onclick="checkExdForExpfile('next')" />
<input id="Submit" type="button" value="Finish" onclick="checkExdForExpfile('finish')" />
</div>
</form>
</div>
<?php include("parts_footer.php"); ?>
</div>
</body>
</html>