public static function enable($enable, $i, $prefix = '', $imgY = 'tick.png', $imgX = 'publish_x.png') { $img = $enable ? $imgY : $imgX; $task = $enable ? 'disable' : 'enable'; $alt = $enable ? JText::_('Enabled') : JText::_('Disabled'); $action = $enable ? JText::_('Disable Item') : JText::_('Enable Item'); $href = ' <a href="javascript:void(0);" onclick="return Dsc.listItemTask(\'cb' . $i . '\',\'' . $prefix . $task . '\')" title="' . $action . '"> <img src="' . DSC::getURL('images') . $img . '" border="0" alt="' . $alt . '" /> </a>'; return $href; }
protected static function _checkedOut(&$row, $overlib = 1) { $hover = ''; if ($overlib) { $text = addslashes(htmlspecialchars($row->editor)); $date = JHTML::_('date', $row->checked_out_time, JText::_('DATE_FORMAT_LC1')); $time = JHTML::_('date', $row->checked_out_time, '%H:%M'); $hover = '<span class="editlinktip hasTip" title="' . JText::_('Checked Out') . '::' . $text . '<br />' . $date . '<br />' . $time . '">'; } $checked = $hover . '<img src="' . DSC::getURL('images') . 'checked_out.png"/></span>'; return $checked; }
$package['group'] = $pgroup; $package['element'] = $name; $package['client'] = ''; /* * fire the dioscouriInstaller */ $dscInstaller = new dscInstaller(); $result = $dscInstaller->uninstallExtension($package); // track the message and status of installation from dscInstaller if ($result) { $alt = JText::_("Uninstalled"); $pstatus = "<img src='" . DSC::getURL('images') . "tick.png' border='0' alt='{$alt}' />"; } else { $alt = JText::_("Failed"); $error = $dscInstaller->getError(); $pstatus = "<img src='" . DSC::getURL('images') . "publish_x.png' border='0' alt='{$alt}' /> "; $pstatus .= " - " . $error; } $status->plugins[] = array('name' => $pname, 'group' => $pgroup, 'status' => $pstatus); } } /*********************************************************************************************** * --------------------------------------------------------------------------------------------- * OUTPUT TO SCREEN * --------------------------------------------------------------------------------------------- ***********************************************************************************************/ $rows = 0; ?> <h2><?php echo JText::_('Uninstallation Results');