#! /bin/sh

# Purpose: List all roads already linked to but not yet entered into the database

echo Content-type: text/html
echo

echo "<html><head><title>Roads linked but not yet entered</title></head>"
echo "<body><h1>Roads linked but not yet entered</h1>"

# echo "<p>Here are the links:"
# list-all-links
# echo "</p><p>Here are the roads:"
# list-all-files
# echo "</p><p>Here are the missing links of all kinds:"
# list-missing-links
# echo "</p>And here are the missing roads:<p>"
# list-missing-roads
# echo "</p>"

echo "<p>Selecting a road here should put you into a new road form.</p>"

echo "<pre>"
./list-missing-roads | sed "s:^\(.*\)$:<a href=\"addpageform.cgi?name=\1\">\1</a>:"
echo "</pre>"

echo "<br><hr>"
echo "<p><a href=\"../select.html\">[Back to roadworks depot]</a></p>"
echo "</body></html>"
echo
