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() {
37 var f = document.main_form;
40 function popup_save(f) {
41 var data =
new Object();
42 data[
"width"] = owner.form_element_value(f.width);
43 data[
"bgcolor"] = owner.form_element_value(f.bgcolor);
44 owner.bodycopy_save_insert_table(owner.form_element_value(f.cols), owner.form_element_value(f.rows), data);
47 function set_pos_int(field, input_default) {
49 var num = parseInt(owner.form_element_value(field));
50 if (isNaN(num) || num < 0) {
51 alert(js_translate(
'enter_positive_number'));
52 field.value = input_default;
61 <div
class=
"title" style=
"text-align: right;"><?php echo translate(
'bodycopy_insert_table'); ?></div>
63 <form name=
"main_form">
64 <input type=
"hidden" name=
"bodycopy_name" value=
"">
65 <input type=
"hidden" name=
"tableid" value=
"">
66 <table width=
"100%" border=
"0">
69 <table width=
"100%" cellspacing=
"0" cellpadding=
"0">
71 <td valign=
"top" width=
"50%">
73 <legend><b><?php echo translate(
'layout'); ?></b></legend>
74 <table style=
"width:100%">
76 <td
class=
"label"><?php echo translate(
'columns'); ?>:</td>
77 <td><input type=
"text" name=
"cols" value=
"1" size=
"3" onChange=
"javascript: set_pos_int(this, 1);"></td>
80 <td
class=
"label"><?php echo translate(
'rows'); ?>:</td>
81 <td><input type=
"text" name=
"rows" value=
"1" size=
"3" onChange=
"javascript: set_pos_int(this, 1);"></td>
84 <td
class=
"label"><?php echo translate(
'width'); ?>:</td>
85 <td><input type=
"text" name=
"width" value=
"" size=
"5"></td>
97 <legend><b><?php echo translate(
'table_styles-colours'); ?></b></legend>
100 <td
class=
"label"><?php echo translate(
'background_colour'); ?>:</td>
101 <td><?php colour_box(
'bgcolor',
'', TRUE,
'*',TRUE, FALSE, FALSE);?></td>
109 <div style=
"text-align: right;">
110 <button type=
"button" name=
"ok" onClick=
"javascript: popup_save(this.form)"><?php echo translate(
'ok'); ?></button>
112 <button type=
"button" name=
"cancel" onClick=
"javascript: popup_close();"><?php echo translate(
'cancel'); ?></button>
119 <?php include(dirname(__FILE__).
'/footer.php'); ?>