[Feature][R307L][task-view-1287][web] Customized requirement modification:ssid/key/logo/apn/dhcp address pool/Username and Password

Change-Id: I896be4e19fee4e896c8a5b17c094c28ba1dfe1cf
diff --git a/lynq/R307L/ap/app/zte_webui/i18n/Messages_en.properties b/lynq/R307L/ap/app/zte_webui/i18n/Messages_en.properties
index 56fce47..4add99f 100755
--- a/lynq/R307L/ap/app/zte_webui/i18n/Messages_en.properties
+++ b/lynq/R307L/ap/app/zte_webui/i18n/Messages_en.properties
@@ -526,6 +526,7 @@
 sms_save_tip = Saving...

 

 #login

+username = Username

 password = Password

 puk = PUK

 login = Login

@@ -533,8 +534,8 @@
 new_pin = New PIN

 confirm_pin = Confirm New PIN

 puk_locked = Your SIM card is locked permanently. Please contact your operator.

-password_error = Password is incorrect!

-password_error_left = Password is incorrect!<br/>You have {0} attempt(s) left.

+password_error = Username or password is incorrect!

+password_error_left = Username or password is incorrect!<br/>You have {0} attempt(s) left.

 password_error_account_lock = Your account is locked. <br/>Remaining time:

 password_error_five_times = You''ve input 5 times incorrectly. Retry in 5 minutes.

 password_error_account_lock_time = Your account is locked. <br/>Please try later.

diff --git a/lynq/R307L/ap/app/zte_webui/i18n/Messages_zh-cn.properties b/lynq/R307L/ap/app/zte_webui/i18n/Messages_zh-cn.properties
index 3e0e51e..170d3e4 100755
--- a/lynq/R307L/ap/app/zte_webui/i18n/Messages_zh-cn.properties
+++ b/lynq/R307L/ap/app/zte_webui/i18n/Messages_zh-cn.properties
@@ -528,6 +528,7 @@
 sms_save_tip = 保存草稿中...

 

 #login

+username = 用户名

 password = 密码

 puk = PUK

 login = 登录

@@ -535,8 +536,8 @@
 new_pin = 新 PIN

 confirm_pin = 确认新 PIN

 puk_locked = 您的 SIM卡已彻底锁定。请联系您的运营商。

-password_error = 密码不正确!

-password_error_left = 密码不正确!<br/>您的剩余尝试次数:{0}。

+password_error = 用户名或密码不正确!

+password_error_left = 用户名或密码不正确!<br/>您的剩余尝试次数:{0}。

 password_error_account_lock = 你的账户被锁定。<br/>剩余时间:

 password_error_five_times = 您已经输错5次。请5分钟后再试。

 password_error_account_lock_time = 您的账户已被锁定。<br/>请稍后再试。

diff --git a/lynq/R307L/ap/app/zte_webui/index.html b/lynq/R307L/ap/app/zte_webui/index.html
index f64166a..5b80559 100755
--- a/lynq/R307L/ap/app/zte_webui/index.html
+++ b/lynq/R307L/ap/app/zte_webui/index.html
@@ -25,11 +25,13 @@
 <div class="container" id="topContainer">

     <div id="langLogoBar" class="row">

         <div class="col-xs-4">

-            <a href="index.html" style="display: none;">

 			<script type="text/javascript">

-			document.write("<img src='pic/res_logo_web.png?random=" + Math.random() + "' />");

+			document.write("<img src='pic/Claro_shop.png?random=" + Math.random() + "' style='width: 17%; height: 16%;' />&nbsp;&nbsp;");

+			document.write("<img src='pic/Claro_video.png?random=" + Math.random() + "' style='width: 17%; height: 16%;' />&nbsp;&nbsp;");

+			document.write("<img src='pic/App_Claro.png?random=" + Math.random() + "' style='width: 17%; height: 16%;' />&nbsp;&nbsp;");

+			document.write("<img src='pic/Claro_drive.png?random=" + Math.random() + "' style='width: 17%; height: 16%;' />&nbsp;&nbsp;");

+			document.write("<img src='pic/Portal_Claro_ideas.png?random=" + Math.random() + "' style='width: 17%; height: 16%;' />");

 			</script>

-            </a>

             <!--span class="center-block" id="webui_title"></span-->

         </div>

         <div id="statusBar" style="display: none;" class="col-xs-8 text-right">

@@ -66,9 +68,7 @@
             </span>

             <span title="battery_level" i18n="true" data-bind="visible: hasBattery" class="statusItem"><img id="batteryCharging" data-bind="attr: {src: batteryPers}" class="paddingbottom6"/></span>

         </div>

-    </div>

-    <div id="manageBar" class="row">

-        <div id="manageContainer" class="col-xs-12 text-right">

+        <div id="statusBar" class="col-xs-8 text-right">

             <span id="logout">

                 <a data-trans="modify_password" href="#pwd_mode" data-bind="visible:showLogout()" class="margin-right-10"></a>

                 <a id="logoutlink" data-trans="logout" href="javascript:void(0)" data-bind="click:logout,visible:showLogout() " style="display: none;" class="margin-right-10"></a>

diff --git a/lynq/R307L/ap/app/zte_webui/js/com.js b/lynq/R307L/ap/app/zte_webui/js/com.js
index 73e9c0d..a6160de 100755
--- a/lynq/R307L/ap/app/zte_webui/js/com.js
+++ b/lynq/R307L/ap/app/zte_webui/js/com.js
@@ -91,7 +91,8 @@
         function prepare(values, isPost) {

             var obj = {

                 goformId: "LOGIN",

-                password: config.PASSWORD_ENCODE ? Base64.encode(values.password) : values.password

+                password: config.PASSWORD_ENCODE ? Base64.encode(values.password) : values.password,

+                username: config.PASSWORD_ENCODE ? Base64.encode(values.username) : values.username

             };

             return obj;

         }

@@ -8132,6 +8133,7 @@
             target.loginSecuritySupport = ko.observable(config.LOGIN_SECURITY_SUPPORT);

             target.newPIN               = ko.observable();			

             target.password             = ko.observable();

+            target.username             = ko.observable();

             target.PIN                  = ko.observable();

             target.pinNumber            = ko.observable(data.pinnumber);			

             target.PUK                  = ko.observable();

@@ -8191,6 +8193,7 @@
                 var ciphertext = "";

                 if (config.PASSWORD_ENCODE) {

 		    ciphertext = target.password();

+            var username = target.username();

 		} else {

                     var kparam = service.getDeviceInfoLow();

                     var tkey = CryptoJS.enc.Latin1.parse(kparam.skey);

@@ -8202,7 +8205,8 @@
                         }).toString();

 		}

                 service.login({

-                    password:ciphertext

+                    password:ciphertext,

+                    username: username

                 }, function (info) {

                     setTimeout(function () {

                         timer = loginStatusCheckingTimer();

@@ -8219,6 +8223,7 @@
                         logout.init();

                     } else {

                         target.password("");

+                        target.username("");

                         if(config.LOGIN_SECURITY_SUPPORT){

                             target.checkLoginData(function(){

                                 if (target.loginCount() == config.MAX_LOGIN_COUNT) {

@@ -8303,9 +8308,12 @@
             function setFocus(){

                 setTimeout(function () {

                     var txtAdmin = $('#txtAdmin:visible');

+                    var txtUser = $('#txtUser:visible');

                     var txtPIN = $('#txtPIN:visible');

                     var txtPUK = $('#txtPUK:visible');

-                    if (txtAdmin.length > 0) {

+                    if(txtUser.length > 0) {

+                        txtUser.focus();

+                    } else if (txtAdmin.length > 0) {

                         txtAdmin.focus();

                     } else if (txtPIN.length > 0) {

                         txtPIN.focus();

diff --git a/lynq/R307L/ap/app/zte_webui/pic/App_Claro.png b/lynq/R307L/ap/app/zte_webui/pic/App_Claro.png
new file mode 100755
index 0000000..7910b9a
--- /dev/null
+++ b/lynq/R307L/ap/app/zte_webui/pic/App_Claro.png
Binary files differ
diff --git a/lynq/R307L/ap/app/zte_webui/pic/Claro_drive.png b/lynq/R307L/ap/app/zte_webui/pic/Claro_drive.png
new file mode 100755
index 0000000..9eae53f
--- /dev/null
+++ b/lynq/R307L/ap/app/zte_webui/pic/Claro_drive.png
Binary files differ
diff --git a/lynq/R307L/ap/app/zte_webui/pic/Claro_shop.png b/lynq/R307L/ap/app/zte_webui/pic/Claro_shop.png
new file mode 100755
index 0000000..3028c32
--- /dev/null
+++ b/lynq/R307L/ap/app/zte_webui/pic/Claro_shop.png
Binary files differ
diff --git a/lynq/R307L/ap/app/zte_webui/pic/Claro_video.png b/lynq/R307L/ap/app/zte_webui/pic/Claro_video.png
new file mode 100755
index 0000000..8ea87f7
--- /dev/null
+++ b/lynq/R307L/ap/app/zte_webui/pic/Claro_video.png
Binary files differ
diff --git a/lynq/R307L/ap/app/zte_webui/pic/Portal_Claro_ideas.png b/lynq/R307L/ap/app/zte_webui/pic/Portal_Claro_ideas.png
new file mode 100755
index 0000000..7f681f2
--- /dev/null
+++ b/lynq/R307L/ap/app/zte_webui/pic/Portal_Claro_ideas.png
Binary files differ
diff --git a/lynq/R307L/ap/app/zte_webui/pic/res_logo_web.png b/lynq/R307L/ap/app/zte_webui/pic/res_logo_web.png
deleted file mode 100755
index 659b3d5..0000000
--- a/lynq/R307L/ap/app/zte_webui/pic/res_logo_web.png
+++ /dev/null
Binary files differ
diff --git a/lynq/R307L/ap/app/zte_webui/subpg/entry.html b/lynq/R307L/ap/app/zte_webui/subpg/entry.html
index b293ae8..53df5c4 100755
--- a/lynq/R307L/ap/app/zte_webui/subpg/entry.html
+++ b/lynq/R307L/ap/app/zte_webui/subpg/entry.html
@@ -16,6 +16,11 @@
 			</div>

             <div class="row form-group">

                 <div class="col-xs-8">

+                    <input id="txtUser" autocomplete="off" data-placeholder="username" data-bind="value:username, valueUpdate: 'keypress'"  maxlength="32" name="txtUser" style="border:2px solid rgb(221, 221, 221);" class="required form-control"/>

+                </div>

+            </div>

+            <div class="row form-group">

+                <div class="col-xs-8">

                     <input id="txtAdmin" autocomplete="off" data-placeholder="password" data-bind="value:password, valueUpdate: 'keypress'"  maxlength="32" name="txtAdmin" style="border:2px solid rgb(221, 221, 221);" type="password" class="required form-control"/>

                 </div>

                 <div class="col-xs-4">