//
// cms_widget
//
require_once dirname(__FILE__)."/dataelement.cms.php";
class currency_dataelement extends dataelement{
// private
var $type = "currency";
var $fieldtype = array("VARCHAR", "TEXT", "STRING", "BLOB", "DOUBLE", "INTEGER", "REAL");
var $sql_type = "DECIMAL(10,2)";
// public
var $currency = "euro"; // currency name
var $currency_symbols = array("euro"=>"€" , "dollar"=>"\$", "sterling"=>"£", "yen", "¥"); // currency symbol
function show_list($inValue, $inKeyValue=""){
return $this->currency_symbols[$this->currency]." ".mod::stripstring(number_format($inValue, 2, ".", ""), 50);
}
function show(){
return $this->currency_symbols[$this->currency]." ".number_format($this->value, 2, ".", "");
}
function edit(){
return $this->currency_symbols[$this->currency]." name."\" value=\"".esc::to_form(number_format($this->value, 2, ".", ""))."\" ".($this->disabled?" readonly ":"")." class=\"textelement\" style=\"width: 100px;\">";
}
function insert(){
$this->value = number_format(str_replace(",",".", getvar("pgs", $this->name)), 2, ".", ",");
}
function update(){
$this->value = number_format(str_replace(",",".", getvar("pgs", $this->name)), 2, ".", ",");
}
}
?>
// create object
$this->title = "Languages";
$this->table = "core_languages";
$this->items_per_page = 10;
$this->pagewindow = 10;
$this->search = 0;
$this->controls = array("list", "check", "show", "edit", "delete", "add", "sort");
$this->check = 0;
$this->autocheck = 1;
$this->parentTxt = "";
$this->is_core = true;
//
// parent / child declarations
//
$this->setChild("");
$this->setParent("");
// object data & properties
$this->addKey("core_language_id");
//--
$element = $this->addDataItem("rank", "rank", "Rank");
//--
$element = $this->addDataItem("textline", "short_name", "Language ID");
$this->setProperty( $element, "list", true);
$this->setProperty( $element, "required", true);
//--
$element = $this->addDataItem("textline", "name", "Language name");
$this->setProperty( $element, "list", true);
$this->setProperty( $element, "required", true);
//--
?>
// create object
$this->title = "Channels";
$this->table = "core_channels";
$this->items_per_page = 10;
$this->pagewindow = 10;
$this->search = 0;
$this->controls = array("list", "check", "show", "edit", "delete", "add", "sort");
$this->check = 0;
$this->autocheck = 1;
$this->parentTxt = "";
$this->is_core = true;
//
// parent / child declarations
//
$this->setChild("");
$this->setParent("");
// object data & properties
$this->addKey("core_channel_id");
//--
$element = $this->addDataItem("rank", "rank", "Rank");
//--
$element = $this->addDataItem("textline", "channel_short", "Channel short name");
$this->setProperty( $element, "list", true);
$this->setProperty( $element, "required", true);
//--
$element = $this->addDataItem("textline", "channel", "Channel name");
$this->setProperty( $element, "list", true);
$this->setProperty( $element, "required", true);
//--
$element = $this->addDataItem("color", "color", "Color");
$this->setProperty( $element, "list", true);
$this->setProperty( $element, "required", true);
//--
?>
Flans & Schrans
Links
Het toeristisch platform voor ouderen en mensen met beperkingen
Groepsverblijf in Geijsteren
Groepsverblijf en B & B in Geijsteren.
Vakantie-Meerlo biedt rust en ruimte
Galerie | Kunstuitleen | Lijstenmakerij