function AddImages() { var tbl = document.getElementById('tblSample'); var lastRow = tbl.rows.length; var iteration = lastRow+1; var row = tbl.insertRow(lastRow); var cellRight = row.insertCell(0); var el = document.createElement('textarea'); el.setAttribute('rows', '4'); el.setAttribute('name', 'xfields_template_' + iteration); el.setAttribute('cols', '100'); el.setAttribute('value', 'xfields-template_' + iteration); cellRight.appendChild(el); document.getElementById('images_number').value = iteration; } function RemoveImages() { var tbl = document.getElementById('tblSample'); var lastRow = tbl.rows.length; if (lastRow > 1){ tbl.deleteRow(lastRow - 1); document.getElementById('images_number').value = document.getElementById('images_number').value - 1; } } "; echo" "; echo ' [Image] [Image] [Image] [Image] '; if (trim ($str) != '') { tableheader ($str); } } function closetable () { echo ' [Image] [Image] [Image] [Image] '; } function tableheader ($value,$descr = '') { echo ' '.$value .' '.$descr .' '; unterline (); } function tablehead ($value) { echo ' '.$value .' '; } function unterline () { echo ' '; } function tabs_header ($tab_id,$header = array ()) { $buffer = ''; $i = 0; foreach ($header as $item) { ++$i; if (count ($header) != $i) { $buffer .= '\''.$item .'\', '; continue; } else { $buffer .= '\''.$item .'\''; continue; } } echo ' '; } function showRo($title="",$description="",$field="") { echo" $title $description $field "; $bg = ""; } function showRow($title="",$description="",$field="") { echo" $title $description $field "; $bg = ""; } function showR($title="",$hel="",$description="",$field="") { echo" $title$hel $description $field "; $bg = ""; } function makeDropDown($options,$name,$selected) { $output = ""]