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 language=
"JavaScript" type=
"text/javascript">
36 function popup_init() {
38 var data = owner.bodycopy_current_edit[
"data"][
"attributes"];
39 var f = document.main_form;
41 f.width.value = (data[
'width'] == null) ?
"" : data[
'width'];
42 f.height.value = (data[
'height'] == null) ?
"" : data[
'height'];
43 f.bgcolor.value = (data[
'bgcolor'] == null) ?
"" : data[
'bgcolor'];
45 f.identifier.value = (data[
'identifier'] == null) ?
"" : data[
'identifier'];
46 f.desc.value = (data[
'desc'] == null) ?
"" : data[
'desc'];
47 owner.highlight_combo_value(f.align, data[
'align']);
48 owner.highlight_combo_value(f.border, data[
'border']);
49 owner.highlight_combo_value(f.cellspacing, data[
'cellspacing']);
50 owner.highlight_combo_value(f.cellpadding, data[
'cellpadding']);
52 f.tableid.value = owner.bodycopy_current_edit[
"data"][
"tableid"];
53 f.bodycopy_name.value = owner.bodycopy_current_edit[
"bodycopy_name"];
55 f.disable_keywords.checked = (data[
"disable_keywords"] ==
"1");
56 f.dir.value = (data[
'dir'] == null) ?
"" : data[
'dir'];
60 function popup_save(f) {
61 var data =
new Object();
62 data[
"identifier"] = owner.form_element_value(f.identifier);
63 data[
"desc"] = owner.form_element_value(f.desc);
64 data[
"width"] = owner.form_element_value(f.width);
65 data[
"height"] = owner.form_element_value(f.height);
66 data[
"bgcolor"] = owner.form_element_value(f.bgcolor);
68 data[
"background"] =
'';
69 data[
"align"] = owner.form_element_value(f.align);
70 data[
"border"] = owner.form_element_value(f.border);
71 data[
"cellspacing"] = owner.form_element_value(f.cellspacing);
72 data[
"cellpadding"] = owner.form_element_value(f.cellpadding);
73 data[
"disable_keywords"] = owner.form_element_value(f.disable_keywords);
74 data[
"dir"] = owner.form_element_value(f.dir);
75 owner.bodycopy_save_table_properties(data);
83 <script language=
"JavaScript">
84 if (owner.bodycopy_current_edit[
"can_delete"] ==
false) { document.getElementById(
'sq_edit_div_props_delete').innerHTML =
' '; }
87 <form name=
"main_form">
88 <input type=
"hidden" name=
"bodycopy_name" value=
"">
89 <input type=
"hidden" name=
"tableid" value=
"">
90 <table width=
"100%" border=
"0">
94 <legend><b><?php echo translate(
'identification'); ?></b></legend>
95 <table style=
"width:100%">
97 <td
class=
"label"><?php echo translate(
'name'); ?>:</td>
98 <td><input type=
"text" name=
"identifier" value=
"" size=
"20"></td>
101 <td
class=
"label"><?php echo translate(
'description'); ?>:</td>
102 <td><textarea name=
"desc" rows=
"3" size=
"20" value=
""></textarea></td>
110 <table width=
"90%" cellspacing=
"0" cellpadding=
"0">
112 <td valign=
"top" width=
"45%">
114 <legend><b><?php echo translate(
'layout'); ?></b></legend>
115 <table style=
"width:100%">
117 <td
class=
"label"><?php echo translate(
'width'); ?>:</td>
118 <td><input type=
"text" name=
"width" value=
"" size=
"5"></td>
121 <td
class=
"label"><?php echo translate(
'height'); ?>:</td>
122 <td><input type=
"text" name=
"height" value=
"" size=
"5"></td>
125 <td
class=
"label"><?php echo translate(
'alignment'); ?>:</td>
127 <select name=
"align">
129 <option value=
"left" ><?php echo translate(
'left'); ?>
130 <option value=
"center"><?php echo translate(
'centre'); ?>
131 <option value=
"right" ><?php echo translate(
'right'); ?>
139 <td valign=
"top" width=
"45%">
141 <legend><b><?php echo translate(
'spacing_and_padding'); ?></b></legend>
142 <table style=
"width:100%">
144 <td
class=
"label"><?php echo translate(
'spacing'); ?>:</td>
146 <select name=
"cellspacing">
158 <option value=
"10">10
163 <td
class=
"label"><?php echo translate(
'padding'); ?>:</td>
165 <select name=
"cellpadding">
177 <option value=
"10">10
191 <legend><b><?php echo translate(
'text_direction'); ?></b></legend>
192 <table style=
"width:100%">
194 <td
class=
"bodycopy-popup-heading"><?php echo translate(
'bodycopy_direction'); ?></td>
197 <option value=
""><?php echo translate(
'content_type_no_change'); ?></option>
198 <option value=
"ltr"><?php echo translate(
'bodycopy_left_to_right'); ?></option>
199 <option value=
"rtl"><?php echo translate(
'bodycopy_right_to_left'); ?></option>
210 <legend><b><?php echo translate(
'table_styles-colours'); ?></b></legend>
213 <td
class=
"label"><?php echo translate(
'background_colour'); ?>:</td>
214 <td><?php colour_box(
'bgcolor',
'', TRUE,
'*',TRUE, FALSE, FALSE);?></td>
217 <td
class=
"label">Background
Image:</td>
218 <td><input type=
"text" name=
"background" value=
"" size=
"5"></td>
221 <td
class=
"label" valign=
"top"><?php echo translate(
'border'); ?>:</td>
223 <select name=
"border">
235 <option value=
"10">10
246 <legend><b><?php echo translate(
'keywords'); ?></b></legend>
249 <td
class=
"label"><?php echo translate(
'disable_keywords'); ?>:</td>
250 <td><input type=
"checkbox" name=
"disable_keywords" value=
"1"></td>
259 <legend><b><?php echo translate(
'delete_this_table'); ?></b></legend>
262 <td
class=
"label"><?php echo translate(
'click_to_delete'); ?>:</td>
264 <a href=
"javascript: owner.bodycopy_delete_table(document.main_form.bodycopy_name.value, document.main_form.tableid.value);" style=
"cursor: pointer;"><script language=
"JavaScript" type=
"text/javascript">sq_print_icon(
"<?php echo sq_web_path('data')?>/asset_types/bodycopy/images/icons/delete.png",
"16",
"16",
"Delete this table");</script></a>
273 <div style=
"text-align: center;">
274 <button type=
"button" name=
"ok" onClick=
"javascript: popup_save(this.form)"><?php echo translate(
'ok'); ?></button>
276 <button type=
"button" name=
"cancel" onClick=
"javascript: popup_close();"><?php echo translate(
'cancel'); ?></button>
283 <?php include(dirname(__FILE__).
'/footer.php'); ?>