<script type="text/javascript" language="JavaScript">
	focus_path = ["search"];
</script>
<div class="chefPortletContainer">

	<div class="navIntraTool">
	<a href="#" onclick="location='#toolLink("$action" "doNew_participant")';return false;" title ="$tlang.getString('list.search')">$tlang.getString("part.addpart")</a>
	</div>
	
	<div class ="chefPortletContent">
		#if ($alertMessage)<div class="alertMessage">$tlang.getString("gen.alert") $validator.escapeHtml($alertMessage)</div>#end
		
	<h3 class="insColor insBak">$validator.escapeHtml($site.Title) $tlang.getString("part.partlist")</h3>
	
#if ($participants.size() > 0)

 	<p>
    <span class="leftNav">
        $tlang.getString("part.view") $validator.escapeHtml($site.Title) $tlang.getString("part.below")
    </span>
    <span class="rightNav">
        <span class="instruction">$tlang.getString("part.viewing") $topMsgPos - $btmMsgPos $tlang.getString("import.of") $allMsgNumber $tlang.getString("part.items")</span>
        <br />
        #if ($pagesize != 0)
			#if ($goPPButton == "true")
				<form name="nextpageForm" style="display:inline" method="post" action="#toolForm("$action")">
				<input type="submit" name="eventSubmit_doList_prev" value="$tlang.getString('list.previous') $pagesize" />
				</form>
			#end
		#end
		
		<form name="pagesizeForm" style="display:inline" method="post" action="#toolForm("$action")">
		<input type="hidden" name="eventSubmit_doChange_pagesize" value="changepagesize" />
		<select name="selectPageSize" onchange="blur();document.pagesizeForm.submit();">
		<option value="5" #if($pagesize == 5) selected="selected" #end>$tlang.getString("part.show5")</option>
		<option value="10" #if($pagesize == 10) selected="selected" #end>$tlang.getString("part.show10")</option>
		<option value="20" #if($pagesize == 20) selected="selected" #end>$tlang.getString("part.show20")</option>
		<option value="50" #if($pagesize == 50) selected="selected" #end>$tlang.getString("part.show50")</option>
		<option value="100" #if($pagesize == 100) selected="selected" #end>$tlang.getString("part.show100")</option>
		<option value="200" #if($pagesize == 200) selected="selected" #end>$tlang.getString("part.show200")</option>
		</select>
		</form>
		
		#if ($pagesize != 0)
			#if ($goNPButton == "true")
				<form name="nextpageForm" style="display:inline" method="post" action="#toolForm("$action")">
				<input type="submit" name="eventSubmit_doList_next" value="$tlang.getString('list.next') $pagesize" />
				</form>
			#end
		#end
        <br />
	</span>
    </p>
    
	<table class="listHier">
		<tr>
			<th scope="col" id="name">$tlang.getString("addconf.name")</th>
			<th scope="col" id="username">$tlang.getString("addconf.username")</th>
			<th scope="col" id="role">$tlang.getString("addconf.role")</th>
			<th scope="col" id="status">$tlang.getString("part.ustatus")</th>
			<th scope="col" id="Remove">$tlang.getString("part.remove")</th>
		</tr>
	#foreach ($participant in $participants)
		<tr>
			<td headers="name">
			<div class="indnt1">
				<a href="#">$validator.escapeHtml($participant.Name)</a>
				<div class="itemAction">
					<a href="#">$tlang.getString("part.goto")</a> 
				</div>
			</div>
			</td>
			<td headers="username">$validator.escapeHtml($participant.Uniqname)</td>
			<td headers="role">
				<select name="selectRole">
				## #set ($roles = $participant.Roles())
				#set ($roles = $participant.roles)
				#foreach ($role in $roles)
					<option value="$role">$role.Id</option>
				#end
			</td>
			<td headers="status">$validator.escapeHtml($participant.Status)</td>
			<td headers="remove">
				<input type="checkbox" name="remove" id="remove" value="remove" />
			</td>
		</tr>
	#end
	</table>
	<form action="#toolForm("$action")" method="post">
		<p class="act">
			<input class="mainBtn" type="submit" name="eventSubmit_doUpdate_participants" value="$tlang.getString('gen.update')" />
			<input type="submit" name="eventSubmit_doCancel" value="$tlang.getString('gen.cancel')" />
		</p>
	</form>
	
#end
	</div>
</div>
