</p></div>
    <h3 class="title"><?php 
    echo full_escape($photo->title);
    ?>
</h3>
    <p class="credit">In Album: <a href="<?php 
    echo $photo->album->getAbsoluteUrl();
    ?>
"><?php 
    echo full_escape($photo->album->title);
    ?>
</a><?php 
    if ($session->getUser() && $session->getUser()->isAdmin()) {
        ?>
 | <a href="<?php 
        echo generate_link_url("edit_photo.php?id={$photo->id}");
        ?>
">Edit</a><?php 
    }
    ?>
<br/>Photo <?php 
    echo $photo_index;
    ?>
 of <?php 
    echo $photo_count;
    ?>
</p>
    <?php 
    if (!empty($prev_photo)) {
        ?>
    <p style="display: inline-block;"><a href="<?php 
        }
        ?>
</td>
</tr>
        <?php 
        $i++;
    }
    ?>
        </tbody>
    </table>
    </form>
    <?php 
    include joinPath("fragments", "pagination_tpl.php");
} elseif (strcmp($action, "delete") == 0) {
    ?>
    <div id="breadcrumb_trail"><p><a href="article_options.php">Article Options</a></p></div>
    <h3>No articles selected</h3>
    <p>No articles chosen for deletion</p>
<?php 
} else {
    ?>
    <p style="float: right;"><a href="<?php 
    echo generate_link_url("create_article.php");
    ?>
">Create</a></p>
    <div id="breadcrumb_trail"><p><a href="article_options.php">Article Options</a></p></div>
    <h3>Article Options</h3>
    <div style="clear: both;"></div>
    <p>No articles exist</p>
<?php 
}
if (!empty($page)) {
    ?>
    <h3 class="title"><?php 
    echo full_escape($page->title);
    ?>
</h3>
    <p class="credit">Created by: <a href="<?php 
    echo full_escape($page->user->getAbsoluteUrl());
    ?>
"><?php 
    echo $page->user->userName;
    ?>
</a><?php 
    if ($session->getUser() && $session->getUser()->isAdmin()) {
        ?>
 | <a href="<?php 
        echo generate_link_url("edit_page.php?id={$page->id}");
        ?>
">Edit</a><?php 
    }
    ?>
</p>
    <?php 
    echo stripslashes($page->content);
} else {
    ?>
    <h3>Not Found</h3>
    <p>Page could not be found.</p>
<?php 
}
    ?>

<item>
    <title><?php 
    echo full_escape($event->title);
    ?>
</title>
    <link><?php 
    echo generate_link_url($event->getAbsoluteUrl());
    ?>
</link>
    <description><?php 
    echo full_escape(nl2br($event->description));
    ?>
</description>
    <pubDate><?php 
    echo date("r", $event->date);
    ?>
</pubDate>
    <guid><?php 
    echo generate_link_url($event->getAbsoluteUrl());
    ?>
</guid>
</item>
<?php 
}
?>

</channel>
</rss>
    if (!empty($form_errors["template"])) {
        ?>
 error<?php 
    }
    ?>
" for="template">Template:<span class="sub_text">* optional</span></label><input type="text" name="template" id="template" value="<?php 
    echo full_escape($form_values["template"]);
    ?>
" /></li>
            <li><input type="hidden" id="id" name="id" value="<?php 
    echo full_escape($form_values["id"]);
    ?>
" /></li>
            <li class="submit"><input type="submit" value="Submit" /></li>
    </ul>
    <?php 
    include joinPath("fragments", "tinymce_tpl.php");
    ?>
    </form>
    <p><a href="<?php 
    echo generate_link_url("delete_page.php?id={$page->id}");
    ?>
">Delete</a></p>
<?php 
} else {
    ?>
    <div id="breadcrumb_trail"><p><a href="page_options.php">Page Options</a> &gt; Edit</p></div>
    <h3>Edit Page</h3>
    <p>Page not found</p>
<?php 
}
            <?php 
if (!empty($sidebar_extra)) {
    include $sidebar_extra;
}
?>

            <li>
                <h3>Main</h3>
                <ul>
                    <li><a href="index.php">Home</a></li>
                    <li><a href="phpBB/">Forums</a></li>
                    <li><a href="article_list.php">Articles</a></li>
                    <li><a href="album_list.php">Albums</a></li>
                    <li><a href="<?php 
echo generate_link_url("user_list.php");
?>
">Members</a></li>
                </ul>
            </li>

            <li>
                <h3>Events</h3>
                <ul>
                    <li><a href="event_list.php">Event</a></li>
                    <li><a href="events_day.php">Event Day View</a></li>
                    <li><a href="events_month.php">Event Month View</a></li>
                </ul>
            </li>

            <li>
        echo $photo->mediaUrl;
    }
    ?>
" width="350" alt="<?php 
    echo full_escape($photo->title);
    ?>
" /></li>
        <li><label class="optional<?php 
    if (!empty($form_errors["imagefile"])) {
        ?>
 error<?php 
    }
    ?>
" for="imagefile">New Image:<span class="sub_text">* optional</span></label><input type="file" name="imagefile" id="imagefile" /></li>
        <li><input type="hidden" id="id" name="id" value="<?php 
    echo full_escape($form_values["id"]);
    ?>
" /></li>
        <li class="submit"><input type="submit" value="Submit" /></li>
    </ul>
    <p><a href="<?php 
    echo generate_link_url("delete_photo.php?id={$photo->id}");
    ?>
">Delete</a></p>
<?php 
} else {
    ?>
    <h3>Edit Photo</h3>
    <p>Photo not found</p>
<?php 
}
    if (!empty($form_errors["date"])) {
        ?>
class="error" <?php 
    }
    ?>
 for="date">Date:</label> <input type="text" name="date" id="date" readonly="readonly" value="<?php 
    echo $form_values["date"];
    ?>
" /> <input type="button" id="calendar-trigger" value="..." /></li>
    <li><input type="hidden" id="id" name="id" value="<?php 
    echo full_escape($form_values["id"]);
    ?>
" /></li>
        <li class="submit"><input type="submit" value="Submit" /></li>
    </ul>
    </form>
    <?php 
    include joinPath("fragments", "jscal2_tpl.php");
    ?>
    <p><a href="<?php 
    echo generate_link_url("delete_event.php?id={$event->id}");
    ?>
">Delete</a></p>
<?php 
} else {
    ?>
    <div id="breadcrumb_trail"><p><a href="event_options.php">Event Options</a> &gt; Edit</p></div>
    <h3>Edit Event</h3>
    <p>Event not found</p>
<?php 
}
            <?php 
    }
    ?>

            <li><input type="hidden" id="id" name="id" value="<?php 
    echo full_escape($form_values["id"]);
    ?>
" /></li>
            <li class="submit"><input type="submit" value="Submit" /></li>
        </ul>
    </form>
    <?php 
    if ($session->getUser()->isAdmin()) {
        ?>
        <p><a href="<?php 
        echo generate_link_url("delete_profile.php?id={$alter_user->id}");
        ?>
">Delete</a></p>
    <?php 
    }
} else {
    ?>
    <?php 
    if ($session->getUser()->isAdmin()) {
        ?>
<div id="breadcrumb_trail"><p><a href="user_options.php?users=all">User Options</a> &gt; Edit</p></div><?php 
    }
    ?>
    <h3>User not found</h3>
<?php 
}
        <li><input type="hidden" id="id" name="id" value="<?php 
    echo full_escape($form_values["id"]);
    ?>
" /></li>
        <li class="submit"><input type="submit" value="Submit" /></li>
    </ul>
    </form>
    <?php 
    include joinPath("fragments", "tinymce_tpl.php");
    ?>
    <?php 
    $dateField = "postDate";
    include joinPath("fragments", "jscal2_tpl.php");
    ?>
    <?php 
    $trigger = "calendar-trigger-ni";
    $dateField = "updateDate";
    include joinPath("fragments", "jscal2_tpl.php");
    ?>
    <p><a href="<?php 
    echo generate_link_url("delete_article.php?id={$article->id}");
    ?>
">Delete</a></p>
<?php 
} else {
    ?>
    <div id="breadcrumb_trail"><p><a href="article_options.php">Article Options</a> &gt; Edit</p></div>
    <h3>Edit Article</h3>
    <p>Article not found</p>
<?php 
}
        echo date("M d, Y", $event->date);
        ?>
</td>
</tr>
        <?php 
        $i++;
    }
    ?>
        </tbody>
    </table>
    </form>
    <?php 
    include joinPath("fragments", "pagination_tpl.php");
} elseif (strcmp($action, "delete") == 0) {
    ?>
    <div id="breadcrumb_trail"><p><a href="event_options.php">Event Options</a></p></div>
    <h3>No events selected</h3>
    <p>No events chosen for deletion</p>
<?php 
} else {
    ?>
    <p style="float: right;"><a href="<?php 
    echo generate_link_url("create_event.php");
    ?>
">Create</a></p>
    <div id="breadcrumb_trail"><p><a href="event_options.php">Event Options</a></p></div>
    <h3>Event Options</h3>
    <div style="clear: both;"></div>
    <p>No events exist</p>
<?php 
}
    <div id="breadcrumb_trail"><p><a href="album_list.php">Albums</a> &gt; <?php 
    echo $album->title;
    ?>
</p></div>
    <h3 class="title">Album: <?php 
    echo full_escape($album->title);
    ?>
</h3>
    <p class="credit"><a href="album_list.php">Albums</a><?php 
    if ($session->getUser() && $session->getUser()->isAdmin()) {
        ?>
 | <a href="<?php 
        echo generate_link_url("edit_album.php?id={$album->id}");
        ?>
">Edit</a> | <a href="<?php 
        echo generate_link_url("create_photo.php");
        ?>
">Create Photo</a><?php 
    }
    ?>
</p>
    <?php 
    if (!empty($photo_array)) {
        ?>
        <table style="width: 90%; margin: 0px auto;">
        <?php 
        $i = 0;
        foreach ($photo_array as $photo) {
            ?>
            <?php 
            if ($i % 3 == 0) {
" method="post">
    <ul>
        <li><label <?php 
    if (!empty($form_errors["title"])) {
        ?>
class="error" <?php 
    }
    ?>
 for="title">Title:</label><input type="text" name="title" id="title" value="<?php 
    echo full_escape($form_values["title"]);
    ?>
" /></li>
        <li><input type="hidden" id="id" name="id" value="<?php 
    echo full_escape($form_values["id"]);
    ?>
" /></li>
        <li class="submit"><input type="submit" value="Submit" /></li>
    </ul>
    </form>
    <p><a href="<?php 
    echo generate_link_url("delete_album.php?id={$album->id}");
    ?>
">Delete</a></p>
<?php 
} else {
    ?>
    <div id="breadcrumb_trail"><p><a href="album_options.php">Album Options</a> &gt; Edit</p></div>
    <h3>Edit Album</h3>
    <p>Album not found</p>
<?php 
}
"><?php 
    echo full_escape($article->title);
    ?>
</a></h3>
    <p class="credit">
        Created by: <a href="<?php 
    echo full_escape($article->user->getAbsoluteUrl());
    ?>
"><?php 
    echo $article->user->userName;
    ?>
</a><?php 
    if ($session->getUser() && $session->getUser()->isAdmin()) {
        ?>
 | <a href="<?php 
        echo generate_link_url("edit_article.php?id={$article->id}");
        ?>
">Edit</a><?php 
    }
    ?>
<br/>
        Posted on: <?php 
    echo strftime("%B %e, %Y", $article->postDate);
    ?>
        <?php 
    if ($article->updateDate > $article->postDate) {
        ?>
<br/>Updated on: <?php 
        echo strftime("%B %e, %Y", $article->updateDate);
    }
    ?>
        }
        ?>
</td>
</tr>
        <?php 
        $i++;
    }
    ?>
        </tbody>
    </table>
    </form>
    <?php 
    include joinPath("fragments", "pagination_tpl.php");
} elseif (strcmp($action, "delete") == 0) {
    ?>
    <div id="breadcrumb_trail"><p><a href="page_options.php">Page Options</a></p></div>
    <h3>No pages selected</h3>
    <p>No pages chosen for deletion</p>
<?php 
} else {
    ?>
    <p style="float: right;"><a href="<?php 
    echo generate_link_url("create_page.php");
    ?>
">Create</a></p>
    <div id="breadcrumb_trail"><p><a href="page_options.php">Page Options</a></p></div>
    <h3>Page Options</h3>
    <div style="clear: both;"></div>
    <p>No pages exist</p>
<?php 
}
        echo $album->title;
        ?>
</td>
</tr>
        <?php 
        $i++;
    }
    ?>
        </tbody>
    </table>
    </form>
    <?php 
    include joinPath("fragments", "pagination_tpl.php");
} elseif (strcmp($action, "delete") == 0) {
    ?>
    <div id="breadcrumb_trail"><p><a href="album_options.php">Album Options</a></p></div>
    <h3>No albums selected</h3>
    <p>No albums chosen for deletion</p>
<?php 
} else {
    ?>
    <p style="float: right;"><a href="<?php 
    echo generate_link_url("create_album.php");
    ?>
">Create</a></p>
    <div id="breadcrumb_trail"><p><a href="album_options.php">Album Options</a></p></div>
    <h3>Album Options</h3>
    <div style="clear: both;"></div>
    <p>No albums exist</p>
<?php 
}
        echo "No";
    }
    ?>
</p>
    <p>Number Attending: <?php 
    echo $attend_count;
    ?>
</p>
    <?php 
    if (!empty($attend_array)) {
        ?>
<p>People Attending: <?php 
        for ($i = 0, $length = count($attend_array); $i < $length; $i++) {
            ?>
<a href="<?php 
            echo generate_link_url($attend_array[$i]->user->getAbsoluteUrl());
            ?>
"><?php 
            echo full_escape($attend_array[$i]->user->userName);
            ?>
</a><?php 
            if ($i < $length - 1) {
                ?>
, <?php 
            }
        }
        ?>
</p><?php 
    }
    ?>
    <p style="float: left; margin-top: 0px;">Description: </p><p style="float: left; margin-left: 10px; margin-top: 0px; width: 575px;"><?php