我需要开发一个产品目录(大约 4000 种产品)应用程序,该应用程序将通过 CD 或 DVD 提供给客户。该目录使用 PHP 和 MySQL 以网页格式存在。
重要提示:该应用程序提供给可能拥有旧 PC、旧系统的客户。对于最低要求,我会使用 Windows XP 和 Internet Explorer 6(如果需要)。
I need the following features:
1 search option (after productID AND after keyword)
2 print option (by selecting multiple products)
3 shopping cart (making a list which will be sent to an email address if there is any Internet Connection on the computer)
当我被要求这样做时,我有 2 天时间来实现一个非常基本的版本,所以我将整个网站导出为 HTML 页面,并用 C# 开发了一个包含嵌入式浏览器的应用程序。所以整个网站现在是静态的并放在一张CD上。到目前为止一切都很好。现在有以下问题:
1. the search option was realized by parsing the html files and reading the productID or looking for keywords inside of them. Put on a CD it was extremely slow (searching in 600MB of html files). FOR THIS I WOULD NEED A SOLUTION WITH A STATIC DATABASE (USING ACCESS OR SOMETHING) TO HAVE INDEXED ROWS, SO THE SEARCH COULD BE A VERY FAST ONE.
2. the printing option was a simply call of the embeded Internet Explorer print functions. Here are two problems:
a) user needs IE7 for printing the website scaled (FIT TO PAGE), otherwise the edges of the page are cut down.
b) users of this app does not have even the basic PC usage skills, so they can't set the printing settings, so there will appear in header and footer the page numbers and titles. QUESTION: can I set these settings from CSS for printing?
3. couldn't make a a shopping cart as I don't use a database, so I have static websites and content is inside the HTML.
问题:对于上述问题,哪些是最好的解决方案?即使您的回答仅针对一个问题,也请回答。谢谢