当前位置: 首页- 资讯中心

登录信息代码

发布时间: 2025/8/18 9:13:21 分布者: SQL学习交流 阅读次数: 190 最后更新: 2025/9/15 19:08:19
登录信息代码
<%if (user.Logined)
                                                  { %>
                           
                           
                        <a  href="users.aspx?yhm=<%=user["user"] %>" class="text-decoration-none text-white" title="前往<%=user["user"] %> 的主页" >  <span  style=" background:#0c8b06;  border-radius: 5px; padding:3px; box-sizing: border-box;width:40px;height:40px;">  欢迎:<%=user["name"] %></span></a>   &nbsp;&nbsp;<a href="?act=loginout" class=" text-decoration-none text-white " title="您已登录,点击退出"> 
                                   <span   style=" background:#0c8b06;  border-radius: 5px; padding:3px; box-sizing: border-box;width:40px;height:40px;">退出</span>
                                </a> <%}                            
                                        else
                                        { %>
                              <a href="/zc.aspx" class=" text-decoration-none text-white " title="注册用户!"> 
                                   <span   style=" background:#0c8b06;  border-radius: 5px; padding:3px; box-sizing: border-box;width:40px;height:40px;">注册</span>
                                </a>
                                 <a href="/user/Login.aspx" class=" text-decoration-none text-white " title="登录后享更多功能!"> 
                                   <span   style=" background:#000000;  border-radius: 5px; padding:3px; box-sizing: border-box;width:40px;height:40px;">登录</span>
                                </a>
                                          <%} %>