Search This Blog

Friday, September 24, 2010

Team Meeting-4

As usual this meeting was held in Epics lab in Arms. As far as I remember Myself, John and also Dharmil came to the team meeting but for some reason Dharmil's name is not there in the meeting minutes.

In the last lab meeting we have discussed on the layout and also some of the data base work. Daniel and Dharmil had a new theme for the website but in the team meeting they liked the theme that I came up with. So we went with my theme. We had to make some changes to the code , so myself and Dharmil worked in the master page. We were interacting with John ,asking him to look at the website and think what he feels about it. His inputs also helped us in coding the master page. W had to make some changes like
a) change the color of the background 
     We also changed the CSS files for this
b) We had to change the color and font of the text on the site

So it was basically working on the site master page...



<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="Volunteer_Management.Site" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Volunteer Management</title>
    <!-- CSS -->
  
    <link rel="stylesheet" href="Styles/default.css" type="text/css" media="screen, projection, tv" />
    <link rel="stylesheet" href="Styles/print.css" type="text/css" media="print" />
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body id="Body1">
    <div id="wrapper">
        <div class="header">
            <h1>
                <span><a href=""><span id="color">Community & Family Resource Center</span></h1>
            <p id="about">
                </p>
            <a href="#skip-menu" class="hidden">Skip menu</a>
            <!-- Skip menu -->
            <div id="menu-box">
                <ul id="web">
                    <li><a href="#">Extra</a></li>
                    <li><a href="#">Contact</a></li>
                    <li><a href="#">Single User</a></li>
                    <li><a href="#">Family</a></li>
                    <li><a href="#">Calender</a></li>
                    <li><a class="active" id="first" href="">Home</a></li></ul>
            </div>
        </div>
        <!-- Header end -->
        <hr class="noscreen" />
        <div id="skip-menu">
        </div>
        <div class="page">
            <div class="col-r">
                <div class="col-r-in">
                    <div class="bodyContent">
                        <asp:ContentPlaceHolder ID="body" runat="server">
                        </asp:ContentPlaceHolder>
                    </div>
                </div>
            </div>
            <div class="cleaner">
                &nbsp;</div>
        </div>
    <!-- Page end -->
    <div id="footer">
        <ul>
            <li><a href="">Home</a>|</li>
            <li><a href="#">Calender</a>|</li>
            <li><a href="#">Family</a>|</li>
            <li><a href="#">Single User</a>|</li>
            <li><a href="#">Contact</a>|</li>
            <li><a href="#">Extra</a>|</li>
            <li><a href="#" onclick="print();" title="Javascript needed for a Print">Print</a></li>
        </ul>
        <asp:Image runat="server" ImageUrl="Images/epicslogo.png" style="float: left; margin-top: 10px; margin-left: 50px;" />
        <!--<img style="float: left; margin-top: 10px; margin-left: 50px;" src="Images/epicslogo.png" />-->
        <p>A project by the EPICS WISE team<br />Copyright 2010 - <a href = "http://epics.ecn.purdue.edu/WISE/">EPICS WISE</a></p>
    </div>
    <!-- Footer end -->
    </div>
    <!-- Wrapper end -->
</body>
</html>

Thursday, September 16, 2010

Master page for the Website

Since myself and Dharmil are the web masters for the WISE team, we have decided to recode the website. We thought the current website was slow since it uses Flash. We decided to use PHP, Apache mod_rewrite for the website. We decided to have a masterpage templating system that which will help us in reducing the redundancy and makes it easy to modify files. Dharmil will help  me in doing this, since he has more experience. We will make a new file called .htaccess and the code would like:
1RewriteEngine On
2RewriteRule ^(.*).html$ index.php?paget=$1
So if any file is requested over the HTTP protocol, let’s say about.html, it will execute index.php?paget=about
Next we will have a PHP file which includes common headers/sidebars and the footers.
01
02include_once "header.html";
03 
04if(file_exists("page_{$_GET['paget']}.html") || ($_GET['paget'] ==''))
05{
06if($_GET['paget'] == '')
07{
08include_once "page_index.html";
09}
10else
11{
12include_once "page_{$_GET['paget']}.html";
13}
14}
15else
16{
17include_once "page_404.html";
18}
19 
20include_once "sidebar.html";
21include_once "footer.html";
22?>
Header, specific page, sidebar and the footer are also included.