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 language=
"JavaScript" type=
"text/javascript">
35 var order_type = null;
37 function popup_init() {
39 order_type = owner.bodycopy_current_edit[
"data"][
"order_type"];
40 var type_order = owner.bodycopy_current_edit[
"data"][order_type +
"_order"];
41 var f = document.main_form;
44 while(f.type_order.options.length) {
45 f.type_order.options[0] = null;
48 for(var i = 0; i < type_order.length; i++) {
49 f.type_order.options[i] =
new Option(type_order[i], i);
54 function popup_save(f) {
56 var type_order =
new Array();
57 for(var i = 0; i < f.type_order.options.length; i++) {
58 type_order[i] = f.type_order.options[i].value;
63 owner.bodycopy_save_table_order(type_order);
67 owner.bodycopy_save_table_row_order(type_order);
71 owner.bodycopy_save_table_col_order(type_order);
75 alert(js_translate(
'order_type_unknown', order_type));
81 function popup_move_type(move_up) {
82 owner.move_combo_selection(document.main_form.type_order, move_up);
86 <table width=
"100%" border=
"0">
87 <form name=
"main_form">
89 <td nowrap
class=
"bodycopy-popup-heading"><?php echo translate(
'reorderer'); ?></td>
96 <table border=
"0" cellspacing=
"3" cellpadding=
"0">
99 <select name=
"type_order" size=
"10">
100 <!-- good old Netscape :) -->
101 <option value=
""> </option>
105 <a href=
"#" onClick=
"javascript: popup_move_type(true); return false;" onMouseOver=
"window.status='Move the Selection Up'; return true;" onMouseOut=
"javascript: window.status=''; return true;"><img src=
"<?php echo sq_web_path('data')?>/asset_types/bodycopy/images/up_arrow.gif" width=
"15" height=
"15" border=
"0"></a><br>
108 <a href=
"#" onClick=
"javascript: popup_move_type(false); return false;" onMouseOver=
"window.status='Move the Selection Down'; return true;" onMouseOut=
"javascript: window.status=''; return true;"><img src=
"<?php echo sq_web_path('data')?>/asset_types/bodycopy/images/down_arrow.gif" width=
"15" height=
"15" border=
"0"></a>
121 <input type=
"button" value=
"Save" onclick=
"javascript: popup_save(this.form)">
122 <input type=
"button" value=
"Cancel" onclick=
"javascript: popup_close();">
127 <?php include(dirname(__FILE__).
'/footer.php'); ?>