| 54 |
function addNew( $task='new', $alt=null ) { |
function addNew( $task='new', $alt=null ) { |
| 55 |
if (is_null($alt)) $alt = T_('New'); |
if (is_null($alt)) $alt = T_('New'); |
| 56 |
|
|
| 57 |
$image = mosAdminMenus::ImageCheck( 'new.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 58 |
$image2 = mosAdminMenus::ImageCheck( 'new_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'new.png', '/images/', NULL, NULL, $alt, $task ); |
| 59 |
|
$image2 = $mainframe->ImageCheck( 'new_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 60 |
?> |
?> |
| 61 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 62 |
<a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
<a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
| 74 |
function publish( $task='publish', $alt=null ) { |
function publish( $task='publish', $alt=null ) { |
| 75 |
if (is_null($alt)) $alt = T_('Published'); |
if (is_null($alt)) $alt = T_('Published'); |
| 76 |
|
|
| 77 |
$image = mosAdminMenus::ImageCheck( 'publish.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 78 |
$image2 = mosAdminMenus::ImageCheck( 'publish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'publish.png', '/images/', NULL, NULL, $alt, $task ); |
| 79 |
|
$image2 = $mainframe->ImageCheck( 'publish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 80 |
?> |
?> |
| 81 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 82 |
<a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
<a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
| 94 |
function publishList( $task='publish', $alt=null ) { |
function publishList( $task='publish', $alt=null ) { |
| 95 |
if (is_null($alt)) $alt = T_('Published'); |
if (is_null($alt)) $alt = T_('Published'); |
| 96 |
|
|
| 97 |
$image = mosAdminMenus::ImageCheck( 'publish.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 98 |
$image2 = mosAdminMenus::ImageCheck( 'publish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'publish.png', '/images/', NULL, NULL, $alt, $task ); |
| 99 |
|
$image2 = $mainframe->ImageCheck( 'publish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 100 |
?> |
?> |
| 101 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 102 |
<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);"> |
<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);"> |
| 114 |
function unpublish( $task='unpublish', $alt=null ) { |
function unpublish( $task='unpublish', $alt=null ) { |
| 115 |
if (is_null($alt)) $alt = T_('Unpublished'); |
if (is_null($alt)) $alt = T_('Unpublished'); |
| 116 |
|
|
| 117 |
$image = mosAdminMenus::ImageCheck( 'unpublish.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 118 |
$image2 = mosAdminMenus::ImageCheck( 'unpublish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'unpublish.png', '/images/', NULL, NULL, $alt, $task ); |
| 119 |
|
$image2 = $mainframe->ImageCheck( 'unpublish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 120 |
?> |
?> |
| 121 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 122 |
<a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);" > |
<a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);" > |
| 134 |
function unpublishList( $task='unpublish', $alt=null ) { |
function unpublishList( $task='unpublish', $alt=null ) { |
| 135 |
if (is_null($alt)) $alt = T_('Unpublished'); |
if (is_null($alt)) $alt = T_('Unpublished'); |
| 136 |
|
|
| 137 |
$image = mosAdminMenus::ImageCheck( 'unpublish.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 138 |
$image2 = mosAdminMenus::ImageCheck( 'unpublish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'unpublish.png', '/images/', NULL, NULL, $alt, $task ); |
| 139 |
|
$image2 = $mainframe->ImageCheck( 'unpublish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 140 |
?> |
?> |
| 141 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 142 |
<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);" > |
<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);" > |
| 154 |
function archiveList( $task='archive', $alt=null ) { |
function archiveList( $task='archive', $alt=null ) { |
| 155 |
if (is_null($alt)) $alt = T_('Archive'); |
if (is_null($alt)) $alt = T_('Archive'); |
| 156 |
|
|
| 157 |
$image = mosAdminMenus::ImageCheck( 'archive.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 158 |
$image2 = mosAdminMenus::ImageCheck( 'archive_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'archive.png', '/images/', NULL, NULL, $alt, $task ); |
| 159 |
|
$image2 = $mainframe->ImageCheck( 'archive_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 160 |
?> |
?> |
| 161 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 162 |
<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);"> |
<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);"> |
| 174 |
function unarchiveList( $task='unarchive', $alt=null ) { |
function unarchiveList( $task='unarchive', $alt=null ) { |
| 175 |
if (is_null($alt)) $alt = T_('Unarchive'); |
if (is_null($alt)) $alt = T_('Unarchive'); |
| 176 |
|
|
| 177 |
$image = mosAdminMenus::ImageCheck( 'unarchive.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 178 |
$image2 = mosAdminMenus::ImageCheck( 'unarchive_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'unarchive.png', '/images/', NULL, NULL, $alt, $task ); |
| 179 |
|
$image2 = $mainframe->ImageCheck( 'unarchive_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 180 |
?> |
?> |
| 181 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 182 |
<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);"> |
<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);"> |
| 194 |
function editList( $task='edit', $alt=null ) { |
function editList( $task='edit', $alt=null ) { |
| 195 |
if (is_null($alt)) $alt = T_('Edit'); |
if (is_null($alt)) $alt = T_('Edit'); |
| 196 |
|
|
| 197 |
$image = mosAdminMenus::ImageCheck( 'html.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 198 |
$image2 = mosAdminMenus::ImageCheck( 'html_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'html.png', '/images/', NULL, NULL, $alt, $task ); |
| 199 |
|
$image2 = $mainframe->ImageCheck( 'html_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 200 |
?> |
?> |
| 201 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 202 |
<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);"> |
<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);"> |
| 213 |
*/ |
*/ |
| 214 |
function editHtml( $task='edit_source', $alt=null ) { |
function editHtml( $task='edit_source', $alt=null ) { |
| 215 |
if (is_null($alt)) $alt = T_('Edit HTML'); |
if (is_null($alt)) $alt = T_('Edit HTML'); |
| 216 |
$image = mosAdminMenus::ImageCheck( 'html.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 217 |
$image2 = mosAdminMenus::ImageCheck( 'html_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'html.png', '/images/', NULL, NULL, $alt, $task ); |
| 218 |
|
$image2 = $mainframe->ImageCheck( 'html_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 219 |
?> |
?> |
| 220 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 221 |
<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);"> |
<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);"> |
| 232 |
*/ |
*/ |
| 233 |
function editCss( $task='edit_css', $alt=null ) { |
function editCss( $task='edit_css', $alt=null ) { |
| 234 |
if (is_null($alt)) $alt = T_('Edit CSS'); |
if (is_null($alt)) $alt = T_('Edit CSS'); |
| 235 |
$image = mosAdminMenus::ImageCheck( 'css.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 236 |
$image2 = mosAdminMenus::ImageCheck( 'css_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'css.png', '/images/', NULL, NULL, $alt, $task ); |
| 237 |
|
$image2 = $mainframe->ImageCheck( 'css_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 238 |
?> |
?> |
| 239 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 240 |
<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);"> |
<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);"> |
| 253 |
function deleteList( $msg='', $task='remove', $alt=null ) { |
function deleteList( $msg='', $task='remove', $alt=null ) { |
| 254 |
if (is_null($alt)) $alt = T_('Delete'); |
if (is_null($alt)) $alt = T_('Delete'); |
| 255 |
|
|
| 256 |
$image = mosAdminMenus::ImageCheck( 'delete.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 257 |
$image2 = mosAdminMenus::ImageCheck( 'delete_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'delete.png', '/images/', NULL, NULL, $alt, $task ); |
| 258 |
|
$image2 = $mainframe->ImageCheck( 'delete_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 259 |
?> |
?> |
| 260 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 261 |
<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);"> |
<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);"> |
| 293 |
function save( $task='save', $alt=null ) { |
function save( $task='save', $alt=null ) { |
| 294 |
if (is_null($alt)) $alt = T_('Save'); |
if (is_null($alt)) $alt = T_('Save'); |
| 295 |
|
|
| 296 |
$image = mosAdminMenus::ImageCheck( 'save.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 297 |
$image2 = mosAdminMenus::ImageCheck( 'save_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'save.png', '/images/', NULL, NULL, $alt, $task ); |
| 298 |
|
$image2 = $mainframe->ImageCheck( 'save_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 299 |
?> |
?> |
| 300 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 301 |
<a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2;?>',1);"> |
<a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2;?>',1);"> |
| 343 |
function cancel( $task='cancel', $alt=null ) { |
function cancel( $task='cancel', $alt=null ) { |
| 344 |
if (is_null($alt)) $alt = T_('Cancel'); |
if (is_null($alt)) $alt = T_('Cancel'); |
| 345 |
|
|
| 346 |
$image = mosAdminMenus::ImageCheck( 'cancel.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 347 |
$image2 = mosAdminMenus::ImageCheck( 'cancel_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'cancel.png', '/images/', NULL, NULL, $alt, $task ); |
| 348 |
|
$image2 = $mainframe->ImageCheck( 'cancel_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 349 |
?> |
?> |
| 350 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 351 |
<a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2;?>',1);"> |
<a href="javascript:submitbutton('<?php echo $task;?>');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2;?>',1);"> |
| 375 |
* Write a divider between menu buttons |
* Write a divider between menu buttons |
| 376 |
*/ |
*/ |
| 377 |
function divider() { |
function divider() { |
| 378 |
$image = mosAdminMenus::ImageCheck( 'menu_divider.png', '/images/' ); |
$image = $mainframe->ImageCheck( 'menu_divider.png', '/images/' ); |
| 379 |
?> |
?> |
| 380 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 381 |
<?php echo $image; ?> |
<?php echo $image; ?> |