Index: /branches/rel_ag_9_4_5/ui/localcmd/ui_localdb.c
===================================================================
--- /branches/rel_ag_9_4_5/ui/localcmd/ui_localdb.c	(revision 20314)
+++ /branches/rel_ag_9_4_5/ui/localcmd/ui_localdb.c	(working copy)
@@ -3816,46 +3816,46 @@
 	}
 	if (start > 1) {
 		sprintf(sql,"SELECT count(distinct a.user_name) from %s as a %s %s ;", LDB_VIEW_AUTH_USER, groupstr, condition);
-                // JasonChou replace function group_acc_count by ldbq_exec_one_no_escape
+        // JasonChou replace function group_acc_count by ldbq_exec_one_no_escape
 		//group_acc_count = get_sql_res_num(sql, conn, iswebui, username);
-                ldbq_exec_one_no_escape(conn, "%s", createfunction);
-                result = ldbq_exec_one_no_escape(conn, "%s", sql);
-                ldbq_exec_one_no_escape(conn, "%s", dropaggregate);
-                if (result == NULL) {
-	            ldb_englog(__FUNCTION__, "Fail to execute selete command: result is null.");
-	            ui_fail(ERR_LOCALDB_FAIL_EXEC, ERR_LOCALDB_FAIL_EXEC_INFO);
-	            ldbq_close_conn(conn);
-	            return -1;
-                } else if (result->status != LDB_RES_SUCCESS) {
-	            ldb_englog(__FUNCTION__, "Fail to execute selete command.");
-	            ui_fail(ERR_LOCALDB_FAIL_EXEC, ERR_LOCALDB_FAIL_EXEC_INFO);
-	            ldbq_clear_res(result);
-	            ldbq_close_conn(conn);
-	            return -1;
-	        } else if (result->size == 0 && username && *username != '\0') {
-		    ldb_englog(__FUNCTION__, "Fail to find given account %s.", username);
-		    ui_fail(ERR_LOCALDB_USER_NOT_FOUND, ERR_LOCALDB_USER_NOT_FOUND_INFO, username);
-		    ldbq_clear_res(result);
-		    ldbq_close_conn(conn);
-		    return -1;
-	        }
-                strnum = ldbq_get_value(result, 0, 0);
-	        ldbq_clear_res(result);
-	        if(strnum && *strnum != '\0' ) {
-		    group_acc_count = atoi(strnum);
-	        }
-                else {
-                    return -1;
-                } 
-		if(group_acc_count  < 0) {
-		    return -1;
-		}
-		if(group_acc_count < start) {
-		    if(!iswebui) {
+        ldbq_exec_one_no_escape(conn, "%s", createfunction);
+		result = ldbq_exec_one_no_escape(conn, "%s", sql);
+		ldbq_exec_one_no_escape(conn, "%s", dropaggregate);
+		if (result == NULL) {
+			ldb_englog(__FUNCTION__, "Fail to execute selete command: result is null.");
+			ui_fail(ERR_LOCALDB_FAIL_EXEC, ERR_LOCALDB_FAIL_EXEC_INFO);
+			ldbq_close_conn(conn);
+			return -1;
+		} else if (result->status != LDB_RES_SUCCESS) {
+			ldb_englog(__FUNCTION__, "Fail to execute selete command.");
+			ui_fail(ERR_LOCALDB_FAIL_EXEC, ERR_LOCALDB_FAIL_EXEC_INFO);
+			ldbq_clear_res(result);
+			ldbq_close_conn(conn);
+			return -1;
+		} else if (result->size == 0 && username && *username != '\0') {
+			ldb_englog(__FUNCTION__, "Fail to find given account %s.", username);
+			ui_fail(ERR_LOCALDB_USER_NOT_FOUND, ERR_LOCALDB_USER_NOT_FOUND_INFO, username);
+			ldbq_clear_res(result);
 			ldbq_close_conn(conn);
 			return -1;
 		}
-		    jumpfirst = 1;
+		strnum = ldbq_get_value(result, 0, 0);
+		ldbq_clear_res(result);
+		if(strnum && *strnum != '\0' ) {
+			group_acc_count = atoi(strnum);
+		}
+		else {
+			return -1;
+		} 
+		if(group_acc_count  < 0) {
+			return -1;
+		}
+		if(group_acc_count < start) {
+			if(!iswebui) {
+				ldbq_close_conn(conn);
+				return -1;
+			}
+			jumpfirst = 1;
 		} 
 		stmp = limitstr + strlen(limitstr);
 		sprintf(stmp, " offset %d", start - 1);
Index: /branches/rel_ag_9_4_5/webui/proxy/new/incVirtual/localdb/class.cliWrap_vLocalDBAccounts.php
===================================================================
--- /branches/rel_ag_9_4_5/webui/proxy/new/incVirtual/localdb/class.cliWrap_vLocalDBAccounts.php	(revision 20314)
+++ /branches/rel_ag_9_4_5/webui/proxy/new/incVirtual/localdb/class.cliWrap_vLocalDBAccounts.php	(working copy)
@@ -372,7 +372,7 @@
 
 		
 		$t_cliResp = cli::exec_direct(CMD_SHOW_LOCALDB_ACCOUNT, $search_name, "", 
-				$rowStart, pilot::getSessionData('rowMax'), 'UTENCGFMLPIKW', "U");
+				pilot::getSessionData('rowStart'), pilot::getSessionData('rowMax'), 'UTENCGFMLPIKW', "U");
 		if ($t_cliResp->result != 1) {
 			$t_errStr = cli::get_reason_info($t_cliResp);
 			$this->jsOnLoadEnd .= 'g_errStr += "' . (urldecode(str_replace('%0A', '\n', urlencode(addslashes($t_errStr))))) . '";';
