Мне нужно разработать приложение-каталог товаров (около 4000 товаров), которое будет раздаваться клиентам на CD или DVD. Каталог существует в формате веб-страницы с использованием PHP и MySQL.
ВАЖНО: приложение предоставляется клиентам, у которых может быть старый ПК, старая система. Для минимальных требований я бы поставил 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#, содержащее встроенный браузер. Таким образом, весь веб-сайт теперь статичен и помещен на компакт-диск. Пока все в порядке. Теперь вот проблемы:
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.
ВОПРОС: КАКИЕ РЕШЕНИЯ ОПИСАННЫХ ВЫШЕ ПРОБЛЕМ ЯВЛЯЮТСЯ ЛУЧШИМИ? ПОЖАЛУЙСТА, ОТВЕТИТЕ, ДАЖЕ ЕСЛИ ВАШ ОТВЕТ ТОЛЬКО НА ОДИН ВОПРОС. БЛАГОДАРНОСТЬ