| 57 |
var $_show_vertical_cellborder = TRUE; |
var $_show_vertical_cellborder = TRUE; |
| 58 |
|
|
| 59 |
|
|
| 60 |
|
/** |
| 61 |
|
* Show any internal borders? |
| 62 |
|
*/ |
| 63 |
|
var $_show_cellborders = TRUE; |
| 64 |
|
|
| 65 |
|
|
| 66 |
|
|
| 67 |
/** |
/** |
| 68 |
* The constructor |
* The constructor |
| 237 |
} |
} |
| 238 |
|
|
| 239 |
|
|
| 240 |
|
/** |
| 241 |
|
* This method is used to set the flag to |
| 242 |
|
* allow showing of the internal borders or not. |
| 243 |
|
* |
| 244 |
|
* @param boolean |
| 245 |
|
* @return none |
| 246 |
|
*/ |
| 247 |
|
function set_show_cellborders( $flag=true ) { |
| 248 |
|
$this->_show_cellborders = $flag; |
| 249 |
|
} |
| 250 |
|
|
| 251 |
|
|
| 252 |
|
|
| 253 |
|
|
| 254 |
/******************/ |
/******************/ |
| 255 |
/* Private APIs */ |
/* Private APIs */ |
| 330 |
$style .= "padding-left:5px;padding-right:5px;"; |
$style .= "padding-left:5px;padding-right:5px;"; |
| 331 |
|
|
| 332 |
//now determine the bordering |
//now determine the bordering |
| 333 |
if ( $col_num != $total_cols && |
if ($this->_show_cellborders) { |
| 334 |
$this->get_vertical_cellborder() ) { |
if ( $col_num != $total_cols && |
| 335 |
$class = "contentvertical"; |
$this->get_vertical_cellborder() ) { |
| 336 |
|
$class = "contentvertical"; |
| 337 |
|
} else { |
| 338 |
|
$class = "contentnovertical"; |
| 339 |
|
} |
| 340 |
|
$attributes = array("class" => $class); |
| 341 |
} else { |
} else { |
| 342 |
$class = "contentnovertical"; |
$attributes = array(); |
| 343 |
} |
} |
| 344 |
|
|
|
$attributes = array("class" => $class); |
|
| 345 |
return new TDtag( $attributes ); |
return new TDtag( $attributes ); |
| 346 |
} |
} |
| 347 |
} |
} |