如何禁用具有复选框和html链接的表行?

时间:2018-07-09 14:20:02

标签: html css

我有一个复选框,图像的href链接,并且我从数据库中获取数据。我想禁用某些用户的整个行。我该如何实现?我已经附上了表格的代码和图像。我需要禁用整个tr,包括复选框,编辑和删除按钮。

DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
            DocumentBuilder dBuilder;
            try {
                dBuilder = dbFactory.newDocumentBuilder();
                Document doc = dBuilder.newDocument();
                //add elements to Document
                Element rootElement = doc.createElement("document");
                //append root element to document
                doc.appendChild(rootElement);

            // Répertoire de destination
            Element typeDoc = doc.createElement("typeDocument");
            typeDoc.appendChild(doc.createTextNode("En Attente"));
            rootElement.appendChild(typeDoc);

            // métadonnées :
            Element properties = doc.createElement("properties");
            rootElement.appendChild(properties);

            if (typo != null && !typo.isEmpty()) {
                // 3) Type de document (name-type-value)
                Element typoProperty = doc.createElement("property");
                properties.appendChild(typoProperty);
                Element typoName = doc.createElement("name");
                typoName.appendChild(doc.createTextNode("os:typologie"));
                typoProperty.appendChild(typoName);
                Element typoType = doc.createElement("type");
                typoType.appendChild(doc.createTextNode("d:text"));
                typoProperty.appendChild(typoType);
                Element typoValue = doc.createElement("value");
                typoValue.appendChild(doc.createTextNode(typo));
                typoProperty.appendChild(typoValue);
            }

            ......


            //for output to file, console
            TransformerFactory transformerFactory = TransformerFactory.newInstance();
            Transformer transformer = transformerFactory.newTransformer();
            //for pretty print
            transformer.setOutputProperty(OutputKeys.INDENT, "yes");
            DOMSource source = new DOMSource(doc);
            logger.debug("nom xml: {}", xmlFolder + "/" + newFileName + ".xml");
            //write to console or file
            // StreamResult console = new StreamResult(System.out);
            StreamResult file = new StreamResult(new FileOutputStream(new File(xmlFolder + "/" + newFileName + ".xml")));
            //write data
            // transformer.transform(source, console);
            transformer.transform(source, file);

        } catch (Exception e) {
            logger.debug("Erreur création XML: {}", ExceptionUtils.getStackTrace(e));
            return false;
        }

enter image description here

0 个答案:

没有答案