Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

Simple question ... calendar runs great!
Old 03-01-2005, 12:40 AM   #1
JoeCramblit
Calendar User
 
JoeCramblit is offline
Join Date: Feb 2005
Posts: 22
Default Simple question ... calendar runs great!

Even though as the web designer I DON'T want it the client is wanting that drop down selector form the admin area to appear on his calendar.

Any whiz bang way to add it?

My domain has now resolved Brian if you're the one reading this. The "not very customized" calendar is at www.windscents.com

Again great script!

Thanks
 

Old 03-01-2005, 10:52 AM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Insert this where you want the drop down menu to appear:

PHP Code:
<?php
 
if (!isset($_REQUEST['mo'])) $mo date("m",time() - date('Z') + ($gmt 3600));
 if (!isset(
$_REQUEST['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>
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Brian that didn't work? The Months are screwed up
Old 03-01-2005, 11:14 AM   #3
JoeCramblit
Calendar User
 
JoeCramblit is offline
Join Date: Feb 2005
Posts: 22
Default Brian that didn't work? The Months are screwed up

Tried it with FrontPage and the Form Action is replaced with a string %20's

Tried editing in ULTRA EDIT ... same thing.

Thought may there was an extra "<" here

<form name="form3" method="post" action="<select name="mo" id="mo">

but removing that totally removed calendar and even distorted graphics on page?

After deleting the code ... I cannot even get the calendar to appear.

www.windscents.com

Last edited by JoeCramblit; 03-01-2005 at 11:17 AM.
 

Old 03-01-2005, 11:18 AM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

FrontPage is notorious for modifying/adding code to pages and can sometimes be tricky when pasting text from an online forum such as this. Try editing the page without using FrontPage and add the code that way.

Additionally, I've attached a text document which may work using copy and paste in FrontPage.
Attached Files
File Type: txt dates.txt (736 Bytes, 714 views)
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 03-01-2005, 11:25 AM   #5
Rivaldo
Calendar User
 
Rivaldo is offline
Join Date: Dec 2004
Location: Austin, TX
Posts: 22
Default

I think:
<form name="form3" method="post" action="

should be:
<form name="form3" method="post" action="">

Right?
 

I tried it with ULTRA EDIT (code editor) too
Old 03-01-2005, 11:31 AM   #6
JoeCramblit
Calendar User
 
JoeCramblit is offline
Join Date: Feb 2005
Posts: 22
Default I tried it with ULTRA EDIT (code editor) too

The code is "gone" but it wrecked the calendar?

In fact it wrecked the page?

Re-uploaded a few times.

www.windscents.com

Any opinions on what it did?
 

Old 03-01-2005, 11:31 AM   #7
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

You're right... Now my copy and paste isn't working.

I've made the changes to the code in the previous post.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Really dumb mistake on destroyed page
Old 03-01-2005, 11:35 AM   #8
JoeCramblit
Calendar User
 
JoeCramblit is offline
Join Date: Feb 2005
Posts: 22
Default Really dumb mistake on destroyed page

Accidently uploaded old index.html again

Sorry about that ... I wasn't looking at the same page!
 

OK I added a ">" sort of same result
Old 03-01-2005, 11:42 AM   #9
JoeCramblit
Calendar User
 
JoeCramblit is offline
Join Date: Feb 2005
Posts: 22
Default OK I added a ">" sort of same result

www.windscents.com

Months are not in drop down ... spread across page.

Must be something simple.
 

Old 03-01-2005, 11:44 AM   #10
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Viewing your source code reveals a missing quote mark after the first mo:

<select name="mo" id="mo">
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

I did not realize you can changed code above
Old 03-01-2005, 11:45 AM   #11
JoeCramblit
Calendar User
 
JoeCramblit is offline
Join Date: Feb 2005
Posts: 22
Default I did not realize you can changed code above

Let me try that first.

Server went down for a minute.
 

Brian it's fixed .... thanks
Old 03-01-2005, 11:53 AM   #12
JoeCramblit
Calendar User
 
JoeCramblit is offline
Join Date: Feb 2005
Posts: 22
Default Brian it's fixed .... thanks

Anyone know the secret formula for getting the padding out of these form fields.

I've resorted to using in the past

style="margin-top: -6; margin-bottom: -6"

Style sheet doesn't seem to get it done. Has to be right in the form line.
 

I got rid of the spacing ... living dangerously
Old 03-01-2005, 12:10 PM   #13
JoeCramblit
Calendar User
 
JoeCramblit is offline
Join Date: Feb 2005
Posts: 22
Default I got rid of the spacing ... living dangerously

<select name="mo" id="mo" style="margin-top: -6; margin-bottom: -6" >

<select name="yr" id="yr" style="margin-top: -6; margin-bottom: -6" >

<input type="submit" name="Submit" value="Go" style="margin-top: -6; margin-bottom: -6">

Always surprised when it doesn't screw up the code.

Works great.

Thanks Brian ... Thanks Rivaldo
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mambo Integration Instructions Xirtam Mambo/Joomla Integration 69 06-26-2007 04:15 PM
Normal Calendar Mode Question remo General Support 2 08-31-2005 07:05 AM
calendar question? stmary General Support 2 08-30-2005 11:18 AM
Thanks for a great calendar! marisab In our client's own words... 3 07-14-2004 10:58 AM
Powered by Easily Simple Calendar Icon Brian Other Announcements 0 05-01-2004 08:26 PM



All times are GMT -4. The time now is 12:20 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |