parent
b2fddc408c
commit
bf68cd8ba4
@ -0,0 +1,27 @@ |
||||
<?php |
||||
/************************************************* |
||||
* ownCloud - Calendar Plugin * |
||||
* * |
||||
* (c) Copyright 2011 Georg Ehrke * |
||||
* author: Georg Ehrke * |
||||
* email: ownclouddev at georgswebsite dot de * |
||||
* homepage: ownclouddev.georgswebsite.de * |
||||
* manual: ownclouddev.georgswebsite.de/manual * |
||||
* License: GNU AFFERO GENERAL PUBLIC LICENSE * |
||||
* * |
||||
* If you are not able to view the License, * |
||||
* <http://www.gnu.org/licenses/> * |
||||
* <http://ownclouddev.georgswebsite.de/license/> * |
||||
* please write to the Free Software Foundation. * |
||||
* Address: * |
||||
* 59 Temple Place, Suite 330, Boston, * |
||||
* MA 02111-1307 USA * |
||||
*************************************************/ |
||||
require_once('../../../lib/base.php'); |
||||
$l10n = new OC_L10N('calendar'); |
||||
if(!OC_USER::isLoggedIn()) { |
||||
die("<script type=\"text/javascript\">document.location = oc_webroot;</script>"); |
||||
} |
||||
$output = new OC_TEMPLATE("calendar", "part.choosecalendar"); |
||||
$output -> printpage(); |
||||
?> |
||||
@ -0,0 +1,26 @@ |
||||
<div id="choosecalendar_dialog" title="<?php echo $l->t("Choose active calendars"); ?>">
|
||||
<?php |
||||
$option_calendars = OC_Calendar_Calendar::allCalendars(OC_User::getUser()); |
||||
for($i = 0; $i < count($option_calendars); $i++){ |
||||
echo "<input type=\"button\" id=\"button_" . $option_calendars[$i]["id"] . "\" value=\"" . $option_calendars[$i]["displayname"] . "\">"; |
||||
} |
||||
?> |
||||
<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; |
||||
} |
||||
} |
||||
}); |
||||
function highlight_button(id){ |
||||
document.getElementById("button_" + id).style.color = "#000000"; |
||||
} |
||||
</script> |
||||
Loading…
Reference in new issue