version 1.69, 2003/04/05 22:20:19 |
version 1.70, 2003/04/06 02:55:16 |
|
|
* http://www.platon.sk/projects/phpMyEdit/ |
* http://www.platon.sk/projects/phpMyEdit/ |
*/ |
*/ |
|
|
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.68 2003/04/05 20:37:42 nepto Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.69 2003/04/05 22:20:19 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. |
Line 944 function phpMyEdit_form_control(theForm) |
|
Line 944 function phpMyEdit_form_control(theForm) |
|
/** |
/** |
* Returns CSS class name |
* Returns CSS class name |
*/ |
*/ |
function getCSSclass($name, $position = null, $dividor = null, $postfix = null) /* {{{ */ |
function getCSSclass($name, $position = null, $divider = null, $postfix = null) /* {{{ */ |
{ |
{ |
static $div_idx = -1; |
static $div_idx = -1; |
$elements = array($this->css['prefix'], $name); |
$elements = array($this->css['prefix'], $name); |
Line 956 function phpMyEdit_form_control(theForm) |
|
Line 956 function phpMyEdit_form_control(theForm) |
|
if ($position && $this->css['position']) { |
if ($position && $this->css['position']) { |
$elements[] = $position; |
$elements[] = $position; |
} |
} |
if ($dividor && $this->css['dividor']) { |
if ($divider && $this->css['divider']) { |
if ($dividor === 'next') { |
if ($divider === 'next') { |
$div_idx++; |
$div_idx++; |
if ($this->css['dividor'] > 0 && $div_idx >= $this->css['dividor']) { |
if ($this->css['divider'] > 0 && $div_idx >= $this->css['divider']) { |
$div_idx = 0; |
$div_idx = 0; |
} |
} |
} |
} |
Line 975 function phpMyEdit_form_control(theForm) |
|
Line 975 function phpMyEdit_form_control(theForm) |
|
/** |
/** |
* Print CSS class name |
* Print CSS class name |
*/ |
*/ |
function printCSSclass($name, $position = null, $dividor = null, $postfix = null) /* {{{ */ |
function printCSSclass($name, $position = null, $divider = null, $postfix = null) /* {{{ */ |
{ |
{ |
echo $this->getCSSclass($name, $position, $dividor, $postfix); |
echo $this->getCSSclass($name, $position, $divider, $postfix); |
} /* }}} */ |
} /* }}} */ |
|
|
/** |
/** |
Line 2558 function phpMyEdit_form_control(theForm) |
|
Line 2558 function phpMyEdit_form_control(theForm) |
|
!isset($this->css['prefix']) && $this->css['prefix'] = 'pme'; |
!isset($this->css['prefix']) && $this->css['prefix'] = 'pme'; |
!isset($this->css['page_type']) && $this->css['page_type'] = false; |
!isset($this->css['page_type']) && $this->css['page_type'] = false; |
!isset($this->css['position']) && $this->css['position'] = false; |
!isset($this->css['position']) && $this->css['position'] = false; |
!isset($this->css['dividor']) && $this->css['dividor'] = 2; |
!isset($this->css['divider']) && $this->css['divider'] = 2; |
$this->css['dividor'] = intval(@$this->css['dividor']); |
$this->css['divider'] = intval(@$this->css['divider']); |
// Navigation |
// Navigation |
$this->navigation = @$opts['navigation']; |
$this->navigation = @$opts['navigation']; |
if (! $this->nav_buttons() && ! $this->nav_text_links() && ! $this->nav_graphic_links()) { |
if (! $this->nav_buttons() && ! $this->nav_text_links() && ! $this->nav_graphic_links()) { |