steffen: server/kolab-horde-fbview/kolab-horde-fbview/fbview/kronolith/templates/prefs remote_cal_management.inc, NONE, 1.1 shareselect.inc, NONE, 1.1
cvs at intevation.de
cvs at intevation.de
Mon Oct 31 12:43:25 CET 2005
Author: steffen
Update of /kolabrepository/server/kolab-horde-fbview/kolab-horde-fbview/fbview/kronolith/templates/prefs
In directory doto:/tmp/cvs-serv18388/kolab-horde-fbview/kolab-horde-fbview/fbview/kronolith/templates/prefs
Added Files:
remote_cal_management.inc shareselect.inc
Log Message:
Fbview in separate package
--- NEW FILE: remote_cal_management.inc ---
<input type="hidden" name="remote_action" value="add">
<script language="JavaScript" type="text/javascript">
<!--
function deleteCal(id)
{
document.prefs.remote_action.value = 'delete';
document.prefs.remote_url.value = id;
document.prefs.submit();
}
-->
</script>
<table border="0" cellpadding="1" cellspacing="2">
<tr>
<td> </td>
<td><b><?php echo _("Name") ?></b></td>
<td><b><?php echo _("Location") ?></b></td>
</tr>
<?php $cals = unserialize($prefs->getValue('remote_cals')); foreach ($cals as $key => $cal): ?>
<tr>
<td class="text"><a onclick="deleteCal('<?php echo $cal['url'] ?>'); return false;"><?php echo Horde::img('delete.gif', _("Delete"), '', $registry->getParam('graphics', 'horde')) ?></a></td>
<td class="text"><?php echo $cal['name'] ?></td>
<td class="text"><?php echo $cal['url'] ?></td>
</tr>
<?php endforeach; ?>
<tr>
<td> </td>
</tr>
<tr>
<td colspan="3">
<b><?php echo _("Add a new Remote Calendar") ?></b>
</td>
</tr>
<tr>
<td colspan="3">
<table border="0" cellpadding="1" cellspacing="1">
<tr>
<td align="right">
<b><?php echo _("Name") ?></b>
</td>
<td>
<input type="text" name="remote_name" value="">
</td>
</tr>
<tr>
<td align="right">
<b><?php echo _("Location") ?></b>
</td>
<td>
<input size="50" type="text" name="remote_url" value="">
</td>
</tr>
</table>
</td>
</tr>
</table>
--- NEW FILE: shareselect.inc ---
<?php
if (!$prefs->isLocked('default_share')):
$sharelist = Kronolith::listCalendars();
if (($default_share = $prefs->getValue('default_share')) == null ||
!isset($sharelist[$default_share])) {
$default_share = Auth::getAuth();
}
?>
<b><?php echo _("Your default calendar") ?></b>
<select name="default_share">
<?php foreach ($sharelist as $id => $share): ?>
<option value="<?php echo $id ?>"<?php if ($id == $default_share) echo ' selected="selected"' ?>><?php echo $share->get('name') ?></option>
<?php endforeach; ?>
</select>
<?php endif; ?>
More information about the commits
mailing list