<div id="datacollection_projects" class="ui-accordion ui-widget ui-helper-reset ui-accordion-icons">
    {if $has_right_staff}
        <h3>
            <a href="#datacollection_projects_staff">
                <span title="" class="dialog_make_btn16 staffadmin smallbtns ui-corner-all"></span>
                {$i.datacollection_participated_staff}
                <span id="datacollection_projects_staff_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_staff">...</div>
    {/if}
    {if $has_right_project_staff}
        <h3>
            <a href="#datacollection_project_staff">
                <span title="" class="dialog_make_btn16 staffadmin smallbtns ui-corner-all"></span>
                {$i.datacollection_project_staff}
                <span id="datacollection_projects_project_staff_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_project_staff">...</div>
    {/if}
    {if $has_right_addresses}
        <h3>
            <a href="#datacollection_projects_addresses">
                <span title="" class="dialog_make_btn16 addresses smallbtns ui-corner-all"></span>
                {$i.datacollection_project_participants}
                <span id="datacollection_projects_addresses_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_addresses">...</div>    
        <h3>
            <a href="#datacollection_projects_address_description">
                <span title="" class="dialog_make_btn16 addresses smallbtns ui-corner-all"></span>
                {$i.datacollection_address_description}
                <span id="datacollection_projects_address_description_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_address_description">...</div>    
    {/if}
    {if $has_right_opentasks}    
        <h3><a href="#datacollection_projects_opentasks">
                <span title="" class="dialog_make_btn16 opentasks smallbtns ui-corner-all"></span>
                {$i.datacollection_tasks}
                <span id="datacollection_projects_opentasks_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_opentasks">...</div>
    {/if}
    {if $has_right_externalexpenses}        
        <h3><a href="#datacollection_projects_externalexpenses">
                <span title="" class="dialog_make_btn16 externalexpenses smallbtns ui-corner-all"></span>
                {$i.datacollection_externalexpenses}
                <span id="datacollection_projects_externalexpenses_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_externalexpenses">...</div>
    {/if}
    {if $has_right_fees}        
        <h3><a href="#datacollection_projects_fees">
                <span title="" class="dialog_make_btn16 fees smallbtns ui-corner-all"></span>
                {$i.datacollection_fees}
                <span id="datacollection_projects_fees_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_fees">...</div>    
    {/if}
    {if $has_right_personalappointments}     
        <h3><a href="#datacollection_projects_personalappointments">
                <span title="" class="dialog_make_btn16 personalappointmentplaner smallbtns ui-corner-all"></span>
                {$i.datacollection_personalappointments}
                <span id="datacollection_projects_personalappointments_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_personalappointments">...</div>     
    {/if}
    {if $has_right_drawings}     
        <h3><a href="#datacollection_projects_drawings">
                <span title="" class="dialog_make_btn16 drawings smallbtns ui-corner-all"></span>
                {$i.datacollection_drawings}
                <span id="datacollection_projects_drawings_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_drawings">...</div>     
    {/if}  
    {if $has_right_drawings_outbox}     
        <h3><a href="#datacollection_projects_drawings_outbox">
                <span title="" class="dialog_make_btn16 drawings_inout smallbtns ui-corner-all"></span>
                {$i.datacollection_drawings_outbox}
                <span id="datacollection_projects_drawings_outbox_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_drawings_outbox">...</div>     
    {/if}  
    {if $has_right_outbox}     
        <h3><a href="#datacollection_projects_outbox">
                <span title="" class="dialog_make_btn16 inoutbox smallbtns ui-corner-all"></span>
                {$i.datacollection_outbox}
                <span id="datacollection_projects_outbox_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_outbox">...</div>     
    {/if}  
    {if $has_right_inbox}     
        <h3><a href="#datacollection_projects_inbox">
                <span title="" class="dialog_make_btn16 inoutbox smallbtns ui-corner-all"></span>
                {$i.datacollection_inbox}
                <span id="datacollection_projects_inbox_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_inbox">...</div>     
    {/if}    
    {if $has_right_mailinbox}     
        <h3><a href="#datacollection_projects_mailinbox">
                <span title="" class="dialog_make_btn16 mailinbox smallbtns ui-corner-all"></span>
                {$i.datacollection_mailinbox}
                <span id="datacollection_projects_mailinbox_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_mailinbox">...</div>     
    {/if}   
    {if $has_right_correspondence}     
        <h3><a href="#datacollection_projects_correspondence">
                <span title="" class="dialog_make_btn16 correspondence smallbtns ui-corner-all"></span>
                {$i.datacollection_correspondence}
                <span id="datacollection_projects_correspondence_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_correspondence">...</div>     
    {/if}   
    {if $has_right_files}     
        <h3><a href="#datacollection_projects_files">
                <span title="" class="dialog_make_btn16 files smallbtns ui-corner-all"></span>
                {$i.datacollection_files}
                <span id="datacollection_projects_files_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_projects_files">...</div>     
    {/if}      
    
</div>
    {if $has_right_staff}
        {include file='r/hidden.tpl' name="datacollection_projects_staff_order_by"}
        {include file='r/hidden.tpl' name="datacollection_projects_staff_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_projects_staff_page" default="1"}
    {/if}
    {if $has_right_addresses}        
        {include file='r/hidden.tpl' name="datacollection_projects_addresses_order_by"}
        {include file='r/hidden.tpl' name="datacollection_projects_addresses_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_projects_addresses_page" default="1"}        
        
        {include file='r/hidden.tpl' name="datacollection_projects_address_description_order_by"}
        {include file='r/hidden.tpl' name="datacollection_projects_address_description_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_projects_address_description_page" default="1"}        
    {/if}
    {if $has_right_opentasks}
        {include file='r/hidden.tpl' name="datacollection_projects_opentasks_order_by"}
        {include file='r/hidden.tpl' name="datacollection_projects_opentasks_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_projects_opentasks_page" default="1"}
    {/if}
    {if $has_right_externalexpenses}     
        {include file='r/hidden.tpl' name="datacollection_projects_externalexpenses_order_by"}
        {include file='r/hidden.tpl' name="datacollection_projects_externalexpenses_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_projects_externalexpenses_page" default="1"}
    {/if}
    {if $has_right_fees}   
        {include file='r/hidden.tpl' name="datacollection_projects_fees_order_by"}
        {include file='r/hidden.tpl' name="datacollection_projects_fees_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_projects_fees_page" default="1"}       
    {/if}
    {if $has_right_personalappointments}    
        {include file='r/hidden.tpl' name="datacollection_projects_personalappointments_order_by"}
        {include file='r/hidden.tpl' name="datacollection_projects_personalappointments_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_projects_personalappointments_page" default="1"}         
    {/if}
    {if $has_right_drawings}    
        {include file='r/hidden.tpl' name="datacollection_projects_drawings_order_by"}
        {include file='r/hidden.tpl' name="datacollection_projects_drawings_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_projects_drawings_page" default="1"}         
    {/if}    
    {if $has_right_drawings_outbox}    
        {include file='r/hidden.tpl' name="datacollection_projects_drawings_outbox_order_by"}
        {include file='r/hidden.tpl' name="datacollection_projects_drawings_outbox_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_projects_drawings_outbox_page" default="1"}         
    {/if}
    {if $has_right_outbox}    
        {include file='r/hidden.tpl' name="datacollection_projects_outbox_order_by"}
        {include file='r/hidden.tpl' name="datacollection_projects_outbox_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_projects_outbox_page" default="1"}         
    {/if}    
    {if $has_right_inbox}    
        {include file='r/hidden.tpl' name="datacollection_projects_inbox_order_by"}
        {include file='r/hidden.tpl' name="datacollection_projects_inbox_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_projects_inbox_page" default="1"}         
    {/if}  
    {if $has_right_mailinbox}    
        {include file='r/hidden.tpl' name="datacollection_projects_mailinbox_order_by"}
        {include file='r/hidden.tpl' name="datacollection_projects_mailinbox_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_projects_mailinbox_page" default="1"}         
    {/if}        
    {if $has_right_correspondence}    
        {include file='r/hidden.tpl' name="datacollection_projects_correspondence_order_by"}
        {include file='r/hidden.tpl' name="datacollection_projects_correspondence_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_projects_correspondence_page" default="1"}         
    {/if}       
    {if $has_right_files}    
        {include file='r/hidden.tpl' name="datacollection_projects_files_order_by"}
        {include file='r/hidden.tpl' name="datacollection_projects_files_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_projects_files_page" default="1"}         
    {/if}      