} else { $table .= '<tr class="color_list2 highlight ' . $additional_class . '">'; } $table .= '<td>' . $ICON_datatype . '</td>'; $table .= '<td>' . $pre . '<a href="detail_admin_items.php?type=attr&class=' . $class . '&id=' . $entry["id_attr"] . '">' . $entry["attr_name"] . '</a>' . $fin . '</td>'; $table .= '<td>' . $pre . $entry["friendly_name"] . $fin . '</td>'; $table .= '<td>' . $pre . $entry["datatype"] . $fin . '</td>'; $table .= '<td align="center"><div align=center>' . $ICON_mandatory . '</div></td>'; // Ordering is good for debbuging //$table .= '<td>'.$pre.$entry["ordering"].$fin.'</td>'; $table .= '<td class="center">' . $pre; $table .= '<a href="show_attr.php?class=' . $class . '&id=' . $entry["id_attr"] . '&do=up">' . ICON_UP_BOX_BLUE . '</a>'; $table .= ' '; $table .= '<a href="show_attr.php?class=' . $class . '&id=' . $entry["id_attr"] . '&do=down">' . ICON_DOWN_BOX_BLUE . '</a>'; $table .= $fin . '</td>'; $table .= '</td>'; $table .= '<td align="center"><div align=center>' . $naming_attr_cell . '</div></td>'; $table .= '<td style="text-align:center"><a href="modify_attr.php?id=' . $entry["id_attr"] . '">' . ICON_EDIT . '</a></td>'; $table .= '<td style="text-align:center"><a href="delete_attr.php?id=' . $entry["id_attr"] . '">' . ICON_DELETE . '</a></td>'; $table .= "</tr>\n"; $count++; } // Warn if there is no naming attribute if ($naming_attr_count == 0) { message($info, TXT_NAMING_ATTR_MISSED); } } $table .= '</tbody>'; echo NConf_HTML::ui_table($table, 'ui-nconf-max-width'); mysql_close($dbh); require_once 'include/foot.php';
// set list color if ($row_warn == 1) { $box_content .= '<tr class="color_warning highlight">'; } elseif ((1 & $count) == 1) { $box_content .= '<tr class="odd highlight ' . $additional_class . '">'; } else { $box_content .= '<tr class="even highlight ' . $additional_class . '">'; } $detail_link = '<a href="detail_admin_items.php?type=class&id=' . $entry["id_class"] . '">' . $entry["config_class"] . '</a>'; $detail_link_friendly_name = '<a href="detail_admin_items.php?type=class&id=' . $entry["id_class"] . '">' . $entry["friendly_name"] . '</a>'; $box_content .= '<td class="">'; $box_content .= $detail_link; $box_content .= '</td>'; $box_content .= '<td>' . $detail_link_friendly_name . '</td>'; $box_content .= '<td class="center">' . $ICON_mandatory . '</td>'; $box_content .= '<td class="center">' . '<a href="show_class.php?id=' . $entry["id_class"] . '&do=up">' . ICON_UP_BOX_BLUE . '</a></td>'; $box_content .= '<td class="center">' . '<a href="show_class.php?id=' . $entry["id_class"] . '&do=down">' . ICON_DOWN_BOX_BLUE . '</a>' . '</td>'; $box_content .= '<td class="center"><a href="modify_class.php?id=' . $entry["id_class"] . '">' . ICON_EDIT . '</a></td>'; $box_content .= '<td class="center"><a href="delete_class.php?id=' . $entry["id_class"] . '">' . ICON_DELETE . '</a></td>'; $box_content .= "</tr>\n"; $count++; } // show content box echo NConf_HTML::ui_box_content(NConf_HTML::ui_table($box_content)); } echo '<br>'; } // End of nav_tree echo '</div>'; mysql_close($dbh); require_once 'include/foot.php';