function get_searchinfo(wid) {
    $(document).ready(function() {
        $('.info').html('<div><img src="' + sitepath + 'public/images/loading.gif"></div>')
    });
    get_info('baidu_site', 01);
    get_info('baidu_link', 02);
    get_info('baidu_shot', 06);
    get_info('baidu_h', 03);
    get_info('baidu_w', 04);
    get_info('baidu_m', 05);
    get_info('google_site', 07);
    get_info('google_link', 08);
    get_info('s360_site', 09);
    get_info('s360_link', 10);
    get_info('sogou_site', 11);
    get_info('sogou_link', 12);
    get_info('info_utime', 13)
}

function get_info(sename, wid2) {
    $(document).ready(function() {
        $.ajax({
            type: "GET",
            url: sitepath + "getinfo/get_webinfo.php?type=" + wid2 + "&url=" + url,
            cache: false,
            success: function(data) {
                $("#" + sename).html(data)
            }
        })
    })
}

function show_update(wid) {
    $(document).ready(function() {
        $('#show_update').html('<span class="search" onClick="get_searchinfo(' + wid + ')" ><img src="' + sitepath + 'public/images/search.jpg" align="absmiddle" alt="点击查看收录情况"/>&nbsp;点击更新</span>')
    })
}

function checkloading(domain) {
    domain = $('#str').val();
    if ($('#baidu_site').html() == '') {
        $('#baidu_site').html("<div><img src='" + sitedir + "public/images/loading.gif' alt='loading' /></div>");
        $(document).ready(function() {
            $.ajax({
                type: "GET",
                url: sitepath + "getinfo/get_webinfo.php?type=01&url=" + url,
                cache: false,
                success: function(data) {
                    $("#baidu_site").html(data)
                }
            })
        })
    }
    if ($('#baidu_link').html() == '') {
        $('#baidu_link').html("<div><img src='" + sitedir + "public/images/loading.gif' alt='loading' /></div>");
        $(document).ready(function() {
            $.ajax({
                type: "GET",
                url: sitepath + "getinfo/get_webinfo.php?type=02&url=" + url,
                cache: false,
                success: function(data) {
                    $("#baidu_link").html(data)
                }
            })
        })
    }
    if ($('#baidu_h').html() == '') {
        $('#baidu_h').html("<div><img src='" + sitedir + "public/images/loading.gif' alt='loading' /></div>");
        $(document).ready(function() {
            $.ajax({
                type: "GET",
                url: sitepath + "getinfo/get_webinfo.php?type=03&url=" + url,
                cache: false,
                success: function(data) {
                    $("#baidu_h").html(data)
                }
            })
        })
    }
    if ($('#baidu_w').html() == '') {
        $('#baidu_w').html("<div><img src='" + sitedir + "public/images/loading.gif' alt='loading' /></div>");
        $(document).ready(function() {
            $.ajax({
                type: "GET",
                url: sitepath + "getinfo/get_webinfo.php?type=04&url=" + url,
                cache: false,
                success: function(data) {
                    $("#baidu_w").html(data)
                }
            })
        })
    }
    if ($('#baidu_m').html() == '') {
        $('#baidu_m').html("<div><img src='" + sitedir + "public/images/loading.gif' alt='loading' /></div>");
        $(document).ready(function() {
            $.ajax({
                type: "GET",
                url: sitepath + "getinfo/get_webinfo.php?type=05&url=" + url,
                cache: false,
                success: function(data) {
                    $("#baidu_m").html(data)
                }
            })
        })
    }
    if ($('#baidu_shot').html() == '') {
        $('#baidu_shot').html("<div><img src='" + sitedir + "public/images/loading.gif' alt='loading' /></div>");
        $(document).ready(function() {
            $.ajax({
                type: "GET",
                url: sitepath + "getinfo/get_webinfo.php?type=06&url=" + url,
                cache: false,
                success: function(data) {
                    $("#baidu_shot").html(data)
                }
            })
        })
    }
    if ($('#google_site').html() == '') {
        $('#google_site').html("<div><img src='" + sitedir + "public/images/loading.gif' alt='loading' /></div>");
        $(document).ready(function() {
            $.ajax({
                type: "GET",
                url: sitepath + "getinfo/get_webinfo.php?type=07&url=" + url,
                cache: false,
                success: function(data) {
                    $("#google_site").html(data)
                }
            })
        })
    }
    if ($('#google_link').html() == '') {
        $('#google_link').html("<div><img src='" + sitedir + "public/images/loading.gif' alt='loading' /></div>");
        $(document).ready(function() {
            $.ajax({
                type: "GET",
                url: sitepath + "getinfo/get_webinfo.php?type=08&url=" + url,
                cache: false,
                success: function(data) {
                    $("#google_link").html(data)
                }
            })
        })
    }
    if ($('#s360_site').html() == '') {
        $('#s360_site').html("<div><img src='" + sitedir + "public/images/loading.gif' alt='loading' /></div>");
        $(document).ready(function() {
            $.ajax({
                type: "GET",
                url: sitepath + "getinfo/get_webinfo.php?type=09&url=" + url,
                cache: false,
                success: function(data) {
                    $("#s360_site").html(data)
                }
            })
        })
    }
    if ($('#s360_link').html() == '') {
        $('#s360_link').html("<div><img src='" + sitedir + "public/images/loading.gif' alt='loading' /></div>");
        $(document).ready(function() {
            $.ajax({
                type: "GET",
                url: sitepath + "getinfo/get_webinfo.php?type=10&url=" + url,
                cache: false,
                success: function(data) {
                    $("#s360_link").html(data)
                }
            })
        })
    }
    if ($('#sogou_site').html() == '') {
        $('#sogou_site').html("<div><img src='" + sitedir + "public/images/loading.gif' alt='loading' /></div>");
        $(document).ready(function() {
            $.ajax({
                type: "GET",
                url: sitepath + "getinfo/get_webinfo.php?type=11&url=" + url,
                cache: false,
                success: function(data) {
                    $("#sogou_site").html(data)
                }
            })
        })
    }
    if ($('#sogou_link').html() == '') {
        $('#sogou_link').html("<div><img src='" + sitedir + "public/images/loading.gif' alt='loading' /></div>");
        $(document).ready(function() {
            $.ajax({
                type: "GET",
                url: sitepath + "getinfo/get_webinfo.php?type=12&url=" + url,
                cache: false,
                success: function(data) {
                    $("#sogou_link").html(data)
                }
            })
        })
    }
    if ($('#info_utime').html() == '') {
        $('#info_utime').html("<div><img src='" + sitedir + "public/images/loading.gif' alt='loading' /></div>");
        $(document).ready(function() {
            $.ajax({
                type: "GET",
                url: sitepath + "getinfo/get_webinfo.php?type=13&url=" + url,
                cache: false,
                success: function(data) {
                    $("#info_utime").html(data)
                }
            })
        })
    }
}