$row = get_object_vars($s_project); $row['company_id'] = $row['project_company']; $listTable->stageRowData($row); $s = '<tr>'; $s .= '<td><a href="./index.php?m=projects&a=addedit&project_id=' . $s_project->project_id . '"><img src="' . w2PfindImage('icons/' . ($project_id == $s_project->project_id ? 'pin' : 'pencil') . '.gif') . '" /></a></td>'; foreach ($fieldList as $field) { if ('project_name' == $field) { $s .= '<td class="_name">'; if ($level) { $s .= str_repeat(' ', $level - 1) . w2PshowImage('corner-dots.gif', 16, 12) . ' ' . '<a href="./index.php?m=projects&a=view&project_id=' . $s_project->project_id . '">' . $s_project->project_name . '</a>'; } else { $s .= '<a href="./index.php?m=projects&a=view&project_id=' . $s_project->project_id . '">' . $s_project->project_name . '</a>'; } $s .= '</td>'; } else { $s .= $listTable->createCell($field, $s_project->{$field}, $customLookups); } } $s .= '</tr>'; echo $s; } } } ?> </table> <table width="100%" border="0" cellpadding="5" cellspacing="1"> <tr> <td align="center" colspan="20"> <?php $src = "?m=projects&a=vw_sub_projects_gantt&suppressHeaders=1&showLabels=1&proFilter=&showInactive=1showAllGantt=1&original_project_id={$original_project_id}&width=' + ((navigator.appName=='Netscape'?window.innerWidth:document.body.offsetWidth)*0.90) + '"; echo "<script>document.write('<img src=\"{$src}\">')</script>";
echo '<span style="color: red">' . $AppUI->_('Offline'); } } } else { echo '<span style="color: grey">' . $AppUI->_('Never Visited'); } echo '</span>'; } ?> </td> <td width="20%"> <a href="mailto:<?php echo $row['contact_email']; ?> "><img src="<?php echo w2PfindImage('obj/email.gif'); ?> " alt="email" /></a> <?php echo $row['contact_display_name']; ?> </td> <?php echo $listTable->createCell('user_user', $row['user_username']); echo $listTable->createCell('contact_company', $row['contact_company']); echo $listTable->createCell('dept_name', $row['dept_name']); ?> </tr> <?php } echo $listTable->endTable();