<form id="company_allocation_dialogs_add_proj_to_company_form" style=""
    action=""  method="POST" enctype="multipart/form-data"
    onsubmit="">

    <div class="ui-dialog-left-menu-big ui-corner-all">
        <p style="text-align:center;">
            <span onclick="company_allocation_dialogs.close_add_proj_to_company();" class="dialog_make_btn32 close smallbtns ui-corner-all" title="{$i.basic_cancel}"></span>
            <span onclick="company_allocation_dialogs.add_proj_to_company();" class="dialog_make_btn32 ok smallbtns ui-corner-all" title="{$i.basic_save}"></span>
        </p>
    </div>
    <div class="ui-dialog-main-big">
        <fieldset class="noborder">
            {include file='r/select.tpl' name="add_proj_to_company_proj_company_id" title="basic_company"
                list=$companies_list id="id" text="name" noempty=TRUE
                class="required"}

        </fieldset>
        <div class="ui-dialog-maxheight-scroll" style="max-height:150px; margin-top:15px;">
            <h4>{$i.projectadmin_selected_projects}</h4>
            <hr />
            <ul>
            {if isset($rows_count_info)}    
                <div class="warning warningborder ui-corner-all" style="color:red">
                    {$rows_count_info}
                </div>                
            {elseif isset($selected_projects)}    
                {foreach item="selected_project" from=$selected_projects}
                     <li class="dialog_make_text_btn ui-corner-all" onclick="basicForm.selectable_row.unselect_from_dlg('projectadmin',{$selected_project->id}, this);">
                        <span class="dialog_make_btn16 delete ui-corner-all"></span>
                        {$selected_project->project_name} {$selected_project->project_number}
                     </li>
                {/foreach}         
            {/if}                 
            </ul>    
        </div>                
    </div>
</form>