| version 1.91, 2003/07/29 14:45:02 |
version 1.92, 2003/08/16 01:41:26 |
|
|
| * http://www.platon.sk/projects/phpMyEdit/ |
* http://www.platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.90 2003/07/28 16:37:53 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.91 2003/07/29 14:45:02 nepto Exp $ */ |
| |
|
| /* This is a generic table editing program. The table and fields to be |
/* This is a generic table editing program. The table and fields to be |
| edited are defined in the calling program. |
edited are defined in the calling program. |
|
|
| function filter_enabled() { return stristr($this->options, 'F'); } |
function filter_enabled() { return stristr($this->options, 'F'); } |
| function view_enabled() { return stristr($this->options, 'V'); } |
function view_enabled() { return stristr($this->options, 'V'); } |
| function copy_enabled() { return stristr($this->options, 'P') && $this->add_enabled(); } |
function copy_enabled() { return stristr($this->options, 'P') && $this->add_enabled(); } |
| function tabs_enabled() { return count($this->tabs) > 0; } |
function tabs_enabled() { return $this->display['tabs'] && count($this->tabs) > 0; } |
| function hidden($k) { return stristr($this->fdd[$k]['options'],'H'); } |
function hidden($k) { return stristr($this->fdd[$k]['options'],'H'); } |
| function password($k) { return stristr($this->fdd[$k]['options'],'W'); } |
function password($k) { return stristr($this->fdd[$k]['options'],'W'); } |
| function readonly($k) { return stristr($this->fdd[$k]['options'],'R'); } |
function readonly($k) { return stristr($this->fdd[$k]['options'],'R'); } |
| Line 2710 function phpMyEdit_form_control(theForm) |
|
| Line 2710 function phpMyEdit_form_control(theForm) |
|
| if ($this->display['time']) { |
if ($this->display['time']) { |
| $this->timer = new phpMyEdit_timer(); |
$this->timer = new phpMyEdit_timer(); |
| } |
} |
| |
$this->display['tabs'] = isset($opts['display']['tabs']) |
| |
? $opts['display']['tabs'] : true; |
| // Creating directory variables |
// Creating directory variables |
| $this->dir['root'] = dirname(realpath(__FILE__)) |
$this->dir['root'] = dirname(realpath(__FILE__)) |
| . (strlen(dirname(realpath(__FILE__))) > 0 ? '/' : ''); |
. (strlen(dirname(realpath(__FILE__))) > 0 ? '/' : ''); |