NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Need help with calendar

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
2 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 07-23-2005, 08:13 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
nonenone's Avatar
Join Date: May 2004
Posts: 806
nonenone is a jewel in the roughnonenone is a jewel in the roughnonenone is a jewel in the rough
 



Need help with calendar


Hi, i have a calendar, one of the functions work in IE but not firefox. can someone please help me? http://dailyresource.com/blogcal/calendar/index.php
the next and previous month buttons don't work in firefox.
Thanks
__________________
IMAGE HOSTING WITH A BITE! ---> IMGShark.com
nonenone is offline  
Old 07-23-2005, 09:15 PM   #2 (permalink)
Account Suspended
 
abdulmueid's Avatar
Join Date: Jun 2005
Location: Mozambique
Posts: 606
abdulmueid has a spectacular aura aboutabdulmueid has a spectacular aura about
 



can u send the sources? Maybe I can help!
abdulmueid is offline  
Old 07-23-2005, 09:58 PM THREAD STARTER               #3 (permalink)
NamePros Regular
 
nonenone's Avatar
Join Date: May 2004
Posts: 806
nonenone is a jewel in the roughnonenone is a jewel in the roughnonenone is a jewel in the rough
 



Here is the index.php:
PHP Code:
<?

  
require "functions.inc";

  
$month $_POST["nmonth"];
  
$year  $_POST["nyear"];

  if(!
$month && !$year)
  {
    
$month date("n");
    
$year  date("Y");
    
$j "j";
  }

  if(!
$j)
  {
    
$j "x";
  }

  if(!
$b)
  {
    
$b "x";
  }

  if(!
$a)
  {
    
$a "x";
  }

  if(
$month 10 && substr($month,0,1) != 0)
  {
    
$month "0".$month;
  }

  
$daysLeft numberOfDays($month,$year);
  
$xday 1;
  
$bump setBump($month,$year);


  echo 
"<html>";
  echo 
"<head>";
  echo 
"<title></title>";
  echo 
"<link rel='stylesheet' href='main.css' type='text/css' />";
  echo 
"<link rel='stylesheet' href='calendar.css' type='text/css' />";

  echo 
"<script type='text/javascript'>";
  echo 
"<!--\n";

  echo 
"function update(m,y,nm,ny)";
  echo 
"{";
  echo 
"  m.value = nm;";
  echo 
"  y.value = ny;";
  echo 
"  document.forms[0].submit();";
  echo 
"}\n";

  echo 
"-->";
  echo 
"</script>";
  echo 
"</head>";
  echo 
"<body>";

  echo 
"<form action='index.php' method='post'>";
  echo 
"<input type='hidden' name='nmonth' value='".$month."' />";
  echo 
"<input type='hidden' name='nyear' value='".$year."' />";
  echo 
"<table width='100%' cellpadding='0' cellspacing='0' border='0'>";
  if (
$show) { 
  echo 
"<tr valign='top'>";
  echo 
"<td class='text'><select name='month' class='pulldown'>";

  for(
$i=1;$i<13;$i++)
  {
    if(
date("n") == $i)
    {
      echo 
"<option value='".$i."' selected>".getMonth($i)."</option>";
    }
    else
    {
      echo 
"<option value='".$i."'>".getMonth($i)."</option>";
    }
  }

  echo 
"</select>";
  echo 
"<br /><br />";
  echo 
"<select name='year' class='pulldown'>";


  
$currentYear=date("Y");
  
$nextYear=$currentYear+1;

  echo 
"<option selected value='".$currentYear."'>".$currentYear."</option>";
  echo 
"<option value='".$nextYear."'>".$nextYear."</option>";


  echo 
"</select>";
  echo 
"<br /><br />";
  echo 
"<input type='checkbox' name='j' value='j'";

  if(
$j == "j")
  {
     echo 
" checked";
  }

  echo 
"/>journal entries";
  echo 
"<br />";

  echo 
"<input type='checkbox' name='b' value='b'";

  if(
$b == "b")
  {
    echo 
" checked";
  }

  echo 
"/>birthdays";
  echo 
"<br />";

  echo 
"<input type='checkbox' name='a' value='a'";

  if(
$a == "a")
  {
    echo 
" checked";
  }

  echo 
"/>anniversaries";
  echo 
"<br />";

  echo 
"<input type='checkbox' name='h' value='h'";

  if(
$h)
  {
    echo 
" checked";
  }

  echo 
" />holidays";
  echo 
"<br />";
  echo 
"<br />";

  echo 
"<a href='#' onclick='submit();' class='cal'>update list</a>";
  echo 
"<br />";

  echo 
"<a href='#' class='cal' onclick=\"window.open('dtl.php?t=m&y=".$year."&m=".$month."', 'p_table', 'fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,directories=no,location=no,width=375,height=500,left=10,top=10');\">read the whole month</a>";
  echo 
"<br />";
  echo 
"<br />";

  echo 
"<input type='button' value='show' onclick='update(nmonth,nyear,month.value,year.value);' />";
  echo 
"<br />";
  echo 
"<br />";

  echo 
"<b><u>key</u></b>";
  echo 
"<br />";
  echo 
"journal entries<br />";
  echo 
"<div class='birthday'>birthdays</div>";
  echo 
"<div class='anniversary'>anniversaries</div>";
  echo 
"<div class='holiday'>holidays</div>";

  echo 
"<img src='../template/clear_dot.gif' width='120' height='1' border='0' alt='' />";
  echo 
"</td>";
  }
  echo 
"<td cellpadding=\"0\" cellspacing=\"0\" valign=\"middle\" class='text'>";
  if (
$show) { $modified_url str_replace("?show=1","",$REQUEST_URI); echo "<a href=\"".$modified_url."\"><img src=\"hide.jpg\" border=\"0\"></a>"; }
????: NamePros.com http://www.namepros.com/programming/109294-need-help-with-calendar.html
  else { echo 
"<a href=\"".$REQUEST_URI."?show=1\"><img src=\"show.jpg\" border=\"0\"></a>"; }
  echo 
"</td>";
  echo 
"<td class='text'>";

  echo 
"<table border='1' cellpadding='0' cellspacing='0'>";
  echo 
"<tr valign='center'>";
  echo 
"<td colspan='7'>";

  echo 
"<table border='0' cellpadding='0' cellspacing='0' width='100%'>";
  echo 
"<tr>";
  echo 
"<td>";

  if(
$year==2002&&$month==7)
  {
    echo 
"&nbsp;";
  }
  else
  {
    echo 
"&nbsp;&laquo; <a href='#' class='cal' onclick='update(nmonth,nyear,";

    if(
$month==1)
    {
      echo 
"12,".($year-1);
    }
    else
    {
      echo (
$month-1).",".$year;
    }

    echo 
");'>previous month</a>";
  }


  echo 
"</td>";
  echo 
"<td align='center' class='month'>".getMonth($month)." - ".$year."</td>";
????: NamePros.com http://www.namepros.com/showthread.php?t=109294
  echo 
"<td align='right'>";
  echo 
"<a href='#' class='cal' onclick='update(nmonth,nyear,";

  if(
$month == 12)
  {
    echo 
"1,".($year 1);
  }
  else
  {
    echo (
$month 1).",".$year;
  }

  echo 
");'>next month</a> &raquo;&nbsp;";

  echo 
"</td>";
  echo 
"</tr>";
  echo 
"</table>";
  echo 
"</td>";
  echo 
"</tr>";
  echo 
"<tr valign='top'>";

  for(
$k=0;$k<7;$k++){
    echo 
"<td class='week'>".$day[$k]."</td>";
  }

  echo 
"</tr>";

  
$thisDay date("j");
  
$thisYear date("Y");
  
$thisMonth date("n");
  
$done "false";

  while(
$daysLeft>0){
    echo 
"<tr valign='top'>";

    for(
$l=0;$l<7;$l++)
    {
      if(
$bump>0)
      {
        echo 
"<td>&nbsp;</td>";
        
$bump--;
      }
      else
      {
        if(
$daysLeft>0)
        {

          if(
$thisDay == $xday && $year == $thisYear && $month == $thisMonth)
          {
            echo 
"<td class='today'>".$xday."<br />";
          }
          else
          {
            echo 
"<td class='days'>".$xday."<br />";
          }

          
print_todays_stuff($month,$xday,$year,$j,$b,$a);

          if(
$h)
          {
            
$te getDaysEvents($month,$xday,$year);

            for(
$i=0;$i<count($te);$i++)
            {
              echo 
"<div class='holiday'>".$te[$i]."</div>";
            }

            echo 
"</td>";
          }
          
$daysLeft--;
          
$xday++;
        }
        else
        {
          echo 
"<td>&nbsp;</td>";
        }
      }
    }
    echo 
"</tr>";
  }

  echo 
"</table>";
  echo 
"<img src='../template/clear_dot.gif' width='606' height='1' border='0' alt='' />";
  echo 
"</td>";
  echo 
"</tr>";
  echo 
"</table>";
  echo 
"</form>";
  echo 
"</body>";
  echo 
"</html>";
?>
__________________
IMAGE HOSTING WITH A BITE! ---> IMGShark.com
nonenone is offline  
Old 07-24-2005, 11:53 PM THREAD STARTER               #4 (permalink)
NamePros Regular
 
nonenone's Avatar
Join Date: May 2004
Posts: 806
nonenone is a jewel in the roughnonenone is a jewel in the roughnonenone is a jewel in the rough
 



anyone?
__________________
IMAGE HOSTING WITH A BITE! ---> IMGShark.com
nonenone is offline  
Old 07-28-2005, 01:26 AM THREAD STARTER               #5 (permalink)
NamePros Regular
 
nonenone's Avatar
Join Date: May 2004
Posts: 806
nonenone is a jewel in the roughnonenone is a jewel in the roughnonenone is a jewel in the rough
 



i will offer $3 to anyone who can fix this problem
__________________
IMAGE HOSTING WITH A BITE! ---> IMGShark.com
nonenone is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Decent Calendar? joshlindem Web Design Discussion 1 07-19-2005 09:37 AM
Sedo's calendar lind Domain Name Discussion 4 02-07-2005 06:53 AM
Online Availability Calendar rosedani Web Design Discussion 5 02-01-2005 11:42 AM
Re-invent Launches FREE RichDatePicker™ ASP.NET Calendar Tool reinventme Web Hosting Offers 0 07-10-2004 02:36 PM
DiscountASP.NET Launches FREE RichDatePicker ASP.NET Calendar Tool dasp Web Hosting Offers 0 07-06-2004 04:08 PM

 
All times are GMT -7. The time now is 12:09 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger