<?php
	/*
	* A list of all surveys to be attached to a citation
	*
	*/
?>
<style>
.custom-short-font{font-size:11px;}
</style>
<?php if ($surveys): ?>

<table class="grid-table custom-short-font" cellpadding="0" cellspacing="0" id="related-surveys-table">
<thead>
	<tr class="header">        
	    <th>&nbsp;</th>
		<th>Country <span>&nbsp;</span></th>
        <th>Title <span>&nbsp;</span></th>
        <th>Year <span>&nbsp;</span></th>
	</tr>
</thead>
<tbody>    
<?php foreach ($surveys as $survey):?>
	<tr align="left">
    	<td><input class="chk" type="checkbox" name="sid[]" value="<?php echo $survey['id'];?>" <?php echo (in_array($survey['id'],$related_surveys) ? 'checked="checked"' : ''); ?>/></td>
		<td><?php echo $survey['nation'];?></td>
        <td><?php echo $survey['titl'];?></td>		
        <td><?php echo $survey['proddate'];?></td>		
	</tr>
<?php endforeach; ?>
</tbody>
</table>    

<?php else:?>
No records found.
<?php endif;?>