</div>
            
            <h6 class='watch'>MY GROUPS</h6>
            <div class='groupsBox'>
_BA;
viewGroups($view);
echo <<<_BA
                <br><a href='groups.php?view={$view}'>View all my groups</a>
            </div>            
        </div>
            <form method='post' action='photos.php?view={$view}'>
                <input type='submit' class='toPics' value='{$view} Photos'>
            </form>
            <div class='homeThread'>
_BA;
displayProfileThreads($view);
echo <<<_BA
            </div>
        
    </div>

            
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script type='text/javascript' src='jquery.js'></script>
    <script src='menu.js'></script>       
</body>
</html>

_BA;
?>
echo <<<_BA
                <br><a href='groups.php?view={$user}'>View all my groups</a>
            </div>            
        </div>
            <form method='post' action='photos.php?view={$user}'>
                <input type='submit' class='toPics' value='My Photos'>
            </form>
            <div class='createGroup'>
                <b style='float:left'>Create Group</b><br>
                <form method='post' action='profile.php?view={$user}'>
                    Title: <br><textarea type='text' rows='4' cols='60' name='gtitle' value='{$gtitle}'>{$errorA}</textarea>
                    <input type='submit' value='Create Group'>
                </form>
            </div>
            <div class='homeThread'>
_BA;
displayProfileThreads($user);
echo <<<_BA
            </div>
        
    </div>

            
        
</body>
</html>

_BA;
?>