How do I add a Date Selection Drop-down Menu?

<?php
$mo
=$_REQUEST[mo];
$yr=$_REQUEST[yr];
if (!isset(
$mo) || $mo<1 || $mo>12 || !is_numeric($mo)) $mo = date("m",time() - date('Z') + ($gmt * 3600));
if (!isset(
$yr) || $yr<1970 || $yr>2036 || !is_numeric($yr)) $yr = date("Y",time() - date('Z') + ($gmt * 3600));
    
?>
     <form name="form3" method="post" action="<?php echo $PHP_SELF ?>">
        <select name="mo" id="mo">
         <?php
for ($N=1; $N<=12; $N++) {
    echo
"<option value='$N'";
    if (
$N==$mo) echo " SELECTED";
    echo
">$mth[$N]</option>";
    }
    
?>
        </select>
        <select name="yr" id="yr">
         <?php
for ($N=2000; $N<=2036; $N++) {
    echo
"<option";
    if (
$N==$yr) echo " SELECTED";
    echo
">$N</option>";
    }
    
?>
        </select>
        <input type="submit" name="Submit" value="Go">
     </form>

Hjälpte svaret dig?

 Skriv ut denna artikeln

Läs även

How to show the complete title when using the Standard calendar

Open the esstyle.css file in the theme directory that you're using (probably default). Look for...

Agenda as default Event Manager view

Edit the events/headerCustom.inc.php file (remove the .new from the name if this hasn't been done...

Bypass the login screen?

Add the following code to your page. Adjust the path, email address, password and log in text to...

Can I change the colors and layout?

Yes. You have complete control over how the final calendar appears on your web site. You can edit...

What is the format of the database?

The calendar database field details are below. You can use this as a reference if you want to...