zoukankan      html  css  js  c++  java
  • 思科WLC5508上传定制Portal展示模版

    1. 登录Cisco设备,获取模板样例
    登录cisco WLC设备后点击help,打开帮助文档
    Wireless Tab-->Web Login Page-->External Web Authentication-->Template for Customer Login Page

    按照提供的模板创建login.html(文件名必须是login.html)
    <html>
    <head>
    <meta http-equiv="Pragma" content="no-cache">
    <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <title>success</title>
    <script>

    function submitAction(){
    var link = document.location.href;
    var searchString = "redirect=";
    var equalIndex = link.indexOf(searchString);
    var redirectUrl = "";
    if(equalIndex >= 0) {
    equalIndex += searchString.length;
    redirectUrl = "http://";
    redirectUrl += link.substring(equalIndex);
    }
    if(redirectUrl.length > 255)
    redirectUrl = redirectUrl.substring(0,255);
    document.forms[0].redirect_url.value = redirectUrl;

    document.forms[0].buttonClicked.value = 4;
    document.forms[0].submit();
    }

    function loadAction(){
    var url = window.location.href;
    var args = new Object();
    var query = location.search.substring(1);
    var pairs = query.split("&");
    for(var i=0;i<pairs.length;i++){
    var pos = pairs[i].indexOf('=');
    if(pos == -1) continue;
    var argname = pairs[i].substring(0,pos);
    var value = pairs[i].substring(pos+1);
    args[argname] = unescape(value);
    }
    //alert( "AP MAC Address is " + args.ap_mac);
    //alert( "The controller URL is " + args.switch_url);
    document.forms[0].action = args.switch_url;
    }

    </script>
    </head>
    <body topmargin="50" marginheight="50" onload="loadAction();">
    <form method="post">
    <input TYPE="hidden" NAME="buttonClicked" SIZE="16" MAXLENGTH="15" value="0">
    <input TYPE="hidden" NAME="redirect_url" SIZE="255" MAXLENGTH="255" VALUE="">
    <input TYPE="hidden" NAME="err_flag" SIZE="16" MAXLENGTH="15" value="0">

    <div align="center">
    <table border="0" cellspacing="0" cellpadding="0">
    <tr> <td>&nbsp;</td></tr>

    <tr align="center"> <td colspan="2"><font size="10" color="#336699">Web Authentication</font></td></tr>

    <tr align="center">

    <td colspan="2"> User Name &nbsp;&nbsp;&nbsp;<input type="TEXT" name="username" SIZE="25" MAXLENGTH="63" VALUE="">
    </td>
    </tr>
    <tr align="center" >
    <td colspan="2"> Password &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="Password" name="password" SIZE="25" MAXLENGTH="24">
    </td>
    </tr>

    <tr align="center">
    <td colspan="2"><input type="button" name="Submit" value="Submit" class="button" onclick="submitAction();">
    </td>
    </tr>
    </table>
    </div>

    </form>
    </body>
    </html>

    2. 修改完成后打包成.tar文件类型的文件,上传到一个linux服务器中(其他方式也可以)
    3. 在cisco设备中下载该文件

    4. 选择模版为该下载的模版

  • 相关阅读:
    Java Exception
    SuggestFrameWork js代码结构
    博客被管理员丢出来之心情
    HDU--杭电--1195--Open the Lock--深搜--都用双向广搜,弱爆了,看题了没?语文没过关吧?暴力深搜难道我会害羞?
    HDU--杭电--1026--Ignatius and the Princess I--广搜--直接暴力0MS,优先队列的一边站
    HDU--1232--畅通工程--并查集
    杭电--1102--Constructing Roads--并查集
    杭电--1879--继续畅通工程--并查集
    杭电--1875--畅通工程再续--并查集
    杭电--1272--小希的迷宫--并查集
  • 原文地址:https://www.cnblogs.com/djoker/p/6385770.html
Copyright © 2011-2022 走看看