;;; 7.mhtml: -*- Meta-HTML -*-  Acme Cake Shop.
;;;
;;;  Copyright (c) 1996 Universal Access Inc.
;;;  Author: Art Medlar, Henry Minsky Fri Jul 26 18:19:12 PDT 1996

<set-var title="A Product Database">
<include header.mhtml>

<plain-text>
  Now that we have a shopping basket, it would be a good idea to create
  a central database of products. This will help in keeping track of
  inventory, and can be used to update the price and other changing
  information.  It will also set the stage for creating a Web-based
  administrative back-end interface for adding and modifying products
  online.

  Since we don't yet have a Web interface to modify the product
  database, we will use a predefined database which we create from a
  <Meta-HTML> source file.  We'll seed this database with our current
  product line.

  This section introduces the <Meta-HTML> database operators
  <funref with-open-database>, <funref database-query>, and
  <funref database-load-record>. The built-in database in <meta-html>
  uses a very simple and powerful key-value model.  Free-form records
  of any size can be saved out and read back from the database.  Using
  variables, packages and alists (association lists), virtually any
  <meta-html> data can be easily saved to the database.

  The database accessor functions are defined in
  <source-view 7/products.mhtml use-stem>. This file defines a simple
  but general purpose inventory database, which could be used for
  products other than cakes.

  <section-pages 7 show-basket.mhtml "The Shopping Basket"
		 show-products.mhtml "The Product Database">
  cake-template.mhtml
  basket.mhtml
  products.mhtml
  seed-database.mhtml
  show-basket.mhtml
  show-productes.mhtml
  session.mtml
  red.mhtml
  green.mhtml
  black.mhtml
  blue.mhtml
  header.mhtml
  footer.mhtml
  </section-pages>

  <pagelist-control-panel>
</plain-text>

<include footer.mhtml>
