Hello everybody. I'm starting to build an event calendar for employees in my company, and the first thing I needed was an working calendar to build from, so I wrote a simple one. Hope it can be usefull for someone. Cheers.

Member Avatar
Member Avatar
+3 forum 6

I'm looking for the best way to build a simple scheduler that will be able to render a visual calendar of the last 90 days and events that occurred during that span of time. We will need to store the contents of the calendar in a database. I'm thinking a flat file database (plaintext file) is best since it's not that complex and I don't know MySQL at all and my PHP knowledge is limited. The visual part will be easy since I can use HTML and CSS. This is for a small business that needs to track employee attendance …

Member Avatar
Member Avatar
+0 forum 4

So this code below is part of a install file within a calendar script, when i try to upload the file it disappears. I have cut the code down to these lines that will not allow it upload. I can even just add these lines to a test.php file and as soon as it updates the file disappears. I can show full install file it will help. Any ideas on how to get this to work with out making the file disappear ? thank you <?php $server_link = mysql_connect($_POST['dbserver'], $_POST['dbusername'], $_POST['dbpassword']) or die(mysql_error()); $db_link = mysql_select_db($_POST['dbname']) or die(mysql_error()); ?>

Member Avatar
Member Avatar
+0 forum 1

hi there everyone this sounds sily but i am trying to make a calendar which will show attendance on the calander what i want is to stop on the todays date txtbox txtboxes are arreys so the name is txtDay(0), txtDay(1), txtDay(2)........... txtDay(41) Dim strDate As String Dim strStartDate As String Dim strDayStop As String strDate = Format$(Now,"D") 'if todays date is july 7th 2015 iFIRSTDAY = 1 sSelectedMonth = Format$(Date,"MMMM") sSelectedYear = Formate$(Date,"YYYY") iStartIndex = (Weekday(sSelectedMonth & " " & iFIRSTDAY & ", " & sSelectedYear) - 1) 'July 1 2015 - so first day to mark strStartDate = …

Member Avatar
Member Avatar
+0 forum 1

Any ideas of how I can have a calendar for all 12 months print for any year? The user inputs the year and the day of the week for January 1st of that year. (Sunday = 0, Monday = 1, etc.) *Important*: I cannot use cases. (That's what I've mostly seen online to solve this problem) I can only use <iostream>, no other libraries. And I am supposed to use two for loops. Could someone provide a pseudocode or any suggestions?

Member Avatar
Member Avatar
+0 forum 10

Hi All We found many Calendar, which are fine what we need is only show date in season like **25-12-2012 to 15-01-2013** and date we allow to use to select, like if we say available **26-dec and 10-jan** all the can do is select the date fr calender Please help any code or any free link.........................thank you

Member Avatar
Member Avatar
+0 forum 4

Hi friends. With `datetime.datetime.now()` or `datetime.datetime.today()` i can get the current date (English calendar) for my program but what about if i want to get the current date (from Persian calendar) for my program; then what should i do? As my pc os date is set to English calendar so what can i do?

Member Avatar
Member Avatar
+0 forum 2

Hello friends. I want to create a countdown program for the new year that is comming. I know i can use this code for example, for short certain time: from threading import Timer def sayhi(): print "hello everybody!" t = Timer(10, sayhi) t.start() But the new year begins in 29 days (2015, march 21)(at 02:15:11 AM). So i cant calculate how many seconds is left!! So what can i do? I think i should give the date to the program and it should use a calendar maybe, but i don't know how.

Member Avatar
Member Avatar
+0 forum 13

Hi, I'm creating an Events calendar whereby i store event data in an sql database. How do I make it so that when I click on a date in the calendar, it'll display the events details happening on that day in a GridView? I've researched for super long but I haven't found anything that could be of use. I found this article, http://odetocode.com/Articles/223.aspx , but it is slightly different from what I'm doing so I'm unable to reference much. If anybody could help me out on this, I'll be super grateful! Thankyou!

Member Avatar
Member Avatar
+0 forum 2

I'm trying to make a calendar out of C. I need it to be able to promt the user for a month, and the year, and it should then print the calendar of that. So far the code I've got is: #include<stdio.h> int days_in_month[]= {0,31,28,31,30,31,30,31,31,30,31,30,31}; char *months[]= { " ", "\n\n\nJanuary", "\n\n\nFebruary", "\n\n\nMarch", "\n\n\nApril", "\n\n\nMay", "\n\n\nJune", "\n\n\nJuly", "\n\n\nAugust", "\n\n\nSeptember", "\n\n\nOctober", "\n\n\nNovember", "\n\n\nDecember" }; int determinedaycode(int year) { int daycode; int d1, d2, d3; d1 = (year - 1.)/4.0; d2 = (year - 1.)/100.; d3 = (year - 1.)/400.; daycode = (year + d1 +d2 +d3) %7; return daycode; } int …

Member Avatar
Member Avatar
+0 forum 8

I'm currently working on a collection of sub-projects, one of which was a backup manager. I needed to be able to allow the user to specify a backup time and a repeat interval. After thinking about the solution, decided it would be best for the user to provide an Initial DateTime of the first occurance and how frequent they would like to repeat the event. This class can be used to help determaine Alarms, Reminders or anything that requires an event to be triggered at a certain time. >Fun and Good for Beginners It was good fun writing this wee …

Member Avatar
Member Avatar
+1 forum 2

Hi Guys, I found a tutorial online on how to build an events calendar using PHP and Ajax. I am however a little stuck, I have ran debuggers and have error messages printed throughout the code and whilst the basic calendar functionality works, it does not actually display any events. The code is as follows: On my actual calendar page you can see: <script type="text/javascript"> /* <![CDATA[ */ function initialCalendar(){ var hr = new XMLHttpRequest(); var url = "calendar/calendar_start.php"; var currentTime = new Date (); var month = currentTime.getMonth() + 1; var year = currentTime.getFullYear(); showmonth = month; showyear = …

Member Avatar
Member Avatar
+0 forum 6

hello everyone! I recently found this jquery calendar plugin called Calendario and am wondering if anyone here has ever used it or even heard of it. [Calendario jquery plugin](http://tympanus.net/codrops/2012/11/27/calendario-a-flexible-calendar-plugin/) I am trying to integrate it into this page, im trying to create and have the data from my database : event, be dynamically added into the calendar and i have no clue how. If anyone could guide,explain to me step by step that'd be great. thank you.

Member Avatar
+0 forum 0

excuse me, do you know how to put a calendar in the form? I try to put this code in my form but it has an error on line 2. Anybody know? Please help me. Thank you This is the calendar code :- <?php $myCalendar = new tc_calendar("date5", true, false); $myCalendar->setIcon("calendar/images/iconCalendar.gif"); $myCalendar->setDate(date('d'), date('m'), date('Y')); $myCalendar->setPath("calendar/"); $myCalendar->setYearInterval(2000, 2015); $myCalendar->dateAllow('2008-05-13', '2015-03-01'); $myCalendar->setDateFormat('j F Y'); $myCalendar->setAlignment('left', 'bottom'); $myCalendar->setSpecificDate(array("2011-04-01", "2011-04-04", "2011-12-25"), 0, 'year'); $myCalendar->setSpecificDate(array("2011-04-10", "2011-04-14"), 0, 'month'); $myCalendar->setSpecificDate(array("2011-06-01"), 0, ''); $myCalendar->writeScript(); ?>

Member Avatar
Member Avatar
+0 forum 7

I am trying to do a Page to PHPExcel to user fill an Html Page and send to PHP and it will: Open my default Excel Page and after fills the Excel Page with information send by Html What i dont know is how to do it read if is monday or thuersday etc and if is not holiday or lay-off(im started trying with If's) and color it in how much modules are introduced (can be like max 10 modules(each module is like a matter of each discipline)) and each block of time have 90minutos and each module will fill …

Member Avatar
Member Avatar
+0 forum 6

Hello, I am looking for a calendar to use with my website that I can add tasks/appointments into the db and have them show on the calendar. I would like to edit on the fly either by using a page to create the task/appointment or via the calendar using ajax. Thanks in advance Patrick.

Member Avatar
Member Avatar
+0 forum 2

I'm trying to have the following output of the program: 01/01/2010 But when I run the program I get : 01/01/10 How would I format the date to be like I want? This is the code I have: import java.util.Calendar; import java.util.GregorianCalendar; public class HelloWorld{ public static void main(String []args){ Calendar calendar = new GregorianCalendar(); //set date to last day of 2009 calendar.set(Calendar.YEAR, 2009); calendar.set(Calendar.MONTH, 11); // 11 = december calendar.set(Calendar.DAY_OF_MONTH, 31); // new years eve //add one day calendar.add(Calendar.DAY_OF_MONTH, 1); //date is now jan. 1st 2010 int year = calendar.get(Calendar.YEAR); // now 2010 int month = calendar.get(Calendar.MONTH); // now …

Member Avatar
Member Avatar
+0 forum 1

Hi Guys, I would like to highlight the current day on this php script, can you help me figure out a simple way to do this? <?php $monthNames = Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); if (!isset($_GET["m"])) $_GET["m"] = date("n"); if (!isset($_GET["y"])) $_GET["y"] = date("Y"); $currentMonth = $_GET["m"]; $currentYear = $_GET["y"]; $p_year = $currentYear; $n_year = $currentYear; $p_month = $currentMonth-1; $n_month = $currentMonth+1; if ($p_month == 0 ) { $p_month = 12; $p_year = $currentYear - 1; } if ($n_month == 13 ) { $n_month = 1; $n_year = $currentYear + 1; } $days=array('1'=>"S",'2'=>"M",'3'=>"T",'4'=>"W",'5'=>"T",'6'=>"F",'7'=>"S"); …

Member Avatar
Member Avatar
+0 forum 1

Hi i have an assignment to do in C language but i have no idea where to start with....could anyone give me a headstart where i should start?? i dont have much experience in C programming. i was given these information: (a) It was Monday on the 1st of January 1900, (b) April, Jun, September and November have 30 days, (c) January, March, May, July, August, October and December have 31 days, and (d) Feburary has 28 days normally, but in a leap year, it has 29 days. Based on the general information about a calendar above, write a program …

Member Avatar
Member Avatar
+0 forum 4

hello! im working on a reservation system and im lacking in knowledge about how to use controls properly. the application aims to show reservations made in a month. to visualize everything, the application must look like this: http://www.planet-source-code.com/Upload_PSC/ScreenShots/PIC200661517432753.JPG all ive found from the internet are downloadable, customized components. my question is that is there a way to create this application without downloading such? just using vb controls that all of us are familiar with? thanks for the response! :D

Member Avatar
Member Avatar
+0 forum 5

I am try to populate a JComboBox with the days of a particular month and year. I researched the problem and came up with this: public void actionPerformed(ActionEvent e) { //code to respond to the buttons goes here if ( e.getSource() == cmbMonth || e.getSource() == cmbYear ) { cmbDay.removeAllItems(); int year = Integer.parseInt(cmbYear.getSelectedItem().toString()); int month = cmbMonth.getSelectedIndex() + 1; Calendar currMonYear = Calendar.getInstance(); currMonYear.set(Calendar.YEAR, year); currMonYear.set(Calendar.MONTH, month); int daysInMon = currMonYear.getActualMaximum(Calendar.DAY_OF_MONTH); for ( int i = 1; i <= daysInMon; ++i ) cmbDay.addItem(i); int x = 0; } }//end actionPerformed() Though I am getting incorrect values. Any suggestions?

Member Avatar
Member Avatar
+0 forum 3

I have a form with a calendar and a textbox with 2 buttons. The calendar is the vb 2010 tool and the textbox overlaps it so that when a day is selected on the calendar you can make an appointment for that day. i have a save button and a back buton... I am having trouble with the save feature... there is always a file error... here is my code [CODE] Imports System.IO Public Class Form2 Dim m As MsgBoxResult Dim t As String 'Private cal As String = "C:\cal.txt" Private Sub MonthCalendar1_DateSelected(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) …

Member Avatar
Member Avatar
-1 forum 2

Can anyone help me? I'm trying to gat my reservation calendar working with jquery tabs. Everything else works exept for this reservation calendar. When I remove the javascript from the header, the calendar works just fine but the tabs disappears... Can anyone please help...? <div class="reservationbox"> <div class="reservation_calendar" id="reservation_calendars"></div> <div class="clr clear"></div> <div class="cal_buttons"> <img class="mousepointer" onclick="javascript:setPreviousCalDate();" src="<?php echo $this->krbaseurl; ?>/components/com_koparent/assets/images/calendar/cal_previous.png" title="<?php echo JText::_( 'COM_KOPARENT_PREVIOUS'); ?>" /> <img class="mousepointer" onclick="javascript:setNextCalDate();" src="<?php echo $this->krbaseurl; ?>/components/com_koparent/assets/images/calendar/cal_next.png" title="<?php echo JText::_( 'COM_KOPARENT_NEXT'); ?>" /> </div> </div>

Member Avatar
Member Avatar
+0 forum 1

I have a calendar built for course scheduling and I'm trying to have it auto book a google resoure calendar by sending an email using phpmailer with an ics attachment ics file BEGIN:VCALENDAR PRODID:-//company// Course Scheduler//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:PUBLISH BEGIN:VEVENT DTSTART:20130411T170000 DTEND:20130411T173000 DTSTAMP:20130410T110314Z ORGANIZER;CN=my@Email.com:MAILTO:my@Email.com UID:unique_id@email.com ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=Test;X-NUM-GUESTS=0:MAILTO:myresource@group.calendar.google.com CREATED:20130410T110314Z DESCRIPTION: test LAST-MODIFIED:20130410T110314Z LOCATION:5th Floor SEQUENCE:0 STATUS:CONFIRMED SUMMARY:test TRANSP: OPAQUE END:VEVENT END:VCALENDAR relevant part of email func $mail->AddStringAttachment($invite[1], $invite[0], "base64", "text/calendar; charset=utf-8; method=PUBLISH"); i get the email on my account showing the event details and a "add to cal" link nothing appears on the resource calendar though any thoughts? i've tried changing ics …

Member Avatar
Member Avatar
+0 forum 5

Please help. I can't get my calendar to automatically get the current date. I'm not sure where the problem is so I'll post the whole script. Here it is. (function($){ var availableTags = [ "ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", "Haskell", "Java", "JavaScript", "Lisp", "Perl", "PHP", "Python", "Ruby", "Scala", "Scheme" ]; $( "#autocomplete" ).autocomplete({ source: availableTags }); // Hover states on the static widgets $( "#dialog-link, #icons li" ).hover( function() { $( this ).addClass( "ui-state-hover" ); }, function() { $( this ).removeClass( "ui-state-hover" ); } ); }); (function($){ var initLayout = function() { var …

Member Avatar
Member Avatar
+0 forum 3

Please help. I already had my booking calendar added to my site last week and the calendar showed up but now only the booking form is showing up but the calendar does not seem to show. I've tried a lot of fixes and nothing seems to work. Please help. ------------------------------------------------------------ <?php include_once "includes/header.php"; include "includes/db_connect.php"; include "includes/paging.php"; include "Calendar.php"; if(!isset($_SESSION['user_id']) && !isset($_SESSION['user_name']) && !isset($_SESSION['user_fname']) && !isset($_SESSION['user_lname']) && !isset($_SESSION['user_email']) && !isset($_SESSION['user_type'])) { header("location:signin.php"); } $paypal_url='https://www.sandbox.paypal.com/cgi-bin/webscr'; // Test Paypal API URL $paypal_id='sales@rentxs.com.au'; // Business email ID ?> <link rel="stylesheet" type="text/css" href="css/style.css" /> <link rel="stylesheet" href="css/colorbox.css" /> <script src="js/jquery.min.js"></script> <script src="js/jquery.colorbox-min.js"></script> <!-- <script> …

Member Avatar
Member Avatar
+0 forum 3

Basically I got 2 calendar scripts from the same source. I saw a custom script before that merged these two but Everything I tried failed. Please help. Here are the 2 scripts. Script 1: $('#date3').DatePicker({ flat: true, date: ['2008-07-28','2008-07-31'], current: '2008-07-31', calendars: 3, mode: 'range', starts: 1 }); Script 2: $('#inputDate').DatePicker({ format:'m/d/Y', date: $('#inputDate').val(), current: $('#inputDate').val(), starts: 1, position: 'r', onBeforeShow: function(){ $('#inputDate').DatePickerSetDate($('#inputDate').val(), true); }, onChange: function(formated, dates){ $('#inputDate').val(formated); if ($('#closeOnSelect input').attr('checked')) { $('#inputDate').DatePickerHide(); } } }); Please help, I have a deadline and my head is already hurting.

Member Avatar
Member Avatar
+0 forum 2

Hello, I have a problem that I'm pretty sure I already got done before but I got lost since I didn't note down my changes with my code. My problem is that I need my displayed calendar to move fluidly showing the next 4 months and the previous 4 months. This is my calendar php. </table></td> </tr> <tr> <td align=center> <? print "<table cellpadding=1 cellspacing=0 border=0>"; for($i=0;$i<1;$i++) { print "<tr>"; for($j=0;$j<4;$j++) { print "<td>"; $cal->SetDate($month,$year); $cal->Show(); $month++; if ($month==13) { $month=1; $year++; } print "</td>"; } print "</tr>"; } print "</table>"; if ($page>1) { $prev=$page-1; print "<a class=\"link\" href=\"".$_SERVER['PHP_SELF']."?p=$prev\">Prev</a>&nbsp;"; } …

Member Avatar
Member Avatar
+0 forum 1

Hello , I had this question how to make your calendar recognize a date and how to make by example change your backgroundcolor when it is the 31 october (halloween) if you can answer this question , please do it! thx

Member Avatar
Member Avatar
+0 forum 1

We list our daily opening/closing hours on a Google Calendar as Events. After some struggles with the Javascript API, we are *almost* able to extract the hours (events) for today and for tomorrow to embed elsewhere on the site -- but at 7pm local time (EST in the US) it kicks over to the *next* days' listings. That seems to be 0:00 GMT, when it switches, yet the calendar itself displays as it should for our time zone. For some reason I'm too dumb to find, the script is pulling the events in a way that **almost** does does but …

Member Avatar
Member Avatar
+0 forum 3

The End.