Agenda. ZAPms Konzept.. Benutzer-Kontroller.. Laout-Aufbau.. Template-Aufbau. 5. Bildergalerie (Beispiel). 6. Konfiguration. 7. Module.
. ZAPms Konzept Benutzer Web Server Benutzer-Kontroller www.domain/index.php Benutzer-Module www.domain/modules/ Datenbank Administrator Smarty Engine www.domain/libs/smarty/ Kontent - Layout - Webseiten - Bilder - Produkte/Bestellungen - Menue-Struktur - Konfiguration Admin-Kontroller www.domain/zap/index.php Admin-Module www.domain/zap/modules/
. Benutzer-Kontroller Benutzer Browser Benutzer-Kontroller www.zapms.de/index.php Datenbank Kontent files/ templates/site_default.tpl templates/content_default.tpl templates/menu_main.tpl content/home.html - Dynamischer Kontent - Menue-Struktur - Konfigurationsdaten
. Layout-Aufbau 5 6 5 6
. Template-Aufbau <!DOCTYPE html PUBLIC "-//WC//DTD XHTML.0 Transitional//EN" "http://www.w.org/tr/xhtml/dtd/xhtml-transitional.dtd"> <html xmlns="http://www.w.org/999/xhtml"> {config_load file="core.conf" section=$ui_lang} {config_load file="shop.conf" section=$ui_lang} <head> <title>{$site_title}</title> <meta http-equiv="content-type" t t " content="text/html; t t/ht charset=utf-8" tf /> <meta name="keywords" content="{$site_keywords}" /> <meta name="description" content="{$site_description}" /> <meta name="robots" content="index, follow" /> <link rel="shortcut icon" href="/favicon.ico" /> <link href="files/templates/site_default.css" rel="stylesheet" type="text/css" media="screen" /> <link href="files/templates/site_print.css" rel="stylesheet" type="text/css" media="print" /> {literal} <script type="text/javascript" t/j t" src="files/templates/site_default.js"></script> l t / it f lt "></ i t> {/literal} </head> <body> <div id="headercontainer"> <!-- Top Menu Frame --> {include file=$pattern_menu_top default:"menu_empty.tpl"} <!-- Top Menu Frame --> <div id="doc"> <div id="leftcontainer"> <div id="content"> <!-- Content --> {include file=$pattern_content default:'content_empty.tpl'} {include file=$pattern_content_add default:'content_empty.tpl'} <!-- Content --> <div id="rightcontainer"> <div id="menucontainer"> <!-- Main Menu Frame --> {include file=$pattern_menu_main default:"menu_empty.tpl"} {include file=$pattern_menu_sub default:"menu_empty.tpl"} <!-- Main Menu Frame --> <div id="footercontainer"><a href="http://www.zapware.de" class="copyr">powered by ZAPware</a> <br /></body></html> 5 6 6 5
5. Bildergalerie (Beispiel) galery.tpl: {php} showgalery(); {/php} {section name=customer loop=$galery_list} <span style="padding:0px;font-size:px;"> <a rel="lytebox[galery] href="{$usr_img}{$galery_list[customer].filename} alt="{$galery_list[customer].alttext} title="{$galery_list[customer].alttext}" class="menulink"> <img src="{$usr_img}thumbs/{$galery_list[customer].filename} width="95" border="0" /></a></span> /a /span {/section}. Object: modules/galery/galery.php --> driver zu Galery Tabelle. Massiv der Bilder: libs/menu_func.php --> Einsatz von Driver in function showgalery(). Schablone: files/templates/galery.tpl --> Layout. Menupunkt, Variabel --> Html
6. Konfiguration acc_config VALUES('', '', 'site_url', 'http://ayurvedic-colon-cleaning.com', 'URL', 'http://domain') Benutzer index.php: // Assign html meta tags $smarty->assign('site site_url url', $site_url); $smarty->assign('site_title', $menu_info['title']); $smarty->assign('site_description', $site_description); $smarty->assign('ui_lang', $ui_lang); $smarty->assign('sys_img', $sys_img); $smarty->assign('usr_img', $usr_img); site_default.tpl: <title>{$site_title}</title> { _ }
7. Module Admin Tools:. Setup. Configuration. Backup. Help 5. File manager 6. Menu manager 7. News 8. Newsletter 9. Roles 0. Users. Sessions. Shop administration..htaccess User Module:. Clients. Download. Guestbook. Contact form 5. Search 6. Upload 7. Shop 8. Image gallery 9. Event calendar 0. Literature list