function deltag($idtag, $idart, $cat, $action = '') { if (!tag_auth($cat)) { return; } $rid = $cat . $idart; if ($action == 'remove') { $removed = removetag($idtag); } $idartag = idartag($idart, $idtag); if ($idartag) { delete('qdta', $idartag); } $r = read_tags($idart, $cat); $ret = del_tag_btn($r, $idart, $cat); if (!$removed) { $rb = sql('idart', 'qdta', 'rv', 'idtag="' . $idtag . '"'); //remove if unused tag if (!$rb) { $ret .= lj('txtred', $rid . '_deltag___' . $idtag . '_' . $idart . '_' . $cat . '_remove', 'remove tag ' . $idtag) . ' '; } } return $ret; }
<td class="ref" width="50%"> <span onmouseover="showttip( '<table width=100% border=\'0\' cellpadding=5 cellspacing=0><tr><td colspan=2><strong><?php echo $row->ref; ?> </strong></td></tr><tr><?php if (is_file(JPATH_ROOT . DS . 'images' . DS . 'com_jea' . DS . 'images' . DS . $row->id . DS . 'min.jpg')) { ?> <td valign=top width=1px><img src=<?php echo JURI::root() . "images/com_jea/images/{$row->id}/min.jpg"; ?> /> </td><?php } ?> <td valign=top><?php echo removetag($row->description); ?> </td></tr></table>');" onmouseout="hidettip();"> <a href="<?php echo JRoute::_('index.php?option=com_jea&view=manage&layout=form&id=' . $row->id); ?> " title="<?php echo JText::_('Edit'); ?> " > <?php echo $typeloai . ": " . $row->ref; ?> </a> </span>