1<?php /* @var \dokuwiki\plugin\bez\meta\Tpl $tpl */ ?> 2<div id="plugin__bez_start_buttons"> 3<?php if ($tpl->factory('thread')->permission() >= BEZ_TABLE_PERMISSION_INSERT): ?> 4 <a href="<?php echo $tpl->url('thread_report', 'type', 'issue') ?>" class="bez_start_button" id="bez_report_issue_button"> 5 <?php echo $tpl->getLang('report_threads') ?> 6 </a> 7<?php endif ?> 8<?php if ($tpl->factory('thread')->permission() >= BEZ_TABLE_PERMISSION_INSERT): ?> 9 <a href="<?php echo $tpl->url('thread_report', 'type', 'project') ?>" class="bez_start_button" id="bez_report_issue_button"> 10 <?php echo $tpl->getLang('report_projects') ?> 11 </a> 12<?php endif ?> 13 14<?php if ($tpl->factory('task')->permission() >= BEZ_TABLE_PERMISSION_INSERT): ?> 15 <a href="<?php echo $tpl->url('task_form') ?>" class="bez_start_button" id="bez_report_task_button"> 16 <?php echo $tpl->getLang('add_task') ?> 17 </a> 18<?php endif ?> 19 20</div> 21 22<div id="plugin__bez_start_tabs"> 23 <ul> 24 <?php if ($tpl->user_acl_level() >= BEZ_AUTH_ADMIN): ?> 25 <li><a href="#plugin__bez_tabs-1"> 26 <?php echo $tpl->getLang('proposals') ?> 27 (<span class="count"><?php echo $tpl->get('proposals_count') ?></span>) 28 </a></li> 29 <?php endif ?> 30 <li><a href="#plugin__bez_tabs-2"> 31 <?php echo $tpl->getLang('close_issues') ?> 32 (<span class="count"><?php echo $tpl->get('my_threads_count') ?></span>) 33 </a></li> 34 <li><a href="#plugin__bez_tabs-3"> 35 <?php echo $tpl->getLang('close_tasks') ?> 36 (<span class="count"><?php echo $tpl->get('my_tasks_count') ?></span>) 37 </a></li> 38 <li><a href="#plugin__bez_tabs-4"> 39 <?php echo $tpl->getLang('my_reported_threads') ?> 40 (<span class="count"><?php echo $tpl->get('reported_threads_count') ?></span>) 41 </a></li> 42 <li><a href="#plugin__bez_tabs-5"> 43 <?php echo $tpl->getLang('my_reported_tasks') ?> 44 (<span class="count"><?php echo $tpl->get('reported_tasks_count') ?></span>) 45 </a></li> 46 </ul> 47 <?php $tpl->set('no_filters', true) ?> 48 <?php if ($tpl->user_acl_level() >= BEZ_AUTH_ADMIN): ?> 49 <div id="plugin__bez_tabs-1"> 50 <?php $tpl->set('threads', $tpl->get('proposals')) ?> 51 <?php include 'threads.php' ?> 52 </div> 53 <?php endif ?> 54 <div id="plugin__bez_tabs-2"> 55 <?php $tpl->set('threads', $tpl->get('my_threads')) ?> 56 <?php include 'threads.php' ?> 57 </div> 58 <div id="plugin__bez_tabs-3"> 59 <?php $tpl->set('tasks', $tpl->get('my_tasks')) ?> 60 <?php include 'tasks.php' ?> 61 </div> 62 <div id="plugin__bez_tabs-4"> 63 <?php $tpl->set('threads', $tpl->get('reported_threads')) ?> 64 <?php include 'threads.php' ?> 65 </div> 66 <div id="plugin__bez_tabs-5"> 67 <?php $tpl->set('tasks', $tpl->get('reported_tasks')) ?> 68 <?php include 'tasks.php' ?> 69 </div> 70</div>