1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
2 | |
---|
3 | <xsl:stylesheet version="2.0" |
---|
4 | xmlns:xsl ="http://www.w3.org/1999/XSL/Transform" |
---|
5 | xmlns:ibis="http://www.ibisph.org" |
---|
6 | |
---|
7 | exclude-result-prefixes="ibis" |
---|
8 | > |
---|
9 | <xsl:import href="../../../Page.xslt"/> |
---|
10 | |
---|
11 | |
---|
12 | <ibis:doc> |
---|
13 | <name>html/query/definition/detail/Page</name> |
---|
14 | <summary>Produces Alphabetical Query Definition List page</summary> |
---|
15 | <description> |
---|
16 | XSLT used to create the Query Definition Edit Detail page. |
---|
17 | </description> |
---|
18 | |
---|
19 | <author>Garth Braithwaite</author> |
---|
20 | <company>Software Technology Group/CDC/Utah Department of Health</company> |
---|
21 | </ibis:doc> |
---|
22 | |
---|
23 | |
---|
24 | <xsl:param name="Page.pageTitle" ibis:doc="Page's title text.">Saved Query Criteria Definition</xsl:param> |
---|
25 | |
---|
26 | |
---|
27 | |
---|
28 | <xsl:template name="Page.specificCSS"> |
---|
29 | <link rel="stylesheet" type="text/css" href="{$ibis.urlPrefix}css/Edit.css"/> |
---|
30 | </xsl:template> |
---|
31 | |
---|
32 | |
---|
33 | <xsl:template name="Page.specificScript" |
---|
34 | ibis:doc="Provides the Javascript file links and submit related functions |
---|
35 | for the query module builder pages." |
---|
36 | > |
---|
37 | <!-- enhanced_element and event_manager are already loaded via \site_specific_page.xslt's standard script. --> |
---|
38 | <!-- |
---|
39 | not needed - can be put below but will be needed for other stuff so leave... |
---|
40 | <script type="text/javascript" src="{$ibis.urlPrefix}js/NamedInputElement.js"/> |
---|
41 | --> |
---|
42 | <script type="text/javascript"> |
---|
43 | var webappPrefix = '<xsl:value-of select="$ibis.urlPrefix"/>'; |
---|
44 | |
---|
45 | // <![CDATA[ |
---|
46 | // ]]> |
---|
47 | </script> |
---|
48 | </xsl:template> |
---|
49 | |
---|
50 | |
---|
51 | |
---|
52 | <xsl:template name="Page.sectionsContent" |
---|
53 | ibis:doc="query definition edit page." |
---|
54 | > |
---|
55 | <xsl:param name="configuration" select="/QUERY_MODULE/CONFIGURATIONS/CONFIGURATION[NAME=/QUERY_MODULE/REQUEST/CONFIGURATION_NAME]"/> |
---|
56 | |
---|
57 | <xsl:param name="rowDimensionName" select="/QUERY_MODULE/REQUEST/RESULT_GROUP_BY/ROW_DIMENSION_NAME"/> |
---|
58 | <xsl:param name="colDimensionName" select="/QUERY_MODULE/REQUEST/RESULT_GROUP_BY/COLUMN_DIMENSION_NAME"/> |
---|
59 | <xsl:param name="otherDimensionName" select="/QUERY_MODULE/REQUEST/RESULT_GROUP_BY/OTHER_DIMENSION_NAME"/> |
---|
60 | <xsl:param name="rowDimensionTitle" select="/QUERY_MODULE/DIMENSIONS/DIMENSION[NAME=$rowDimensionName]/TITLE"/> |
---|
61 | <xsl:param name="colDimensionTitle" select="/QUERY_MODULE/DIMENSIONS/DIMENSION[NAME=$colDimensionName]/TITLE"/> |
---|
62 | <xsl:param name="otherDimensionTitle" select="/QUERY_MODULE/DIMENSIONS/DIMENSION[NAME=$otherDimensionName]/TITLE"/> |
---|
63 | <xsl:param name="graphicName" select="/QUERY_MODULE/REQUEST/GRAPHIC_NAME"/> |
---|
64 | |
---|
65 | <form name="form" method="post" action="{$ibis.urlPrefix}save/query/definition"> |
---|
66 | <xsl:call-template name="Selections.userCriteria"> |
---|
67 | <xsl:with-param name="queryModule" select="/QUERY_MODULE"/> |
---|
68 | <xsl:with-param name="criteriaTitle" select="'Selected Criteria To Be Saved'"/> |
---|
69 | <xsl:with-param name="rowDimensionTitle" select="$rowDimensionTitle"/> |
---|
70 | <xsl:with-param name="colDimensionTitle" select="$colDimensionTitle"/> |
---|
71 | <xsl:with-param name="otherDimensionTitle" select="$otherDimensionTitle"/> |
---|
72 | <xsl:with-param name="graphTitle" select="if($graphicName = 'Map') then 'Map' else $graphicName"/> |
---|
73 | </xsl:call-template> |
---|
74 | <br/> |
---|
75 | |
---|
76 | <h2>User's Saved Query Definiton</h2> |
---|
77 | <table class="EditDetail" summary="Layout - left column is the label/title, right column contains associated input elements."> |
---|
78 | |
---|
79 | <tr> |
---|
80 | <th scope="row" title="Configuration path for the current query module"> |
---|
81 | Configuration Path |
---|
82 | </th> |
---|
83 | <td class="Input" title="Enter in the ."> |
---|
84 | <xsl:value-of select="/QUERY_MODULE/REQUEST/CONFIGURATION_PATH"/> |
---|
85 | <input type="hidden" id="configurationPath" name="configurationPath" value="{/QUERY_MODULE/REQUEST/CONFIGURATION_PATH}"/> |
---|
86 | </td> |
---|
87 | </tr> |
---|
88 | |
---|
89 | |
---|
90 | <tr><td colspan="2"><hr align="center"/></td></tr> |
---|
91 | |
---|
92 | <tr> |
---|
93 | <th scope="row" title="Unique identifier for this definition"> |
---|
94 | <label for="name">Name *</label> |
---|
95 | </th> |
---|
96 | <td class="Title" title="unique name that identifies this saved definition"> |
---|
97 | <input id="name" name="name" maxlength="180" type="text" value="{/QUERY_MODULE/REQUEST/CONFIGURATION_PATH}-{/QUERY_MODULE/REQUEST/CONFIGURATION_NAME}"/> <br/> |
---|
98 | The above name needs to be a unique value for across all of your saved query definitions. In the future this will be an |
---|
99 | auto generated value so that it will always be unique. Since this is a test page it is left open so that |
---|
100 | you can replace/overwrite an existing defintion. |
---|
101 | </td> |
---|
102 | </tr> |
---|
103 | |
---|
104 | <tr> |
---|
105 | <th scope="row" title="This value is used as the main title for this query definiton."> |
---|
106 | <label for="title">Title *</label> |
---|
107 | </th> |
---|
108 | <td class="Title" title="Enter the main title for this query definition."> |
---|
109 | <input id="title" name="title" maxlength="250" type="text" value="{/QUERY_MODULE/TITLE}-{$configuration/TITLE}"/> |
---|
110 | </td> |
---|
111 | </tr> |
---|
112 | |
---|
113 | <tr> |
---|
114 | <th scope="row" title="This value is used as the user description for this query definiton."> |
---|
115 | <label for="description">Description</label> |
---|
116 | </th> |
---|
117 | <td class="Title" title="Enter the main title for this query definition."> |
---|
118 | <textarea name="description" id="description" rows="5" cols="40"> |
---|
119 | <xsl:value-of select="concat(/QUERY_MODULE/TITLE, '-', $configuration/TITLE)"/> |
---|
120 | </textarea> |
---|
121 | </td> |
---|
122 | </tr> |
---|
123 | </table> |
---|
124 | <div class="Required">* = Required Input</div> |
---|
125 | <br/> |
---|
126 | |
---|
127 | <input type="Submit" value=" Save "/>   |
---|
128 | <input type="Button" value=" Cancel " onclick="location.href='{concat($ibis.urlPrefix, 'query/result', /QUERY_MODULE/REQUEST/CONFIGURATION_PATH, '.html')}'"/>   |
---|
129 | <input type="Button" value=" Definition List " onclick="location.href='{concat($ibis.urlPrefix, 'query/definition/List.html')}'"/> |
---|
130 | |
---|
131 | <input type="hidden" name="modified"/> |
---|
132 | </form> |
---|
133 | |
---|
134 | </xsl:template> |
---|
135 | |
---|
136 | </xsl:stylesheet> |
---|
137 | <!-- ============================= End of File ============================= --> |
---|
138 | |
---|