24 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
54 $parent_tr =& $td->parent_node();
55 $new_tr = $parent_tr->clone_node(
true);
58 if ($new_tr->has_attribute(
"PCID"))
60 $new_tr->remove_attribute(
"PCID");
62 if ($next_tr =& $parent_tr->next_sibling())
64 $new_tr =& $next_tr->insert_before($new_tr, $next_tr);
68 $parent_table =& $parent_tr->parent_node();
69 $new_tr =& $parent_table->append_child($new_tr);
83 $parent_tr =& $td->parent_node();
84 $new_tr = $parent_tr->clone_node(
true);
85 $new_tr =& $parent_tr->insert_before($new_tr, $parent_tr);
86 if ($new_tr->has_attribute(
"PCID"))
88 $new_tr->remove_attribute(
"PCID");
104 $tds =& $a_row_node->child_nodes();
105 for($i=0; $i<count($tds); $i++)
107 if ($tds[$i]->has_attribute(
"PCID"))
109 $tds[$i]->remove_attribute(
"PCID");
111 $td_childs =& $tds[$i]->child_nodes();
112 for($j=0; $j<count($td_childs); $j++)
114 $tds[$i]->remove_child($td_childs[$j]);
126 $td_childs =& $a_td_node->child_nodes();
127 for($j=0; $j<count($td_childs); $j++)
129 $a_td_node->remove_child($td_childs[$j]);
140 $parent_tr =& $td->parent_node();
141 $parent_tr->unlink($parent_tr);
155 $col_nr = array_pop($parts);
158 $parent_tr =& $td->parent_node();
159 $parent_table =& $parent_tr->parent_node();
162 $rows =& $parent_table->child_nodes();
163 for($i=0; $i<count($rows); $i++)
165 if($rows[$i]->node_name() ==
"TableRow")
168 $tds =& $rows[$i]->child_nodes();
169 $new_td =& $tds[$col_nr]->clone_node(
true);
171 if ($new_td->has_attribute(
"PCID"))
173 $new_td->remove_attribute(
"PCID");
177 if ($next_td =& $tds[$col_nr]->next_sibling())
179 $new_td =& $next_td->insert_before($new_td, $next_td);
183 $new_td =& $rows[$i]->append_child($new_td);
200 $col_nr = array_pop($parts);
203 $parent_tr =& $td->parent_node();
204 $parent_table =& $parent_tr->parent_node();
207 $rows =& $parent_table->child_nodes();
208 for($i=0; $i<count($rows); $i++)
210 if($rows[$i]->node_name() ==
"TableRow")
213 $tds =& $rows[$i]->child_nodes();
214 $new_td =& $tds[$col_nr]->clone_node(
true);
216 if ($new_td->has_attribute(
"PCID"))
218 $new_td->remove_attribute(
"PCID");
222 $new_td =& $tds[$col_nr]->insert_before($new_td, $tds[$col_nr]);
238 $col_nr = array_pop($parts);
241 $parent_tr =& $td->parent_node();
242 $parent_table =& $parent_tr->parent_node();
245 $rows =& $parent_table->child_nodes();
246 for($i=0; $i<count($rows); $i++)
248 if($rows[$i]->node_name() ==
"TableRow")
251 $tds =& $rows[$i]->child_nodes();
252 $tds[$col_nr]->unlink($tds[$col_nr]);
263 $tr =& $td->parent_node();
264 $next =& $tr->next_sibling();
265 $next_copy = $next->clone_node(
true);
266 $next_copy =& $tr->insert_before($next_copy, $tr);
267 $next->unlink($next);
276 $tr =& $td->parent_node();
277 $prev =& $tr->previous_sibling();
278 $tr_copy = $tr->clone_node(
true);
279 $tr_copy =& $prev->insert_before($tr_copy, $prev);
293 $col_nr = array_pop($parts);
296 $parent_tr =& $td->parent_node();
297 $parent_table =& $parent_tr->parent_node();
300 $rows =& $parent_table->child_nodes();
301 for($i=0; $i<count($rows); $i++)
303 if($rows[$i]->node_name() ==
"TableRow")
305 $tds =& $rows[$i]->child_nodes();
306 $td =& $tds[$col_nr];
308 $next =& $td->next_sibling();
309 $next_copy = $next->clone_node(
true);
310 $next_copy =& $td->insert_before($next_copy, $td);
311 $next->unlink($next);
326 $col_nr = array_pop($parts);
329 $parent_tr =& $td->parent_node();
330 $parent_table =& $parent_tr->parent_node();
333 $rows =& $parent_table->child_nodes();
334 for($i=0; $i<count($rows); $i++)
336 if($rows[$i]->node_name() ==
"TableRow")
338 $tds =& $rows[$i]->child_nodes();
339 $td =& $tds[$col_nr];
340 $prev =& $td->previous_sibling();
341 $td_copy = $td->clone_node(
true);
342 $td_copy =& $prev->insert_before($td_copy, $prev);