Ejemplo n.º 1
0
        ?>
</span>
                            <?php 
    }
    ?>
                        </a>
 <?php 
    if ($notifiche > 0) {
        ?>
                        <ul class="dropdown-menu" id="secondary-nav">
                           
                               <?php 
        foreach ($querys as $notific) {
            echo '<li class="">

                                    <a href="' . site_url() . '/p/' . get_user_name_by_id($notific['user_id_created_by']) . '">

                                    </i> ' . get_user_fullname_by_id($notific['user_id_created_by']) . ' ' . lang_key($notific['user_notification_type']) . '

                                    </a>

                                    </li>';
        }
        echo '</ul>';
    }
    ?>

                <?php 
    if (!is_admin()) {
        ?>
               
Ejemplo n.º 2
0
    ?>
">
				<h2><?php 
    echo $post['post_title'];
    ?>
</h2>
			</a>
			<div class="post-meta">
				<?php 
    $user = get_user($post['user_id']);
    ?>
				<?php 
    echo $post['publish_date'];
    ?>
 | <?php 
    echo get_user_name_by_id($post['user_id']);
    ?>
			</div>

			<div class="post-excerpt">
				<?php 
    $post_content = strip_tags($post['post_content']);
    // less than 200
    if (strlen($post_content) > 200) {
        $post_content = substr($post_content, 0, 200) . '...';
    }
    echo $post_content;
    ?>
			</div>
		</div>
<?php 
Ejemplo n.º 3
0
$image = new cls_image($_CFG['bgcolor']);
/*------------------------------------------------------ */
//-- 分销等级会员列表
/*------------------------------------------------------ */
if ($_REQUEST['act'] == 'list') {
    $sql = "SELECT rank_id, rank_name, min_points FROM " . $ecs->table('user_rank') . " ORDER BY min_points ASC ";
    $rs = $db->query($sql);
    $ranks = array();
    while ($row = $db->FetchRow($rs)) {
        $ranks[$row['rank_id']] = $row['rank_name'];
    }
    $smarty->assign('user_ranks', $ranks);
    $smarty->assign('ur_here', $_LANG['01_users_list']);
    $user_id = intval($_GET['user_id']);
    $level = intval($_GET['level']);
    $user_name = get_user_name_by_id($user_id);
    $user_list = user_list($user_id, $level);
    $smarty->assign('user_list', $user_list['arr']);
    $smarty->assign('filter', $user_list['filter']);
    $smarty->assign('record_count', $user_list['record_count']);
    $smarty->assign('page_count', $user_list['page_count']);
    $smarty->assign('full_page', 1);
    $smarty->assign('level', $level);
    $smarty->assign('uid', $user_id);
    $smarty->assign('sort_user_id', '<img src="images/sort_desc.gif">');
    assign_query_info();
    $smarty->assign('ur_here', $user_name . "的" . $level . "级会员");
    $smarty->assign('action_link', array('href' => 'distributor.php?act=list', 'text' => $_LANG['distribor_list']));
    $smarty->display('user_grade_list.htm');
} elseif ($_REQUEST['act'] == 'query') {
    $user_list = user_list();