| 40 |
*/ |
*/ |
| 41 |
function custom( $task='', $icon='', $iconOver='', $alt='', $listSelect=true ) { |
function custom( $task='', $icon='', $iconOver='', $alt='', $listSelect=true ) { |
| 42 |
if ($listSelect) { |
if ($listSelect) { |
| 43 |
$href = "javascript:if (document.adminForm.boxchecked.value == 0){ alert('Please make a selection from the list to $alt');}else{submitbutton('$task')}"; |
$href = "javascript:if (document.adminForm.boxchecked.value == 0){ alert('".sprintf(T_('Please make a selection from the list to %s'),$alt)."');}else{submitbutton('$task')}"; |
| 44 |
} else { |
} else { |
| 45 |
$href = "javascript:submitbutton('$task')"; |
$href = "javascript:submitbutton('$task')"; |
| 46 |
} |
} |
| 75 |
*/ |
*/ |
| 76 |
function customX( $task='', $icon='', $iconOver='', $alt='', $listSelect=true ) { |
function customX( $task='', $icon='', $iconOver='', $alt='', $listSelect=true ) { |
| 77 |
if ($listSelect) { |
if ($listSelect) { |
| 78 |
$href = "javascript:if (document.adminForm.boxchecked.value == 0){ alert('Please make a selection from the list to $alt');}else{hideMainMenu();submitbutton('$task')}"; |
$href = "javascript:if (document.adminForm.boxchecked.value == 0){ alert('".sprintf(T_('Please make a selection from the list to %s'), $alt)."');}else{hideMainMenu();submitbutton('$task')}"; |
| 79 |
} else { |
} else { |
| 80 |
$href = "javascript:hideMainMenu();submitbutton('$task')"; |
$href = "javascript:hideMainMenu();submitbutton('$task')"; |
| 81 |
} |
} |
| 104 |
* @param string An override for the task |
* @param string An override for the task |
| 105 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 106 |
*/ |
*/ |
| 107 |
function addNew( $task='new', $alt='New' ) { |
function addNew( $task='new', $alt=null ) { |
| 108 |
|
if (is_null($alt)) $alt = T_('New'); |
| 109 |
$image = mosAdminMenus::ImageCheckAdmin( 'new.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'new.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 110 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'new_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'new_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 111 |
?> |
?> |
| 124 |
* @param string An override for the task |
* @param string An override for the task |
| 125 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 126 |
*/ |
*/ |
| 127 |
function addNewX( $task='new', $alt='New' ) { |
function addNewX( $task='new', $alt=null ) { |
| 128 |
|
if (is_null($alt)) $alt = T_('New'); |
| 129 |
$image = mosAdminMenus::ImageCheckAdmin( 'new.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'new.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 130 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'new_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'new_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 131 |
?> |
?> |
| 143 |
* @param string An override for the task |
* @param string An override for the task |
| 144 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 145 |
*/ |
*/ |
| 146 |
function publish( $task='publish', $alt='Publish' ) { |
function publish( $task='publish', $alt=null ) { |
| 147 |
|
if (is_null($alt)) $alt = T_('Publish'); |
| 148 |
$image = mosAdminMenus::ImageCheckAdmin( 'publish.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'publish.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 149 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'publish_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'publish_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 150 |
?> |
?> |
| 162 |
* @param string An override for the task |
* @param string An override for the task |
| 163 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 164 |
*/ |
*/ |
| 165 |
function publishList( $task='publish', $alt='Publish' ) { |
function publishList( $task='publish', $alt=null ) { |
| 166 |
|
if (is_null($alt)) $alt = T_('Publish'); |
| 167 |
$image = mosAdminMenus::ImageCheckAdmin( 'publish.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'publish.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 168 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'publish_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'publish_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 169 |
?> |
?> |
| 170 |
<td> |
<td> |
| 171 |
<a class="toolbar" 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 class="toolbar" 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);"> |
| 172 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 173 |
<?php echo $alt; ?> |
<?php echo $alt; ?> |
| 174 |
</a> |
</a> |
| 181 |
* @param string An override for the task |
* @param string An override for the task |
| 182 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 183 |
*/ |
*/ |
| 184 |
function makeDefault( $task='default', $alt='Default' ) { |
function makeDefault( $task='default', $alt=null ) { |
| 185 |
|
if (is_null($alt)) $alt = T_('Default'); |
| 186 |
$image = mosAdminMenus::ImageCheckAdmin( 'publish.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'publish.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 187 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'publish_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'publish_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 188 |
?> |
?> |
| 189 |
<td> |
<td> |
| 190 |
<a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('Please select an item to make default'); } else {submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
<a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php echo T_('Please select an item to make default') ?>'); } else {submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
| 191 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 192 |
<?php echo $alt; ?> |
<?php echo $alt; ?> |
| 193 |
</a> |
</a> |
| 200 |
* @param string An override for the task |
* @param string An override for the task |
| 201 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 202 |
*/ |
*/ |
| 203 |
function assign( $task='assign', $alt='Assign' ) { |
function assign( $task='assign', $alt=null ) { |
| 204 |
|
if (is_null($alt)) $alt = T_('Assign'); |
| 205 |
$image = mosAdminMenus::ImageCheckAdmin( 'publish.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'publish.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 206 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'publish_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'publish_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 207 |
?> |
?> |
| 208 |
<td> |
<td> |
| 209 |
<a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('Please select an item to assign'); } else {submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
<a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php echo T_('Please select an item to assign') ?>'); } else {submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
| 210 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 211 |
<?php echo $alt; ?> |
<?php echo $alt; ?> |
| 212 |
</a> |
</a> |
| 219 |
* @param string An override for the task |
* @param string An override for the task |
| 220 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 221 |
*/ |
*/ |
| 222 |
function unpublish( $task='unpublish', $alt='Unpublish' ) { |
function unpublish( $task='unpublish', $alt=null ) { |
| 223 |
|
if (is_null($alt)) $alt = T_('Unpublish'); |
| 224 |
$image = mosAdminMenus::ImageCheckAdmin( 'unpublish.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'unpublish.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 225 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'unpublish_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'unpublish_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 226 |
?> |
?> |
| 238 |
* @param string An override for the task |
* @param string An override for the task |
| 239 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 240 |
*/ |
*/ |
| 241 |
function unpublishList( $task='unpublish', $alt='Unpublish' ) { |
function unpublishList( $task='unpublish', $alt=null ) { |
| 242 |
|
if (is_null($alt)) $alt = T_('Unpublish'); |
| 243 |
$image = mosAdminMenus::ImageCheckAdmin( 'unpublish.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'unpublish.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 244 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'unpublish_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'unpublish_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 245 |
?> |
?> |
| 246 |
<td> |
<td> |
| 247 |
<a class="toolbar" 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 class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php echo 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);" > |
| 248 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 249 |
<?php echo $alt; ?> |
<?php echo $alt; ?> |
| 250 |
</a> |
</a> |
| 257 |
* @param string An override for the task |
* @param string An override for the task |
| 258 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 259 |
*/ |
*/ |
| 260 |
function archiveList( $task='archive', $alt='Archive' ) { |
function archiveList( $task='archive', $alt=null ) { |
| 261 |
|
if (is_null($alt)) $alt = T_('Archive'); |
| 262 |
$image = mosAdminMenus::ImageCheckAdmin( 'archive.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'archive.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 263 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'archive_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'archive_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 264 |
?> |
?> |
| 265 |
<td> |
<td> |
| 266 |
<a class="toolbar" 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 class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php echo 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);"> |
| 267 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 268 |
<?php echo $alt; ?> |
<?php echo $alt; ?> |
| 269 |
</a> |
</a> |
| 276 |
* @param string An override for the task |
* @param string An override for the task |
| 277 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 278 |
*/ |
*/ |
| 279 |
function unarchiveList( $task='unarchive', $alt='Unarchive' ) { |
function unarchiveList( $task='unarchive', $alt=null ) { |
| 280 |
|
if (is_null($alt)) $alt = T_('Unarchive'); |
| 281 |
$image = mosAdminMenus::ImageCheckAdmin( 'unarchive.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'unarchive.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 282 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'unarchive_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'unarchive_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 283 |
?> |
?> |
| 284 |
<td> |
<td> |
| 285 |
<a class="toolbar" 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 class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php echo 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);"> |
| 286 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 287 |
<?php echo $alt; ?> |
<?php echo $alt; ?> |
| 288 |
</a> |
</a> |
| 295 |
* @param string An override for the task |
* @param string An override for the task |
| 296 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 297 |
*/ |
*/ |
| 298 |
function editList( $task='edit', $alt='Edit' ) { |
function editList( $task='edit', $alt=null ) { |
| 299 |
|
if (is_null($alt)) $alt = T_('Edit'); |
| 300 |
$image = mosAdminMenus::ImageCheckAdmin( 'edit.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'edit.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 301 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'edit_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'edit_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 302 |
?> |
?> |
| 303 |
<td> |
<td> |
| 304 |
<a class="toolbar" 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 class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php echo 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);"> |
| 305 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 306 |
<?php echo $alt; ?> |
<?php echo $alt; ?> |
| 307 |
</a> |
</a> |
| 315 |
* @param string An override for the task |
* @param string An override for the task |
| 316 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 317 |
*/ |
*/ |
| 318 |
function editListX( $task='edit', $alt='Edit' ) { |
function editListX( $task='edit', $alt=null ) { |
| 319 |
|
if (is_null($alt)) $alt = T_('Edit'); |
| 320 |
$image = mosAdminMenus::ImageCheckAdmin( 'edit.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'edit.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 321 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'edit_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'edit_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 322 |
?> |
?> |
| 323 |
<td> |
<td> |
| 324 |
<a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('Please select an item from the list to edit'); } else {hideMainMenu();submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
<a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php echo T_('Please select an item from the list to edit') ?>'); } else {hideMainMenu();submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
| 325 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 326 |
<?php echo $alt; ?> |
<?php echo $alt; ?> |
| 327 |
</a> |
</a> |
| 334 |
* @param string An override for the task |
* @param string An override for the task |
| 335 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 336 |
*/ |
*/ |
| 337 |
function editHtml( $task='edit_source', $alt='Edit HTML' ) { |
function editHtml( $task='edit_source', $alt=null ) { |
| 338 |
|
if (is_null($alt)) $alt = T_('Edit HTML'); |
| 339 |
$image = mosAdminMenus::ImageCheckAdmin( 'html.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'html.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 340 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'html_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'html_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 341 |
?> |
?> |
| 342 |
<td> |
<td> |
| 343 |
<a class="toolbar" 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 class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php echo 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);"> |
| 344 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 345 |
<?php echo $alt; ?> |
<?php echo $alt; ?> |
| 346 |
</a> |
</a> |
| 354 |
* @param string An override for the task |
* @param string An override for the task |
| 355 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 356 |
*/ |
*/ |
| 357 |
function editHtmlX( $task='edit_source', $alt='Edit HTML' ) { |
function editHtmlX( $task='edit_source', $alt=null ) { |
| 358 |
|
if (is_null($alt)) $alt = T_('Edit HTML'); |
| 359 |
$image = mosAdminMenus::ImageCheckAdmin( 'html.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'html.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 360 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'html_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'html_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 361 |
?> |
?> |
| 362 |
<td> |
<td> |
| 363 |
<a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('Please select an item from the list to edit'); } else {hideMainMenu();submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
<a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php echo T_('Please select an item from the list to edit') ?>'); } else {hideMainMenu();submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
| 364 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 365 |
<?php echo $alt; ?> |
<?php echo $alt; ?> |
| 366 |
</a> |
</a> |
| 374 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 375 |
*/ |
*/ |
| 376 |
function editCss( $task='edit_css', $alt='Edit CSS' ) { |
function editCss( $task='edit_css', $alt='Edit CSS' ) { |
| 377 |
|
if (is_null($alt)) $alt = T_('Edit CSS'); |
| 378 |
$image = mosAdminMenus::ImageCheckAdmin( 'css.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'css.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 379 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'css_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'css_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 380 |
?> |
?> |
| 381 |
<td> |
<td> |
| 382 |
<a class="toolbar" 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 class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php echo 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);"> |
| 383 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 384 |
<?php echo $alt; ?> |
<?php echo $alt; ?> |
| 385 |
</a> |
</a> |
| 393 |
* @param string An override for the task |
* @param string An override for the task |
| 394 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 395 |
*/ |
*/ |
| 396 |
function editCssX( $task='edit_css', $alt='Edit CSS' ) { |
function editCssX( $task='edit_css', $alt='' ) { |
| 397 |
|
if (is_null($alt)) $alt = T_('Edit CSS'); |
| 398 |
$image = mosAdminMenus::ImageCheckAdmin( 'css.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'css.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 399 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'css_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'css_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 400 |
?> |
?> |
| 401 |
<td> |
<td> |
| 402 |
<a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('Please select an item from the list to edit'); } else {hideMainMenu();submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
<a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php echo T_('Please select an item from the list to edit') ?>'); } else {hideMainMenu();submitbutton('<?php echo $task;?>', '');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
| 403 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 404 |
<?php echo $alt; ?> |
<?php echo $alt; ?> |
| 405 |
</a> |
</a> |
| 413 |
* @param string An override for the task |
* @param string An override for the task |
| 414 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 415 |
*/ |
*/ |
| 416 |
function deleteList( $msg='', $task='remove', $alt='Delete' ) { |
function deleteList( $msg='', $task='remove', $alt=null ) { |
| 417 |
|
if (is_null($alt)) $alt = T_('Delete'); |
| 418 |
$image = mosAdminMenus::ImageCheckAdmin( 'delete.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'delete.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 419 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'delete_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'delete_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 420 |
?> |
?> |
| 421 |
<td> |
<td> |
| 422 |
<a class="toolbar" 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 class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php echo T_('Please make a selection from the list to delete') ?>'); } else if (confirm('<?php echo 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);"> |
| 423 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 424 |
<?php echo $alt; ?> |
<?php echo $alt; ?> |
| 425 |
</a> |
</a> |
| 434 |
* @param string An override for the task |
* @param string An override for the task |
| 435 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 436 |
*/ |
*/ |
| 437 |
function deleteListX( $msg='', $task='remove', $alt='Delete' ) { |
function deleteListX( $msg='', $task='remove', $alt=null ) { |
| 438 |
|
if (is_null($alt)) $alt = T_('Delete'); |
| 439 |
$image = mosAdminMenus::ImageCheckAdmin( 'delete.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'delete.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 440 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'delete_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'delete_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 441 |
?> |
?> |
| 442 |
<td> |
<td> |
| 443 |
<a class="toolbar" 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;?>')){ hideMainMenu();submitbutton('<?php echo $task;?>');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
<a class="toolbar" href="javascript:if (document.adminForm.boxchecked.value == 0){ alert('<?php echo T_('Please make a selection from the list to delete') ?>'); } else if (confirm('<?php echo T_('Are you sure you want to delete selected items?') ?> <?php echo $msg;?>')){ hideMainMenu();submitbutton('<?php echo $task;?>');}" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('<?php echo $task;?>','','<?php echo $image2; ?>',1);"> |
| 444 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 445 |
<?php echo $alt; ?> |
<?php echo $alt; ?> |
| 446 |
</a> |
</a> |
| 451 |
/** |
/** |
| 452 |
* Write a trash button that will move items to Trash Manager |
* Write a trash button that will move items to Trash Manager |
| 453 |
*/ |
*/ |
| 454 |
function trash( $task='remove', $alt='Trash' ) { |
function trash( $task='remove', $alt=null ) { |
| 455 |
|
if (is_null($alt)) $alt = T_('Trash'); |
| 456 |
$image = mosAdminMenus::ImageCheckAdmin( 'delete.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'delete.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 457 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'delete_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'delete_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 458 |
?> |
?> |
| 471 |
*/ |
*/ |
| 472 |
function preview( $popup='', $updateEditors=false ) { |
function preview( $popup='', $updateEditors=false ) { |
| 473 |
global $database; |
global $database; |
| 474 |
$image = mosAdminMenus::ImageCheckAdmin( 'preview.png', '/administrator/images/', NULL, NULL, 'Preview', 'preview' ); |
$image = mosAdminMenus::ImageCheckAdmin( 'preview.png', '/administrator/images/', NULL, NULL, T_('Preview'), 'preview' ); |
| 475 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'preview_f2.png', '/administrator/images/', NULL, NULL, 'Preview', 'preview', 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'preview_f2.png', '/administrator/images/', NULL, NULL, T_('Preview'), 'preview', 0 ); |
| 476 |
|
|
| 477 |
$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'"; |
| 478 |
$database->setQuery( $sql ); |
$database->setQuery( $sql ); |
| 505 |
*/ |
*/ |
| 506 |
function help( $ref, $com=false ) { |
function help( $ref, $com=false ) { |
| 507 |
global $mosConfig_live_site; |
global $mosConfig_live_site; |
| 508 |
$image = mosAdminMenus::ImageCheckAdmin( 'help.png', '/administrator/images/', NULL, NULL, 'Help', 'help' ); |
$image = mosAdminMenus::ImageCheckAdmin( 'help.png', '/administrator/images/', NULL, NULL, T_('Help'), 'help' ); |
| 509 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'help_f2.png', '/administrator/images/', NULL, NULL, 'Help', 'help', 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'help_f2.png', '/administrator/images/', NULL, NULL, T_('Help'), 'help', 0 ); |
| 510 |
$helpUrl = mosGetParam( $GLOBALS, 'mosConfig_helpurl', '' ); |
$helpUrl = mosGetParam( $GLOBALS, 'mosConfig_helpurl', '' ); |
| 511 |
if ($helpUrl) { |
if ($helpUrl) { |
| 512 |
$url = $helpUrl . '/index2.php?option=com_content&task=findkey&pop=1&keyref=' . urlencode( $ref ); |
$url = $helpUrl . '/index2.php?option=com_content&task=findkey&pop=1&keyref=' . urlencode( $ref ); |
| 524 |
<td> |
<td> |
| 525 |
<a class="toolbar" href="#" onclick="window.open('<?php echo $url;?>', 'mambo_help_win', '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('help','','<?php echo $image2; ?>',1);"> |
<a class="toolbar" href="#" onclick="window.open('<?php echo $url;?>', 'mambo_help_win', '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('help','','<?php echo $image2; ?>',1);"> |
| 526 |
<?php echo $image; ?> |
<?php echo $image; ?> |
| 527 |
Help |
<?php echo T_('Help') ?> |
| 528 |
</a> |
</a> |
| 529 |
</td> |
</td> |
| 530 |
<?php |
<?php |
| 536 |
* @param string An override for the task |
* @param string An override for the task |
| 537 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 538 |
*/ |
*/ |
| 539 |
function apply( $task='apply', $alt='Apply' ) { |
function apply( $task='apply', $alt=null ) { |
| 540 |
|
if (is_null($alt)) $alt = T_('Apply'); |
| 541 |
$image = mosAdminMenus::ImageCheckAdmin( 'apply.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'apply.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 542 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'apply_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'apply_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 543 |
?> |
?> |
| 556 |
* @param string An override for the task |
* @param string An override for the task |
| 557 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 558 |
*/ |
*/ |
| 559 |
function save( $task='save', $alt='Save' ) { |
function save( $task='save', $alt=null ) { |
| 560 |
|
if (is_null($alt)) $alt = T_('Save'); |
| 561 |
$image = mosAdminMenus::ImageCheckAdmin( 'save.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'save.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 562 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'save_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'save_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 563 |
?> |
?> |
| 607 |
* @param string An override for the task |
* @param string An override for the task |
| 608 |
* @param string An override for the alt text |
* @param string An override for the alt text |
| 609 |
*/ |
*/ |
| 610 |
function cancel( $task='cancel', $alt='Cancel' ) { |
function cancel( $task='cancel', $alt=null ) { |
| 611 |
|
if (is_null($alt)) $alt = T_('Cancel'); |
| 612 |
$image = mosAdminMenus::ImageCheckAdmin( 'cancel.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
$image = mosAdminMenus::ImageCheckAdmin( 'cancel.png', '/administrator/images/', NULL, NULL, $alt, $task ); |
| 613 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'cancel_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'cancel_f2.png', '/administrator/images/', NULL, NULL, $alt, $task, 0 ); |
| 614 |
?> |
?> |
| 625 |
* Writes a cancel button that will go back to the previous page without doing |
* Writes a cancel button that will go back to the previous page without doing |
| 626 |
* any other operation |
* any other operation |
| 627 |
*/ |
*/ |
| 628 |
function back( $alt='Back', $href='' ) { |
function back( $alt=null, $href='' ) { |
| 629 |
|
if (is_null($alt)) $alt = T_('Back'); |
| 630 |
$image = mosAdminMenus::ImageCheckAdmin( 'back.png', '/administrator/images/', NULL, NULL, 'back', 'cancel' ); |
$image = mosAdminMenus::ImageCheckAdmin( 'back.png', '/administrator/images/', NULL, NULL, 'back', 'cancel' ); |
| 631 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'back_f2.png', '/administrator/images/', NULL, NULL, 'back', 'cancel', 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'back_f2.png', '/administrator/images/', NULL, NULL, 'back', 'cancel', 0 ); |
| 632 |
if ( $href ) { |
if ( $href ) { |
| 660 |
* Writes a media_manager button |
* Writes a media_manager button |
| 661 |
* @param string The sub-drectory to upload the media to |
* @param string The sub-drectory to upload the media to |
| 662 |
*/ |
*/ |
| 663 |
function media_manager( $directory = '', $alt='Upload' ) { |
function media_manager( $directory = '', $alt=null ) { |
| 664 |
|
if (is_null($alt)) $alt = T_('Upload'); |
| 665 |
global $database; |
global $database; |
| 666 |
$sql = "SELECT template FROM #__templates_menu WHERE client_id='1' AND menuid='0'"; |
$sql = "SELECT template FROM #__templates_menu WHERE client_id='1' AND menuid='0'"; |
| 667 |
$database->setQuery( $sql ); |
$database->setQuery( $sql ); |
| 668 |
$cur_template = $database->loadResult(); |
$cur_template = $database->loadResult(); |
| 669 |
$image = mosAdminMenus::ImageCheckAdmin( 'upload.png', '/administrator/images/', NULL, NULL, 'Upload Image', 'uploadPic' ); |
$image = mosAdminMenus::ImageCheckAdmin( 'upload.png', '/administrator/images/', NULL, NULL, T_('Upload Image'), 'uploadPic' ); |
| 670 |
$image2 = mosAdminMenus::ImageCheckAdmin( 'upload_f2.png', '/administrator/images/', NULL, NULL, 'Upload Image', 'uploadPic', 0 ); |
$image2 = mosAdminMenus::ImageCheckAdmin( 'upload_f2.png', '/administrator/images/', NULL, NULL, T_('Upload Image'), 'uploadPic', 0 ); |
| 671 |
?> |
?> |
| 672 |
<td> |
<td> |
| 673 |
<a class="toolbar" href="#" onclick="popupWindow('popups/uploadimage.php?directory=<?php echo $directory; ?>&t=<?php echo $cur_template; ?>','win1',250,100,'no');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('uploadPic','','<?php echo $image2; ?>',1);"> |
<a class="toolbar" href="#" onclick="popupWindow('popups/uploadimage.php?directory=<?php echo $directory; ?>&t=<?php echo $cur_template; ?>','win1',250,100,'no');" onmouseout="MM_swapImgRestore();" onmouseover="MM_swapImage('uploadPic','','<?php echo $image2; ?>',1);"> |