| 18 |
echo '<tr>'; |
echo '<tr>'; |
| 19 |
echo '<td class="item">' . $folder . '/</td>'; |
echo '<td class="item">' . $folder . '/</td>'; |
| 20 |
echo '<td align="left">'; |
echo '<td align="left">'; |
| 21 |
echo is_writable( "../$folder" ) ? '<b><font color="green">Writeable</font></b>' : '<b><font color="red">Unwriteable</font></b>' . '</td>'; |
echo is_writable( "../$folder" ) ? '<b><span class="green">'.T_('Writeable').'</span></b>' : '<b><span class="red">'.T_('Unwriteable').'</span></b>' . '</td>'; |
| 22 |
echo '</tr>'; |
echo '</tr>'; |
| 23 |
} |
} |
| 24 |
|
|
| 38 |
for ($i=0, $n=count( $arr ); $i < $n; $i++ ) { |
for ($i=0, $n=count( $arr ); $i < $n; $i++ ) { |
| 39 |
$k = $arr[$i]->$key; |
$k = $arr[$i]->$key; |
| 40 |
$t = $arr[$i]->$text; |
$t = $arr[$i]->$text; |
| 41 |
$id = @$arr[$i]->id; |
$id = isset($arr[$i]->id) ? $arr[$i]->id : null; |
| 42 |
|
|
| 43 |
$extra = ''; |
$extra = ''; |
| 44 |
$extra .= $id ? " id=\"" . $arr[$i]->id . "\"" : ''; |
$extra .= $id ? " id=\"" . $arr[$i]->id . "\"" : ''; |
| 92 |
*/ |
*/ |
| 93 |
function monthSelectList( $tag_name, $tag_attribs, $selected ) { |
function monthSelectList( $tag_name, $tag_attribs, $selected ) { |
| 94 |
$arr = array( |
$arr = array( |
| 95 |
mosHTML::makeOption( '01', _JAN ), |
mosHTML::makeOption( '01', T_('January') ), |
| 96 |
mosHTML::makeOption( '02', _FEB ), |
mosHTML::makeOption( '02', T_('February') ), |
| 97 |
mosHTML::makeOption( '03', _MAR ), |
mosHTML::makeOption( '03', T_('March') ), |
| 98 |
mosHTML::makeOption( '04', _APR ), |
mosHTML::makeOption( '04', T_('April') ), |
| 99 |
mosHTML::makeOption( '05', _MAY ), |
mosHTML::makeOption( '05', T_('May') ), |
| 100 |
mosHTML::makeOption( '06', _JUN ), |
mosHTML::makeOption( '06', T_('June') ), |
| 101 |
mosHTML::makeOption( '07', _JUL ), |
mosHTML::makeOption( '07', T_('July') ), |
| 102 |
mosHTML::makeOption( '08', _AUG ), |
mosHTML::makeOption( '08', T_('August') ), |
| 103 |
mosHTML::makeOption( '09', _SEP ), |
mosHTML::makeOption( '09', T_('September') ), |
| 104 |
mosHTML::makeOption( '10', _OCT ), |
mosHTML::makeOption( '10', T_('October') ), |
| 105 |
mosHTML::makeOption( '11', _NOV ), |
mosHTML::makeOption( '11', T_('November') ), |
| 106 |
mosHTML::makeOption( '12', _DEC ) |
mosHTML::makeOption( '12', T_('December') ) |
| 107 |
); |
); |
| 108 |
|
|
| 109 |
return mosHTML::selectList( $arr, $tag_name, $tag_attribs, 'value', 'text', $selected ); |
return mosHTML::selectList( $arr, $tag_name, $tag_attribs, 'value', 'text', $selected ); |
| 116 |
* @param mixed The key that is selected |
* @param mixed The key that is selected |
| 117 |
* @returns string HTML for the select list values |
* @returns string HTML for the select list values |
| 118 |
*/ |
*/ |
| 119 |
function yesnoSelectList( $tag_name, $tag_attribs, $selected, $yes=_CMN_YES, $no=_CMN_NO ) { |
function yesnoSelectList( $tag_name, $tag_attribs, $selected, $yes=false, $no=false ) { |
| 120 |
$arr = array( |
$arr = array( |
| 121 |
mosHTML::makeOption( '0', $no ), |
mosHTML::makeOption( '0', $no ? $no : T_('Yes') ), |
| 122 |
mosHTML::makeOption( '1', $yes ), |
mosHTML::makeOption( '1', $yes ? $yes : T_('No') ), |
| 123 |
); |
); |
| 124 |
|
|
| 125 |
return mosHTML::selectList( $arr, $tag_name, $tag_attribs, 'value', 'text', $selected ); |
return mosHTML::selectList( $arr, $tag_name, $tag_attribs, 'value', 'text', $selected ); |
| 138 |
function radioList( &$arr, $tag_name, $tag_attribs, $selected=null, $key='value', $text='text' ) { |
function radioList( &$arr, $tag_name, $tag_attribs, $selected=null, $key='value', $text='text' ) { |
| 139 |
reset( $arr ); |
reset( $arr ); |
| 140 |
$html = ""; |
$html = ""; |
| 141 |
for ($i=0, $n=count( $arr ); $i < $n; $i++ ) { |
foreach ($arr as $choice) { |
| 142 |
$k = $arr[$i]->$key; |
$id = @$choice->id; |
| 143 |
$t = $arr[$i]->$text; |
$extra = $id ? " id=\"" . $choice->id . "\"" : ''; |
|
$id = @$arr[$i]->id; |
|
|
|
|
|
$extra = ''; |
|
|
$extra .= $id ? " id=\"" . $arr[$i]->id . "\"" : ''; |
|
| 144 |
if (is_array( $selected )) { |
if (is_array( $selected )) { |
| 145 |
foreach ($selected as $obj) { |
foreach ($selected as $obj) { |
| 146 |
$k2 = $obj->$key; |
if ($choice->$key == $obj->$key) { |
| 147 |
if ($k == $k2) { |
$extra .= ' selected="selected"'; |
|
$extra .= " selected=\"selected\""; |
|
| 148 |
break; |
break; |
| 149 |
} |
} |
| 150 |
} |
} |
| 151 |
} else { |
} else { |
| 152 |
$extra .= ($k == $selected ? " checked=\"checked\"" : ''); |
$extra .= ($choice->$key == $selected ? " checked=\"checked\"" : ''); |
| 153 |
} |
} |
| 154 |
$html .= "\n\t<input type=\"radio\" name=\"$tag_name\" value=\"".$k."\"$extra $tag_attribs />" . $t; |
$html .= "\n\t<input type=\"radio\" name=\"$tag_name\" value=\"".$choice->$key."\"$extra $tag_attribs />" . $choice->$text; |
| 155 |
} |
} |
| 156 |
$html .= "\n"; |
$html .= "\n"; |
| 157 |
return $html; |
return $html; |
| 164 |
* @param mixed The key that is selected |
* @param mixed The key that is selected |
| 165 |
* @returns string HTML for the radio list |
* @returns string HTML for the radio list |
| 166 |
*/ |
*/ |
| 167 |
function yesnoRadioList( $tag_name, $tag_attribs, $selected, $yes=_CMN_YES, $no=_CMN_NO ) { |
function yesnoRadioList( $tag_name, $tag_attribs, $selected, $yes=false, $no=false ) { |
| 168 |
|
|
| 169 |
$arr = array( |
$arr = array( |
| 170 |
mosHTML::makeOption( '0', $no, true ), |
mosHTML::makeOption( '0', $no ? $no : T_('No') ), |
| 171 |
mosHTML::makeOption( '1', $yes, true ) |
mosHTML::makeOption( '1', $yes ? $yes : T_('Yes') ) |
| 172 |
); |
); |
| 173 |
return mosHTML::radioList( $arr, $tag_name, $tag_attribs, $selected ); |
return mosHTML::radioList( $arr, $tag_name, $tag_attribs, $selected ); |
| 174 |
} |
} |
| 192 |
global $mosConfig_live_site; |
global $mosConfig_live_site; |
| 193 |
|
|
| 194 |
$alts = array( |
$alts = array( |
| 195 |
'none' => _CMN_SORT_NONE, |
'none' => T_('No Sorting'), |
| 196 |
'asc' => _CMN_SORT_ASC, |
'asc' => T_('Sort Ascending'), |
| 197 |
'desc' => _CMN_SORT_DESC, |
'desc' => T_('Sort Descending'), |
| 198 |
); |
); |
| 199 |
$next_state = 'asc'; |
$next_state = 'asc'; |
| 200 |
if ($state == 'asc') { |
if ($state == 'asc') { |
| 219 |
<div align="center" style="margin-top: 30px; margin-bottom: 30px;"> |
<div align="center" style="margin-top: 30px; margin-bottom: 30px;"> |
| 220 |
<a href='javascript:window.close();'> |
<a href='javascript:window.close();'> |
| 221 |
<span class="small"> |
<span class="small"> |
| 222 |
<?php echo _PROMPT_CLOSE;?> |
<?php echo T_('Close Window');?> |
| 223 |
</span> |
</span> |
| 224 |
</a> |
</a> |
| 225 |
</div> |
</div> |
| 236 |
?> |
?> |
| 237 |
<div class="back_button"> |
<div class="back_button"> |
| 238 |
<a href='javascript:history.go(-1)'> |
<a href='javascript:history.go(-1)'> |
| 239 |
<?php echo _BACK; ?> |
<?php echo T_('Back'); ?> |
| 240 |
</a> |
</a> |
| 241 |
</div> |
</div> |
| 242 |
<?php |
<?php |
| 273 |
// checks template image directory for image, if non found default are loaded |
// checks template image directory for image, if non found default are loaded |
| 274 |
if ( $params->get( 'icons' ) ) { |
if ( $params->get( 'icons' ) ) { |
| 275 |
$mainframe = mosMainFrame::getInstance(); |
$mainframe = mosMainFrame::getInstance(); |
| 276 |
$image = $mainframe->ImageCheck( 'printButton.png', '/images/M_images/', NULL, NULL, _CMN_PRINT ); |
$image = $mainframe->ImageCheck( 'printButton.png', '/images/M_images/', NULL, NULL, T_('Print')); |
| 277 |
} else { |
} else { |
| 278 |
$image = _ICON_SEP .' '. _CMN_PRINT. ' '. _ICON_SEP; |
$image = _ICON_SEP .' '. T_('Print'). ' '. _ICON_SEP; |
| 279 |
} |
} |
| 280 |
|
|
| 281 |
if ( $params->get( 'popup' ) && !$hide_js ) { |
if ( $params->get( 'popup' ) && !$hide_js ) { |
| 282 |
// Print Preview button - used when viewing page |
// Print Preview button - used when viewing page |
| 283 |
?> |
?> |
| 284 |
<td align="right" width="100%" class="buttonheading"> |
<td align="right" width="100%" class="buttonheading"> |
| 285 |
<a href="#" onclick="javascript:window.print(); return false" title="<?php echo _CMN_PRINT;?>"> |
<a href="#" onclick="javascript:window.print(); return false" title="<?php echo T_('Print');?>"> |
| 286 |
<?php echo $image;?> |
<?php echo $image;?> |
| 287 |
</a> |
</a> |
| 288 |
</td> |
</td> |
| 291 |
// Print Button - used in pop-up window |
// Print Button - used in pop-up window |
| 292 |
?> |
?> |
| 293 |
<td align="right" width="100%" class="buttonheading"> |
<td align="right" width="100%" class="buttonheading"> |
| 294 |
<a href="javascript:void window.open('<?php echo $link; ?>', 'win2', '<?php echo $status; ?>');" title="<?php echo _CMN_PRINT;?>"> |
<a href="javascript:void window.open('<?php echo $link; ?>', 'win2', '<?php echo $status; ?>');" title="<?php echo T_('Print');?>"> |
| 295 |
<?php echo $image;?> |
<?php echo $image;?> |
| 296 |
</a> |
</a> |
| 297 |
</td> |
</td> |
| 347 |
$replacement .= "//--> \n"; |
$replacement .= "//--> \n"; |
| 348 |
$replacement .= "</script> \n"; |
$replacement .= "</script> \n"; |
| 349 |
$replacement .= "<noscript> \n"; |
$replacement .= "<noscript> \n"; |
| 350 |
$replacement .= _CLOAKING; |
$replacement .= T_('This email address is being protected from spam bots, you need Javascript enabled to view it'); |
| 351 |
$replacement .= "\n</noscript> \n"; |
$replacement .= "\n</noscript> \n"; |
| 352 |
|
|
| 353 |
return $replacement; |
return $replacement; |
| 372 |
<table cellspacing="0" cellpadding="4" border="0" align="center"> |
<table cellspacing="0" cellpadding="4" border="0" align="center"> |
| 373 |
<tr align="center"> |
<tr align="center"> |
| 374 |
<td> |
<td> |
| 375 |
<img src="images/publish_y.png" width="12" height="12" border="0" alt="Pending" /> |
<img src="images/publish_y.png" width="12" height="12" border="0" alt="<?php T_('Pending') ?>" /> |
| 376 |
</td> |
</td> |
| 377 |
<td> |
<td> |
| 378 |
Published, but is <u>Pending</u> | |
<?php T_('Published, but is <u>Pending') ?></u> | |
| 379 |
</td> |
</td> |
| 380 |
<td> |
<td> |
| 381 |
<img src="images/publish_g.png" width="12" height="12" border="0" alt="Visible" /> |
<img src="images/publish_g.png" width="12" height="12" border="0" alt="<?php T_('Visible') ?>" /> |
| 382 |
</td> |
</td> |
| 383 |
<td> |
<td> |
| 384 |
Published and is <u>Current</u> | |
<?php T_('Published and is <u>Current</u>') ?> | |
| 385 |
</td> |
</td> |
| 386 |
<td> |
<td> |
| 387 |
<img src="images/publish_r.png" width="12" height="12" border="0" alt="Finished" /> |
<img src="images/publish_r.png" width="12" height="12" border="0" alt="<?php T_('Finished') ?>" /> |
| 388 |
</td> |
</td> |
| 389 |
<td> |
<td> |
| 390 |
Published, but has <u>Expired</u> | |
<?php T_('Published, but has <u>Expired</u>') ?> | |
| 391 |
</td> |
</td> |
| 392 |
<td> |
<td> |
| 393 |
<img src="images/publish_x.png" width="12" height="12" border="0" alt="Finished" /> |
<img src="images/publish_x.png" width="12" height="12" border="0" alt="<?php T_('Finished') ?>" /> |
| 394 |
</td> |
</td> |
| 395 |
<td> |
<td> |
| 396 |
Not Published |
<?php T_('Not Published') ?> |
| 397 |
</td> |
</td> |
| 398 |
</tr> |
</tr> |
| 399 |
<tr> |
<tr> |
| 400 |
<td colspan="8" align="center"> |
<td colspan="8" align="center"> |
| 401 |
Click on icon to toggle state. |
<?php T_('Click on icon to toggle state.') ?> |
| 402 |
</td> |
</td> |
| 403 |
</tr> |
</tr> |
| 404 |
</table> |
</table> |
| 435 |
</tr> |
</tr> |
| 436 |
<tr> |
<tr> |
| 437 |
<td width="90px" valign="top"> |
<td width="90px" valign="top"> |
| 438 |
Menu |
<?php T_('Menu') ?> |
| 439 |
</td> |
</td> |
| 440 |
<td> |
<td> |
| 441 |
<a href="javascript:go2( 'go2menu', '<?php echo $menu->menutype; ?>' );" title="Go to Menu"> |
<a href="javascript:go2( 'go2menu', '<?php echo $menu->menutype; ?>' );" title="<?php T_('Go to Menu') ?>"> |
| 442 |
<?php echo $menu->menutype; ?> |
<?php echo $menu->menutype; ?> |
| 443 |
</a> |
</a> |
| 444 |
</td> |
</td> |
| 445 |
</tr> |
</tr> |
| 446 |
<tr> |
<tr> |
| 447 |
<td width="90px" valign="top"> |
<td width="90px" valign="top"> |
| 448 |
Link Name |
<?php T_('Link Name') ?> |
| 449 |
</td> |
</td> |
| 450 |
<td> |
<td> |
| 451 |
<strong> |
<strong> |
| 452 |
<a href="javascript:go2( 'go2menuitem', '<?php echo $menu->menutype; ?>', '<?php echo $menu->id; ?>' );" title="Go to Menu Item"> |
<a href="javascript:go2( 'go2menuitem', '<?php echo $menu->menutype; ?>', '<?php echo $menu->id; ?>' );" title="<?php T_('Go to Menu Item') ?>"> |
| 453 |
<?php echo $menu->name; ?> |
<?php echo $menu->name; ?> |
| 454 |
</a> |
</a> |
| 455 |
</strong> |
</strong> |
| 457 |
</tr> |
</tr> |
| 458 |
<tr> |
<tr> |
| 459 |
<td width="90px" valign="top"> |
<td width="90px" valign="top"> |
| 460 |
State |
<?php T_('State') ?> |
| 461 |
</td> |
</td> |
| 462 |
<td> |
<td> |
| 463 |
<?php |
<?php |
| 464 |
switch ( $menu->published ) { |
switch ( $menu->published ) { |
| 465 |
case -2: |
case -2: |
| 466 |
echo '<font color="red">Trashed</font>'; |
echo '<font color="red">'.T_('Trashed').'</font>'; |
| 467 |
break; |
break; |
| 468 |
case 0: |
case 0: |
| 469 |
echo 'UnPublished'; |
echo T_('UnPublished') ; |
| 470 |
break; |
break; |
| 471 |
case 1: |
case 1: |
| 472 |
default: |
default: |
| 473 |
echo '<font color="green">Published</font>'; |
echo '<font color="green">'.T_('Published').'</font>'; |
| 474 |
break; |
break; |
| 475 |
} |
} |
| 476 |
?> |
?> |
| 514 |
</tr> |
</tr> |
| 515 |
<tr> |
<tr> |
| 516 |
<td width="90px" valign="top"> |
<td width="90px" valign="top"> |
| 517 |
Menu |
<?php T_('Menu') ?> |
| 518 |
</td> |
</td> |
| 519 |
<td> |
<td> |
| 520 |
<a href="javascript:go2( 'go2menu', '<?php echo $menu->menutype; ?>' );" title="Go to Menu"> |
<a href="javascript:go2( 'go2menu', '<?php echo $menu->menutype; ?>' );" title="<?php T_('Go to Menu') ?>"> |
| 521 |
<?php echo $menu->menutype; ?> |
<?php echo $menu->menutype; ?> |
| 522 |
</a> |
</a> |
| 523 |
</td> |
</td> |
| 524 |
</tr> |
</tr> |
| 525 |
<tr> |
<tr> |
| 526 |
<td width="90px" valign="top"> |
<td width="90px" valign="top"> |
| 527 |
Type |
<?php T_('Type') ?> |
| 528 |
</td> |
</td> |
| 529 |
<td> |
<td> |
| 530 |
<?php echo $menu->type; ?> |
<?php echo $menu->type; ?> |
| 532 |
</tr> |
</tr> |
| 533 |
<tr> |
<tr> |
| 534 |
<td width="90px" valign="top"> |
<td width="90px" valign="top"> |
| 535 |
Item Name |
<?php T_('Item Name') ?> |
| 536 |
</td> |
</td> |
| 537 |
<td> |
<td> |
| 538 |
<strong> |
<strong> |
| 539 |
<a href="javascript:go2( 'go2menuitem', '<?php echo $menu->menutype; ?>', '<?php echo $menu->id; ?>' );" title="Go to Menu Item"> |
<a href="javascript:go2( 'go2menuitem', '<?php echo $menu->menutype; ?>', '<?php echo $menu->id; ?>' );" title="<?php T_('Go to Menu Item') ?>"> |
| 540 |
<?php echo $menu->name; ?> |
<?php echo $menu->name; ?> |
| 541 |
</a> |
</a> |
| 542 |
</strong> |
</strong> |
| 544 |
</tr> |
</tr> |
| 545 |
<tr> |
<tr> |
| 546 |
<td width="90px" valign="top"> |
<td width="90px" valign="top"> |
| 547 |
State |
<?php T_('State') ?> |
| 548 |
</td> |
</td> |
| 549 |
<td> |
<td> |
| 550 |
<?php |
<?php |
| 551 |
switch ( $menu->published ) { |
switch ( $menu->published ) { |
| 552 |
case -2: |
case -2: |
| 553 |
echo '<font color="red">Trashed</font>'; |
echo '<font color="red">'.T_('Trashed').'</font>'; |
| 554 |
break; |
break; |
| 555 |
case 0: |
case 0: |
| 556 |
echo 'UnPublished'; |
echo T_('UnPublished'); |
| 557 |
break; |
break; |
| 558 |
case 1: |
case 1: |
| 559 |
default: |
default: |
| 560 |
echo '<font color="green">Published</font>'; |
echo '<font color="green">'.T_('Published').'</font>'; |
| 561 |
break; |
break; |
| 562 |
} |
} |
| 563 |
?> |
?> |
| 581 |
$checked_out_text .= '<tr><td>'. $date .'</td></tr>'; |
$checked_out_text .= '<tr><td>'. $date .'</td></tr>'; |
| 582 |
$checked_out_text .= '<tr><td>'. $time .'</td></tr>'; |
$checked_out_text .= '<tr><td>'. $time .'</td></tr>'; |
| 583 |
$checked_out_text .= '</table>'; |
$checked_out_text .= '</table>'; |
| 584 |
$hover = 'onMouseOver="return overlib(\''. $checked_out_text .'\', CAPTION, \'Checked Out\', BELOW, RIGHT);" onMouseOut="return nd();"'; |
$hover = 'onMouseOver="return overlib(\''. $checked_out_text .'\', CAPTION, \''.T_('Checked Out') .'\', BELOW, RIGHT);" onMouseOut="return nd();"'; |
| 585 |
} |
} |
| 586 |
$checked = '<img src="images/checked_out.png" '. $hover .'/>'; |
$checked = '<img src="images/checked_out.png" '. $hover .'/>'; |
| 587 |
|
|
| 650 |
function PublishedProcessing( &$row, $i ) { |
function PublishedProcessing( &$row, $i ) { |
| 651 |
$img = $row->published ? 'publish_g.png' : 'publish_x.png'; |
$img = $row->published ? 'publish_g.png' : 'publish_x.png'; |
| 652 |
$task = $row->published ? 'unpublish' : 'publish'; |
$task = $row->published ? 'unpublish' : 'publish'; |
| 653 |
$alt = $row->published ? 'Published' : 'Unpublished'; |
$alt = $row->published ? T_('Published') : T_('Unpublished'); |
| 654 |
$action = $row->published ? 'Unpublish Item' : 'Publish item'; |
$action = $row->published ? T_('Unpublish Item') : T_('Publish item'); |
| 655 |
|
|
| 656 |
$href = ' |
$href = ' |
| 657 |
<a href="javascript: void(0);" onclick="return listItemTask(\'cb'. $i .'\',\''. $task .'\')" title="'. $action .'"> |
<a href="javascript: void(0);" onclick="return listItemTask(\'cb'. $i .'\',\''. $task .'\')" title="'. $action .'"> |
| 663 |
} |
} |
| 664 |
} |
} |
| 665 |
|
|
| 666 |
|
/** |
| 667 |
|
* Tab Creation handler |
| 668 |
|
* @package Mambo |
| 669 |
|
* @author Phil Taylor |
| 670 |
|
*/ |
| 671 |
|
class mosTabs { |
| 672 |
|
/** @var int Use cookies */ |
| 673 |
|
var $useCookies = 0; |
| 674 |
|
|
| 675 |
|
/** |
| 676 |
|
* Constructor |
| 677 |
|
* Includes files needed for displaying tabs and sets cookie options |
| 678 |
|
* @param int useCookies, if set to 1 cookie will hold last used tab between page refreshes |
| 679 |
|
*/ |
| 680 |
|
function mosTabs($useCookies) { |
| 681 |
|
global $mosConfig_live_site; |
| 682 |
|
echo "<link id=\"luna-tab-style-sheet\" type=\"text/css\" rel=\"stylesheet\" href=\"" . $mosConfig_live_site. "/includes/js/tabs/tabpane.css\" />"; |
| 683 |
|
echo "<script type=\"text/javascript\" src=\"". $mosConfig_live_site . "/includes/js/tabs/tabpane.js\"></script>"; |
| 684 |
|
$this->useCookies = $useCookies; |
| 685 |
|
} |
| 686 |
|
|
| 687 |
|
/** |
| 688 |
|
* creates a tab pane and creates JS obj |
| 689 |
|
* @param string The Tab Pane Name |
| 690 |
|
*/ |
| 691 |
|
function startPane($id){ |
| 692 |
|
echo "<div class=\"tab-page\" id=\"".$id."\">"; |
| 693 |
|
echo "<script type=\"text/javascript\">\n"; |
| 694 |
|
echo " var tabPane1 = new WebFXTabPane( document.getElementById( \"".$id."\" ), ".$this->useCookies." )\n"; |
| 695 |
|
echo "</script>\n"; |
| 696 |
|
} |
| 697 |
|
|
| 698 |
|
/** |
| 699 |
|
* Ends Tab Pane |
| 700 |
|
*/ |
| 701 |
|
function endPane() { |
| 702 |
|
echo "</div>"; |
| 703 |
|
} |
| 704 |
|
|
| 705 |
|
/* |
| 706 |
|
* Creates a tab with title text and starts that tabs page |
| 707 |
|
* @param tabText - This is what is displayed on the tab |
| 708 |
|
* @param paneid - This is the parent pane to build this tab on |
| 709 |
|
*/ |
| 710 |
|
function startTab( $tabText, $paneid ) { |
| 711 |
|
echo "<div class=\"tab-page\" id=\"".$paneid."\">"; |
| 712 |
|
echo "<h2 class=\"tab\">".$tabText."</h2>"; |
| 713 |
|
echo "<script type=\"text/javascript\">\n"; |
| 714 |
|
echo " tabPane1.addTabPage( document.getElementById( \"".$paneid."\" ) );"; |
| 715 |
|
echo "</script>"; |
| 716 |
|
} |
| 717 |
|
|
| 718 |
|
/* |
| 719 |
|
* Ends a tab page |
| 720 |
|
*/ |
| 721 |
|
function endTab() { |
| 722 |
|
echo "</div>"; |
| 723 |
|
} |
| 724 |
|
} |
| 725 |
|
|
| 726 |
?> |
?> |