File: /home/httpd/html/dowork.biz/public_html/compile/%%ED^ED1^ED12EA28%%index.tpl.php
<?php /* Smarty version 2.6.16, created on 2020-04-17 17:31:56
compiled from /home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'title', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 1, false),array('block', 'add_bread_crumb', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 3, false),array('block', 'form', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 11, false),array('block', 'assign_var', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 22, false),array('block', 'lang', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 23, false),array('block', 'button', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 113, false),array('block', 'link', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 122, false),array('function', 'object_link', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 20, false),array('function', 'assemble', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 22, false),array('function', 'cycle', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 45, false),array('function', 'object_star', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 47, false),array('function', 'object_priority', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 48, false),array('function', 'object_visibility', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 53, false),array('function', 'empty_slate', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 119, false),array('modifier', 'clean', '/home/httpd/html/dowork.biz/public_html/activecollab/application/modules/tickets/views/tickets/index.tpl', 58, false),)), $this); ?>
<?php $this->_tag_stack[] = array('title', array()); $_block_repeat=true;smarty_block_title($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Tickets<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_title($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); if ($this->_tpl_vars['active_category']->isLoaded()): ?>
<?php $this->_tag_stack[] = array('add_bread_crumb', array()); $_block_repeat=true;smarty_block_add_bread_crumb($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Open Tickets<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_add_bread_crumb($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); else: ?>
<?php $this->_tag_stack[] = array('add_bread_crumb', array()); $_block_repeat=true;smarty_block_add_bread_crumb($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>All Open Tickets<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_add_bread_crumb($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); endif; ?>
<div class="list_view small_list_view">
<div id="tickets" class="object_list">
<?php if (is_foreachable ( $this->_tpl_vars['groupped_tickets'] )): ?>
<?php $this->_tag_stack[] = array('form', array('action' => $this->_tpl_vars['mass_edit_tickets_url'],'method' => 'post')); $_block_repeat=true;smarty_block_form($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
<?php $_from = $this->_tpl_vars['groupped_tickets']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['tickets_by_milestone']):
?>
<?php if (is_foreachable ( $this->_tpl_vars['tickets_by_milestone']['objects'] )): ?>
<!-- Header -->
<?php if ($this->_tpl_vars['logged_user']->canSeeMilestones($this->_tpl_vars['active_project'])): ?>
<?php if (instance_of ( $this->_tpl_vars['tickets_by_milestone']['milestone'] , 'Milestone' )): ?>
<?php if ($this->_tpl_vars['can_add_ticket']): ?>
<h2 class="section_name"><span class="section_name_span">
<span class="section_name_span_span"><?php echo smarty_function_object_link(array('object' => $this->_tpl_vars['tickets_by_milestone']['milestone']), $this);?>
</span>
<ul class="section_options">
<?php $this->_tag_stack[] = array('assign_var', array('name' => 'add_ticket_to_milestone_url')); $_block_repeat=true;smarty_block_assign_var($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); echo smarty_function_assemble(array('route' => 'project_tickets_add','project_id' => $this->_tpl_vars['active_project']->getId(),'milestone_id' => $this->_tpl_vars['tickets_by_milestone']['milestone']->getId()), $this); $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_assign_var($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
<li><a href="<?php echo $this->_tpl_vars['add_ticket_to_milestone_url']; ?>
"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Add Ticket<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></a></li>
</ul>
<div class="clear"></div>
</span></h2>
<?php else: ?>
<h2 class="section_name"><span class="section_name_span"><?php echo smarty_function_object_link(array('object' => $this->_tpl_vars['tickets_by_milestone']['milestone']), $this);?>
</span></h2>
<?php endif; ?>
<?php else: ?>
<h2 class="section_name"><span class="section_name_span"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Unknown Milestone<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></h2>
<?php endif; ?>
<?php endif; ?>
<div class="section_container visible_overflow">
<?php if (instance_of ( $this->_tpl_vars['tickets_by_milestone']['milestone'] , 'Milestone' )): ?>
<?php $this->_tag_stack[] = array('assign_var', array('name' => 'reorder_tickets_url')); $_block_repeat=true;smarty_block_assign_var($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); echo smarty_function_assemble(array('route' => 'project_tickets_reorder','project_id' => $this->_tpl_vars['active_project']->getId(),'milestone_id' => $this->_tpl_vars['tickets_by_milestone']['milestone']->getId(),'async' => 1), $this); $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_assign_var($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
<?php $this->_tag_stack[] = array('assign_var', array('name' => 'milestone_name')); $_block_repeat=true;smarty_block_assign_var($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); echo $this->_tpl_vars['tickets_by_milestone']['milestone']->getName(); $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_assign_var($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
<?php else: ?>
<?php $this->_tag_stack[] = array('assign_var', array('name' => 'reorder_tickets_url')); $_block_repeat=true;smarty_block_assign_var($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); echo smarty_function_assemble(array('route' => 'project_tickets_reorder','project_id' => $this->_tpl_vars['active_project']->getId(),'milestone_id' => 0,'async' => 1), $this); $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_assign_var($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
<?php $this->_tag_stack[] = array('assign_var', array('name' => 'milestone_name')); $_block_repeat=true;smarty_block_assign_var($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Unknown<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_assign_var($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
<?php endif; ?>
<ul class="tickets_list common_table_list" reorder_url='<?php echo $this->_tpl_vars['reorder_tickets_url']; ?>
'>
<?php $_from = $this->_tpl_vars['tickets_by_milestone']['objects']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['ticket']):
?>
<li class="ticket <?php echo smarty_function_cycle(array('values' => 'odd,even','name' => $this->_tpl_vars['milestone_name']), $this);?>
sort" id="ticket<?php echo $this->_tpl_vars['ticket']->getId(); ?>
">
<span class="left_options">
<span class="option star"><?php echo smarty_function_object_star(array('object' => $this->_tpl_vars['ticket'],'user' => $this->_tpl_vars['logged_user']), $this);?>
</span>
<span class="option"><?php echo smarty_function_object_priority(array('object' => $this->_tpl_vars['ticket']), $this);?>
</span>
<span class="option ticket_id">#<?php echo $this->_tpl_vars['ticket']->getTicketId(); ?>
</span>
</span>
<span class="right_options">
<?php if ($this->_tpl_vars['logged_user']->canSeePrivate()): ?>
<span class="option"><?php echo smarty_function_object_visibility(array('object' => $this->_tpl_vars['ticket'],'user' => $this->_tpl_vars['logged_user']), $this);?>
</span>
<?php endif; ?>
<span class="option"><input type="checkbox" name="tickets[]" value="<?php echo $this->_tpl_vars['ticket']->getId(); ?>
" class="auto input_checkbox" /></span>
</span>
<span class="main_data">
<a href="<?php echo $this->_tpl_vars['ticket']->getViewUrl(); ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['ticket']->getName())) ? $this->_run_mod_handler('clean', true, $_tmp) : smarty_modifier_clean($_tmp)); ?>
</a>
<input type="hidden" name="reorder_ticket[<?php echo $this->_tpl_vars['ticket']->getId(); ?>
]" />
</span>
</li>
<?php endforeach; endif; unset($_from); ?>
<li class="empty_row" style="<?php if (is_foreachable ( $this->_tpl_vars['tickets_by_milestone']['objects'] )): ?>display: none;<?php endif; ?>"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>There are no tickets in this milestone<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></li>
</ul>
</div>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
<div id="mass_edit">
<select name="with_selected" id="tickets_action" class="auto">
<option value=""><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>With Selected ...<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
<option value=""></option>
<option value="complete"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Mark as Completed<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
<option value=""></option>
<option value="star"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Star<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
<option value="unstar"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Unstar<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
<option value=""></option>
<option value="trash"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Move to Trash<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
<option value=""></option>
<optgroup label="<?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Visibility<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>">
<option value="set_visibility_0"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Private<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
<option value="set_visibility_1"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Normal<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
</optgroup>
<option value=""></option>
<optgroup label="<?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Change priority<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>">
<option value="set_priority_2"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Highest<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
<option value="set_priority_1"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>High<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
<option value="set_priority_0"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Normal<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
<option value="set_priority_-1"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Low<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
<option value="set_priority_-2"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Lowest<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
</optgroup>
<?php if ($this->_tpl_vars['logged_user']->canSeeMilestones($this->_tpl_vars['active_project']) && is_foreachable ( $this->_tpl_vars['milestones'] )): ?>
<option value=""></option>
<optgroup label="<?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Move to milestone<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>">
<option value="move_to_milestone"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><None><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
<?php $_from = $this->_tpl_vars['milestones']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['milestone']):
?>
<option value="move_to_milestone_<?php echo $this->_tpl_vars['milestone']->getId(); ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['milestone']->getName())) ? $this->_run_mod_handler('clean', true, $_tmp) : smarty_modifier_clean($_tmp)); ?>
</option>
<?php endforeach; endif; unset($_from); ?>
</optgroup>
<?php endif; ?>
<option value=""></option>
<optgroup label="<?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Move to category<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>">
<option value="move_to_category"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><None><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></option>
<?php $_from = $this->_tpl_vars['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['category']):
?>
<option value="move_to_category_<?php echo $this->_tpl_vars['category']->getId(); ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['category']->getName())) ? $this->_run_mod_handler('clean', true, $_tmp) : smarty_modifier_clean($_tmp)); ?>
</option>
<?php endforeach; endif; unset($_from); ?>
</optgroup>
</select>
<?php $this->_tag_stack[] = array('button', array('id' => 'tickets_submit','type' => 'submit')); $_block_repeat=true;smarty_block_button($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Go<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_button($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
</div>
<div class="clear"></div>
<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_form($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
<?php else: ?>
<p class="empty_page"><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>No tickets here<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>. <?php if ($this->_tpl_vars['add_ticket_url']): $this->_tag_stack[] = array('lang', array('add_url' => $this->_tpl_vars['add_ticket_url'])); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Would you like to <a href=":add_url">create one</a><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>?<?php endif; ?></p>
<?php echo smarty_function_empty_slate(array('name' => 'tickets','module' => 'tickets'), $this);?>
<?php endif; ?>
<p class="archive_link"><?php $this->_tag_stack[] = array('link', array('href' => $this->_tpl_vars['tickets_archive_url'])); $_block_repeat=true;smarty_block_link($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Archive<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_link($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></p>
</div>
<ul class="category_list">
<li <?php if ($this->_tpl_vars['active_category']->isNew()): ?>class="selected"<?php endif; ?>><a href="<?php echo $this->_tpl_vars['tickets_url']; ?>
"><span><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>All Open Tickets<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></a></li>
<?php if (is_foreachable ( $this->_tpl_vars['categories'] )): ?>
<?php $_from = $this->_tpl_vars['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['category']):
?>
<li category_id="<?php echo $this->_tpl_vars['category']->getId(); ?>
" <?php if ($this->_tpl_vars['active_category']->isLoaded() && $this->_tpl_vars['active_category']->getId() == $this->_tpl_vars['category']->getId()): ?>class="selected"<?php endif; ?>><a href="<?php echo smarty_function_assemble(array('route' => 'project_tickets','project_id' => $this->_tpl_vars['active_project']->getId(),'category_id' => $this->_tpl_vars['category']->getId()), $this);?>
"><span><?php echo ((is_array($_tmp=$this->_tpl_vars['category']->getName())) ? $this->_run_mod_handler('clean', true, $_tmp) : smarty_modifier_clean($_tmp)); ?>
</span></a></li>
<?php endforeach; endif; unset($_from); ?>
<?php endif; ?>
<?php if ($this->_tpl_vars['can_manage_categories']): ?>
<li id="manage_categories"><a href="<?php echo $this->_tpl_vars['categories_url']; ?>
"><span><?php $this->_tag_stack[] = array('lang', array()); $_block_repeat=true;smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Manage Categories<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_lang($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span></a></li>
<?php endif; ?>
</ul>
<script type="text/javascript">
App.resources.ManageCategories.init('manage_categories');
</script>
<div class="clear"></div>
</div>