Public Member Functions | |
| startTable () | |
| custom ($task='', $icon='', $iconOver='', $alt='', $listSelect=true) | |
| addNew ($task='new', $alt=null) | |
| publish ($task='publish', $alt=null) | |
| publishList ($task='publish', $alt=null) | |
| unpublish ($task='unpublish', $alt=null) | |
| unpublishList ($task='unpublish', $alt=null) | |
| archiveList ($task='archive', $alt=null) | |
| unarchiveList ($task='unarchive', $alt=null) | |
| editList ($task='edit', $alt=null) | |
| editHtml ($task='edit_source', $alt=null) | |
| editCss ($task='edit_css', $alt=null) | |
| deleteList ($msg='', $task='remove', $alt=null) | |
| preview ($popup='') | |
| save ($task='save', $alt=null) | |
| savenew () | |
| saveedit () | |
| cancel ($task='cancel', $alt=null) | |
| back () | |
| divider () | |
| media_manager ($directory= '') | |
| spacer ($width='') | |
| endTable () | |
Definition at line 474 of file compatibilityClasses.php.
| mosToolBar::startTable | ( | ) |
Writes the start of the button bar table
Definition at line 479 of file compatibilityClasses.php.
00479 { 00480 ?> 00481 <table cellpadding="0" cellspacing="0" border="0" width="99%"> 00482 <tr> 00483 <?php 00484 }
| mosToolBar::custom | ( | $ | task = '', |
|
| $ | icon = '', |
|||
| $ | iconOver = '', |
|||
| $ | alt = '', |
|||
| $ | listSelect = true | |||
| ) |
Writes a custom option and task button for the button bar
| string | The task to perform (picked up by the switch($task) blocks | |
| string | The image to display | |
| string | The image to display when moused over | |
| string | The alt text for the icon image | |
| boolean | True if required to check that a standard list item is checked |
Definition at line 494 of file compatibilityClasses.php.
00494 { 00495 if ($listSelect) { 00496 $href = "javascript:if (document.adminForm.boxchecked.value == 0){ alert('".T_('Please make a selection from the list to') ." $alt');}else{submitbutton('$task')}"; 00497 } else { 00498 $href = "javascript:submitbutton('$task')"; 00499 } 00500 ?> 00501 <td width="25" align="center"> 00502 <a href="<?php echo $href;?>" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','images/<?php echo $iconOver;?>',1);"> 00503 <img name="<?php echo $task;?>" src="images/<?php echo $icon;?>" alt="<?php echo $alt;?>" border="0" /> 00504 </a> 00505 </td> 00506 <?php 00507 }
| mosToolBar::addNew | ( | $ | task = 'new', |
|
| $ | alt = null | |||
| ) |
Writes the common 'new' icon for the button bar
| string | An override for the task | |
| string | An override for the alt text |
Definition at line 514 of file compatibilityClasses.php.
References $mainframe, align, mosMainFrame::getInstance(), NULL, and T_().
00514 { 00515 if (is_null($alt)) $alt = T_('New'); 00516 00517 $mainframe = mosMainFrame::getInstance(); 00518 $image = $mainframe->ImageCheck( 'new.png', '/images/', NULL, NULL, $alt, $task ); 00519 $image2 = $mainframe->ImageCheck( 'new_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); 00520 ?> 00521 <td width="25" align="center"> 00522 <a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> 00523 <?php echo $image; ?> 00524 </a> 00525 </td> 00526 <?php 00527 }
| mosToolBar::publish | ( | $ | task = 'publish', |
|
| $ | alt = null | |||
| ) |
Writes a common 'publish' button
| string | An override for the task | |
| string | An override for the alt text |
Definition at line 534 of file compatibilityClasses.php.
References $mainframe, align, mosMainFrame::getInstance(), NULL, and T_().
00534 { 00535 if (is_null($alt)) $alt = T_('Published'); 00536 00537 $mainframe = mosMainFrame::getInstance(); 00538 $image = $mainframe->ImageCheck( 'publish.png', '/images/', NULL, NULL, $alt, $task ); 00539 $image2 = $mainframe->ImageCheck( 'publish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); 00540 ?> 00541 <td width="25" align="center"> 00542 <a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> 00543 <?php echo $image; ?> 00544 </a> 00545 </td> 00546 <?php 00547 }
| mosToolBar::publishList | ( | $ | task = 'publish', |
|
| $ | alt = null | |||
| ) |
Writes a common 'publish' button for a list of records
| string | An override for the task | |
| string | An override for the alt text |
Definition at line 554 of file compatibilityClasses.php.
References $mainframe, align, mosMainFrame::getInstance(), NULL, and T_().
00554 { 00555 if (is_null($alt)) $alt = T_('Published'); 00556 00557 $mainframe = mosMainFrame::getInstance(); 00558 $image = $mainframe->ImageCheck( 'publish.png', '/images/', NULL, NULL, $alt, $task ); 00559 $image2 = $mainframe->ImageCheck( 'publish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); 00560 ?> 00561 <td width="25" align="center"> 00562 <a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php echo T_('Please make a selection from the list to publish')?> '); } else {submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> 00563 <?php echo $image; ?> 00564 </a> 00565 </td> 00566 <?php 00567 }
| mosToolBar::unpublish | ( | $ | task = 'unpublish', |
|
| $ | alt = null | |||
| ) |
Writes a common 'unpublish' button
| string | An override for the task | |
| string | An override for the alt text |
Definition at line 574 of file compatibilityClasses.php.
References $mainframe, align, mosMainFrame::getInstance(), NULL, and T_().
00574 { 00575 if (is_null($alt)) $alt = T_('Unpublished'); 00576 00577 $mainframe = mosMainFrame::getInstance(); 00578 $image = $mainframe->ImageCheck( 'unpublish.png', '/images/', NULL, NULL, $alt, $task ); 00579 $image2 = $mainframe->ImageCheck( 'unpublish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); 00580 ?> 00581 <td width="25" align="center"> 00582 <a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);" > 00583 <?php echo $image; ?> 00584 </a> 00585 </td> 00586 <?php 00587 }
| mosToolBar::unpublishList | ( | $ | task = 'unpublish', |
|
| $ | alt = null | |||
| ) |
Writes a common 'unpublish' button for a list of records
| string | An override for the task | |
| string | An override for the alt text |
Definition at line 594 of file compatibilityClasses.php.
References $mainframe, align, mosMainFrame::getInstance(), NULL, and T_().
00594 { 00595 if (is_null($alt)) $alt = T_('Unpublished'); 00596 00597 $mainframe = mosMainFrame::getInstance(); 00598 $image = $mainframe->ImageCheck( 'unpublish.png', '/images/', NULL, NULL, $alt, $task ); 00599 $image2 = $mainframe->ImageCheck( 'unpublish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); 00600 ?> 00601 <td width="25" align="center"> 00602 <a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php T_('Please make a selection from the list to unpublish') ?>'); } else {submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);" > 00603 <?php echo $image; ?> 00604 </a> 00605 </td> 00606 <?php 00607 }
| mosToolBar::archiveList | ( | $ | task = 'archive', |
|
| $ | alt = null | |||
| ) |
Writes a common 'archive' button for a list of records
| string | An override for the task | |
| string | An override for the alt text |
Definition at line 614 of file compatibilityClasses.php.
References $mainframe, align, mosMainFrame::getInstance(), NULL, and T_().
00614 { 00615 if (is_null($alt)) $alt = T_('Archive'); 00616 00617 $mainframe = mosMainFrame::getInstance(); 00618 $image = $mainframe->ImageCheck( 'archive.png', '/images/', NULL, NULL, $alt, $task ); 00619 $image2 = $mainframe->ImageCheck( 'archive_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); 00620 ?> 00621 <td width="25" align="center"> 00622 <a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php T_('Please make a selection from the list to archive') ?>'); } else {submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> 00623 <?php echo $image; ?> 00624 </a> 00625 </td> 00626 <?php 00627 }
| mosToolBar::unarchiveList | ( | $ | task = 'unarchive', |
|
| $ | alt = null | |||
| ) |
Writes an unarchive button for a list of records
| string | An override for the task | |
| string | An override for the alt text |
Definition at line 634 of file compatibilityClasses.php.
References $mainframe, align, mosMainFrame::getInstance(), NULL, and T_().
00634 { 00635 if (is_null($alt)) $alt = T_('Unarchive'); 00636 00637 $mainframe = mosMainFrame::getInstance(); 00638 $image = $mainframe->ImageCheck( 'unarchive.png', '/images/', NULL, NULL, $alt, $task ); 00639 $image2 = $mainframe->ImageCheck( 'unarchive_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); 00640 ?> 00641 <td width="25" align="center"> 00642 <a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php T_('Please select a news story to unarchive') ?>'); } else {submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> 00643 <?php echo $image; ?> 00644 </a> 00645 </td> 00646 <?php 00647 }
| mosToolBar::editList | ( | $ | task = 'edit', |
|
| $ | alt = null | |||
| ) |
Writes a common 'edit' button for a list of records
| string | An override for the task | |
| string | An override for the alt text |
Definition at line 654 of file compatibilityClasses.php.
References $mainframe, align, mosMainFrame::getInstance(), NULL, and T_().
00654 { 00655 if (is_null($alt)) $alt = T_('Edit'); 00656 00657 $mainframe = mosMainFrame::getInstance(); 00658 $image = $mainframe->ImageCheck( 'html.png', '/images/', NULL, NULL, $alt, $task ); 00659 $image2 = $mainframe->ImageCheck( 'html_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); 00660 ?> 00661 <td width="25" align="center"> 00662 <a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php T_('Please select an item from the list to edit') ?>'); } else {submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> 00663 <?php echo $image; ?> 00664 </a> 00665 </td> 00666 <?php 00667 }
| mosToolBar::editHtml | ( | $ | task = 'edit_source', |
|
| $ | alt = null | |||
| ) |
Writes a common 'edit' button for a template html
| string | An override for the task | |
| string | An override for the alt text |
Definition at line 674 of file compatibilityClasses.php.
References $mainframe, align, mosMainFrame::getInstance(), NULL, and T_().
00674 { 00675 if (is_null($alt)) $alt = T_('Edit HTML'); 00676 $mainframe = mosMainFrame::getInstance(); 00677 $image = $mainframe->ImageCheck( 'html.png', '/images/', NULL, NULL, $alt, $task ); 00678 $image2 = $mainframe->ImageCheck( 'html_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); 00679 ?> 00680 <td width="25" align="center"> 00681 <a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php T_('Please select an item from the list to edit') ?>'); } else {submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> 00682 <?php echo $image; ?> 00683 </a> 00684 </td> 00685 <?php 00686 }
| mosToolBar::editCss | ( | $ | task = 'edit_css', |
|
| $ | alt = null | |||
| ) |
Writes a common 'edit' button for a template css
| string | An override for the task | |
| string | An override for the alt text |
Definition at line 693 of file compatibilityClasses.php.
References $mainframe, align, mosMainFrame::getInstance(), NULL, and T_().
00693 { 00694 if (is_null($alt)) $alt = T_('Edit CSS'); 00695 $mainframe = mosMainFrame::getInstance(); 00696 $image = $mainframe->ImageCheck( 'css.png', '/images/', NULL, NULL, $alt, $task ); 00697 $image2 = $mainframe->ImageCheck( 'css_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); 00698 ?> 00699 <td width="25" align="center"> 00700 <a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php T_('Please select an item from the list to edit') ?>'); } else {submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> 00701 <?php echo $image; ?> 00702 </a> 00703 </td> 00704 <?php 00705 }
| mosToolBar::deleteList | ( | $ | msg = '', |
|
| $ | task = 'remove', |
|||
| $ | alt = null | |||
| ) |
Writes a common 'delete' button for a list of records
| string | Postscript for the 'are you sure' message | |
| string | An override for the task | |
| string | An override for the alt text |
Definition at line 713 of file compatibilityClasses.php.
References $mainframe, align, mosMainFrame::getInstance(), NULL, and T_().
00713 { 00714 if (is_null($alt)) $alt = T_('Delete'); 00715 00716 $mainframe = mosMainFrame::getInstance(); 00717 $image = $mainframe->ImageCheck( 'delete.png', '/images/', NULL, NULL, $alt, $task ); 00718 $image2 = $mainframe->ImageCheck( 'delete_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); 00719 ?> 00720 <td width="25" align="center"> 00721 <a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php T_('Please make a selection from the list to delete') ?>'); } else if (confirm('<?php T_('Are you sure you want to delete selected items?') ?> <?php echo $msg;?>')){ submitbutton('<?php echo $task;?>');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> 00722 <?php echo $image; ?> 00723 </a> 00724 </td> 00725 <?php 00726 }
| mosToolBar::preview | ( | $ | popup = '' |
) |
Writes a preview button for a given option (opens a popup window)
| string | The name of the popup file (excluding the file extension) |
Definition at line 732 of file compatibilityClasses.php.
References align, NULL, and T_().
00732 { 00733 die('Preview is not currently supported'); 00734 $sql = "SELECT template FROM #__templates_menu WHERE client_id='0' AND menuid='0'"; 00735 $database->setQuery( $sql ); 00736 $cur_template = $database->loadResult(); 00737 $image = mosAdminMenus::ImageCheck( 'preview.png', 'images/', NULL, NULL, T_('Preview'), 'preview' ); 00738 $image2 = mosAdminMenus::ImageCheck( 'preview_f2.png', 'images/', NULL, NULL, T_('Preview'), 'preview', 0 ); 00739 ?> 00740 <td width="25" align="center"> 00741 <a href="#" onclick="window.open('popups/<?php echo $popup;?>.php?t=<?php echo $cur_template; ?>', 'win1', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('preview','','<?php echo $image2; ?>',1);"> 00742 <?php echo $image; ?> 00743 </a> 00744 </td> 00745 <?php 00746 }
| mosToolBar::save | ( | $ | task = 'save', |
|
| $ | alt = null | |||
| ) |
Writes a save button for a given option
| string | An override for the task | |
| string | An override for the alt text |
Definition at line 753 of file compatibilityClasses.php.
References $mainframe, align, mosMainFrame::getInstance(), NULL, and T_().
00753 { 00754 if (is_null($alt)) $alt = T_('Save'); 00755 00756 $mainframe = mosMainFrame::getInstance(); 00757 $image = $mainframe->ImageCheck( 'save.png', '/images/', NULL, NULL, $alt, $task ); 00758 $image2 = $mainframe->ImageCheck( 'save_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); 00759 ?> 00760 <td width="25" align="center"> 00761 <a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2;?>',1);"> 00762 <?php echo $image;?> 00763 </a> 00764 </td> 00765 <?php 00766 }
| mosToolBar::savenew | ( | ) |
Writes a save button for a given option (NOTE this is being deprecated)
Definition at line 771 of file compatibilityClasses.php.
References align, NULL, and T_().
00771 { 00772 $image = mosAdminMenus::ImageCheck( 'save.png', '/images/', NULL, NULL, T_('save'), 'save' ); 00773 $image2 = mosAdminMenus::ImageCheck( 'save_f2.png', '/images/', NULL, NULL, T_('save'), 'save', 0 ); 00774 ?> 00775 <td width="25" align="center"> 00776 <a href="javascript:submitbutton('savenew');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('save','','<?php echo $image2;?>',1);"> 00777 <?php echo $image;?> 00778 </a> 00779 </td> 00780 <?php 00781 }
| mosToolBar::saveedit | ( | ) |
Writes a save button for a given option (NOTE this is being deprecated)
Definition at line 786 of file compatibilityClasses.php.
References align, NULL, and T_().
00786 { 00787 $image = mosAdminMenus::ImageCheck( 'save.png', '/images/', NULL, NULL, T_('save'), 'save' ); 00788 $image2 = mosAdminMenus::ImageCheck( 'save_f2.png', '/images/', NULL, NULL, T_('save'), 'save', 0 ); 00789 ?> 00790 <td width="25" align="center"> 00791 <a href="javascript:submitbutton('saveedit');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('save','','<?php echo $image2;?>',1);"> 00792 <?php echo $image;?> 00793 </a> 00794 </td> 00795 <?php 00796 }
| mosToolBar::cancel | ( | $ | task = 'cancel', |
|
| $ | alt = null | |||
| ) |
Writes a cancel button and invokes a cancel operation (eg a checkin)
| string | An override for the task | |
| string | An override for the alt text |
Definition at line 803 of file compatibilityClasses.php.
References $mainframe, align, mosMainFrame::getInstance(), NULL, and T_().
00803 { 00804 if (is_null($alt)) $alt = T_('Cancel'); 00805 00806 $mainframe = mosMainFrame::getInstance(); 00807 $image = $mainframe->ImageCheck( 'cancel.png', '/images/', NULL, NULL, $alt, $task ); 00808 $image2 = $mainframe->ImageCheck( 'cancel_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); 00809 ?> 00810 <td width="25" align="center"> 00811 <a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2;?>',1);"> 00812 <?php echo $image;?> 00813 </a> 00814 </td> 00815 <?php 00816 }
| mosToolBar::back | ( | ) |
Writes a cancel button that will go back to the previous page without doing any other operation
Definition at line 822 of file compatibilityClasses.php.
References align, NULL, and T_().
00822 { 00823 $image = mosAdminMenus::ImageCheck( 'back.png', '/images/', NULL, NULL, T_('back'), 'cancel' ); 00824 $image2 = mosAdminMenus::ImageCheck( 'back_f2.png', '/images/', NULL, NULL, T_('back'), 'cancel', 0 ); 00825 ?> 00826 <td width="25" align="center"> 00827 <a href="javascript:window.history.back();" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('cancel','','images/<?php echo $image2;?>',1);"> 00828 <?php echo $image;?> 00829 </a> 00830 </td> 00831 <?php 00832 }
| mosToolBar::divider | ( | ) |
Write a divider between menu buttons
Definition at line 837 of file compatibilityClasses.php.
References $mainframe, and align.
00837 { 00838 $image = $mainframe->ImageCheck( 'menu_divider.png', '/images/' ); 00839 ?> 00840 <td width="25" align="center"> 00841 <?php echo $image; ?> 00842 </td> 00843 <?php 00844 }
| mosToolBar::media_manager | ( | $ | directory = '' |
) |
Writes a media_manager button
| string | The sub-drectory to upload the media to |
Definition at line 850 of file compatibilityClasses.php.
References align, NULL, and T_().
00850 { 00851 $image = mosAdminMenus::ImageCheck( 'upload.png', '/images/', NULL, NULL, T_('Upload Image'), 'uploadPic' ); 00852 $image2 = mosAdminMenus::ImageCheck( 'upload_f2.png', '/images/', NULL, NULL, T_('Upload Image'), 'uploadPic', 0 ); 00853 ?> 00854 <td width="25" align="center"> 00855 <a href="#" onclick="popupWindow('popups/uploadimage.php?directory=<?php echo $directory; ?>','win1',250,100,'no');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('uploadPic','','<?php echo $image2; ?>',1);"> 00856 <?php echo $image; ?> 00857 </a> 00858 </td> 00859 <?php 00860 }
| mosToolBar::spacer | ( | $ | width = '' |
) |
Writes a spacer cell
| string | The width for the cell |
Definition at line 866 of file compatibilityClasses.php.
00867 { 00868 if ($width != '') { 00869 ?> 00870 <td width="<?php echo $width;?>"> </td> 00871 <?php 00872 } else { 00873 ?> 00874 <td> </td> 00875 <?php 00876 } 00877 }
| mosToolBar::endTable | ( | ) |
1.5.5