3,10 → 3,10 |
include_once('includes/common.php'); |
Prolog(); |
|
$db->query("select export_id, export_name, export_comment" |
$db->query("select export_id, export_name, export_type, export_comment" |
. " from telbook_export order by upper(export_name), export_name"); |
|
$table = new Table(array('Name', 'Comment', '')); |
$table = new Table(array('Name', 'Comment', '', '')); |
$table->set_table_class('telbook list export_list'); |
|
while($line = $db->fetch_row()) { |
15,6 → 15,14 |
$table->addcell($line['export_comment']); |
$table->addcell(array('class' => 'link', 'html' => |
display_link('telbook_export_details.php?id=' . $line['export_id'], 'Edit'))); |
|
if($line['export_type']) { |
$table->addcell(array('class' => 'link', 'html' => |
display_link('telbook_export.php?id=' . $line['export_id'], 'Export'))); |
} |
else { |
$table->addcell(''); |
} |
} |
$g_display->add_html_text($table->build()); |
$g_display->add_template('telbook_export_list_end'); |