[% if $user->Security->Projects && $user->hasRight(504) %]
    
            <div id="tab-projects" style="display:none;">

        <div id="TicketHeader">
            <h2><strong>[% $user->gettext('Projekt') %]</strong></h2>                      
        </div>
        
     
        <fieldset class="TicketProjectFields">
        [% if (($ticket.ticketstatusid != 3 && $ticket.$ticketstatusid != 7 ) &&
              (($user->hasRight(504) && $project_id <= 0) || ($user->hasRight(505) && $project_id > 0))) %]            
            <div class="TicketField smallField smallLeft " >
                    <select size="25" name="ProjectID" class="textbox" onchange="loadProject(this.options[this.selectedIndex].value);" id="ProjectID">
                        <option value="0">[% $user->gettext('Kein Projekt zugeordnet') %]</option>
                        [% html_options options=$projects selected=$project_id %]
                    </select>  
            </div>        
        [% /if %]         

            <div class="TicketField smallField bigRight" id="projectdata" >
            </div> 
              
        </fieldset>
        
[%*                
      <table class="listview formview size_800 center" cellspacing="0">
          <thead>
              <tr>
                   <th colspan="2">[% $user->gettext('Projektauswahl') %]</th>

              </tr>
          </thead>
          <tbody>
            <tr class="even">
                <td valign="top">
                    <select size="25" name="ProjectID" style="width:100%;" class="textbox" id="ProjectID" onchange="loadProject(this.options[this.selectedIndex].value)">
                        <option value="0">[% $user->gettext('Kein Projekt zugeordnet') %]</option>
                        [% html_options options=$projects selected=$pid %]
                    </select>
                </td>
                <td valign="top" id="projectdata">[% $project_data %]</td>
            </tr>
          </tbody>
      </table>
*%]            

</div>
[% /if %]