<iframe width="700px" height="400px" src="/calendar/index.php?id_item=2"></iframe>
$_GET["id_item"]=2;
chris wrote:Hi,
To define a calendar to show you simply need to pass the "id_item" to the calendar script.
If you are using an iframe you just append this to the url something like this:
- Code: Select all
<iframe width="700px" height="400px" src="/calendar/index.php?id_item=2"></iframe>
If you are using the php implentation you need to define it before you include the cal.inc.php file like this:
- Code: Select all
$_GET["id_item"]=2;
Chris
<?php
$listingID = $_GET["listingID"]; // needed to pass variable until htaccess is updated
echo "<iframe width=\"510\" height=\"825\" src=\"calendar/?id_item=$listingID\" frameborder=\"0\" scrolling=\"no\"></iframe>";
?>
// load calendar for month and year
function load_calendar(el,month,year){
var req = new Request({
async:false, // freeze browser whilst getting data - this way the elements are ready to be "clicked" :)
method: 'get',
url: url_ajax_cal,
data: {'id_item':id_item,'id_ref_external':id_ref_external, 'month':month,'year':year,'lang':lang}, // changed id_user to id_ref_external
Users browsing this forum: No registered users and 2 guests