Exemplo n.º 1
0
def show_error(msg):
	print "Content-type: text/html"  # unterdrueckt Fenster 'Oeffnen von script'
	print """
	<html>
	<head><title>L2F_V1_run_pgm</title></head>
	<link type="text/css" rel="stylesheet" href="style.css">
	<body>"""

	print nav.navigation('run_pgm')

	print """<h1> L2F_V1_run_pgm Version 1.0 </h1><br/>
	"""

	print '<h3> %s </h3><br/>' % msg

	print """
def main():
	form = cgi.FieldStorage()

	# print "Content-type: text/html\x0D\x0A"
	print "Content-type: text/html"

	print """
	<html>

	<head><title>L2F_V1_status_detail</title></head>
	<link type="text/css" rel="stylesheet" href="style.css">

	<script language="JavaScript">
		function select_all(source) {
			var checkboxes = document.getElementsByName('reset');
			var n=checkboxes.length;
			var i = 0;
			var text = document.getElementById('toggle_select_text');
			for(var i; i<n; i++) {
				checkboxes[i].checked = source.checked;
			}
			if (source.checked) {
				text.innerHTML='Unselect All';
			} else {
				text.innerHTML='Select All';
			}
		}
	</script>

	<body>"""

	print nav.navigation('status_detail')

	print """<h1> L2F_V1_status_detail Version 1.0 </h1><br/>
	"""

	status_class_detail = StatusClassDetail()
	print status_class_detail.set_filter(form2=form)
	status_class_detail.get_detail(form)

	print status_class_detail.show_data(form1=form)
	status_class_detail.final()

	print """
Exemplo n.º 3
0
	print '<h3> Program Lims2Fims started.... </h3><br/>'
	p1 = subprocess.Popen('./L2F_V1_run_pgm.py called_by_L2F_start_pgm', shell=True, universal_newlines=True, stdout=loghandle, stderr=loghandle)
	time.sleep(3)


print "Content-type: text/html"

log = open(logfilename, "a")

print """
<html>
<head><title>L2F_V1_start_pgm</title></head>
<link type="text/css" rel="stylesheet" href="style.css">
<body>
"""
print nav.navigation('transfer_seqs')

print """<h1> L2F_V1_start_pgm Version 1.0 </h1><br/>
"""

form1 = cgi.FieldStorage()
if ('h_start_pgm' in form1) and (form1.getvalue('h_start_pgm')=='1'):
	run(log)

if os.path.isfile(pidfilename):
	print '<h3> Program Lims2Fims L2F is running. Please wait about 2 minutes before checking program progress .... </h3><br/>'
	print """
		<form method="GET" action="L2F_V1_start_pgm.py">
			<input type="submit" value=" Check program progress "/>
		</form>
	"""
Exemplo n.º 4
0
<link type="text/css" rel="stylesheet" href="style.css">
<body>
"""

print """
	<img src="img/gen2dc.png" alt="Transfer Geneious data to Diversity Collection">
	<br/>
	<br/>
	<h1>GBOL Webserver Programs</h1><br/>
	<br/>
	<h2 class="pane-title">LIMS2FIMS Transfer Data</h2>
	<div class="pane-content">
	<p>Transfer passed/failed sequences from the Lab-DB (Geneious) into the collection-DB (Diversity Collection)</p>
"""

print nav1.navigation('start')

print """
	</div>

	<h2 class="pane-title">TEPN Transfer Extraction Plate names</h2>
	<div class="pane-content">
	<p>Plate names from the Lab-DB (Geneious) into the collection-DB (Diversity Collection)</p>
"""

print nav2.navigation('start')

print "</div>"

#	<form method="GET" action="TEPN_V1_status.py"/>
#		<input type="submit" value=" Uebertrage Extraction-Plate Namen aus der Lims DB (geneious) in die Fims DB (DWB) "/>