<div class="panel-body"> <?php echo get_announcement($library); ?> </div> <?php if ($role == 'superadmin') { ?> <hr /> <form method="post" action="<?php echo $library; ?> announcement_action.php"> <div class="form-group"> <textarea rows="8" name="announcement" class="form-control"><?php echo get_announcement($library); ?> </textarea> <input type="hidden" name="url" value="<?php echo $library; ?> announcement.txt"> </div> <div class="form-group"> <button type="submit" class="btn btn-xs btn-success" data-toggle="tooltip" data-placement="right" title="new announcement overwrites the last one"> <span class="glyphicon glyphicon-edit">edit</span> </button> </div> </form> <hr /> <?php
function global_announcement() { echo '<div>' . htmlspecialchars_decode(get_announcement()) . '</div>'; }
<title>Tieba Cloud - Admin Control</title> <meta name="generator" content="Bootply" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link href="stylesheets/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" href="stylesheets/font-awesome.min.css"> </head> <body> <div class=" container col-sm-6 col-sm-offset-3"><br> <div class="panel panel-primary "> <div class="panel-body"> <ol class="breadcrumb"> <li><a href="index.php">TiebaCloud</a></li> <li class="active">Admin-Control</li> </ol> <?php echo '<div class="alert alert-success" role="alert">' . get_announcement() . '</div>'; ?> <div class="row"> <div class="col-sm-6 col-md-4"> <div class="thumbnail"> <div class="caption"> <h3><i class="icon-large icon-user"></i>用户管理</h3> <p>查看贴吧云用户信息</p> <a href="#user" class="btn btn-default" role="button" data-toggle="modal" ><i class=" icon-circle-arrow-right"></i> 点击查看</a></p> </div> </div> </div> <div class="col-sm-6 col-md-4"> <div class="thumbnail"> <div class="caption"> <h3><i class="icon-large icon-check"></i>签到联盟</h3>