Location: PHPKode > projects > OpenNitro > trunk/Nitro/Defaults/Templates/TestSuiteList.tpl
<form name="TestSuite" id="TestSuite">
<table width="100%" cellpadding="0" cellspacing="0" class="funky">
	<tr>
		<th>File</th>
		<th>Result</th>
		<th style="text-align: center;"><input type="checkbox" name="TestSuite_AllBox" id="TestSuite_AllBox" onclick="checkall(this.form);" style="height: 10px; border: 0px; background: none;" value="1" /></th>
		<th class="last">&nbsp;</th>
	</tr>

{if $testFiles|is_array && $testFiles|count >= 1}
	{foreach from=$testFiles item=testFile name=testFilesLoop}
		{assign var='Code' value=$testFile|@sha1}
		{assign var='Name' value=$smarty.const.NITRO_ROOT|@str_replace:'':$testFile}
		{if $smarty.foreach.testFilesLoop.iteration % 2}
			{assign var="class" value="even"}
		{else}
			{assign var="class" value="odd"}
		{/if}
		<tr>
			<td class="{$class}">{'/Tests/Nitro//'|@str_replace:'':$Name}</td>
			<td class="{$class}" id="TD_Tests_{$Code}_Result" style="width: 400px;"><span id="Tests_{$Code}_Result">&nbsp;</span></td>
			<td class="{$class}" style="width: 20px; text-align: center;"><input type="checkbox" name="{$Code};;{$Name}" id="{$Code};;{$Name}" value="1" style="border: none;" /></td>
			<td class="{$class} last" style="width: 50px; text-align: center;"><img src="./GetObject.php?NitroDefault=Images/BackOffice/test.gif" width="16" height="16" alt="Test" title="Test" style="border: none; vertical-align: middle; cursor: pointer;" onclick="RunTest('{$Code}', '{$Name}'); return false;" /></td>
		</tr>
	{/foreach}
{else}
	<tr>
		<td colspan="4">Geen test bestanden gevonden</td>
	</tr>
{/if}

</table><br />
<input type="button" value="Test all selected" class="button" onclick="return SubmitTest();" />&nbsp;<input type="button" value="Clear all tests" class="button" onclick="return clearAllTests();" />
</form><br />
Return current item: OpenNitro