From: <so...@us...> - 2006-10-04 18:49:43
|
Revision: 148 http://svn.sourceforge.net/obo/?rev=148&view=rev Author: sohelm Date: 2006-10-04 11:49:36 -0700 (Wed, 04 Oct 2006) Log Message: ----------- latest version Modified Paths: -------------- phenote/trunk/src/web/html/interface.html phenote/trunk/src/web/html/term_completer.html Modified: phenote/trunk/src/web/html/interface.html =================================================================== --- phenote/trunk/src/web/html/interface.html 2006-10-03 23:11:33 UTC (rev 147) +++ phenote/trunk/src/web/html/interface.html 2006-10-04 18:49:36 UTC (rev 148) @@ -12,68 +12,87 @@ <script src="/web/javascript/ajax-lib/effects.js" type="text/javascript"></script> <script src="/web/javascript/ajax-lib/dragdrop.js" type="text/javascript"></script> <script src="/web/javascript/ajax-lib/controls.js" type="text/javascript"></script> +<script src="/web/javascript/ajax-lib/json.js" type="text/javascript"></script> +<script src="/web/javascript/interface.js" type="text/javascript"></script> +<link href="/web/css/term_completer.css" type="text/css" rel="stylesheet"> +<!--link href="/inc/css/style.css" type="text/css" rel="stylesheet"--> </HEAD> <BODY> <table> -<tr height="20%"><td> - +<tr valign="top"><td> <div id="ontology"> - <div style="float: left;"> +<div style="float: left;"> -<link href="/web/css/term_completer.css" type="text/css" rel="stylesheet"> -<form> +<form name="data_table" action="process_phenotype.pl"> + <!-- term_completer.html code start --> <table> <tr> <!--#set var="tag" value="genotype" --> <!--#set var="title" value="Genotype" --> -<!--#set var="url" value="/db/cgi-bin/ajax_search/genotype.cgi" --> -<!--#include virtual="term_completer.html" --> +<!--#set var="url" value="/db/cgi-bin/ajax_search/genetics/genotype.pl" --> +<!--#include virtual="/web/html/term_completer.html" --> </tr><tr> -<!--#set var="tag" value="mutant_type" --> -<!--#set var="title" value="Mutant Type" --> -<!--#set var="url" value="/db/cgi-bin/ajax_search/genotype.cgi" --> -<!--#include virtual="term_completer.html" --> -</tr><tr> <!--#set var="tag" value="genetic_context" --> <!--#set var="title" value="Genetic Context" --> -<!--#set var="url" value="/db/cgi-bin/ajax_search/genotype.cgi" --> -<!--#include virtual="term_completer.html" --> +<!--#set var="url" value="/db/cgi-bin/ajax_search/genetics/genetic_context.pl" --> +<!--#include virtual="/web/html/term_completer.html" --> </tr><tr> <!--#set var="tag" value="entity" --> <!--#set var="title" value="Entity" --> -<!--#set var="url" value="/db/cgi-bin/ajax_search/entity.cgi" --> -<!--#include virtual="term_completer.html" --> +<!--#set var="url" value="/db/cgi-bin/ajax_search/genetics/entity.pl" --> +<!--#include virtual="/web/html/term_completer.html" --> </tr><tr> <!--#set var="tag" value="quality" --> <!--#set var="title" value="Quality" --> -<!--#set var="url" value="/db/cgi-bin/ajax_search/quality.cgi" --> -<!--#include virtual="term_completer.html" --> +<!--#set var="url" value="/db/cgi-bin/ajax_search/genetics/quality.pl" --> +<!--#include virtual="/web/html/term_completer.html" --> </tr><tr> <!--#set var="tag" value="reference" --> <!--#set var="title" value="Reference" --> -<!--#set var="url" value="/db/cgi-bin/ajax_search/quality.cgi" --> -<!--#include virtual="term_completer.html" --> +<!--#set var="url" value="/db/cgi-bin/ajax_search/genetics/quality.pl" --> +<!--#include virtual="/web/html/term_completer.html" --> </tr><tr> <td> <b>Notes</b> </td> <td> -<TEXTAREA NAME="notes" ROWS="4", COLS="20"> </TEXTAREA> +<TEXTAREA id="notes" NAME="notes" ROWS="4" COLS="20"></TEXTAREA> </td> </tr> </table> - <!-- term_completer.html code ends --> -</form> + </div> <div id="terminfo"></div> +<BR> </div> </td></tr> -<tr height="80%"><td> </td></tr> +<tr><td> +<div id="datatable"> +<CENTER><input type="button" name="Add" value="Add" onClick="insert_row('data')"/> +<input type="button" name="Update" value="Update" onClick="update_row('data')"/> +<input type="button" name="Commit" value="Commit" onClick="commit_data('data')"/> +<input type="button" name="Retrieve" value="Retrieve" onClick="retrieve_data('data')"/> +<input type="button" name="Clear All" value="Clear All" onClick="clear_table_data('data')"/> +<table id="data" class="phenotype"> +<col width="15%"/><col width="10%"/><col width="15%"/><col width="15%"/><col width="15%"/><col width="15%"/><col width="15%"/> + +<TR><TH> </TH><TH>Genotype</TH><TH>Genetic Context</TH><TH>Entity</TH><TH>Quality</TH><TH>Reference</TH><TH>Notes</TH></TR> </table> +</CENTER> +</form> +<div id="results"> + <BR> + +</div> +</div> +</td></tr> +</table> + + </body> </html> Modified: phenote/trunk/src/web/html/term_completer.html =================================================================== --- phenote/trunk/src/web/html/term_completer.html 2006-10-03 23:11:33 UTC (rev 147) +++ phenote/trunk/src/web/html/term_completer.html 2006-10-04 18:49:36 UTC (rev 148) @@ -1,37 +1,22 @@ - - - <td> <b><!--#if expr="\"tag\"" --><!--#echo var="title" --><!--#endif --></b> </td> <td> <input autocomplete="off" id="<!--#if expr="\"tag\"" --><!--#echo var="tag" --><!--#endif -->" name="<!--#if expr="\"tag\"" --><!--#echo var="tag" --><!--#endif -->" size="26" type="text" value="" /> -</td> + <BR><div class="auto_complete" id="<!--#if expr="\"tag\"" --><!--#echo var="tag" --><!--#endif -->_auto_complete"></div> -<input type="hidden" name="<!--#if expr="\"tag\"" --><!--#echo var="tag" --><!--#endif -->id"> - +<input type="hidden" id="<!--#if expr="\"tag\"" --><!--#echo var="tag" --><!--#endif -->_id" name="<!--#if expr="\"tag\"" --><!--#echo var="tag" --><!--#endif -->id"> +</td> <script type="text/javascript"> function set_<!--#if expr="\"tag\"" --><!--#echo var="tag" --><!--#endif -->_term(termid){ if ( !isNaN( termid ) ) { var pars = 'termid=' + termid; var myAjax = new Ajax.Updater('terminfo', "<!--#if expr="\"url\"" --><!--#echo var="url" --><!--#endif -->", {method: 'get', parameters: pars } ); - // have to have [1] next to form item because the edit subform and - // the main form both have donorid elements - if ( document.forms[0].termid.length > 1 ) { - document.forms[0].<!--#if expr="\"tag\"" --><!--#echo var="tag" --><!--#endif -->id[1].value = termid; - document.forms[0].<!--#if expr="\"tag\"" --><!--#echo var="tag" --><!--#endif -->id[2].value = termid; - } - else { - document.forms[0].<!--#if expr="\"tag\"" --><!--#echo var="tag" --><!--#endif -->id.value = termid; - } - } + document.data_table.<!--#if expr="\"tag\"" --><!--#echo var="tag" --><!--#endif -->id.value = termid; - + } } new Ajax.Autocompleter( '<!--#if expr="\"tag\"" --><!--#echo var="tag" --><!--#endif -->', '<!--#if expr="\"tag\"" --><!--#echo var="tag" --><!--#endif -->_auto_complete', '<!--#if expr="\"url\"" --><!--#echo var="url" --><!--#endif -->',{ }); -</script> - - - +</script> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |