18 require_once SQ_CORE_PACKAGE_PATH.
'/page/page_edit_fns.inc';
42 parent::__construct();
59 if ($asset->writeAccess(
'attributes')) {
60 asset_finder($prefix.
'_lm_root_node', $asset->attr(
'root_node'));
62 $root_info = $GLOBALS[
'SQ_SYSTEM']->am->getAssetInfo(Array($asset->attr(
'root_node')));
63 if (!empty($root_info)) {
64 echo get_asset_tag_line($asset->attr(
'root_node'));
66 echo translate(
'cms_no_root_selected');
86 if (!$asset->writeAccess(
'attributes'))
return FALSE;
88 $root_node = $_REQUEST[$prefix.
'_lm_root_node'][
'assetid'];
89 $asset->setAttrValue(
'root_node', $root_node);
106 require_once SQ_INCLUDE_PATH.
'/general_occasional.inc';
107 $write_access = $asset->writeAccess(
'links');
109 $current = $asset->attr(
'statuses');
112 require_once SQ_LIB_PATH.
'/html_form/html_form.inc';
113 $statuses = get_constant_values(
'SQ_STATUS');
116 foreach ($statuses as $constant => $value) {
117 $options[$value] = get_status_description($value);
120 combo_box($prefix.
'_statuses', $options, TRUE, $current);
122 if (empty($current)) {
123 echo translate(
'no_status_selected');
126 foreach ($current as $status) {
127 echo
'<li>'.get_status_description($status).
'</li>';
133 return $write_access;
151 if (!$asset->writeAccess(
'attributes'))
return FALSE;
154 if (isset($_POST[$prefix.
'_statuses'])) {
155 foreach ($_POST[$prefix.
'_statuses'] as $status) {
156 $statuses[] = $status;
158 $statuses = array_unique($statuses);
161 return $asset->setAttrValue(
'statuses', $statuses);