27 header(
'Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
28 header(
'Pragma: no-cache');
29 header(
'Expires: '.gmdate(
'D, d M Y H:i:s', time()-3600).
' GMT');
31 include(dirname(__FILE__).
'/header.php');
33 <script type=
"text/javascript" language=
"javascript" src=
"<?php echo sq_web_path('lib')?>/js/general.js"></script>
34 <script type=
"text/javascript" src=
"<?php echo sq_web_path('fudge').'/var_serialise/var_serialise.js'?>" ></script>
35 <script language=
"JavaScript" type=
"text/javascript">
37 function popup_init() {
38 var f = document.main_form;
41 function popup_save(f) {
42 var data =
new Object();
43 data[
"identifier"] = owner.form_element_value(f.identifier);
44 data[
"layout_type"] = owner.form_element_value(f.layout_type);
45 data[
"css_class"] = owner.form_element_value(f.css_class);
46 data[
"content_type"] = owner.form_element_value(f.content_type);
47 owner.bodycopy_save_insert_div(data);
52 require_once SQ_CORE_PACKAGE_PATH.
'/content_type/content_type.inc';
54 $default_content_type = $GLOBALS[
'SQ_SYSTEM']->getUserPrefs(
'bodycopy_container',
'SQ_DEFAULT_CONTENT_TYPE');
55 $default_pres_type = $GLOBALS[
'SQ_SYSTEM']->getUserPrefs(
'bodycopy_container',
'SQ_DEFAULT_PRESENTATION_TYPE');
56 $possible_types = Array(
57 'div' => translate(
'block-level'),
58 'span' => translate(
'inline'),
59 'none' => translate(
'raw_html'),
62 <div
class=
"title" style=
"text-align: right;"><?php echo translate(
'insert_div'); ?></div>
63 <form name=
"main_form">
64 <input type=
"hidden" name=
"bodycopy_name" value=
"">
65 <input type=
"hidden" name=
"divid" value=
"">
66 <table width=
"100%" border=
"0">
70 <legend><b><?php echo translate(
'identification'); ?></b></legend>
71 <table style=
"width:100%">
73 <td
class=
"label"><?php echo translate(
'name'); ?>:</td>
74 <td><input type=
"text" name=
"identifier" value=
"" size=
"15"></td>
79 <legend><b><?php echo translate(
'style_information'); ?></b></legend>
80 <table style=
"width:100%">
82 <td
class=
"bodycopy-popup-heading"><?php echo translate(
'presentation'); ?>:</td>
84 <?php combo_box(
'layout_type', $possible_types, FALSE, $default_pres_type); ?>
88 <td
class=
"label"><?php echo translate(
'class'); ?>:</td>
89 <td><input type=
"text" name=
"css_class" value=
"" size=
"15"></td>
94 <legend><b><?php echo translate(
'content_type'); ?></b></legend>
95 <table style=
"width:100%">
97 <td
class=
"bodycopy-popup-heading"><?php echo translate(
'content_type'); ?>:</td>
99 <select name=
"content_type" id=
"content_type">
101 foreach ($content_types as $type_code => $data) {
103 if ($type_code == $default_content_type) {
104 $selected_text =
'SELECTED';
107 <option value=
"<?php echo $type_code; ?>" <?php echo $selected_text; ?>><?php echo str_replace(
' Content Type',
'', $data[
'name']); ?></option>
119 <div style=
"text-align: right;">
120 <button type=
"button" name=
"ok" onClick=
"javascript: popup_save(this.form)"><?php echo translate(
'ok'); ?></button>
122 <button type=
"button" name=
"cancel" onClick=
"javascript: popup_close();"><?php echo translate(
'cancel'); ?></button>
129 <?php include(dirname(__FILE__).
'/footer.php'); ?>