| 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><font color="green">'.T_('Writeable').'</font></b>' : '<b><font color="red">'.T_('Unwriteable').'</font></b>' . '</td>'; |
| 22 |
echo '</tr>'; |
echo '</tr>'; |
| 23 |
} |
} |
| 24 |
|
|
| 170 |
* @returns string HTML for the radio list |
* @returns string HTML for the radio list |
| 171 |
*/ |
*/ |
| 172 |
function yesnoRadioList( $tag_name, $tag_attribs, $selected, $yes=_CMN_YES, $no=_CMN_NO ) { |
function yesnoRadioList( $tag_name, $tag_attribs, $selected, $yes=_CMN_YES, $no=_CMN_NO ) { |
| 173 |
|
|
| 174 |
$arr = array( |
$arr = array( |
| 175 |
mosHTML::makeOption( '0', $no, true ), |
mosHTML::makeOption( '0', $no, true ), |
| 176 |
mosHTML::makeOption( '1', $yes, true ) |
mosHTML::makeOption( '1', $yes, true ) |
| 668 |
} |
} |
| 669 |
} |
} |
| 670 |
|
|
| 671 |
|
/** |
| 672 |
|
* Tab Creation handler |
| 673 |
|
* @package Mambo |
| 674 |
|
* @author Phil Taylor |
| 675 |
|
*/ |
| 676 |
|
class mosTabs { |
| 677 |
|
/** @var int Use cookies */ |
| 678 |
|
var $useCookies = 0; |
| 679 |
|
|
| 680 |
|
/** |
| 681 |
|
* Constructor |
| 682 |
|
* Includes files needed for displaying tabs and sets cookie options |
| 683 |
|
* @param int useCookies, if set to 1 cookie will hold last used tab between page refreshes |
| 684 |
|
*/ |
| 685 |
|
function mosTabs($useCookies) { |
| 686 |
|
global $mosConfig_live_site; |
| 687 |
|
echo "<link id=\"luna-tab-style-sheet\" type=\"text/css\" rel=\"stylesheet\" href=\"" . $mosConfig_live_site. "/includes/js/tabs/tabpane.css\" />"; |
| 688 |
|
echo "<script type=\"text/javascript\" src=\"". $mosConfig_live_site . "/includes/js/tabs/tabpane.js\"></script>"; |
| 689 |
|
$this->useCookies = $useCookies; |
| 690 |
|
} |
| 691 |
|
|
| 692 |
|
/** |
| 693 |
|
* creates a tab pane and creates JS obj |
| 694 |
|
* @param string The Tab Pane Name |
| 695 |
|
*/ |
| 696 |
|
function startPane($id){ |
| 697 |
|
echo "<div class=\"tab-page\" id=\"".$id."\">"; |
| 698 |
|
echo "<script type=\"text/javascript\">\n"; |
| 699 |
|
echo " var tabPane1 = new WebFXTabPane( document.getElementById( \"".$id."\" ), ".$this->useCookies." )\n"; |
| 700 |
|
echo "</script>\n"; |
| 701 |
|
} |
| 702 |
|
|
| 703 |
|
/** |
| 704 |
|
* Ends Tab Pane |
| 705 |
|
*/ |
| 706 |
|
function endPane() { |
| 707 |
|
echo "</div>"; |
| 708 |
|
} |
| 709 |
|
|
| 710 |
|
/* |
| 711 |
|
* Creates a tab with title text and starts that tabs page |
| 712 |
|
* @param tabText - This is what is displayed on the tab |
| 713 |
|
* @param paneid - This is the parent pane to build this tab on |
| 714 |
|
*/ |
| 715 |
|
function startTab( $tabText, $paneid ) { |
| 716 |
|
echo "<div class=\"tab-page\" id=\"".$paneid."\">"; |
| 717 |
|
echo "<h2 class=\"tab\">".$tabText."</h2>"; |
| 718 |
|
echo "<script type=\"text/javascript\">\n"; |
| 719 |
|
echo " tabPane1.addTabPage( document.getElementById( \"".$paneid."\" ) );"; |
| 720 |
|
echo "</script>"; |
| 721 |
|
} |
| 722 |
|
|
| 723 |
|
/* |
| 724 |
|
* Ends a tab page |
| 725 |
|
*/ |
| 726 |
|
function endTab() { |
| 727 |
|
echo "</div>"; |
| 728 |
|
} |
| 729 |
|
} |
| 730 |
|
|
| 731 |
?> |
?> |