if (isset($company_id)) { echo '<input type="hidden" name="company_id" value="' . $company_id . '" />'; } if (isset($task_id)) { echo '<input type="hidden" name="task_parent" value="' . $task_id . '" />'; } if (isset($file_id)) { echo '<input type="hidden" name="file_id" value="' . $file_id . '" />'; } ?> <table width="100%" cellpadding="0" cellspacing="0"> <tbody> <tr class="nav"> <td> <?php echo buildHeaderNavigation($AppUI, 'ul', 'li'); ?> </td> <td nowrap="nowrap" align="right"> <?php if ($AppUI->user_id > 0) { //Do this check in case we are not using any user id, for example for external uses $newItem = array('' => '- New Item -'); if (canAdd('companies')) { $newItem['companies'] = 'Company'; } if (canAdd('contacts')) { $newItem['contacts'] = 'Contact'; } if (canAdd('calendar')) { $newItem['calendar'] = 'Event';
if (isset($company_id)) { echo '<input type="hidden" name="company_id" value="' . $company_id . '" />'; } if (isset($task_id)) { echo '<input type="hidden" name="task_parent" value="' . $task_id . '" />'; } if (isset($file_id)) { echo '<input type="hidden" name="file_id" value="' . $file_id . '" />'; } ?> <table width="100%" cellpadding="0" cellspacing="0"> <tbody> <tr class="nav"> <td> <?php echo buildHeaderNavigation($AppUI, '', '', ' '); ?> </td> <td nowrap="nowrap" align="right"> <?php if ($AppUI->user_id > 0) { //Do this check in case we are not using any user id, for example for external uses $newItem = array('' => '- New Item -'); if (canAdd('companies')) { $newItem['companies'] = 'Company'; } if (canAdd('contacts')) { $newItem['contacts'] = 'Contact'; } if (canAdd('calendar')) { $newItem['calendar'] = 'Event';