$holder_color = 'circle_red.gif';
                                    break;
                                case '1':
                                    $holder_color = 'circle_yellow.png';
                                    break;
                                case '2':
                                    $holder_color = 'circle_green.png';
                                    break;
                                default:
                                    $holder_color = 'circle_gray.png';
                            }
                        }
                        $dataEntry .= "<div class='hang' style='padding:1px 3px 0px 5px;'>" . "<a href='javascript:;' onclick=\"window.opener.location.href='" . APP_PATH_WEBROOT . "DataEntry/index.php?pid={$project_id}&id=" . removeDDEending($row['record']) . "&page={$this_form}&event_id={$row['event_id']}';self.close();\">" . "<img src='" . APP_PATH_IMAGES . $holder_color . "' style='height:16px;width:16px;vertical-align:middle;'>&nbsp;&nbsp;" . $attr['form_menu_description'] . "</a>" . "</div>";
                    }
                    $dataEntry .= "<div style='padding:2px 0;'></div>";
                    print renderPanel('Data Entry Forms', $dataEntry);
                    print "</div>";
                }
            }
        }
        print "</TD></TR></TABLE>";
        print "</div>";
        //Error
    } else {
        print "<b>{$lang['global_01']}!</b><br><br><a href='javascript:self.close();' style='font-family:Arial;font-size:11px;color:#000066;text-decoration:underline;'>{$lang['calendar_popup_18']}</a>";
    }
    /**
     * DISPLAY EMPTY FORM FOR CREATING NEW CALENDAR EVENT
     */
} elseif (!isset($_GET['cal_id']) && empty($_POST)) {
    // Make sure values are integers
{
	$westHtml = renderPanel('', $logoHtml)
			  . renderPanel($dataEntryTitle, $dataEntry)
			  . renderPanel($appsMenuTitle, $appsMenu, 'app_panel');
	if ($externalLinkage != "") {
		$westHtml .= $externalLinkage;
	}
	if ($reportsList != "") {
		$westHtml .= renderPanel($reportsListTitle, $reportsList, 'report_panel');
	}
	$westHtml .= renderPanel($helpMenuTitle, $helpMenu, 'help_panel');
}
else
{
	// Since no 'pid' is in URL, then give warning that header/footer will not display properly
	$westHtml = renderPanel("&nbsp;", "<div style='padding:20px 15px;'><img src='".APP_PATH_IMAGES."exclamation.png' class='imgfix'> <b style='color:#800000;'>{$lang['bottom_54']}</b><br>{$lang['bottom_55']}</div>");
}


/**
 * PAGE CONTENT
 */
?>
<table border=0 cellspacing=0 style="width:100%;">
	<tr>
		<td valign="top" id="west" style="width:250px;">
			<div id="west_inner" style="width:250px;"><?php echo $westHtml ?></div>
		</td>
		<td valign="top" id="westpad">&nbsp;</td>
		<td valign="top" id="center">
			<div id="center_inner">