18 require_once SQ_CORE_PACKAGE_PATH.
'/page/page_edit_fns.inc';
19 require_once SQ_PACKAGES_PATH.
'/calendar/page_templates/page_calendar_rolling/page_calendar_rolling_edit_fns.inc';
44 parent::__construct();
59 if ($asset->writeAccess(
'attributes')) {
60 multiple_asset_finder($prefix.
'_event_sources', array_keys($asset->attr(
'root_nodes')));
63 $infos = $GLOBALS[
'SQ_SYSTEM']->am->getAssetInfo(array_keys($asset->attr(
'root_nodes')),
'', TRUE,
'name');
64 ?><ul style=
"margin: 1px 15px;"><?php
65 foreach ($infos as $id => $name) {
66 echo
'<li>'.get_asset_tag_line($id).
'</li>';
87 if (isset($_POST[$prefix.
'_event_sources'])) {
88 $root_nodes = Array();
89 foreach ($_POST[$prefix.
'_event_sources'] as $source) {
90 if (!empty($source[
'assetid'])) {
91 $root_nodes[$source[
'assetid']] = 1;
94 return $asset->setAttrValue(
'root_nodes', $root_nodes);