Home >Backend Development >PHP Tutorial >PHP Get permissions

PHP Get permissions

墨辰丷
墨辰丷Original
2018-05-15 17:37:111440browse

This article mainly introduces how to obtain permissions in php. Interested friends can refer to it. I hope it can help everyone.

<script type="text/javascript">
function checkLabelText(user)
{
 var name = $(&#39;#lblNavname&#39;+user).html();
 if(name == null || name == ""){
  name = 1;
  $.get("index.php?c=MEMBER&action=index",{name:name},function(data){
   if(data == 1);
   $(".frame_gap").html(&#39;<table width="1116" height="441" border="0"><tr><td><p align="center" class="STYLE1">鏆傛棤鏉冮檺</p></td></tr></table>&#39;);
   });
 }
}
</script>
<p id="content_left">
    <p class="left_menu">
        <ul id="menu">
        <{foreach key=num from=$second_nav item = ls}>
        <table>
        <tr>
        <td onclick="checkLabelText(<{$num}>)">
     <li class="item"><a href="javascript:void(<{$ls.i}>)" class="nav_title" name="<{$ls.i}>"><{$ls.navigationname}></a>
      <ul id="opt_<{$ls.i}>" class="optiton">
    <{foreach  key=user from=$ls.children item=cl}>
                <li><a href="<{$cl.url}>" ><label id="lblNavname<{$num}>" name="lblNavname<{$num}>"><{$cl.navname}></label></a></li>     
    <{/foreach}>
                </ul>
     </li>
     </table>
    <{/foreach}>
        </ul>
    </p>
    </p>

Related recommendations:

php permission management


##Detailed explanation of bugs in PHP permission control

PHP permission management function implementation method



##

The above is the detailed content of PHP Get permissions. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn