18 require_once dirname(__FILE__).
'/../../payment_gateway/payment_gateway_edit_fns.inc';
44 $bodycopy_asset = $asset->getBodycopy(
'display_format');
47 echo
'<div style="padding:1ex;">';
48 echo get_asset_tag_line($bodycopy_asset->id,
'contents');
67 $write_access = $asset->writeAccess(
'menu');
69 $bodycopy = $asset->getBodycopy(
'display_format');
70 $bodycopy_edit_fns = $bodycopy->getEditFns();
73 $bodycopy_edit_fns->paintBodycopy($bodycopy, $o, $bodycopy->getPrefix());
93 if (!$asset->writeAccess(
'menu'))
return FALSE;
95 $bodycopy = $asset->getBodycopy(
'display_format');
96 $bodycopy_edit_fns = $bodycopy->getEditFns();
98 $status = $bodycopy_edit_fns->processBodycopy($bodycopy, $o, $bodycopy->getPrefix());
117 if ($asset->writeAccess(
'attributes')) {
118 password_box($prefix.
'_password',
'', 20);
120 echo
"Password not shown";
140 if (!isset($_POST[$prefix.
'_password'])) {
144 if (!$GLOBALS[
'SQ_SYSTEM']->am->acquireLock($asset->id,
'attributes')) {
151 $val = isset($_POST[$prefix.
'_password']) ? $_POST[$prefix.
'_password'] :
'';
153 if ($val && $asset->setAttrValue(
'password', $val)) {
154 $success = $asset->saveAttributes();