<?php require_javascript('og/modules/addMessageForm.js'); $genid = gen_id(); $object = $company; if ($company->isNew()) { $form_action = get_url('contact', 'add_company'); } else { $form_action = $company->getEditUrl(); } $renderContext = has_context_to_render($company->manager()->getObjectTypeId()); $visible_cps = CustomProperties::countVisibleCustomPropertiesByObjectType($object->getObjectTypeId()); ?> <form onsubmit="return og.handleMemberChooserSubmit('<?php echo $genid; ?> ', <?php echo $company->manager()->getObjectTypeId(); ?> );"style="height:100%;background-color:white" class="internalForm" action="<?php echo $form_action; ?> " method="post"> <div class="adminAddCompany"> <div class="adminHeader"> <div class="adminHeaderUpperRow"> <div class="adminTitle"><table style="width:535px"><tr><td> <?php echo $company->isNew() ? lang('new company') : lang('edit company');