zentaopms/extension/biz/doc/ext/view/objectlibs.execution2export.html.hook.php
2023-05-16 10:50:42 +08:00

10 lines
520 B
PHP
Executable File

<?php if($type == 'execution' && common::hasPriv('doc', 'execution2export')):?>
<?php $html = html::a($this->createLink('doc', 'execution2export', "libID=$libID&docID=$docID", 'html', true), "<i class='icon-export muted'> </i>" . $lang->export, '', "class='btn btn-link export' id='execution2export'");?>
<script>
$(function()
{
$('#subHeader #pageActions .btn-toolbar').prepend(<?php echo json_encode($html);?>);
$('#execution2export').modalTrigger({type:'ajax', showHeader:false});
})
</script>
<?php endif; ?>