Exemplo n.º 1
0
<?php

//开启session
session_start();
require_once '_main.php';
if (!empty($_GET)) {
    //获取id
    $uid = $_GET['uid'];
    $u = new \Ss\User\UserInfo($uid);
    $rs = $u->UserArray();
}
//生成32位随机字符串
$randomChar = Ss\Etc\Comm::get_random_char(32) . "==";
//把随机字符串保存到session
$_SESSION['randomChar'] = $randomChar;
$smarty->assign('randomChar', $randomChar);
$smarty->assign('uid', $uid);
$smarty->assign('rs', $rs);
$smarty->display('admin/user_edit.tpl');
Exemplo n.º 2
0
<div class="wrapper row-offcanvas row-offcanvas-left">
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="left-side sidebar-offcanvas">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel -->
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="<?php 
echo Ss\Etc\Comm::get_gravatar($user_email);
?>
" class="img-circle" alt="User Image" />
                </div>
                <div class="pull-left info">
                    <p>欢迎, <?php 
echo $_COOKIE['user_name'];
?>
</p>

                    <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
                </div>
            </div>

            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu">
                <li class="active">
                    <a href="index.php">
                        <i class="fa fa-dashboard"></i> <span>用户中心</span>
                    </a>
                </li>