<tbody>'; echo ' <tr> <td colspan="' . $thc . '"> ' . lang('no_items_found') . ' </td> </tr>'; echo '</tbody></TABLE>'; } elseif ($allow_order) { $listrows = array(); $i = 0; foreach ($rows as $k => $row) { $i++; $listrows[$row['content_name']] = array('display_text' => $row['content_name'], 'on_list' => true, 'allow_remove' => false, 'allow_drag' => true, 'fixed_position' => $i, 'cols' => $row['text']); } echo '<form action="" method="POST">'; echo formhelpers__orderlist("langitem_list", "langitem_order", $listrows, true, lang('add'), ""); echo '<BR><input class="button" name="save_order" type="submit" value="' . lang('save_order') . '"></form>'; } else { echo '<table class="or_listtable" style="min-width: 30%; max-width: 90%;"><thead>'; echo '<tr style="background: ' . $color['list_header_background'] . '; color: ' . $color['list_header_textcolor'] . ';">'; echo $table_head . '</tr></thead> <tbody>'; $shade = false; foreach ($rows as $k => $row) { echo '<tr class="small"'; if ($shade) { echo ' bgcolor="' . $color['list_shade1'] . '"'; $shade = false; } else { echo ' bgcolor="' . $color['list_shade2'] . '"'; $shade = true;
$result = or_query($query, $pars); $rows = array(); while ($line = pdo_fetch_assoc($result)) { $rows[$line['item_name']] = $line; } if (in_array($list, $result_lists)) { $listrows = options__ordered_lists_get_current($cols, $rows, true); $headers = '<TD></TD><TD align="center">' . str_replace(" ", "<BR>", lang('sort_table_by')) . '</TD>'; } else { $listrows = options__ordered_lists_get_current($cols, $rows, false); $headers = ''; } echo '<center>'; echo '<form action="" method="POST">'; echo '<TABLE class="or_formtable"> <TR><TD> <TABLE width="100%" border=0 class="or_panel_title"><TR> <TD style="background: ' . $color['panel_title_background'] . '; color: ' . $color['panel_title_textcolor'] . '" align="center"> ' . $header . ' </TD> </TR></TABLE> </TD></TR>'; echo '<TR><TD align="center">'; echo formhelpers__orderlist("ordered_list", "item_order", $listrows, false, lang('add'), $headers); echo '<input class="button" style="display: block;" name="save_order" type="submit" value="' . lang('save_order') . '">'; echo '</TD></TR></TABLE>'; echo '</form>'; echo '<BR><BR><BR><A href="options_main.php">' . icon('back') . ' ' . lang('back') . '</A><BR><BR>'; echo '</CENTER>'; } include "footer.php";