fRAiLtY- Posted June 29, 2011 Share Posted June 29, 2011 Hi there, I use TeamCal Pro which does what I need, unfortunately the e-mail it sends when holiday is scheduled in looks like this: Vacation: .....U...U.U..U Where I believe the .'s are the days of the month and the U's are the days booked off. This is the only bit of the script I find silly. I've spoke to the developer and he tells me that this area of code is where I should be looking but I can't seem to suss out what's causing the odd display. He admits he's been lazy in his interpretation of the dates. I just want it to display the actual date(s) instead of silly dots/characters! I suspect this is not enough on it's own but I'll happily produce any extra code/files you need to decipher it I just didn't want to include loads of rubbish to start with! Cheers. // Build approval email // if (!$approval_email) { $anotification =$LANG['notification_greeting']; $asubject = $LANG['notification_subject_approval']; $anotification.=$LANG['notification_decl_msg_2']; $anotification.=$LANG['notification_decl_user'].$U->firstname." ".$U->lastname."\n\n"; $approval_email = TRUE; } $anotification.=$LANG['notification_decl_date'].$Year.sprintf("%02d",$monthno).sprintf("%02d",$ixx)."\n"; $anotification.=$LANG['notification_decl_absence'].$row[0]."\n"; $anotification.=$LANG['notification_decl_reason'].$_POST['txtReason']."\n\n\n"; } Also I've attached editcalendar.php which is the whole file that contains this excerpt incase you need it. Lines 666-679 are the above code. Cheers! [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.