Esempio n. 1
0
                </div><!-- my-activity content-block -->

                

                <div class="my-routers content-block">
                    <div class="content-title"><?php 
if ($own_profile) {
    echo 'My';
} else {
    echo $user['first_name'] . "'s";
}
?>
 Routers</div>
                    <div class="form-item no-height">
                        <?php 
$routers = getRoutersForUser($uid);
if (!empty($routers)) {
    foreach ($routers as $router) {
        $u = getUserData($router['user_id']);
        ?>
                                <div class="router-user-photo">
                                    <a href="user.php?uid=<?php 
        echo $u['user_id'];
        ?>
">
                                        <?php 
        if (empty($u['photo'])) {
            ?>
                                            <img src="uploads/avatars/nophoto.jpg" alt="">
                                        <?php 
        } else {
Esempio n. 2
0
include 'includes/header.php';
require_once DIR_APP . 'projects.php';
require_once DIR_APP . 'users.php';
if (empty($_SESSION['logged_in'])) {
    redirect('index.php');
}
?>

    <div class="inner-page-wrapper">

        <div class="connection inner-page content">

            <?php 
include DIR_INCLUDE . 'left_nav.php';
$search_str = '';
$routers = getRoutersForUser($_SESSION['uid'], $search_str);
if (!empty($routers)) {
    $connections = '(' . count($routers) . ')';
} else {
    $connections = '';
}
?>


            <div class="main-content connection-content">

                <ul class="router-top-nav">
                    <li class="active"><a href="connection.php">Connection <?php 
$connections;
?>
</a></li>
Esempio n. 3
0
        ?>
                        </div>

                    </div>

                    <!-- likes area -->
                    <div class="likes-area">
                    </div>


                    <!-- route -->
                    <div class="route-area">
                        <input type="text" id="searchInput" placeholder="Type To Filter">
                        <div class="routers-set">
                            <?php 
        $routers = getRoutersForUser($_SESSION['uid'], '');
        if ($routers) {
            ?>
                            
                            <table>                           
                                <tbody id="fbody">
                                    <?php 
            foreach ($routers as $router) {
                $u = getUserData($router['user_id']);
                ?>
                                    <tr>
                                        <td><input type="checkbox" class="router-item" data-id="<?php 
                echo $u['user_id'];
                ?>
" id="router_<?php 
                echo $u['user_id'];
" style="color: #FF0303; text-decoration:none;"><?php 
                                        echo $title;
                                        ?>
.<a></span>
											<span style="margin-left:10px; font-size:13px;"><?php 
                                        echo TimeAgo(date('Y-m-d', strtotime($timestamp)));
                                        ?>
 </span>
										</div>
										<?php 
                                    }
                                }
                            } else {
                                if (!empty($routers_router)) {
                                    foreach ($routers_router as $routed) {
                                        $routersrouter = getRoutersForUser($routed['user_id']);
                                        foreach ($routersrouter as $rout) {
                                            if ($rout['user_id'] == $_GET['uid']) {
                                                ?>
										<div style="font-size:15px; margin-bottom:10px;">
											<img src="<?php 
                                                echo $icon_image;
                                                ?>
" width="20px">
											<span class=""><?php 
                                                echo ucwords($user) . ' ' . $action . ' ';
                                                ?>
<a
														href="<?php 
                                                echo SITE_URL;
                                                ?>