2011-09-15 00:26:01 +04:00
|
|
|
<div id="editevent" title="<?php echo $l->t("Edit an event");?>">
|
2011-09-15 23:20:42 +04:00
|
|
|
<form id="event_form">
|
|
|
|
<input type="hidden" name="id" value="<?php echo $_['id'] ?>">
|
2011-09-15 00:26:01 +04:00
|
|
|
<?php echo $this->inc("part.eventform"); ?>
|
2011-09-15 23:20:42 +04:00
|
|
|
<div style="width: 100%;text-align: center;color: #FF1D1D;" id="errorbox"></div>
|
|
|
|
<span id="actions">
|
|
|
|
<input type="button" class="submit" style="float: left;" value="<?php echo $l->t("Submit");?>" onclick="validate_event_form('ajax/editevent.php');">
|
2011-08-19 22:33:48 +04:00
|
|
|
</span>
|
2011-09-15 23:20:42 +04:00
|
|
|
</form>
|
2011-08-19 22:33:48 +04:00
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$( "#editevent" ).dialog({
|
|
|
|
width : 500,
|
|
|
|
close : function() {
|
|
|
|
oc_cal_opendialog = 0;
|
|
|
|
var lastchild = document.getElementById("body-user").lastChild
|
|
|
|
while(lastchild.id != "lightbox"){
|
|
|
|
document.getElementById("body-user").removeChild(lastchild);
|
|
|
|
lastchild = document.getElementById("body-user").lastChild;
|
|
|
|
}
|
2011-09-15 23:20:42 +04:00
|
|
|
}
|
2011-08-19 22:33:48 +04:00
|
|
|
});
|
|
|
|
$( "#from" ).datepicker({
|
|
|
|
dateFormat : 'dd-mm-yy'
|
|
|
|
});
|
|
|
|
$( "#to" ).datepicker({
|
|
|
|
dateFormat : 'dd-mm-yy'
|
|
|
|
});
|
|
|
|
function lock_time() {
|
|
|
|
if(document.getElementById("totime").disabled == true) {
|
|
|
|
document.getElementById("fromtime").disabled = false;
|
|
|
|
document.getElementById("totime").disabled = false;
|
2011-09-15 23:20:42 +04:00
|
|
|
$("#fromtime").css('color', "#333");
|
|
|
|
$("#totime").css('color', "#333");
|
2011-08-19 22:33:48 +04:00
|
|
|
} else {
|
|
|
|
document.getElementById("fromtime").disabled = true;
|
|
|
|
document.getElementById("totime").disabled = true;
|
2011-09-15 23:20:42 +04:00
|
|
|
$("#fromtime").css('color', "#A9A9A9");
|
|
|
|
$("#totime").css('color', "#A9A9A9");
|
2011-08-19 22:33:48 +04:00
|
|
|
}
|
|
|
|
}
|
2011-08-20 01:15:27 +04:00
|
|
|
</script>
|