@error_reporting(E_ERROR);
class SimpleSlider extends CMSModule{
public $debug=true;
function SimpleSlider(){
$this->CMSModule();
}
function GetName(){
return 'SimpleSlider';
}
function GetFriendlyName()
{
return 'Manage Simple Slider';
}
function Install()
{
global $gCms;
//Get a reference to the database
$db = $this->cms->db;
// mysql-specific, but ignored by other database
$taboptarray = array('mysql' => 'TYPE=MyISAM');
//Make a new "dictionary" (ADODB-speak for a table)
$dict = NewDataDictionary($db);
//Add the fields as a comma-separated string.
$fields = "id I AUTO KEY,
slide I DEFAULT 0,
title C(50),
imagelink C(255),
description X ";
//Note the naming scheme that should be followed when adding tables to the database,
// so as to make it easy to recognize who the table belongs to, and to avoid conflict with other modules.
$sqlarray = $dict->CreateTableSQL(cms_db_prefix().'module_simpleslider_images', $fields, $taboptarray);
$dict->ExecuteSQLArray($sqlarray);
//Add the fields as a comma-separated string.
$fields = "showid I AUTO KEY,
showname C(50),
width I,
height I,
fadetime I";
//Note the naming scheme that should be followed when adding tables to the database,
// so as to make it easy to recognize who the table belongs to, and to avoid conflict with other modules.
$sqlarray = $dict->CreateTableSQL(cms_db_prefix().'module_simpleslider_shows', $fields, $taboptarray);
$dict->ExecuteSQLArray($sqlarray);
$sqlarray = $dict->CreateIndexSQL('showname', cms_db_prefix().'module_simpleslider_shows', 'showname', array('UNIQUE'));
$dict->ExecuteSQLArray($sqlarray);
//Add the fields as a comma-separated string.
$fields = "showid I,
imageid I
";
// so as to make it easy to recognize who the table belongs to, and to avoid conflict with other modules.
$sqlarray = $dict->CreateTableSQL(cms_db_prefix().'module_simpleslider_showimages', $fields, $taboptarray);
$dict->ExecuteSQLArray($sqlarray);
$sqlarray = $dict->CreateIndexSQL('showid', cms_db_prefix().'module_simpleslider_showimages', 'showid');
$dict->ExecuteSQLArray($sqlarray);
$sqlarray = $dict->CreateIndexSQL('showimage', cms_db_prefix().'module_simpleslider_showimages', array('showid', 'imageid'), array('UNIQUE'));
$dict->ExecuteSQLArray($sqlarray);
$this->setPreference('defwidth', 400);
$this->setPreference('defheight', 300);
$this->setPreference('deffadetime', 4000);
$this->CreatePermission('SimpleSlider Admin', 'SimpleSlider Admin');
mkdir('../uploads/sliderimages/');
}
function Upgrade($oldversion, $newversion){
$db = $this->cms->db;
$dict = NewDataDictionary($db);
switch($oldversion){
case '0.2':
case '0.1':
$sqlarray=array(0=>'ALTER TABLE `'.cms_db_prefix().'module_simpleslider_shows` ADD `width` INT NOT NULL , ADD `height` INT NOT NULL , ADD `fadetime` INT NOT NULL ');
$dict->ExecuteSQLArray($sqlarray);
break;
}
}
function Uninstall()
{
$db = $this->cms->db;
$dict = NewDataDictionary( $db );
$sqlarray = $dict->DropTableSQL( cms_db_prefix().'module_simpleslider_images' );
$dict->ExecuteSQLArray($sqlarray);
$sqlarray = $dict->DropTableSQL( cms_db_prefix().'module_simpleslider_shows' );
$dict->ExecuteSQLArray($sqlarray);
$sqlarray = $dict->DropTableSQL( cms_db_prefix().'module_simpleslider_showimages' );
$dict->ExecuteSQLArray($sqlarray);
//Remove the sequence
$this->RemovePermission('SimpleSlider Admin');
$this->RemovePreference();
}
function GetVersion()
{
return '0.2.1';
}
function GetHelp()
{
return '
Make sure your upload folder is writeable before installing.
You need to download JQuery s3Slider.
You can download JQuery here and put it in the folder "lib" using the name "jquery.js".
You can download s3Slider here and put it in the folder "lib" using the name "s3Slider.js".
Usage
Go to Content -> Manage Simple Slider to add images and slideshows.
Simply put {cms_module module=\'SimpleSlider\'} where you would like to have the slideshow. By default all images added to the module will be displayed.
To display a particular show and only images added to the show put {cms_module module=\'SimpleSlider\' show=\'showname\'}
';
}
function IsPluginModule()
{
return true;
}
function HasAdmin() {
return true;
}
function GetAdminSection() {
return 'content';
}
function GetAdminDescription() {
return 'Manage Simple Slider';
}
function GetAuthor(){
return 'Burhan BAVKIR';
}
function GetAuthorEmail(){
return 'info@agait.com.sg';
}
function displaySelectArray($selectlist, $id=0){
foreach($selectlist as $key => $val){
?>
}
}
function GenerateInsertSQL($table, $fields){
$sql='INSERT INTO '.$table.' (';
$keys=array_keys($fields);
$values=' VALUES (';
for($i=0; $i<(sizeof($fields)-1); $i++){
$values.='"'.$fields[$keys[$i]].'", ';
$sql.=$keys[$i].', ';
}
$values.='"'.$fields[$keys[$i]].'"); ';
$sql.=$keys[$i].') '.$values;
return $sql;
}
function GenerateUpdateSQL($table, $fields, $where){
$sql='UPDATE '.$table.' SET ';
$keys=array_keys($fields);
for($i=0; $i<(sizeof($fields)-1); $i++){
$sql.=$keys[$i].'="'.$fields[$keys[$i]].'", ';
}
$sql.=$keys[$i].'="'.$fields[$keys[$i]].'" WHERE '.$where.';';
return $sql;
}
}
?>
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/eplex.bg/modules/SimpleSlider/SimpleSlider.module.php:174) in /home/httpd/eplex.bg/index.php on line 339 Certificates
Thermal analysis performance research of Duralite spacer bar
Agreement of authorized importation and distribution of Tremco Duraseal and Duralite technology
Insulating glass units - Moisture penetration results according to EN1279-2
Insulating glass units: Moisture penetration results according to EN 1279-2; Evaluation of the gas leakage rate and gas concentration measured according to EN 1279-3; Periodic test according to EN 1278-6 B4.2 and C
Other certificates
Duralite SS TNO EN1279 3 gas leakage summary
Duralite SS TNO EN1279 2 moisture penetration summary report
Duralite SS TNO EN1279 2 moisture penetration full report
Duralite SS_TNO EN1279 3 gas leakage - full report
Duraseal DS TNO EN1279 2/3/6 moisture penetration gas lost & filling rate climat tests summary
DuraSeal Pro Tool LoRider
Duraseal SS TNO EN1279 2/3/6 moisture penetration, gas lost & filling rate climat tests