Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
edit_table_row_props.php
1 <?php
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');
30 
31 include(dirname(__FILE__).'/header.php');
32 ?>
33 <script language="JavaScript" type="text/javascript">
34 
35  function popup_init() {
36 
37  var data = owner.bodycopy_current_edit["data"]["attributes"];
38  var f = document.main_form;
39 
40  f.height.value = (data['height'] == null) ? "" : data['height'];
41  f.bgcolor.value = (data['bgcolor'] == null) ? "" : data['bgcolor'];
42  f.dir.value = (data['dir'] == null) ? "" : data['dir'];
43 
44  }// end popup_init()
45 
46  function save_props(f) {
47  var data = new Object();
48  data["height"] = owner.form_element_value(f.height);
49  data["bgcolor"] = owner.form_element_value(f.bgcolor);
50  data["dir"] = owner.form_element_value(f.dir);
51  owner.bodycopy_save_table_row_properties(data);
52  }
53 </script>
54 
55 <div class="title"><?php echo translate('table_row_properties'); ?></div>
56 
57 <form name="main_form">
58 <table width="100%" border="0" class="bodycopy-popup-table">
59  <tr>
60  <td>
61  <fieldset>
62  <legend><?php echo translate('properties'); ?></legend>
63  <table border="0" cellpadding="0" cellspacing="4">
64  <tr>
65  <td class="label"><?php echo translate('height'); ?>:</td>
66  <td><input type="text" name="height" value="" size="5"></td>
67  </tr>
68  <tr>
69  <td class="label"><?php echo translate('background_colour'); ?>:</td>
70  <td><?php colour_box('bgcolor', '', TRUE, '*',TRUE, FALSE, FALSE);?></td>
71  </tr>
72  </table>
73  </fieldset>
74  </td>
75  </tr>
76  <tr>
77  <td>
78  <fieldset>
79  <legend><?php echo translate('text_direction'); ?></legend>
80  <table border="0" cellpadding="0" cellspacing="4">
81  <tr>
82  <td class="label"><?php echo translate('bodycopy_direction'); ?></td>
83  <td>
84  <select name="dir">
85  <option value=""><?php echo translate('content_type_no_change'); ?></option>
86  <option value="ltr"><?php echo translate('bodycopy_left_to_right'); ?></option>
87  <option value="rtl"><?php echo translate('bodycopy_right_to_left'); ?></option>
88  </select>
89  </td>
90  </tr>
91  </table>
92  </fieldset>
93  </td>
94  </tr>
95  <tr>
96  <td>
97  <div style="text-align: right;">
98  <button type="button" name="ok" onClick="javascript: save_props(this.form)"><?php echo translate('ok'); ?></button>
99  &nbsp;
100  <button type="button" name="cancel" onClick="javascript: popup_close();"><?php echo translate('cancel'); ?></button>
101  </div>
102  </td>
103  </tr>
104 </table>
105 </form>
106 <?php include(dirname(__FILE__).'/footer.php'); ?>