  <%  eval(read("resources.data"))  %>

  <div id="resources" class="panel-group">
    <div class="panel panel-default">
      <div class="panel-heading"><h4>リソース<span class="badge"><%= len(aResources) %></span></h4></div>
      <div class="panel-body">

	    <% nIDNumber = 0 %>
		<% for aGroup in aResources %>
		<% nIDNumber++ %>
	    <%= '<div class="panel panel-primary" id="section'+nIDNumber+'">'%>
		      <div class="panel-heading"><%= aGroup[1] %> <span class="badge"><%= len(aGroup[2]) %></span></div>
		      <div class="panel-body">

			<table class="table table-striped">

				<% if len(aGroup[2][1]) = 2  %>
					<thead>
				  		<tr>
							<th width="70%">説明  </th>
							<th width="30%">画像 </th>
				  		</tr>
					</thead>
				<% ok %>

				<tbody>
				<% for aItem in aGroup[2] %>
				  <tr>
					<% for aData in aItem %>
						 <th>
							<%= aData %>
						 </th>
					<% next %>
				  </tr>
				<% next %>
				</tbody>
			</table>

 	       	      </div>
	        </div>  

		<% next %>

       </div>
     </div>  
  </div>  



