-
Notifications
You must be signed in to change notification settings - Fork 0
/
sendForm.php
166 lines (131 loc) · 5.63 KB
/
sendForm.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?php include('tools/head.php'); ?>
<?php include 'functions.php'; ?>
<?php $families = getFamilies();?>
<h1 class="titleHeader"> Suggest a new resource </h1>
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#repositories">Data Repository</a></li>
<li><a data-toggle="tab" href="#tools">Omic Tool</a></li>
</ul>
<div class="tab-content">
<div id="repositories" class="tab-pane fade in active">
<form action="addForm.php" method="post">
<input type="hidden" name="typeForm" value="repo">
<div class="form-group">
<div class="col-md-12 sendFormGrid">
<label class="control-label col-sm-2" for="repository">Repository:</label>
<div class="col-sm-7">
<input type="text" name="repository" class="form-control" id="repository">
</div>
</div>
<div class="col-md-12 sendFormGrid">
<label class="control-label col-sm-2" for="type">Type:</label>
<div class="col-sm-7">
<input type="text" name="type" class="form-control" id="type">
</div>
</div>
<div class="col-md-12 sendFormGrid">
<label class="control-label col-sm-2" for="volume">Volume:</label>
<div class="col-sm-7">
<input type="text" name="volume" class="form-control" id="volume">
</div>
</div>
<div class="col-md-12 sendFormGrid">
<label class="control-label col-sm-2" for="downloadable">Downloadable:</label>
<div class="col-sm-7">
<input type="text" name="downloadable" class="form-control" id="downloadable">
</div>
</div>
<div class="col-md-12 sendFormGrid">
<label class="control-label col-sm-2" for="webService">Web Service:</label>
<div class="col-sm-7">
<input type="text" name="webService" class="form-control" id="webService">
</div>
</div>
<div class="col-md-12 sendFormGrid">
<label class="control-label col-sm-2" for="purpose">Purpose:</label>
<div class="col-sm-7">
<textarea class="form-control" name="purpose" id="purpose"></textarea>
</div>
</div>
</div><!-- end of form goup -->
<div class="form-group">
<div class="col-md-12 formAdd" >
<button type="submit" class="btn btn-default">Submit</button>
</div>
</div>
</form>
</div>
<div id="tools" class="tab-pane fade">
<form action="addForm.php" method="post">
<input type="hidden" name="typeForm" value="omic">
<div class="form-group">
<div class="col-md-12 sendFormGrid">
<label class="control-label col-sm-2" for="tool">Tool:</label>
<div class="col-sm-7">
<input type="text" name="tool" class="form-control" id="tool">
</div>
</div>
<div class="col-md-12 sendFormGrid">
<label class="control-label col-sm-2" for="publicPrivate">Public/Private:</label>
<div class="col-sm-7">
<input type="text" name="publicPrivate" class="form-control" id="publicPrivate">
</div>
</div>
<div class="col-md-12 sendFormGrid">
<label class="control-label col-sm-2" for="osInfrastructure">OS Infrastructure:</label>
<div class="col-sm-7">
<input type="text" name="osInfrastructure" class="form-control" id="osInfrastructure">
</div>
</div>
<div class="col-md-12 sendFormGrid">
<label class="control-label col-sm-2" for="family">Family:</label>
<div class="col-sm-7">
<select class="form-control send" id="sel1" name="family">
<?php
for($i=0; $i<count($families); $i++){
?>
<option value="<?php echo $families[$i]["idFamilyTool"]; ?>">
<?php echo $families[$i]["name"]; ?>
</option>
<?php
}
?>
</select>
</div>
</div>
<div class="col-md-12 sendFormGrid">
<label class="control-label col-sm-2" for="inputs">Inputs:</label>
<div class="col-sm-7">
<textarea class="form-control" name="inputs" id="inputs"></textarea>
</div>
</div>
<div class="col-md-12 sendFormGrid">
<label class="control-label col-sm-2" for="outputs">Outputs:</label>
<div class="col-sm-7">
<textarea class="form-control" name="outputs" id="outputs"></textarea>
</div>
</div>
<div class="col-md-12 sendFormGrid">
<label class="control-label col-sm-2" for="mainFeataures">Main Features:</label>
<div class="col-sm-7">
<textarea class="form-control" name="mainFeataures" id="mainFeataures"></textarea>
</div>
</div>
<div class="col-md-12 sendFormGrid">
<label class="control-label col-sm-2" for="purposeTool">Purpose:</label>
<div class="col-sm-7">
<textarea class="form-control" name="purposeTool" id="purposeTool"></textarea>
</div>
</div>
</div><!-- end of form goup -->
<div class="form-group">
<div class="col-md-12 formAdd" >
<button type="submit" class="btn btn-default">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<?php include ('tools/footer.php'); ?>