Couldn\'t find any pages marked "'.$_GET['show'].'". Perhaps you have selected a link that doesn\'t go anywhere yet.
';
}
} else {
$str['file'] = 'home.html';
}
if (strcmp($str,'Array')) {
$str = array('body' => $str);
}
if (!$str['title']) { $str['title'] ='RepRap Bill of Materials Viewer'; }
}
function search() {
global $db;
global $model;
$str .= "
Preferences
".
'
If you tell us what region you\'re in, we can generate order forms
for the various online stores that best serve your part of the
world. This will help cut down on shipping costs.
'.
'';
$q = $db->query("SELECT sp.part_id, p.name, sp.source_id from part p, source_part sp WHERE sp.part_id=p.id ORDER BY p.name");
while ($row = $q->fetchRow()) {
//$str .= join(' ', array($row['part_id'], $row['source_id'], $row['name'])).' ';
}
$str .= "
", array('Name', 'Modules', 'Description and Notes', 'Tags')).'
';
// return all the parts that have no source
$q = $db->query("SELECT p.id, p.name, m.name, m.id, mp.quantity, p.description, p.notes FROM part p, module_part mp, module m ".
"WHERE m.id=mp.module_id AND mp.part_id = p.id AND p.id NOT IN (SELECT part_id FROM source_part) ORDER BY p.name;");
$str .= html_part_rows(array('query'=>$q, 'orphans'=>1)).'