Exemplo n.º 1
0
        }
        // 98->1
        if ($currstatus == 6) {
            $currstatus = 99;
        }
        // 5->99
    } else {
        $currstatus -= 1;
        // 1,2,3,4,5,99 => 0,1,2,3,4,98
        if ($currstatus == 98) {
            $currstatus = 5;
        }
        // 99->5
        if ($currstatus == 0) {
            $currstatus = 98;
        }
        // 1->98
    }
    if ($currstatus >= 1 && $currstatus <= 5 || $currstatus == 99 || $currstatus == 98) {
        $m1 = runsql('update ' . $tbpref . 'words set WoStatus = ' . $currstatus . ', WoStatusChanged = NOW(),' . make_score_random_insert_update('u') . ' where WoID = ' . $wid, '') + 0;
        if ($m1 == 1) {
            $currstatus = get_first_value('SELECT WoStatus as value FROM ' . $tbpref . 'words where WoID = ' . $wid);
            if (!isset($currstatus)) {
                echo '';
            }
            echo make_status_controls_test_table(1, $currstatus, $wid);
        }
    } else {
        echo '';
    }
}
Exemplo n.º 2
0
    }
    $sent = tohtml(repl_tab_nl($_REQUEST["WoSentence"]));
    $sent1 = str_replace("{", ' <b>[', str_replace("}", ']</b> ', mask_term_in_sentence($sent, $regexword)));
    ?>

<script type="text/javascript">
//<![CDATA[
var context = window.parent.frames['l'].document;
var woid = <?php 
    echo prepare_textdata_js($wid);
    ?>
;
if(window.parent.frames['l'].location.href.indexOf('do_test_table') !== -1) {
	// Table Test
	$('#STAT' + woid, context).html(<?php 
    echo prepare_textdata_js(make_status_controls_test_table(1, $_REQUEST["WoStatus"], $wid));
    ?>
);
	$('#TERM' + woid, context).html(<?php 
    echo prepare_textdata_js(tohtml($_REQUEST["WoText"]));
    ?>
);
	$('#TRAN' + woid, context).html(<?php 
    echo prepare_textdata_js(tohtml($translation));
    ?>
);
	$('#ROMA' + woid, context).html(<?php 
    echo prepare_textdata_js(tohtml($_REQUEST["WoRomanization"]));
    ?>
);
	$('#SENT' + woid, context).html(<?php 
Exemplo n.º 3
0
}
$res = do_mysql_query($sql);
while ($record = mysql_fetch_assoc($res)) {
    $sent = tohtml(repl_tab_nl($record["WoSentence"]));
    $sent1 = str_replace("{", ' <b>[', str_replace("}", ']</b> ', mask_term_in_sentence($sent, $regexword)));
    ?>
<tr>
<td class="td1 center" nowrap="nowrap"><a href="edit_tword.php?wid=<?php 
    echo $record['WoID'];
    ?>
" target="ro"><img src="icn/sticky-note--pencil.png" title="Edit Term" alt="Edit Term" /></a></td>
<td class="td1 center" nowrap="nowrap"><span id="STAT<?php 
    echo $record['WoID'];
    ?>
"><?php 
    echo make_status_controls_test_table($record['Score'], $record['WoStatus'], $record['WoID']);
    ?>
</span></td>
<td class="td1 center" style="font-size:<?php 
    echo $textsize;
    ?>
%;"><?php 
    echo $span1;
    ?>
<span id="TERM<?php 
    echo $record['WoID'];
    ?>
"><?php 
    echo tohtml($record['WoText']);
    ?>
</span><?php