[Phphtmllib-devel] phphtmllib/data_list HTMLDataList.inc,1.6,1.7
Status: Beta
Brought to you by:
hemna
From: Walter A. B. I. <he...@us...> - 2005-12-13 00:25:00
|
Update of /cvsroot/phphtmllib/phphtmllib/data_list In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12048 Modified Files: HTMLDataList.inc Log Message: added missing member declaration Index: HTMLDataList.inc =================================================================== RCS file: /cvsroot/phphtmllib/phphtmllib/data_list/HTMLDataList.inc,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- HTMLDataList.inc 5 Oct 2005 22:32:15 -0000 1.6 +++ HTMLDataList.inc 13 Dec 2005 00:24:52 -0000 1.7 @@ -39,26 +39,26 @@ const NOT_SEARCHABLE = FALSE; /** - * The title of the table. - * @access public - * @var string - */ - protected $title=''; + * The title of the table. + * @access public + * @var string + */ + protected $title=''; - /** - * the width of the widget - * @access public - * @var string - */ - protected $width="100%"; + /** + * the width of the widget + * @access public + * @var string + */ + protected $width="100%"; - /** - * The widget wide alignment - * value. - * @access private - * @var string - */ - protected $_align = NULL; + /** + * The widget wide alignment + * value. + * @access private + * @var string + */ + protected $_align = NULL; @@ -120,6 +120,8 @@ */ protected $_default_form_method = 'GET'; + protected $_default_form_name = 'myform'; + @@ -567,31 +569,31 @@ function build_jump_links() { $current_page = $this->get_current_page(); $num_pages = $this->get_num_pages(); - if (empty($current_page)) { + if (empty($current_page)) { $current_page = 1; } //determine the pages to show. $windowSize = 3; - $jumpRange = array(); - $lowerPage = max($current_page - (int)($windowSize / 2), 1); - $upperPage = min($current_page + (int)($windowSize / 2), $num_pages); - if ($upperPage == 0) { + $jumpRange = array(); + $lowerPage = max($current_page - (int)($windowSize / 2), 1); + $upperPage = min($current_page + (int)($windowSize / 2), $num_pages); + if ($upperPage == 0) { $upperPage = 1; } - if ($upperPage == $num_pages) { + if ($upperPage == $num_pages) { $lowerPage = max($upperPage - $windowSize, 1); } else if ($lowerPage == 1) { $upperPage = min($lowerPage + ($windowSize-1), $num_pages); } - for ($i = $lowerPage; $i <= $upperPage; $i++) { + for ($i = $lowerPage; $i <= $upperPage; $i++) { $jumpRange[] = $i; } if ($lowerPage > 1) { array_unshift($jumpRange, 1); } - if ($upperPage < $num_pages) { + if ($upperPage < $num_pages) { $jumpRange[] = $num_pages; } @@ -1026,79 +1028,79 @@ */ /** - * Function for returning the raw javascript - * that is required for this widget. - * - * @return string - the raw javascript - */ - public function get_javascript() { - return NULL; - } + * Function for returning the raw javascript + * that is required for this widget. + * + * @return string - the raw javascript + */ + public function get_javascript() { + return NULL; + } - /** - * Set the title for the widget. - * this is just a generic title string - * that can be used however the child class - * wants to use it. - * - * @param string - $title - */ - public function set_title( $title ) { - $this->title = $title; - } + /** + * Set the title for the widget. + * this is just a generic title string + * that can be used however the child class + * wants to use it. + * + * @param string - $title + */ + public function set_title( $title ) { + $this->title = $title; + } - /** - * Function for accessing the - * title of this widget - * - * @return string - the title - */ - public function get_title() { - return $this->title; - } + /** + * Function for accessing the + * title of this widget + * + * @return string - the title + */ + public function get_title() { + return $this->title; + } - /** - * Set the width for the widget. - * this is meant to be the overall - * width expected to be used to - * control the generated html. - * - * @param string - $width (ie. 80, 100%) - */ - public function set_width( $width ) { - $this->width = $width; - } + /** + * Set the width for the widget. + * this is meant to be the overall + * width expected to be used to + * control the generated html. + * + * @param string - $width (ie. 80, 100%) + */ + public function set_width( $width ) { + $this->width = $width; + } - /** - * Function for getting the current - * widget width setting. - * - * @return string - the width - */ - public function get_width() { - return $this->width; - } + /** + * Function for getting the current + * widget width setting. + * + * @return string - the width + */ + public function get_width() { + return $this->width; + } - /** - * This function sets the align attribute - * for the outer table. - * - * @param string - $align - the align value - */ - public function set_align( $align ) { - $this->_align = $align; - } + /** + * This function sets the align attribute + * for the outer table. + * + * @param string - $align - the align value + */ + public function set_align( $align ) { + $this->_align = $align; + } - /** - * This gets the alignment value - * for the outer table - * - * @return string - the alignment - */ - public function get_align() { - return $this->_align; - } + /** + * This gets the alignment value + * for the outer table + * + * @return string - the alignment + */ + public function get_align() { + return $this->_align; + } } ?> |