<?php
$this->load_template('_header.php');
$this->load_template('_top.php');
?>
<script type="text/javascript" src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/js/js_dashboard.js"></script>
<script type="text/javascript" src="<?php echo $C->SITE_URL; ?>themes/<?php echo $C->THEME ?>/js/js_ajaxupload.js"></script>
<script type="text/javascript" src="<?php echo $C->SITE_URL; ?>themes/<?php echo $C->THEME ?>/js/js_uploadimage.js"></script>
<script type="text/javascript" src="<?php echo $C->SITE_URL; ?>themes/<?php echo $C->THEME ?>/js/js_uploadcover.js"></script>
<div id="generalspace">
        
    <div id="container">
    
    	<div id="column1"><?php $this->load_template('_verticalmenu-dashboard.php'); ?></div>
        
        <div id="column2">

			<div id="dashboard2">
                
                <div id="listgroups">
                
                	<div class="boxdash">
                
                        <div class="title"><?php echo $this->lang('dashboard_groups_title')?></div>
                        
                        <div class="spaceinfo">
                        
                        	<?php $this->load_template('__dashboard-smenu-groups.php');?>
                            
                            <div class="mrg10T mrg30B">
                            
                            	<div class="txtsize00 linkblue2">&laquo; <a href="<?php echo $C->SITE_URL?>dashboard/groups"><?php echo $this->lang('dashboard_mygroups_mem_back'); ?></a></div>
                            	
                            	<div class="mrg10T txtsize00 grey1"><?php echo $this->lang('dashboard_mygroups_mem_title'); ?></div>
                                <div class="bold txtsize06"><?php echo $D->namegroup ?></div>
                                
								<?php if ($D->nummembers == 0) { ?>
                                
                                <div class="mrg30T mrg30B txtsize00"><?php echo $this->lang('dashboard_mygroups_mem_nomembers'); ?></div>
                                
                                <?php } else { ?>
                                
                                <div class="mrg20T"><?php echo $D->htmlMembers?></div>
                                
								<?php if ($D->totalmembers>$C->NUM_MEMBERS_PAGE) { ?>
                                
                                <div id="moreitems"></div>
                                
                                <div><input name="numitems" type="hidden" id="numitems" value="<?php echo $D->nummembers?>" /></div>
                                
                                <div id="moreitemsbar" class="mrg20T mrg10B">
                                    <div class="centered">
                                        <span id="bmore" class="bgrey2 rounded"><?php echo $this->lang('global_txt_moreitems')?></span>
                                        <span id="morepreload" class="hide"><img src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/imgs/preload.gif" /></span>
                                    </div>
                                </div>
                                <script>
                                    var idu = <?php echo $D->idgroup ?>;
                                    var itemperpage = <?php echo $C->NUM_MEMBERS_PAGE ?>;
                                    var txt_norequest = '<?php echo $this->lang('global_txt_no_request') ?>';
                                    $('#bmore').click(function(){
                                        reloadinfo('groupmember')
                                        return false;
                                    });
                                </script>
                        
                                <?php } ?>
                            
                                <?php } ?>
                         
                            

                                
                            </div>
                        
                    	</div>
                
                	</div>
        
        		</div>
        
        	</div>
        
        </div>
        
        <div id="divseparator" class="sh"></div>
        
        <div id="column3"><?php $this->load_template('_accessories-dashboard.php'); ?></div>
        
        <div class="sh"></div>
    
    </div>
            
</div>    

<?php
$this->load_template('_foot.php');
$this->load_template('_footer.php');
?>