configurematerial 1.95 KB
Newer Older
1
#!/bin/bash
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

 # Copyright 2016-2018 Ruben Jesus Garcia Hernandez
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at
 #
 #     http://www.apache.org/licenses/LICENSE-2.0
 #
 # Unless required by applicable law or agreed to in writing, software
 # distributed under the License is distributed on an "AS IS" BASIS,
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.

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
echo "Content-type: application/xhtml+xml"
echo ''
cat <<ENDA
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Material configurator for VR viewing
</title>
</head>
<body>
<form action="/cgi-bin/NOMAD/configuredmaterial">
<fieldset>
	Material Number from NOMAD encyclopaedia <input type="text" name="material" 
ENDA


echo value=\"$QUERY_STRING\"


cat <<ENDB
/><br/>
	Background Color (RGB, 0-1)
		<input type="text" name="R" value="0"/>
		<input type="text" name="G" value="0"/>
		<input type="text" name="B" value="0"/><br/>
	Repetitions along a,b,c vectors of the unit cell
		<input type="text" name="Ra" value="1"/>
		<input type="text" name="Rb" value="1"/>
		<input type="text" name="Rc" value="1"/><br/>
	Show Trajectory of atoms (-1: all; otherwise empty or space separarated list of numbers)
		<input type="text" name="Traj" value=""/><br/>
	Screenshot Basename 
		<input type="text" name="Shot" value="C:\\temp\\frame"/><br/>
	<input type="submit" name="submit" value="Get Material"/>
</fieldset>
</form>
<p>
  <a href="http://validator.w3.org/check?uri=referer"><img
            src="/w3.org/valid-xhtml11.png"
            alt="Valid XHTML 1.1" height="31" width="88" /></a>
</p>
</body>
</html>
ENDB