<?php include_once $BL->props->get_page("templates/alp_admin/html/header.php"); ?>
<div id="content">
    <div id="display_list">
    <?php if(!isset($REQUEST['ticket_status']) || $REQUEST['ticket_status']!=3){ ?>
      <div class="tabs2" name='tt1' id='tt1' onmouseover="javascript:this.className='tabs1';" onmouseout="javascript:this.className='tabs2';" ><?php echo $BL->props->lang['Open_tickets']; ?></div>
      <div class="tab_separator">&nbsp;</div>
      <div class="tabs" name='tt2' id='tt2' onmouseover="javascript:this.className='tabs1';" onmouseout="javascript:this.className='tabs';" ><a href="admin.php?cmd=ticket&ticket_status=3" class="add_link"><?php echo $BL->props->lang['Closed_tickets']; ?></a></div>
      <div class="tab_separator">&nbsp;</div> 
    <?php } ?> 
    <?php if(isset($REQUEST['ticket_status']) && $REQUEST['ticket_status']==3){ ?>
      <div class="tabs" name='tt1' id='tt1' onmouseover="javascript:this.className='tabs1';" onmouseout="javascript:this.className='tabs';" ><a href="admin.php?cmd=ticket" class="add_link"><?php echo $BL->props->lang['Open_tickets']; ?></a></div>
      <div class="tab_separator">&nbsp;</div>
      <div class="tabs2" name='tt2' id='tt2' onmouseover="javascript:this.className='tabs1';" onmouseout="javascript:this.className='tabs2';" ><?php echo $BL->props->lang['Closed_tickets']; ?></div>
      <div class="tab_separator">&nbsp;</div> 
    <?php } ?> 
    </div>
	<div id="display_list">
    <?php include $BL->props->get_page("templates/alp_admin/html/_tickets.php"); ?>
    <table width="100%" border="0" cellspacing="2" cellpadding="2" class="list_table">				
    <tr> 
    <td class="text_grey" align="center">
    <div style="vertical-align:middle">
    <img src='elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>edit_all.gif'> <?php echo $BL->props->lang['Edit']; ?>
    &nbsp;
    <img src='elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>delete.gif'> <?php echo $BL->props->lang['Close']; ?>
    </div>
    </td>
    </tr>
    </table>		
	</div>
</div>
<!--end content -->
<div id="navBar">
<table width="80%" cellpadding="0" cellspacing="0" border="0">
		<?php if($BL->getCmd("viewTicket")){ ?>
		<form name='form1' id='form1' method='POST' action='<?php echo $PHP_SELF; ?>'>
		<tr> 
		  <td class='text_grey' width="20%">&nbsp;</td>
          <td class='text_grey'>
            <b><?php echo $BL->props->lang['View_ticket_by_ticket_id']; ?></b><br>
            <?php echo $BL->props->lang['ticket_no']; ?><input type='text' name='ticket_id' value='' size='4' class='search'>
            <input type='hidden' name='cmd' value='viewTicket'>
            <input type='submit' name='submit1' class='search1' value='<?php echo $BL->props->lang['View']; ?>'>
          </td>
        </tr> 
		</form>    
        <tr> 
          <td colspan='2'>
          <img src='elements<?php echo PATH_SEP; ?>default<?php echo PATH_SEP; ?>templates<?php echo PATH_SEP; ?>alp_admin<?php echo PATH_SEP; ?>images<?php echo PATH_SEP; ?>menu_line_lightgreen.jpg' width='180' height='2'>
          </td>
        </tr>        
        <?php } ?>					
</table>
<?php include_once $BL->props->get_page("templates/alp_admin/html/_sidepanel.php"); ?>
</div>
<!--end navbar -->
<?php include_once $BL->props->get_page("templates/alp_admin/html/footer.php"); ?>