Итоговый отчет проектировщика — программиста
Структура кода очень простая и является отличным каркасом для создания интернет-магазина любой сложности Совместимость со всеми основными браузерами. Общая информация по разработке Разработка сайта ведется на локальном хостинге http://opencart.com/. Встроенная многоязычность Неограниченное число разделов и товаров. Прототип главной страницы Программный код Вывод главной страницы: If (file_exists… Читать ещё >
Итоговый отчет проектировщика — программиста (реферат, курсовая, диплом, контрольная)
Общая информация по разработке Разработка сайта ведется на локальном хостинге http://opencart.com/.
Преимущества для программиста.
Структура кода очень простая и является отличным каркасом для создания интернет-магазина любой сложности Совместимость со всеми основными браузерами.
Встроенная многоязычность Неограниченное число разделов и товаров.
Поддержка шаблонов, модулей и дополнений Администрирование / База Поддерживает неограниченное количество продуктов и разделов категорий Поддержка физических и виртуальных (загружаемых) товаров Легкость резервного копирования и восстановления данных Статистика товаров и заказчиков Многоязычная поддержка Поддержка нескольких валют Клиентская часть Регистрация покупателей.
Все заказы хранятся в базе данных для быстрого и эффективного поиска (история покупок для покупателей) Клиенты могут просматривать историю и статусы своих заказов Временная корзина для гостей и постоянная для клиентов Быстрый и дружественный интерфейс поиска Удобная навигация по сайту Клиент может иметь несколько адресов доставки в своей адресной книге.
Диаграмма в нотации IDEF0.
Прототип главной страницы Программный код Вывод главной страницы:
class ControllerCommonHome extends Controller {.
public function index () {.
$this→document→setTitle ($this→config→get ('config_title'));
$this→document→setDescription ($this→config→get ('config_meta_description'));
$this→data['heading_title'] = $this→config→get ('config_title');
if (file_exists (DIR_TEMPLATE. $this→config→get ('config_template'). '/template/common/home.tpl')) {.
$this→template = $this→config→get ('config_template'). '/template/common/home.tpl';
} else {.
$this→template = 'default/template/common/home.tpl'; }.
$this→children = array (.
'common/column_left',.
'common/column_right',.
'common/content_top',.
'common/content_bottom',.
'common/footer',.
'common/header'.
);
$this→response→setOutput ($this→render ());
}.
}.
?>
Карта сайта:
class ControllerInformationSitemap extends Controller {.
public function index () {.
$this→language→load ('information/sitemap');
$this→document→setTitle ($this→language→get ('heading_title')); .
$this→data['breadcrumbs'] = array ();
$this→data['breadcrumbs'][] = array (.
'text' => $this→language→get ('text_home'),.
'href' => $this→url→link ('common/home'),.
'separator' => false.
);
$this→data['breadcrumbs'][] = array (.
'text' => $this→language→get ('heading_title'),.
'href' => $this→url→link ('information/sitemap'), .
'separator' => $this→language→get ('text_separator').
); .
$this→data['heading_title'] = $this→language→get ('heading_title');
$this→data['text_special'] = $this→language→get ('text_special');
$this→data['text_account'] = $this→language→get ('text_account');
$this→data['text_edit'] = $this→language→get ('text_edit');
$this→data['text_password'] = $this→language→get ('text_password');
$this→data['text_address'] = $this→language→get ('text_address');
$this→data['text_history'] = $this→language→get ('text_history');
$this→data['text_download'] = $this→language→get ('text_download');
$this→data['text_cart'] = $this→language→get ('text_cart');
$this→data['text_checkout'] = $this→language→get ('text_checkout');
$this→data['text_search'] = $this→language→get ('text_search');
$this→data['text_information'] = $this→language→get ('text_information');
$this→data['text_contact'] = $this→language→get ('text_contact');
$this→load→model ('catalog/category');
$this→load→model ('catalog/product');
$this→data['categories'] = array ();
$categories1 = $this→model_catalog_category→getCategories (0);
foreach ($categories1 as $category1) {.
$level2_data = array ();
$categories2 = $this→model_catalog_category→getCategories ($category1['category_id']);
foreach ($categories2 as $category2) {.
$level3_data = array ();
$categories3 = $this→model_catalog_category→getCategories ($category2['category_id']);
foreach ($categories3 as $category3) {.
$level3_data[] = array (.
'name' => $category3['name'],.
'href' => $this→url→link ('product/category', 'path='. $category1['category_id']. '_'. $category2['category_id']. '_'. $category3['category_id']).
);
}.
$level2_data[] = array (.
'name' => $category2['name'],.
'children' => $level3_data,.
'href' => $this→url→link ('product/category', 'path='. $category1['category_id']. '_'. $category2['category_id']) .
); .
}.
$this→data['categories'][] = array (.
'name' => $category1['name'],.
'children' => $level2_data,.
'href' => $this→url→link ('product/category', 'path='. $category1['category_id']).
);
}.
$this→data['special'] = $this→url→link ('product/special');
$this→data['account'] = $this→url→link ('account/account', '', 'SSL');
$this→data['edit'] = $this→url→link ('account/edit', '', 'SSL');
$this→data['password'] = $this→url→link ('account/password', '', 'SSL');
$this→data['address'] = $this→url→link ('account/address', '', 'SSL');
$this→data['history'] = $this→url→link ('account/order', '', 'SSL');
$this→data['download'] = $this→url→link ('account/download', '', 'SSL');
$this→data['cart'] = $this→url→link ('checkout/cart');
$this→data['checkout'] = $this→url→link ('checkout/checkout', '', 'SSL');
$this→data['search'] = $this→url→link ('product/search');
$this→data['contact'] = $this→url→link ('information/contact');
$this→load→model ('catalog/information');
$this→data['informations'] = array ();
foreach ($this→model_catalog_information→getInformations () as $result) {.
$this→data['informations'][] = array (.
'title' => $result['title'],.
'href' => $this→url→link ('information/information', 'information_id='. $result['information_id']) .
);
}.
if (file_exists (DIR_TEMPLATE. $this→config→get ('config_template'). '/template/information/sitemap.tpl')) {.
$this→template = $this→config→get ('config_template'). '/template/information/sitemap.tpl';
} else {.
$this→template = 'default/template/information/sitemap.tpl';
}.
$this→children = array (.
'common/column_left',.
'common/column_right',.
'common/content_top',.
'common/content_bottom',.
'common/footer',.
'common/header'.
);
$this→response→setOutput ($this→render ()); .
}.
}.
?>