Exemplo n.º 1
0
		var f = document.main_form;
	}// end popup_init()

	function popup_save(f) {
		var data = new Object();
		data["identifier"]  = owner.form_element_value(f.identifier);
		data["layout_type"] = owner.form_element_value(f.layout_type);
		data["css_class"]   = owner.form_element_value(f.css_class);
		data["content_type"] = owner.form_element_value(f.content_type);
		owner.bodycopy_save_insert_div(data);
	}

</script>
<?php 
require_once SQ_CORE_PACKAGE_PATH . '/content_type/content_type.inc';
$content_types = Content_Type::getAvailableContentTypes();
$default_content_type = $GLOBALS['SQ_SYSTEM']->getUserPrefs('bodycopy_container', 'SQ_DEFAULT_CONTENT_TYPE');
$default_pres_type = $GLOBALS['SQ_SYSTEM']->getUserPrefs('bodycopy_container', 'SQ_DEFAULT_PRESENTATION_TYPE');
$possible_types = array('div' => translate('Block (div)'), 'span' => translate('Inline (span)'), 'none' => translate('Raw (no formatting)'));
?>
<h1 class="title">
	<a href="#" onclick="javascript: popup_close(); return false;">
		<img src="<?php 
echo sq_web_path('lib');
?>
/web/images/icons/cancel.png" alt="Cancel" title="<?php 
echo translate('Cancel');
?>
" class="sq-icon">
	</a>
	<?php