var $label = ''; // Optional label for control.
var $style = ''; // Control style.
var $enabled = true; // Whether the control is enabled.
- var $class = 'FormElement'; // Class name for the element.
+ var $class = 'FormElement'; // PHP class name for the element.
+ var $cssClass = null; // CSS class name for the element.
function __construct() {
}
function getName() { return $this->name; }
function getClass() { return $this->class; }
+ function getCssClass() { return $this->cssClass; }
+ function setCssClass($cssClass) { $this->cssClass = $cssClass; }
function setFormName($name) { $this->form_name = $name; }
function getFormName() { return $this->form_name; }
var $mHeaderOptions = array();
var $mProccessed = false;
- function __construct($name) {
+ function __construct($name, $cssClass = null) {
$this->class = 'Table';
$this->name = $name;
+ $this->cssClass = $cssClass;
}
function setKeyField($value) {
if ($this->mInteractive) $html .= $this->_addJavaScript();
$html .= "<table";
+ if ($this->cssClass) {
+ $html .= " class=\"".$this->cssClass."\"";
+ }
if (count($this->mTableOptions) > 0) {
foreach ($this->mTableOptions as $k=>$v) {
$html .= " $k=\"$v\"";
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.13.7.3719 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.13.7.3720 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
}
// Create week_durations table.
-$table = new Table('week_durations');
+$table = new Table('week_durations', 'week_view_table');
// $table->setIAScript('markModified'); // TODO: write a script to mark table or particular cells as modified.
$table->setTableOptions(array('width'=>'100%','cellspacing'=>'1','cellpadding'=>'3','border'=>'0'));
$table->setRowOptions(array('class'=>'tableHeaderCentered'));