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 <li><a href="#plugin__bez_tabs-0"> 25 <?php echo $tpl->getLang('menu_activity') ?> 26 </a></li> 27 <?php if ($tpl->user_acl_level() >= BEZ_AUTH_ADMIN): ?> 28 <li><a href="#plugin__bez_tabs-1"> 29 <?php echo $tpl->getLang('proposals') ?> 30 (<span class="count"><?php echo $tpl->get('proposals_count') ?></span>) 31 </a></li> 32 <?php endif ?> 33 <li><a href="#plugin__bez_tabs-2"> 34 <?php echo $tpl->getLang('close_issues') ?> 35 (<span class="count"><?php echo $tpl->get('my_threads_count') ?></span>) 36 </a></li> 37 <li><a href="#plugin__bez_tabs-3"> 38 <?php echo $tpl->getLang('close_tasks') ?> 39 (<span class="count"><?php echo $tpl->get('my_tasks_count') ?></span>) 40 </a></li> 41 <li><a href="#plugin__bez_tabs-4"> 42 <?php echo $tpl->getLang('my_reported_threads') ?> 43 (<span class="count"><?php echo $tpl->get('reported_threads_count') ?></span>) 44 </a></li> 45 <li><a href="#plugin__bez_tabs-5"> 46 <?php echo $tpl->getLang('my_reported_tasks') ?> 47 (<span class="count"><?php echo $tpl->get('reported_tasks_count') ?></span>) 48 </a></li> 49 </ul> 50 <div id="plugin__bez_tabs-0"> 51 <?php include 'activity.php' ?> 52 </div> 53 <?php $tpl->set('no_filters', true) ?> 54 <?php if ($tpl->user_acl_level() >= BEZ_AUTH_ADMIN): ?> 55 <div id="plugin__bez_tabs-1"> 56 <?php $tpl->set('threads', $tpl->get('proposals')) ?> 57 <?php include 'threads.php' ?> 58 </div> 59 <?php endif ?> 60 <div id="plugin__bez_tabs-2"> 61 <?php $tpl->set('threads', $tpl->get('my_threads')) ?> 62 <?php include 'threads.php' ?> 63 </div> 64 <div id="plugin__bez_tabs-3"> 65 <?php $tpl->set('tasks', $tpl->get('my_tasks')) ?> 66 <?php include 'tasks.php' ?> 67 </div> 68 <div id="plugin__bez_tabs-4"> 69 <?php $tpl->set('threads', $tpl->get('reported_threads')) ?> 70 <?php include 'threads.php' ?> 71 </div> 72 <div id="plugin__bez_tabs-5"> 73 <?php $tpl->set('tasks', $tpl->get('reported_tasks')) ?> 74 <?php include 'tasks.php' ?> 75 </div> 76</div> 77