1.8.x Tính Năng: XML Database League

Preview

Tác giả: DiegoPino

Phiên bản: 1.2

Gửi lúc: 06/07/2015

Cập nhật lúc: 03/11/2015

Mô tả
XML Database League
Database with Extensible Markup Language (XML) And Extensible Stylesheet Language (XSL).

I will Like to Created a Database with Extensible Markup Language (XML) And Extensible Stylesheet Language (XSL).
The purpose is to develop a SimpleCode Database League to can display in a simple form to generate a League, Football Clubs / Leagues and Tournaments Information Like: Teams, Logos, Players

Database XML Schema Diagram:
  • League
    • Teams
    • Logo
    • Legends Players
    • City
    • Stadium
  • Standings



Note:
Based on my studies learning XML & XSL
github.com/Diego-Pino/XML-Database-League


XML & XSLT Example OnLine XML Database League Test

Download:
http://community.mybb.com/mods.php?action=view&pid=549

Version 1.2
  • Performance and update info plugin
  • Add Style font-family: Verdana
  • Logos teams Update in Folder images/xmleague
  • Add Code JavaScript
  • Add Template: Home » Template Sets » Global Templates » Add Template » xmleague_template
  • Video Tutorial: Add Template » xmleague_template

Version 1.1:
  • Add Image to Teams of Premier League Database in file .Xml
  • Created Stylesheet to Display Images in file .Xsl
  • Created Folder images
  • Premier League Base Update with Info

Version 1.0:
  • Code Base development in XML & XSLT
  • Premier League Base
  • Schema Xml
  • Plugin Codebase development in MyBB
  • Templante MyBB

MyBB Add Templante Code XML Database League.

<html>
<head>
<title>XML Database League</title>
{$headerinclude}

<style type="text/css">
table, th, td {
 border: 1px solid black;
 border-collapse:collapse;
 background-color: #E1EEF4;

}

th, td {
 padding: 5px;
 font-family: Verdana ;
 font-size: 18px;
 line-height: 15.4px;
}

p    {color:green} ;

</style>

<script type="text/javascript">
           if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
               xmlhttp = new XMLHttpRequest();
           }
           else {// code for IE6, IE5
               xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
           }
           xmlhttp.open("GET", "xmleague.xml", false);
           xmlhttp.send();
           xmlDoc = xmlhttp.responseXML;
           var x = xmlDoc.getElementsByTagName("Team");

           function displayXMLeague(i) {
               var leagueElement = x[i];
               Team_Name = (leagueElement.getElementsByTagName("Team_Name")[0].childNodes[0].nodeValue);
               description = (leagueElement.getElementsByTagName("description")[0].childNodes[0].nodeValue);
               City = (leagueElement.getElementsByTagName("City")[0].childNodes[0].nodeValue);
               Stadium = (leagueElement.getElementsByTagName("Stadium")[0].childNodes[0].nodeValue);

               var players = leagueElement.getElementsByTagName("first_name");
               var player;
               var playerString;
               for(var index = 0; index < players.length; index++)
               {
                   player = players[index];
                   if (index == 0)
                   {
                       playerString = player.childNodes[0].nodeValue;
                   }
                   else
                   {
                       playerString = (playerString + "<br />" + player.childNodes[0].nodeValue);
                   }

               }

               Players = playerString;



  image = (leagueElement.getElementsByTagName("image")[0].childNodes[1].childNodes[0].nodeValue) ;
               txt = "<br><b>Logo:</b>" + "<img src='"+image+"'/>" + "<br><b>Team_Name:</b> " + Team_Name + "<br><b>Description:</b> "+ description + "<br><b>City:</b> " + City + "<br><b>Stadium:</b> " + Stadium + "<br><mark><b>Legends Players:</b></mark><ul>" + Players ;
               document.getElementById("showXMLeague").innerHTML = txt;
           }

           displayXMLeague(0);
       </script>

</head>
<body>
{$header}

<h2>List of Premier League clubs </h2>
<p>Update with More <ins>Teams Clubs And Leagues</ins>... for the next version</p>
  

<div id='showXMLeague' style="font-family:verdana; font-size: 18px;">Click on a Team Club to display information.</div><br>
<script>
document.write("<table border='2'>");
for (var i=0;i<x.length;i++)
 { 
 document.write("<tr onclick='displayXMLeague(" + i + ")'>");
 document.write("<td>");
 document.write(x[i].getElementsByTagName("Team_Name")[0].childNodes[0].nodeValue);
 document.write("</td><td>");
 document.write(x[i].getElementsByTagName("City")[0].childNodes[0].nodeValue);
 document.write("</td></tr>");

 }
document.write("</table>");
</script>
   
{$footer}
</body>
</html>



How install XML Database League:
- Actived The Plugin in ACP

Plugin Test OnLine:
http://mybb.pinostudio1.com/xml-database-league.php

Download:
http://community.mybb.com/mods.php?action=view&pid=549

Support MyBB Plugin:
http://community.mybb.com/thread-172852.html


Collaborator and suggestions Are Welcome…
Liên đoàn cơ sở dữ liệu XML
Cơ sở dữ liệu với Ngôn ngữ đánh dấu mở rộng (XML) và ngôn ngữ biểu định kiểu có thể mở rộng (XSL).

Tôi muốn tạo một cơ sở dữ liệu với ngôn ngữ đánh dấu mở rộng (XML) và ngôn ngữ biểu định kiểu mở rộng (XSL).
Mục đích là để phát triển một SimpleCode Giải đấu cơ sở dữ liệu để có thể hiển thị ở dạng đơn giản để tạo ra một Liên minh, Bóng đá Câu lạc bộ / Giải đấu và giải đấu Thông tin như: Đội, Logo, Cầu thủ

Sơ đồ lược đồ XML cơ sở dữ liệu:
  • Liên minh
    • Đội
    • Logo
    • Cầu thủ huyền thoại
    • Thành phố
    • Sân vận động
  • Standings



Ghi:
Dựa trên nghiên cứu của tôi học XML & XSL
github.com/Diego-Pino/XML-Database-League


Ví dụ về XML & XSLT Liên đoàn cơ sở dữ liệu XML trực tuyến Kiểm tra

Tải xuống:
http://community.mybb.com/mods.php?action=view&pid=549

Phiên bản 1.2
  • Plugin thông tin hiệu suất và cập nhật
  • Thêm Phong cách font-family: Verdana
  • Nhóm logo cập nhật trong thư mục Hình ảnh/xmleague
  • Thêm mã JavaScript
  • Thêm mẫu: Trang chủ » Bộ mẫu » Mẫu toàn cầu » Thêm mẫu » xmleague_template
  • Video hướng dẫn: Thêm mẫu » xmleague_template

Phiên bản 1.1:
  • Thêm hình ảnh vào cơ sở dữ liệu đội của Premier League trong tệp. Xml
  • Đã tạo biểu định kiểu để hiển thị hình ảnh trong tệp . Xsl
  • Hình ảnh Thư mục đã tạo
  • Cập nhật cơ sở Premier League với thông tin

Phiên bản 1.0:
  • Phát triển cơ sở mã trong XML & XSLT
  • Cơ sở Premier League
  • Lược đồ Xml
  • Phát triển cơ sở mã plugin trong MyBB
  • Templante MyBB

MyBB Thêm mã Templante Liên đoàn cơ sở dữ liệu XML.

<html>
<head>
<title>Liên đoàn cơ sở dữ liệu XML</title>
{$headerinclude}

<style type="text/css">
bảng, th, td {
 đường viền: 1px đen đặc;
 biên giới-sụp đổ: sụp đổ;
 màu nền: #E1EEF4;

}

th, td {
 đệm: 5px;
 họ phông chữ: Verdana ;
 kích thước phông chữ: 18px;
 chiều cao dòng: 15,4px;
}

p {màu: xanh lá cây} ;

</style>

<script type="text/javascript">
           nếu (cửa sổ. XMLHttpRequest) {// mã cho IE7+, Firefox, Chrome, Opera, Safari
               xmlhttp = XMLHttpRequest mới;
           }
           else {// mã cho IE6, IE5
               xmlhttp = mới ActiveXObject("Microsoft.XMLHTTP");
           }
           xmlhttp.open("GET", "xmleague.xml", false);
           xmlhttp.send();
           xmlDoc = xmlhttp.responseXML;
           var x = xmlDoc.getElementsByTagName("Đội");

hàm displayXMLeague(i) {
               var leagueElement = x[i];
               Team_Name = (leagueElement.getElementsByTagName("Team_Name")[0].childNodes[0].nodeValue);
               description = (leagueElement.getElementsByTagName("description")[0].childNodes[0].nodeValue);
               Thành phố = (leagueElement.getElementsByTagName("Thành phố")[0].childNodes[0].nodeValue);
               Sân vận động = (leagueElement.getElementsByTagName("Sân vận động")[0].childNodes[0].nodeValue);

var players = leagueElement.getElementsByTagName("first_name");
               người chơi var;
               var playerString;
               for(var index = 0; index < players.length; index++)
               {
                   người chơi = người chơi[chỉ số];
                   nếu (chỉ mục == 0)
                   {
                       playerString = player.childNodes[0].nodeValue;
                   }
                   khác
                   {
                       playerString = (playerString + "<br />" + player.childNodes[0].nodeValue);
                   }

}

Người chơi = playerString;

image = (leagueElement.getElementsByTagName("image")[0].childNodes[1].childNodes[0].nodeValue) ;
               txt = "<br><b>Logo:</b>" + "<img src='"+image+"'/>" + "<br><b>Team_Name:</b> " + Team_Name + "<br><b>Description:</b> "+ description + "<br><b>City:</b> " + City + "<br><b>Sân vận động:</b> " + Sân vận động + "Cầu <br><mark><b>thủ huyền thoại:</b></mark><ul>" + Cầu thủ ;
               document.getElementById("showXMLeague").innerHTML = txt;
           }

hiển thịXMLeague(0);
       </script>

</head>
<body>
{$header}

<h2>Danh sách các câu lạc bộ Premier League </h2>
<p>Cập nhật với nhiều <ins>đội, câu lạc bộ và giải đấu</ins> hơn... cho phiên bản tiếp theo</p>
  
<div id='showXMLeague' style="font-family:verdana; font-size: 18px;">Nhấp vào Câu lạc bộ Đội để hiển thị thông tin.</div><br>
<script>
document.write("<đường viền bảng = '2'>");
cho (var i = 0; i<x.chiều dài; i++)
 { 
 document.write("<tr onclick='displayXMLeague(" + i + ")'>");
 document.write("<td>");
 document.write(x[i].getElementsByTagName("Team_Name")[0].childNodes[0].nodeValue);
 document.write("</td><td>");
 document.write(x[i].getElementsByTagName("Thành phố")[0].childNodes[0].nodeValue);
 document.write(""</td></tr>);

}
document.write(""</table>);
</script>
   
{$footer}
</body>
</html>

[Băng hình: https://youtu.be/QsQ2GXnFLM0]

Cách cài đặt XML Database League:
- Đã kích hoạt Plugin trong ACP

Kiểm tra plugin trực tuyến:
http://mybb.pinostudio1.com/xml-database-league.php

Tải xuống:
http://community.mybb.com/mods.php?action=view&pid=549

Hỗ trợ Plugin MyBB:
http://community.mybb.com/thread-172852.html


Cộng tác viên và đề xuất được hoan nghênh...