Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Reza Salehi  >  Online Calendar  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: example
Class: Online Calendar
Output the calendar of a given month in HTML
Author: By
Last change:
Date: 2004-12-08 06:40
Size: 1,851 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>PHP Online calender!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body leftmargin="0" topmargin="0">
<form action="sample_script.php" method="post" name="form1" target="_self">
  <table width="400" border="0" cellpadding="2" cellspacing="2" bgcolor="#666666">
    <tr> 
      <td width="150">&nbsp;</td>
      <td width="250">&nbsp;</td>
    </tr>
    <tr> 
      <td><font face="Geneva, Arial, Helvetica, sans-serif"><strong>Month:</strong></font></td>
      <td><select name="month" id="month">
          <?php
      
for($i=1$i<13$i++)
      {
      
?>
          <option value="<?php print $i?>"><?php print $i?></option>
          <?php
        
}
        
?>
        </select></td>
    </tr>
    <tr> 
      <td><font face="Geneva, Arial, Helvetica, sans-serif"><strong>Year:</strong></font></td>
      <td><select name="year" id="year">
          <?php
      
for($i=1900$i<2050$i++)
      {
      
?>
          <option value="<?php print $i?>"  <?php if($i==2004) print "selected"?>><?php print $i?></option>
          <?php
        
}
        
?>
        </select></td>
    </tr>
    <tr> 
      <td><strong>Width:</strong></td>
      <td><input name="width" type="text" id="width" value="400" size="5" maxlength="3">
        <strong>Pixels</strong></td>
    </tr>
    <tr> 
      <td><font size="1" face="Geneva, Arial, Helvetica, sans-serif">&nbsp;</font></td>
      <td><input type="submit" name="Submit" value="Show calender !"></td>
    </tr>
    <tr> 
      <td colspan="2"><font size="1" face="Geneva, Arial, Helvetica, sans-serif"><strong>Programmed 
        by <a href="http://www.zaalion.com/">Reza Salehi</a></strong></font></td>
    </tr>
  </table>
</form>
</body>
</html>