locale.module 680 Bytes
Newer Older
Dries's avatar
 
Dries committed
1 2 3 4 5 6 7
<?

$module = array("page" => "locale",
                "admin" => "locale");

function locale() {
  $result = db_query("SELECT * FROM locales ORDER BY english");
Dries's avatar
Dries committed
8 9
  $output .= "<TABLE BORDER=\"1\" CELLPADDING=\"2\" CELLSPACING=\"2\">\n";
  $output .= " <TR><TH>string</TH><TH COLSPAN=\"2\">operations</TH><TR>\n";
Dries's avatar
 
Dries committed
10
  while ($locale = db_fetch_object($result)) {
Dries's avatar
Dries committed
11
    $output .= " <TR><TD>". check_output($locale->english) ."<BR><SMALL><I>$locale->location</I></SMALL></TD><TD><A HREF=\"admin.php?mod=locale&op=edit&id=$locale->id\">edit</A></TD><TD><A HREF=\"admin.php?mod=locale&op=edit&id=$locale->id\">delete</A></TD></TR>";
Dries's avatar
 
Dries committed
12
  }
Dries's avatar
Dries committed
13 14
  $output .= "</TABLE>\n";
  print $output;
Dries's avatar
 
Dries committed
15 16 17
}

?>