<?php } ?> <strong>Calendars (<?php echo $profile["num_calendars"]; ?> )</strong> <div style="margin-top:5px;"> <?php if (!isset($UserCalendars)) { $UserCalendars = new UserCalendars(date('m'), date('Y'), $Database); } $calendarCount = 0; //Display a list of the calendars created by the user foreach ($UserCalendars->getUserCalendars($profile["id"]) as $calendar) { require $baseDir . 'includes/templates/calendar_preview_box.php'; $calendarCount++; } if ($calendarCount == 0) { echo '<br/><em>This user hasn\'t created any calendars yet</em>'; } ?> <div class="clear"></div> </div> </div> <div class="clear"></div> </div> <?php
<div class="clear"></div> </div> <div class="popup-contain" style="text-align:center;"> <form action="" method="post" style="padding:15px;"> <input type="text" class="post-input" name="calendar_title" style="width:375px;" placeholder="Calendar Title" required /> <br/> <textarea name="calendar_description" class="post-input" style="width:375px;max-width:375px;height:70px;" placeholder="Calendar Description (100 characters)" required></textarea> <br/> <input type="submit" value="Add Calendar" name="add_calendar_submit" class="a-button" /> </form> </div> </div> <?php $UserCalendars = new UserCalendars(date('m'), date('Y'), $Database); $calendarCount = 0; foreach ($UserCalendars->getUserCalendars($user["id"]) as $calendar) { require $baseDir . 'includes/templates/calendar_preview_box.php'; $calendarCount++; } if ($calendarCount == 0) { echo '<div style="background:#062327;color:#fff;padding:5px 25px;float:left;margin:5px 20px;">Before you can make a post you must <a href="#add-calendar-box" rel="popup" style="font-weight:bold;color:#fff;" class="no-underline">create</a> a calendar</div>'; } ?> <div class="clear"></div> </div> </div> <?php require $baseDir . 'includes/templates/page_footer.php'; //The html for the footer of the page