Questions Tagged php
General questions
Answered: 1. No, this project includes a trial version of DayPilot Pro and is limited to testing and evaluation purposes, for 60 days. You need a DayPilot Pro for JavaScript license to use it in production (ht...
Event calendar
Answered: Maybe just a typo, it should be "locale":
dp.locale = "fi-fi";
See also: https://api.daypilot.org/daypilot-calendar-locale/
changing court name
Answered: At this moment the tutorial project doesn't include the user interface to change the court names. You'd have to add it or you can also modify the database directly. The sample SQLite database is gene...
bespoke development
Answered: Thanks Dan. In all honesty, it would still be over my head! Obviously, I'd like to licence your code, but would anyone else be interested in helping me adapt it to our specific needs? Thanks
How can i translate days into another language
Answered: Please take a look at the Localization topic in the documentation: https://doc.daypilot.org/month/localization/ You can use one of the predefined locales or you can define your own. In addition to sw...
uploading data
Answered: It turns out that the project included an incorrect version of _db.php that initializes the database. A fixed project is now available for download. The employees are stored in the database, in a tab...
Display mysql data
I have two input box and with the help of this two input data i wants to display my mysql data Ex. i have so many employee data in a single table then i wants to display only to those people whose ha...
fatal error
Answered: It looks like the 'ODBC' user doesn't have sufficient permissions (to access the database). See also: https://dev.mysql.com/doc/refman/5.7/en/privilege-system.html
Add or remove doctors
Answered: Management of doctors is not implemented in this tutorial. The doctor data is stored in the database, in a table called "doctor":
CREATE TABLE doctor (
doctor_id INTEGER PRIMARY KEY AU...
Month problem
What if our project has many tasks throughout a couple of months. How can I show the diff tasks on the same chart although they're on different months?
Possibility of an automated reminder
Answered: This needs to be done on the server side. DayPilot focuses on the UI and it doesn't include support for sending emails.
How to stop drag and drop feature on event calendar
Answered: You need to turn the features off one by one:
dp.eventMoveHandling = "Disabled";
dp.eventResizeHandling = "Disabled";
dp.timeRangeSelectedHandling = "Disabled";
See also the following tutorial ...
'daypilot-calendar' is not a known element
Answered: Both sources - the article (http://code.daypilot.org/63034/angularjs-event-calendar-open-source) and the forum topic (https://forums.daypilot.org/Topic.aspx/3170/directive-not-working) use AngularJS ...
how to reduce amount
Hi sir, This is valueable to codeing .but small doubt . iask to how to reduce in amount .
Change from sqllite to MS SQL
Answered: Yes, you just need to adjust the $db variable initialization in _db.php:
$db = new PDO('sqlite:daypilot.sqlite');
For MySQL you'll need to use something like this:
$host = "127.0.0.1";
$port =...
Inverse the axis
Answered: It's possible but you'd have to use the Calendar control switch to the "Resources" mode instead of the Scheduler. You can see a demo here: https://javascript.daypilot.org/demo/calendar/resources.html
delete and/or view
hi, how do i delete/cancel the event on your program? also, how or where can i access or view it's database? 'coz i can't see it in my localhost. i'm using uwamp server. it would be great if you help...
How to display more than one(current) mont ?
I have a sheduler like on screenshot. Unfortunately it shows only reservations(load from database) from current month. I'm able to display more days (eg dp.days = 365;) but there's no cells(only line...
problem with overlaps in Server.
Answered: The Scheduler supports client-side overlap detection (https://doc.daypilot.org/scheduler/event-overlapping/). This helps with real-time UI feedback but it's also necessary to implement server-side va...
How do you delete an event?
Answered: The Lite edition doesn't support the built-in "delete" icon like the Pro version: https://doc.daypilot.org/calendar/event-deleting/ The best way would probably be to add a "Delete" button to the moda...
Pro License concerned
Answered: The "DEMO" label indicates that you are using the trial version of DayPilot Pro. If you want to use the Pro version you'll need to buy a license. The trial period is limited to 60 days.
HTML5 Tennis Court Reservation for asp.net webforms
I am looking court booking and came across day-pilot Tennis court booking code sample https://code.daypilot.org/11478/html5-tennis-court-reservation-php-javascript Could you please tell me if you sam...
design
Answered: You can customize the appearence by creating a custom CSS theme. You can use the online theme designer to generate a new theme: http://themes.daypilot.org/ The generated CSS file can be also customiz...
Disable Room booking for Past Dates
How can i Disable New reservation pop up opening for Past Dates?
Delete??
Answered: There are several options, please see the following documentation page: https://doc.daypilot.org/scheduler/event-deleting/
Add beds
Answered: At this moment the number of beds is not editable using the sample code. However, it's stored in the database (rooms.capacity field) so it shouldn't be difficult to add an option to edit it.
Edit
Answered: You mus use the EventClickHandling and EventClickJavascript to envoke a ModalDialog, an show the editable data on it. https://doc.daypilot.org/scheduler/event-editing/
SQLite
Answered: Most likely the problem is that the process doesn't have permissions to write to daypilot.sqlite. 1. Trying adding the permissions. 2. Placing the DB file in a publicly accessible location is not a g...