------------------------------------------------------------------------------------------------------------------------ -= Структура папок =- ------------------------------------------------------------------------------------------------------------------------ trunk/site/App/Banner │ │ ├- AbstractObj.php │ │ ├- AdminObj.php │ │ ├- AdminView.php │ │ ├- HotSpotAbstractObj.php │ │ ├- HotSpotAdminObj.php │ │ ├- HotSpotAdminView.php │ │ ├- HotSpotObj.php │ │ ├- Obj.php │ │ └- View.php │ ... │ └- tpl/Banner │ ├- view.tpl │ └- spot_form.tpl│ │ └- www ├- css │ ├- admin-banner.css │ └- banner.css │ ├- js/app │ ├- admin-banner.js │ └- banner.js │ ├- js/lib/yui-build/paginator.js │ └- images/banner ------------------------------------------------------------------------------------------------------------------------ -= Зміни до sitemap.xml =- ------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------ -= Зміни до DB =- ------------------------------------------------------------------------------------------------------------------------ CREATE TABLE `qs_Banner` ( `id` int(11) NOT NULL auto_increment, `type` enum('image','html') NOT NULL, `title` varchar(255) NOT NULL, `image` varchar(255) default NULL, `html` text NOT NULL, `backgroundImage` varchar(255) default NULL, `linkType` enum('none','url','cms') NOT NULL, `idPage` int(11) NOT NULL, `url` varchar(255) NOT NULL, `sorter` int(11) NOT NULL, `added` datetime NOT NULL, `changed` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE `qs_BannerHotSpot` ( `id` int(11) NOT NULL auto_increment, `idBanner` int(11) NOT NULL, `type` enum('rect','circle') NOT NULL, `top` int(11) NOT NULL, `left` int(11) NOT NULL, `width` int(11) NOT NULL, `height` int(11) NOT NULL, `urlType` enum('page','url') NOT NULL, `idPage` int(11) NOT NULL, `url` varchar(255) NOT NULL, `added` datetime NOT NULL, `changed` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE `qs_DBannerEffect` ( `name` varchar(16) NOT NULL, `title` varchar(255) NOT NULL, `sorter` int(11) NOT NULL, UNIQUE KEY `name` (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT INTO `qs_DBannerEffect` (`name`, `title`, `sorter`) VALUES ('fade', 'Fade', 0), ('slide', 'Slide', 1); CREATE TABLE `qs_DBannerType` ( `id` enum('image','html') NOT NULL, `title` varchar(255) NOT NULL, `sorter` int(11) NOT NULL, UNIQUE KEY `id` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT INTO `qs_DBannerType` (`id`, `title`, `sorter`) VALUES ('image', 'Image', 0), ('html', 'HTML Content', 1); INSERT INTO `qs_zz_DPageItemType` (`id`, `type`, `title`, `sorter`) VALUES (NULL, 'Banner_', 'Banner Block', '60') ; ------------------------------------------------------------------------------------------------------------------------ -= Додаткові вимоги =- ------------------------------------------------------------------------------------------------------------------------ - jQuery, jQuery UI with Draggable and Resizable - php.js - qs.js - YAHOO Paginator