Exemple #1
0
        echo site_url('admin/user_admin/users');
        ?>
" target="right">后台用户管理</a></li>
		<?php 
    }
    ?>
		<?php 
    if (chk_perm_to_bool('role_view')) {
        ?>
		<li><a id="roles_view" class="ajaxify" href="<?php 
        echo site_url('admin/user_admin/roles');
        ?>
" target="right">后台用户角色管理</a></li>
		<?php 
    }
    ?>
		
		<?php 
    if (chk_perm_to_bool('perm_admin')) {
        ?>
		<li><a id="perm_view" class="ajaxify" href="<?php 
        echo site_url('admin/user_admin/permissions');
        ?>
" target="right">权限管理</a></li>
		<?php 
    }
    ?>
	</ul>
</li>
<?php 
}
Exemple #2
0
</td>
                                <td><?php 
    echo $row['phone'];
    ?>
</td>
                                <td><?php 
    echo $row['doctor_name'];
    ?>
</td>
                                <td><?php 
    echo $row['history'];
    ?>
</td>
                                <td>
                                    <?php 
    if (chk_perm_to_bool('book_edit')) {
        ?>
                                    <button class="btn btn-success  input-sm" onclick='editShow(<?php 
        echo $row['id'];
        ?>
, 0)'> 已看</button>
                                    <button class="btn btn-warning  input-sm" onclick='editShow(<?php 
        echo $row['id'];
        ?>
, 1)'> 未看</button>
                                    <button class="btn btn-danger input-sm" onclick='del(<?php 
        echo $row['id'];
        ?>
)'><i class="icon-remove icon-white"></i> 重置</button>
                                    <?php 
    }
Exemple #3
0
                                <?php 
    if (chk_perm_to_bool('user_edit')) {
        ?>
                                    
                                <button href="#myModal" data-toggle="modal" class="btn btn-small btn-primary" onclick='editUser(<?php 
        echo $row['id'];
        ?>
)'> <i class="icon-pencil icon-white"></i> 编辑</button>
                                <?php 
    }
    ?>
                                <?php 
    if ($row['id'] != 1) {
        ?>
                                <?php 
        if (chk_perm_to_bool('user_edit')) {
            ?>
                                <button class="btn btn-small btn-danger" onclick='del(<?php 
            echo $row['id'];
            ?>
, "<?php 
            echo $row['code'];
            ?>
")'><i class="icon-remove icon-white"></i> 删除</button>
                                <?php 
        }
        ?>
                                <?php 
    }
    ?>
                                <button href="#myModal" data-toggle="modal" class="btn btn-small btn-inverse" onclick='resetPassword("<?php 
Exemple #4
0
                            <th>姓名</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php 
foreach ($result as $key => $row) {
    ?>
                        <tr>
                            <td><?php 
    echo $row['name'];
    ?>
</td>
                            <td>
                                <?php 
    if (chk_perm_to_bool('sys_admin')) {
        ?>
                                <a  href="#myModal" data-toggle="modal"  onclick="edit(<?php 
        echo $row['id'];
        ?>
)" class="btn green"> <i class="icon-pencil icon-white"></i> 编辑</a>
                                <button class="btn btn-danger" onclick='del(<?php 
        echo $row['id'];
        ?>
)'><i class="icon-remove icon-white"></i> 删除</button>
                                <?php 
    }
    ?>
                                    
                            </td>
                        </tr>