zentaopms/extension/max/company/ext/view/browse.ldapauth.html.hook.php
2023-05-16 10:50:42 +08:00

9 lines
441 B
PHP

<?php $this->session->set('ldapBackLink', $this->app->getURI(true));?>
<?php $ldapHtml = common::hasPriv('user', 'importLDAP') ? html::a($this->createLink('user', 'importLDAP'), $lang->user->importLDAP, '', "class='btn btn-info btn-wide'") : '';?>
<script language='Javascript'>
$(function()
{
$('#sidebar .cell').append("<div style='margin-top:5px;' class='text-center'>" + <?php echo json_encode($ldapHtml)?> + '</div>');
})
</script>