| 52 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 53 |
*/ |
*/ |
| 54 |
function addNew( $task='new', $alt=_CMN_NEW ) { |
function addNew( $task='new', $alt=_CMN_NEW ) { |
| 55 |
$image = mosAdminMenus::ImageCheck( 'new.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 56 |
$image2 = mosAdminMenus::ImageCheck( 'new_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'new.png', '/images/', NULL, NULL, $alt, $task ); |
| 57 |
|
$image2 = $mainframe->ImageCheck( 'new_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 58 |
?> |
?> |
| 59 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 60 |
<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);"> |
| 70 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 71 |
*/ |
*/ |
| 72 |
function publish( $task='publish', $alt=_CMN_PUBLISHED ) { |
function publish( $task='publish', $alt=_CMN_PUBLISHED ) { |
| 73 |
$image = mosAdminMenus::ImageCheck( 'publish.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 74 |
$image2 = mosAdminMenus::ImageCheck( 'publish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'publish.png', '/images/', NULL, NULL, $alt, $task ); |
| 75 |
|
$image2 = $mainframe->ImageCheck( 'publish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 76 |
?> |
?> |
| 77 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 78 |
<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);"> |
| 88 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 89 |
*/ |
*/ |
| 90 |
function publishList( $task='publish', $alt=_CMN_PUBLISHED ) { |
function publishList( $task='publish', $alt=_CMN_PUBLISHED ) { |
| 91 |
$image = mosAdminMenus::ImageCheck( 'publish.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 92 |
$image2 = mosAdminMenus::ImageCheck( 'publish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'publish.png', '/images/', NULL, NULL, $alt, $task ); |
| 93 |
|
$image2 = $mainframe->ImageCheck( 'publish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 94 |
?> |
?> |
| 95 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 96 |
<a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('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('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);"> |
| 106 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 107 |
*/ |
*/ |
| 108 |
function unpublish( $task='unpublish', $alt=_CMN_UNPUBLISHED ) { |
function unpublish( $task='unpublish', $alt=_CMN_UNPUBLISHED ) { |
| 109 |
$image = mosAdminMenus::ImageCheck( 'unpublish.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 110 |
$image2 = mosAdminMenus::ImageCheck( 'unpublish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'unpublish.png', '/images/', NULL, NULL, $alt, $task ); |
| 111 |
|
$image2 = $mainframe->ImageCheck( 'unpublish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 112 |
?> |
?> |
| 113 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 114 |
<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);" > |
| 124 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 125 |
*/ |
*/ |
| 126 |
function unpublishList( $task='unpublish', $alt=_CMN_UNPUBLISHED ) { |
function unpublishList( $task='unpublish', $alt=_CMN_UNPUBLISHED ) { |
| 127 |
$image = mosAdminMenus::ImageCheck( 'unpublish.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 128 |
$image2 = mosAdminMenus::ImageCheck( 'unpublish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'unpublish.png', '/images/', NULL, NULL, $alt, $task ); |
| 129 |
|
$image2 = $mainframe->ImageCheck( 'unpublish_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 130 |
?> |
?> |
| 131 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 132 |
<a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('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('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);" > |
| 142 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 143 |
*/ |
*/ |
| 144 |
function archiveList( $task='archive', $alt=_CMN_ARCHIVE ) { |
function archiveList( $task='archive', $alt=_CMN_ARCHIVE ) { |
| 145 |
$image = mosAdminMenus::ImageCheck( 'archive.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 146 |
$image2 = mosAdminMenus::ImageCheck( 'archive_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'archive.png', '/images/', NULL, NULL, $alt, $task ); |
| 147 |
|
$image2 = $mainframe->ImageCheck( 'archive_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 148 |
?> |
?> |
| 149 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 150 |
<a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('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('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);"> |
| 160 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 161 |
*/ |
*/ |
| 162 |
function unarchiveList( $task='unarchive', $alt=_CMN_UNARCHIVE ) { |
function unarchiveList( $task='unarchive', $alt=_CMN_UNARCHIVE ) { |
| 163 |
$image = mosAdminMenus::ImageCheck( 'unarchive.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 164 |
$image2 = mosAdminMenus::ImageCheck( 'unarchive_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'unarchive.png', '/images/', NULL, NULL, $alt, $task ); |
| 165 |
|
$image2 = $mainframe->ImageCheck( 'unarchive_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 166 |
?> |
?> |
| 167 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 168 |
<a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('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('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);"> |
| 178 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 179 |
*/ |
*/ |
| 180 |
function editList( $task='edit', $alt=_E_EDIT ) { |
function editList( $task='edit', $alt=_E_EDIT ) { |
| 181 |
$image = mosAdminMenus::ImageCheck( 'html.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 182 |
$image2 = mosAdminMenus::ImageCheck( 'html_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'html.png', '/images/', NULL, NULL, $alt, $task ); |
| 183 |
|
$image2 = $mainframe->ImageCheck( 'html_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 184 |
?> |
?> |
| 185 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 186 |
<a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('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('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);"> |
| 196 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 197 |
*/ |
*/ |
| 198 |
function editHtml( $task='edit_source', $alt=_CMN_EDIT_HTML ) { |
function editHtml( $task='edit_source', $alt=_CMN_EDIT_HTML ) { |
| 199 |
$image = mosAdminMenus::ImageCheck( 'html.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 200 |
$image2 = mosAdminMenus::ImageCheck( 'html_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'html.png', '/images/', NULL, NULL, $alt, $task ); |
| 201 |
|
$image2 = $mainframe->ImageCheck( 'html_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 202 |
?> |
?> |
| 203 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 204 |
<a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('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('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);"> |
| 214 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 215 |
*/ |
*/ |
| 216 |
function editCss( $task='edit_css', $alt=_CMN_EDIT_CSS ) { |
function editCss( $task='edit_css', $alt=_CMN_EDIT_CSS ) { |
| 217 |
$image = mosAdminMenus::ImageCheck( 'css.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 218 |
$image2 = mosAdminMenus::ImageCheck( 'css_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'css.png', '/images/', NULL, NULL, $alt, $task ); |
| 219 |
|
$image2 = $mainframe->ImageCheck( 'css_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 220 |
?> |
?> |
| 221 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 222 |
<a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('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('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);"> |
| 233 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 234 |
*/ |
*/ |
| 235 |
function deleteList( $msg='', $task='remove', $alt=_CMN_DELETE ) { |
function deleteList( $msg='', $task='remove', $alt=_CMN_DELETE ) { |
| 236 |
$image = mosAdminMenus::ImageCheck( 'delete.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 237 |
$image2 = mosAdminMenus::ImageCheck( 'delete_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'delete.png', '/images/', NULL, NULL, $alt, $task ); |
| 238 |
|
$image2 = $mainframe->ImageCheck( 'delete_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 239 |
?> |
?> |
| 240 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 241 |
<a href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('Please make a selection from the list to delete'); } else if (confirm('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('Please make a selection from the list to delete'); } else if (confirm('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);"> |
| 254 |
$sql = "SELECT template FROM #__templates_menu WHERE client_id='0' AND menuid='0'"; |
$sql = "SELECT template FROM #__templates_menu WHERE client_id='0' AND menuid='0'"; |
| 255 |
$database->setQuery( $sql ); |
$database->setQuery( $sql ); |
| 256 |
$cur_template = $database->loadResult(); |
$cur_template = $database->loadResult(); |
| 257 |
$image = mosAdminMenus::ImageCheck( 'preview.png', 'images/', NULL, NULL, 'Preview', 'preview' ); |
$mainframe = mosMainFrame::getInstance(); |
| 258 |
$image2 = mosAdminMenus::ImageCheck( 'preview_f2.png', 'images/', NULL, NULL, 'Preview', 'preview', 0 ); |
$image = $mainframe->ImageCheck( 'preview.png', 'images/', NULL, NULL, 'Preview', 'preview' ); |
| 259 |
|
$image2 = $mainframe->ImageCheck( 'preview_f2.png', 'images/', NULL, NULL, 'Preview', 'preview', 0 ); |
| 260 |
?> |
?> |
| 261 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 262 |
<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);"> |
<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);"> |
| 272 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 273 |
*/ |
*/ |
| 274 |
function save( $task='save', $alt=_CMN_SAVE ) { |
function save( $task='save', $alt=_CMN_SAVE ) { |
| 275 |
$image = mosAdminMenus::ImageCheck( 'save.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 276 |
$image2 = mosAdminMenus::ImageCheck( 'save_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'save.png', '/images/', NULL, NULL, $alt, $task ); |
| 277 |
|
$image2 = $mainframe->ImageCheck( 'save_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 278 |
?> |
?> |
| 279 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 280 |
<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);"> |
| 288 |
* Writes a save button for a given option (NOTE this is being deprecated) |
* Writes a save button for a given option (NOTE this is being deprecated) |
| 289 |
*/ |
*/ |
| 290 |
function savenew() { |
function savenew() { |
| 291 |
$image = mosAdminMenus::ImageCheck( 'save.png', '/images/', NULL, NULL, 'save', 'save' ); |
$mainframe = mosMainFrame::getInstance(); |
| 292 |
$image2 = mosAdminMenus::ImageCheck( 'save_f2.png', '/images/', NULL, NULL, 'save', 'save', 0 ); |
$image = $mainframe->ImageCheck( 'save.png', '/images/', NULL, NULL, 'save', 'save' ); |
| 293 |
|
$image2 = $mainframe->ImageCheck( 'save_f2.png', '/images/', NULL, NULL, 'save', 'save', 0 ); |
| 294 |
?> |
?> |
| 295 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 296 |
<a href="javascript:submitbutton('savenew');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('save','','<?php echo $image2;?>',1);"> |
<a href="javascript:submitbutton('savenew');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('save','','<?php echo $image2;?>',1);"> |
| 304 |
* Writes a save button for a given option (NOTE this is being deprecated) |
* Writes a save button for a given option (NOTE this is being deprecated) |
| 305 |
*/ |
*/ |
| 306 |
function saveedit() { |
function saveedit() { |
| 307 |
$image = mosAdminMenus::ImageCheck( 'save.png', '/images/', NULL, NULL, 'save', 'save' ); |
$mainframe = mosMainFrame::getInstance(); |
| 308 |
$image2 = mosAdminMenus::ImageCheck( 'save_f2.png', '/images/', NULL, NULL, 'save', 'save', 0 ); |
$image = $mainframe->ImageCheck( 'save.png', '/images/', NULL, NULL, 'save', 'save' ); |
| 309 |
|
$image2 = $mainframe->ImageCheck( 'save_f2.png', '/images/', NULL, NULL, 'save', 'save', 0 ); |
| 310 |
?> |
?> |
| 311 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 312 |
<a href="javascript:submitbutton('saveedit');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('save','','<?php echo $image2;?>',1);"> |
<a href="javascript:submitbutton('saveedit');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('save','','<?php echo $image2;?>',1);"> |
| 322 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 323 |
*/ |
*/ |
| 324 |
function cancel( $task='cancel', $alt=_CMN_CANCEL ) { |
function cancel( $task='cancel', $alt=_CMN_CANCEL ) { |
| 325 |
$image = mosAdminMenus::ImageCheck( 'cancel.png', '/images/', NULL, NULL, $alt, $task ); |
$mainframe = mosMainFrame::getInstance(); |
| 326 |
$image2 = mosAdminMenus::ImageCheck( 'cancel_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
$image = $mainframe->ImageCheck( 'cancel.png', '/images/', NULL, NULL, $alt, $task ); |
| 327 |
|
$image2 = $mainframe->ImageCheck( 'cancel_f2.png', '/images/', NULL, NULL, $alt, $task, 0 ); |
| 328 |
?> |
?> |
| 329 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 330 |
<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);"> |
| 339 |
* any other operation |
* any other operation |
| 340 |
*/ |
*/ |
| 341 |
function back() { |
function back() { |
| 342 |
$image = mosAdminMenus::ImageCheck( 'back.png', '/images/', NULL, NULL, 'back', 'cancel' ); |
$mainframe = mosMainFrame::getInstance(); |
| 343 |
$image2 = mosAdminMenus::ImageCheck( 'back_f2.png', '/images/', NULL, NULL, 'back', 'cancel', 0 ); |
$image = $mainframe->ImageCheck( 'back.png', '/images/', NULL, NULL, 'back', 'cancel' ); |
| 344 |
|
$image2 = $mainframe->ImageCheck( 'back_f2.png', '/images/', NULL, NULL, 'back', 'cancel', 0 ); |
| 345 |
?> |
?> |
| 346 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 347 |
<a href="javascript:window.history.back();" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('cancel','','images/<?php echo $image2;?>',1);"> |
<a href="javascript:window.history.back();" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('cancel','','images/<?php echo $image2;?>',1);"> |
| 355 |
* Write a divider between menu buttons |
* Write a divider between menu buttons |
| 356 |
*/ |
*/ |
| 357 |
function divider() { |
function divider() { |
| 358 |
$image = mosAdminMenus::ImageCheck( 'menu_divider.png', '/images/' ); |
$image = $mainframe->ImageCheck( 'menu_divider.png', '/images/' ); |
| 359 |
?> |
?> |
| 360 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 361 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 368 |
* @param string The sub-drectory to upload the media to |
* @param string The sub-drectory to upload the media to |
| 369 |
*/ |
*/ |
| 370 |
function media_manager( $directory = '' ) { |
function media_manager( $directory = '' ) { |
| 371 |
$image = mosAdminMenus::ImageCheck( 'upload.png', '/images/', NULL, NULL, 'Upload Image', 'uploadPic' ); |
$mainframe = mosMainFrame::getInstance(); |
| 372 |
$image2 = mosAdminMenus::ImageCheck( 'upload_f2.png', '/images/', NULL, NULL, 'Upload Image', 'uploadPic', 0 ); |
$image = $mainframe->ImageCheck( 'upload.png', '/images/', NULL, NULL, 'Upload Image', 'uploadPic' ); |
| 373 |
|
$image2 = $mainframe->ImageCheck( 'upload_f2.png', '/images/', NULL, NULL, 'Upload Image', 'uploadPic', 0 ); |
| 374 |
?> |
?> |
| 375 |
<td width="25" align="center"> |
<td width="25" align="center"> |
| 376 |
<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);"> |
<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);"> |