Tryag File Manager
Home
-
Turbo Force
Current Path :
/
home
/
cluster1
/
data
/
bu01
/
1121861
/
jlex
/
rdloci
/
Upload File :
New :
File
Dir
//home/cluster1/data/bu01/1121861/jlex/rdloci/search_form.xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" > <xsl:variable name="language">ENGLISH</xsl:variable> <xsl:variable name="jlex_path"><xsl:value-of select="concat('../',$php_version)"/></xsl:variable> <xsl:variable name="php_version"><xsl:value-of select="document('../jlex_defaults.xml')//jlex_defaults/php_version"/></xsl:variable> <xsl:template match="SET"> <option> <xsl:attribute name="value"><xsl:value-of select="ENGLISH"/></xsl:attribute> <xsl:value-of select="ENGLISH"/> </option> </xsl:template> <xsl:template match="phrases_and_fields"> <xsl:param name="count"/> <xsl:variable name="name"><xsl:value-of select="concat('db_cols_',$count)"/></xsl:variable> <select> <xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute> <xsl:variable name="file"><xsl:value-of select="."/></xsl:variable> <xsl:apply-templates select="document($file)/PHRASES_AND_FIELDS/SET"/> </select> </xsl:template> <xsl:template match="reg_exps"> <xsl:param name="count"/> <xsl:variable name="name"><xsl:value-of select="concat('reg_exp_',$count)"/></xsl:variable> <select> <xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute> <xsl:variable name="file"><xsl:value-of select="."/></xsl:variable> <xsl:apply-templates select="document($file)/REG_EXPS/SET"/> </select> </xsl:template> <xsl:template match="connectives"> <xsl:param name="count"/> <xsl:variable name="name"><xsl:value-of select="concat('connective_',$count)"/></xsl:variable> <select> <xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute> <xsl:variable name="file"><xsl:value-of select="."/></xsl:variable> <xsl:variable name="nodes" select="document($file)"/> <xsl:apply-templates select="$nodes/CONNECTIVES/SET"/> </select> </xsl:template> <xsl:template name="string"> <xsl:param name="count"/> <xsl:variable name="name"><xsl:value-of select="concat('string_',$count)"/></xsl:variable> <input type="text" size="20"> <xsl:attribute name="name"><xsl:value-of select="$name"/></xsl:attribute> </input> </xsl:template> <xsl:template name="condition_set"> <xsl:param name="count"/> <xsl:variable name="max_conditions"><xsl:value-of select="//defaults/max_conditions"/></xsl:variable> <tr> <td> <xsl:apply-templates select="//defaults/phrases_and_fields"> <xsl:with-param name="count" select="$count"/> </xsl:apply-templates> </td> <td> <xsl:apply-templates select="//defaults/reg_exps"> <xsl:with-param name="count" select="$count"/> </xsl:apply-templates>o </td> <td> <xsl:call-template name="string"> <xsl:with-param name="count" select="$count"/> </xsl:call-template> </td> </tr> <xsl:if test="$count < ($max_conditions - 1)"> <tr> <td colspan="4" align="center"> <xsl:apply-templates select="//defaults/connectives"> <xsl:with-param name="count" select="$count"/> </xsl:apply-templates> </td> </tr> </xsl:if> </xsl:template> <xsl:template name="produce_condition_set"> <xsl:param name="count"/> <xsl:variable name="max_conditions" select="//defaults/max_conditions"/> <xsl:if test="$count < $max_conditions"> <xsl:call-template name="condition_set"> <xsl:with-param name="count" select="$count"/> </xsl:call-template> <xsl:call-template name="produce_condition_set"> <xsl:with-param name="count" select="$count + 1"/> </xsl:call-template> </xsl:if> </xsl:template> <xsl:template match="/"> <xsl:variable name="project"><xsl:value-of select="//defaults/project"/></xsl:variable> <HTML> <HEAD> <TITLE>H. pylori Database</TITLE> <META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=iso-8859-1'></META> </HEAD> <BODY BGCOLOR='#FFFFFF' TEXT='#000000'> <CENTER> <HR ALIGN='center' WIDTH='100%' SIZE='2' COLOR='#800000'/> <H1>RD Gene Database</H1> <FORM METHOD='post'> <xsl:attribute name="action"><xsl:value-of select="concat('../../',$php_version,'/query_result.',$php_version)"/></xsl:attribute> <INPUT TYPE='hidden' NAME='project'> <xsl:attribute name="value"><xsl:value-of select="$project"/></xsl:attribute> </INPUT> <BR/><BR/> <TABLE BORDER='1' WIDTH='600'> <TR> <TH>Field</TH> <TH>Logical operator</TH> <TH>String</TH> </TR> <xsl:call-template name="produce_condition_set"> <xsl:with-param name="count" select="0"/> </xsl:call-template> <TR><TD COLSPAN='4' ALIGN='CENTER'><b>Stylesheet: </b> <SELECT name='stylesheet'> <OPTION value='../rdloci/allele_to_html.xsl'>Align Alleles</OPTION> <OPTION value='../rdloci/conserved_to_html.xsl'>Align Conserved Region</OPTION> <OPTION value='../rdloci/allele_and_cons.xsl'>Align Allele + Conserved Region</OPTION> <OPTION value='../rdloci/aa_to_html.xsl'>Analyze Variable Region (AA)</OPTION> <OPTION value='../rdloci/dna_to_html.xsl'>Analyze Variable Region (DNA)</OPTION> <OPTION value='../rdloci/aa_words.xsl'>Align VRegion AA Words</OPTION> <OPTION value='../rdloci/dna_words.xsl'>Align VRegionDNA Words</OPTION> <OPTION value='../rdloci/vregion_align.xsl'>Align Vregions</OPTION> <OPTION value='../rdloci/align-allele_vregion_cons.xsl'>Align RD Gene (Allele, Variable, and Cons)</OPTION> <OPTION value=''>None</OPTION> </SELECT> </TD></TR> <TR><TD COLSPAN='4' ALIGN='CENTER'><b>Sort on: </b><INPUT TYPE='text' name='sort_order' size='25'/></TD></TR> <TR> <TD COLSPAN='4' ALIGN='center'> <INPUT TYPE='submit' VALUE='Submit'/> <INPUT TYPE='reset' VALUE='Reset'/> </TD> </TR> </TABLE> </FORM> <BR/> <BR/> </CENTER> </BODY> </HTML> </xsl:template> </xsl:stylesheet>