diff options
author | Patrick Simianer <p@simianer.de> | 2015-06-26 15:21:19 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-06-26 15:21:19 +0200 |
commit | 25ae0720684027298d0c97299ed808a877c1c501 (patch) | |
tree | 9c0169dc6a0d237d133a4d25f3960a1c96c13c2f /interface.php | |
parent | d8943c2a274309053ba1db8629ed465f6761f740 (diff) |
interface
Diffstat (limited to 'interface.php')
-rw-r--r-- | interface.php | 39 |
1 files changed, 14 insertions, 25 deletions
diff --git a/interface.php b/interface.php index 3505eda..d1f3f72 100644 --- a/interface.php +++ b/interface.php @@ -8,15 +8,7 @@ <body onload="init()"> -<!-- Wrapper --> -<div id="wrapper"> - -<!-- Header --> -<div id="header"> - <img id="uni" src="img/logo_neu_204x107.jpg" /> - <img id="cl" src="img/institut_cl.png" /> -</div> -<!-- /Header --> +<?php include("header.php"); ?> <!-- Source and target --> <table> @@ -40,11 +32,12 @@ <!-- /Next button --> <!-- Document overview --> -<div> +<div id="overview_wrapper"> <strong>Document overview</strong> <table id="overview"> <?php -$j = file_get_contents($_GET["dir"]."/".$_GET["key"].".json"); # FIXME: get overview/state from database +$SESSION_DIR="/fast_scratch/simianer/lfpe/sessions"; +$j = file_get_contents($SESSION_DIR."/".$_GET["key"]."/data.json"); $a = json_decode($j); $i = 0; foreach($a->raw_source_segments as $s) { @@ -61,29 +54,25 @@ foreach($a->raw_source_segments as $s) { <!-- /Document overview --> <!-- Help --> -<p id="help"> +<div id="help"> <strong>Help</strong><br /> -Press the 'Next' to submit your post-edit and to request the next segment to translate -(or just press enter when the 'Target' textarea is in focus). -</p> +<p>Press the 'Next' to submit your post-edit and to request the next segment to translate +(or just press enter when the 'Target' textarea is in focus).</p> +<p class="xtrasmall">Support: <a href="mailto://simianer ät cl.uni-heidelberg.de">Mail</a></p> +<p class="xtrasmall">Session: #<?php echo $_GET["key"]; ?> | <a href="http://coltrane.cl.uni-heidelberg.de:<?php echo $a->port; ?>/debug" target="_blank">Debug</a></p> +</div> <!-- /Help --> -<!-- Footer --> -<p id="footer"> - ©2015 Heidelberg University/Institute for Computational Linguistics -</p> -<!-- /Footer --> +<?php include("footer.php"); ?> -</div> -<!-- /Wrapper --> +</body> +</html> <!-- Data --> <textarea style="display:none" id="key"><?php echo $_GET['key']; ?></textarea> <textarea style="display:none" id="source"></textarea> <textarea style="display:none" id="current_seg_id">0</textarea> <textarea style="display:none" id="paused">0</textarea> +<textarea style="display:none" id="port"><?php echo $a->port; ?></textarea> <!-- /Data --> -</body> -</html> - |