0

我需要开发一个产品目录(大约 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.

问题:对于上述问题,哪些是最好的解决方案?即使您的回答仅针对一个问题,也请回答。谢谢

4

3 回答 3

2

如果您有现有的用 PHP / MySQL 编写的应用程序,也许最好使用 XAMPP 并将应用程序放在 CD 上,而不是从头开始编写新的应用程序。
在这种情况下,用户不需要在他的计算机上安装 .NET Framework。

如果您必须编写 C# 应用程序,请将 MySQL 数据库转换为 xml 文件并在应用程序启动时将其加载到内存中,而不是解析 html 文件。

于 2010-03-09T11:09:14.920 回答
1

使用 javascript 和 cookies/url 变量来传递购物车怎么样?您的嵌入式浏览器中是否启用了 javascript?

于 2010-03-09T09:10:13.947 回答
0

我知道这与您要走的方向完全不同,但是您可以改用 Excel 电子表格吗?

一张用于完整目录和搜索的表格。

用于单个项目显示/打印的一张纸。

于 2010-03-09T09:09:04.460 回答