Skip to content

Commit

Permalink
链接合理调整一下顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
tianmingxing committed Nov 20, 2015
1 parent a31d9d4 commit a90b288
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MinPHP/run/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@
<span id="topbutton" style="float:right">
<?php
if(is_lgoin()){
echo '欢迎您:' . session('nice_name') . '&nbsp;&nbsp;';
//如果是接口详情页的话,就显示【导出】按钮 与 【排序】按钮
if($_GET['act']=='api' && isset($_GET['tag']) && !isset($_GET['op'])){
echo '<a href="?act=sort&tag='.$_GET['tag'].'">排序&nbsp;&nbsp;</a>';
echo '<a href="?act=export&tag='.$_GET['tag'].'">导出&nbsp;&nbsp;</a>';
}
echo session('nice_name') . '&nbsp;&nbsp;<a href="?act=modpwd">修改密码</a>&nbsp;&nbsp;<a href="?act=login&type=quit">退出&nbsp;&nbsp;<span class="glyphicon glyphicon-log-out" aria-hidden="true"></span></a>';
echo '<a href="?act=modpwd">修改密码</a>&nbsp;&nbsp;<a href="?act=login&type=quit">退出&nbsp;&nbsp;<span class="glyphicon glyphicon-log-out" aria-hidden="true"></span></a>';
}else{
echo '<a href="?act=login">登录&nbsp;&nbsp;<span class="glyphicon glyphicon-log-in" aria-hidden="true"></span></a>';
}
Expand Down

0 comments on commit a90b288

Please sign in to comment.