Import sitemap and analyze
This function checks the "sitemap.xml" and make summary of the SEO status. By learning how to make this, you can customize your own application to analyze the web master tool's data.
This page has function to import sitemap from internet and alalyze last crawled date, number of keyword detected by search engine, number of internal links detected by searchengine.
Source code of this page is in the "[ALINOUS_HOME]/admin/sitemap/" folder.
By inputing text into the text input at the top of the form, and click "Import and analyze" button. This operation starts.
After click the button, the form posts to the "index.html", and source code below executed.
This code calls
"uploadSitemap()" function. and the source code is below.
In this code, it gathers result of analytics in other page, and insert a record of "wmc_content_keywords_url" table.
This page uses datatable. About the basic ussage of it, please take a look at "Datatable jQuery plugin".
Datatable's html is below.
This Datatable get data from "/admin/sitemap/serverData.alns" by using Ajax. The source code of providing the data is below.