<!-- $Id$ -->
<TR CLASS="DARK">
	<TD CLASS="FALL" COLSPAN="3">
		<B>{t}Access rights:{/t}</B>
	</TD>
</TR>
<TR CLASS="LIGHT">
	<TD CLASS="FALL" colspan="3">
		<TABLE>
		    {cycle values="light,lucid" print=false}
		    {foreach from=$modinfo item=module key=key}
		    {if $module.actions && $key != "core"}
		    <TR CLASS="{cycle}">
			<TD width="1%" class="hand" onClick="showOrHide('{$key}');" nowrap>
				<IMG SRC="modules/auth/img/plain.gif" ALT=""> <B>[{$key}]</B>
			</TD>
			<TD width="98%" class="hand" onClick="showOrHide('{$key}');" nowrap {tip text="Click on record to see list of selected module actions"}>
				<B>
				{$_ui_language = Localisation::getCurrentUiLanguage()}
				{if $module.summary}
					{if $module.summary.$_ui_language}{$module.summary.$_ui_language|truncate:"70":"..."}{else}{$module.summary.$_ui_language|truncate:"70":"..."}{/if}
				{else}
					{if $module.description.$_ui_language}{$module.description.$_ui_language|truncate:"70":"..."}{else}{$module.description.$_ui_language|truncate:"70":"..."}{/if}
				{/if}
				</B>
			</TD>
			<TD width="1%">
				{if count($rights.$key)==$module.count || $rights.$key=="1"}
					<img src="modules/auth/img/check.gif" alt="">
				{elseif is_array($rights.$key)}
					<img src="modules/auth/img/check_blend.gif" alt="">
				{/if}
			</TD>
		    </TR>
		    {cycle print=false}
		    <TR CLASS="{cycle}" id="{$key}" style="display:none;">
			<TD colspan="3">
			    <TABLE width="98%" align="right">
				{foreach from=$module.actions item=action key=akey}
				<TR onmouseover="addClass(this, 'highlight')" onmouseout="removeClass(this, 'highlight')">
				    <TD width="1%">[{$akey}]</TD>
				    <TD width="98%" nowrap>
					{if $action.description.$_ui_language}{$action.description.$_ui_language|truncate:"70":"..."}{else}{$action.description.$_ui_language|truncate:"70":"..."}{/if}
				    </TD>
				    <TD width="1%" nowrap>
					{if $rights.$key.$akey || $rights.$key=="1"}
					    <img src="modules/auth/img/check.gif" alt="">
					{/if}
				    </TD>
				</TR>
				{/foreach}
			    </TABLE>
			</TD>
		    </TR>
		    {/if}
		    {/foreach}
		</TABLE>
	</TD>
</TR>
