W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2009

2006/unicorn/WebContent/WEB-INF/resources/templates/includes footer.vm,1.1,1.2 parameters.vm,1.1,1.2 macros_index.vm,1.1,1.2 head.vm,1.1,1.2

From: Jean-Guilhem Rouel via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 28 Aug 2009 12:40:12 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mh0kW-00067A-Qa@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/includes
In directory hutz:/tmp/cvs-serv22368/WebContent/WEB-INF/resources/templates/includes

Added Files:
	footer.vm parameters.vm macros_index.vm head.vm 
Log Message:
Merging dev2 in HEAD

--- NEW FILE: parameters.vm ---
#set ($simple_parameters = $current_task.getMapOfParameter("simple"))
#set ($advanced_parameters = $current_task.getMapOfParameter("advanced"))
#if ($simple_parameters.size() > 0)
<fieldset class="options $current_task.getID()">
	<legend>Options</legend>
	<div class="options">
		<ul>
#foreach ($param in $simple_parameters)
			<li>
#createParameter($param)
			</li>
#end
		</ul>
	</div>
</fieldset>
#end
#if ($advanced_parameters.size() > 0)
<fieldset class="options advanced $current_task.getID()">
	<legend title="Show/Hide extra options">$extra_options</legend>
	<div class="options">
		<ul>
#foreach ($param in $advanced_parameters)
			<li>
#createParameter($param)
			</li>
#end
		</ul>
	</div>
</fieldset>
#end
--- NEW FILE: head.vm ---
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="$lang" lang="$lang">
<head>
	<title>$noEscape_title</title>
	<link rev="start" href="./" title="Home Page" />
#foreach( $sheet in $css )
	<link href="./style/$sheet" type="text/css" media="screen" rel="stylesheet" />
#end
#foreach( $script in $js )
	<script type="text/javascript" src="$script"></script>
#end
	
	<link rev="made" href="mailto:www-validator@w3.org" />
	<link rel="shortcut icon" href="http://www.w3.org/2008/site/images/favicon.ico" type="image/x-icon" />
	<link rev="start" href="./" title="Home Page" />
</head>
<body>
	<div id="banner">
		<h1>
			<a href="http://www.w3.org/"><img alt="W3C" width="110" height="61" id="logo" src="images/w3c.png" /></a>
			<a href="./"><span>Unicorn - ALPHA Test Version</span></a>
		</h1>
		<p>The Web's Universal Conformance Checker</p>
	</div>
--- NEW FILE: macros_index.vm ---
#macro(createCheckbox $param)
#set($defaults = $param.getMapOfDefaultValue())
<label><span>$param.getLongName($lang):</span> 
	<input type="checkbox" name="$param.getName()" value="$value.getName()"#if($defaults.containsKey($value.getName())) checked="checked" #end class="option_input" />
</label>
#end

#macro(createCheckboxList $param)
#set($defaults = $param.getMapOfDefaultValue())
<label><span>$param.getLongName($lang):</span></label> 
<span class="checkboxlist">
#foreach ($value in $param.getMapOfValue())
	<label>$value.getLongName($lang)
		<input type="checkbox" name="$param.getName()" value="$value.getName()"#if($defaults.containsKey($value.getName())) checked="checked" #end class="option_input" />
	</label>
#end
</span>
#end

#macro(createDropdown $param $multiple)
#set($defaults = $param.getMapOfDefaultValue())
<label><span>$param.getLongName($lang):</span> 
	<select name="$param.Name" #if($multiple) multiple="multiple" size="3" #end class="option_input">
#foreach ($value in $param.getMapOfValue())
		<option value="$value.Name"#if($defaults.containsKey($value.getName())) selected="selected" #end>$value.getLongName($lang)</option>
#end
	</select>
</label> 
#end

#macro(createRadio $param)
#set($defaults = $param.getMapOfDefaultValue())
<label><span>$param.getLongName($lang):</span></label>
<span class="radiolist">
#foreach ($value in $param.getMapOfValue())
	<label>$value.getLongName($lang)
		<input type="radio" name="$param.getName()" value="$value.getName()"#if($defaults.containsKey($value.getName())) checked="checked" #end class="option_input" />
	</label>
#end
</span>
#end

#macro(createTextarea $param)
#set($defaults = $param.getMapOfDefaultValue())
<label><span>$param.getLongName($lang):</span> 
	<textarea name="$param.getName()" class="option_input">#foreach($default in $defaults)$default.Name#end</textarea>' +
</label>
#end

#macro(createTextfield $param)
#set($defaults = $param.getMapOfDefaultValue())
<label><span>$param.getLongName($lang):</span> 
	<input type="text" name="$param.getName()" value="#foreach($default in $defaults)$default.Name#end" class="option_input" />
</label>
#end

#macro(createParameter $param)
#set($type = $param.getType())
#if($type == "CHECKBOX")
#createCheckbox($param)
#elseif($type == "CHECKBOXLIST")
#createCheckboxList($param)
#elseif($type == "DROPDOWN")
#createDropdown($param, false)
#elseif($type == "DROPDOWNLIST")
#createDropdown($param, true)
#elseif($type == "RADIO")
#createRadio($param, true)
#elseif($type == "TEXTAREA")
#createTextarea($param, true)
#elseif($type == "TEXTFIELD")
#createTextfield($param, true)
#end
#end
--- NEW FILE: footer.vm ---
	<ul id="menu">
			<li><a href="http://www.w3.org/QA/2006/obs_framework/" title="$documentation_title">$documentation</a></li>
			<li><a href="http://dev.w3.org/cvsweb/2006/unicorn/" title="$download_title">$download</a></li>
			<li><a href="mailto:public-qa-dev@w3.org" title="$feedback_title">$feedback</a></li>
	</ul>
	<ul id="lang_choice">
#foreach( $key in $languages.keySet() )
		<li>
			<a href="./?ucn_lang=$key" lang="$key" xml:lang="$key" hreflang="$key" rel="alternate">$languages.get($key)</a>
		</li>
#end
	</ul>
	<div id="footer">
		<p id="activity_logos">
			<a href="http://www.w3.org/QA/" title="W3C's Quality Assurance Activity, bringing you free Web quality tools and more">
				<img src="images/qa-small.png" alt="QA" />
			</a>
			<a href="http://dev.w3.org/cvsweb/2006/unicorn/" title="Download the code">
				<img src="images/opensource-75x65.png" alt="Open Source" height="48"/>
			</a>
		</p>
		<p id="support_logo">
			<a href="http://www.w3.org/QA/Tools/Donate">
				<img src="images/I_heart_validator.png" alt="I heart Validator logo" title=" Validators Donation Program" />
			</a>
		</p>
		<p class="copyright">
			<a rel="Copyright" href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> &copy; 1994-2009
			<a href="http://www.w3.org/"><acronym title="World Wide Web Consortium">W3C</acronym></a>&reg;

			(<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology">MIT</acronym></a>,
			<a href="http://www.ercim.org/"><acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>,
			<a href="http://www.keio.ac.jp/">Keio</a>),
			All Rights Reserved.
			W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
			<a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a>,
			<a rel="Copyright" href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a>
			and <a rel="Copyright" href="http://www.w3.org/Consortium/Legal/copyright-software">software licensing</a>

			rules apply. Your interactions with this site are in accordance
			with our <a href="http://www.w3.org/Consortium/Legal/privacy-statement#Public">public</a> and
			<a href="http://www.w3.org/Consortium/Legal/privacy-statement#Members">Member</a> privacy
			statements.
		</p>
	</div>
</body>
</html>
Received on Friday, 28 August 2009 12:40:22 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:38 UTC