|
@@ 224-237 (lines=14) @@
|
| 221 |
|
return false; |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
public function display() |
| 225 |
|
{ |
| 226 |
|
global $babBody; |
| 227 |
|
$addon = bab_getAddonInfosInstance('LibCaldav'); |
| 228 |
|
|
| 229 |
|
$babBody->setTitle(caldav_translate('Availables servers for users configuration')); |
| 230 |
|
$babBody->babEcho(bab_printTemplate($this, $addon->getTemplatePath() . 'configuration.html', 'servers')); |
| 231 |
|
|
| 232 |
|
$babBody->addItemMenu('configuration', caldav_translate('Configuration'), $addon->getUrl().'configuration'); |
| 233 |
|
$babBody->addItemMenu('servers', caldav_translate('Servers'), $addon->getUrl().'configuration&idx=servers'); |
| 234 |
|
$babBody->addItemMenu('resources', caldav_translate('Resources'), $addon->getUrl().'configuration&idx=resources'); |
| 235 |
|
|
| 236 |
|
$babBody->setCurrentItemMenu('servers'); |
| 237 |
|
} |
| 238 |
|
} |
| 239 |
|
|
| 240 |
|
|
|
@@ 295-308 (lines=14) @@
|
| 292 |
|
return false; |
| 293 |
|
} |
| 294 |
|
|
| 295 |
|
public function display() |
| 296 |
|
{ |
| 297 |
|
global $babBody; |
| 298 |
|
$addon = bab_getAddonInfosInstance('LibCaldav'); |
| 299 |
|
|
| 300 |
|
$babBody->setTitle(caldav_translate('Resources list')); |
| 301 |
|
$babBody->babEcho(bab_printTemplate($this, $addon->getTemplatePath() . 'configuration.html', 'resources')); |
| 302 |
|
|
| 303 |
|
$babBody->addItemMenu('configuration', caldav_translate('Configuration'), $addon->getUrl().'configuration'); |
| 304 |
|
$babBody->addItemMenu('servers', caldav_translate('Servers'), $addon->getUrl().'configuration&idx=servers'); |
| 305 |
|
$babBody->addItemMenu('resources', caldav_translate('Resources'), $addon->getUrl().'configuration&idx=resources'); |
| 306 |
|
|
| 307 |
|
$babBody->setCurrentItemMenu('resources'); |
| 308 |
|
} |
| 309 |
|
} |
| 310 |
|
|
| 311 |
|
|