Esempio n. 1
0
<?php

if (!defined('W2P_BASE_DIR')) {
    die('You should not access this file directly.');
}
// check permissions
$perms = $AppUI->acl();
if (!canEdit('system')) {
    $AppUI->redirect(ACCESS_DENIED);
}
$titleBlock = new w2p_Theme_TitleBlock('Custom field editor', 'customfields.png', $m);
$titleBlock->addCrumb('?m=system', 'system admin');
$titleBlock->show();
$manager = new w2p_Core_CustomFieldManager($AppUI);
$modules = $manager->getModuleList();
?>
<script language="javascript" type="text/javascript">
function delIt(field_id) {
	if (confirm( '<?php 
echo $AppUI->_('doDelete', UI_OUTPUT_JS) . ' ' . $AppUI->_('Custom Field', UI_OUTPUT_JS) . '?';
?>
' )) {
        document.frmDelete.field_id.value = field_id;
		document.frmDelete.submit();
	}
}
</script>
<form name="frmDelete" action="./index.php?m=system&u=customfields" method="post" accept-charset="utf-8">
	<input type="hidden" name="dosql" value="do_customfield_aed" />
	<input type="hidden" name="del" value="1" />
	<input type="hidden" name="field_id" value="<?php