2011-08-23 20:02:36 +04:00
|
|
|
<div id="choosecalendar_dialog" title="<?php echo $l->t("Choose active calendars"); ?>">
|
2011-08-28 22:13:40 +04:00
|
|
|
<table width="100%" style="border: 0;">
|
2011-08-23 20:02:36 +04:00
|
|
|
<?php
|
|
|
|
$option_calendars = OC_Calendar_Calendar::allCalendars(OC_User::getUser());
|
|
|
|
for($i = 0; $i < count($option_calendars); $i++){
|
2011-08-28 22:13:40 +04:00
|
|
|
echo "<tr>";
|
|
|
|
echo "<td width=\"20px\"><input id=\"checkbox_" . $option_calendars[$i]["id"] . "\" type=\"checkbox\"></td>";
|
|
|
|
echo "<td><label for=\"checkbox_" . $option_calendars[$i]["id"] . "\">" . $option_calendars[$i]["displayname"] . "</label></td>";
|
|
|
|
echo "<td width=\"20px\"><a style=\"display: block; opacity: 0.214133;\" href=\"#\" title=\"" . $l->t("Download") . "\" class=\"action\"><img src=\"/owncloud/core/img/actions/download.svg\"></a></td><td width=\"20px\"><a style=\"display: block; opacity: 0.214133;\" href=\"#\" title=\"" . $l->t("Rename") . "\" class=\"action\"><img src=\"/owncloud/core/img/actions/rename.svg\"></a></td>";
|
|
|
|
echo "</tr>";
|
2011-08-23 20:02:36 +04:00
|
|
|
}
|
|
|
|
?>
|
2011-08-28 22:13:40 +04:00
|
|
|
</table>
|
2011-08-23 20:02:36 +04:00
|
|
|
<br /><br /><br />
|
|
|
|
<input style="float: left;" type="button" onclick="oc_cal_choosecalendar_submit();" value="<?php echo $l->t("Submit"); ?>">
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$( "#choosecalendar_dialog" ).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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|