add scriptEditRightMenuBar.jsp and modify some interfaces

This commit is contained in:
zhengyingying 2014-04-15 11:15:23 +08:00
parent 39bf833c8d
commit ff1bb8bee4
7 changed files with 775 additions and 818 deletions

View File

@ -80,148 +80,94 @@ body {
</a>
</div>
</div>
<div class="content">
<div class="introduce">
<div class="text">
<div class="right-text">
<div>
<p
style="font-size: 22px; font-weight: bold; font-family: sans-serif">Bench4Q</p>
</div>
<div>
<p
style="font-size: 15; line-height: 30px; font-weight: bold; font-family: Arial">
<fmt:message key="index_jsp_Bench4Q" />
</p>
</div>
</div>
<div class="left-text">
<div>
<p
style="font-size: 22px; font-weight: bold; font-family: sans-serif">Bench4Q_as_a_Service</p>
</div>
<div>
<p
style="font-size: 15; line-height: 30px; font-weight: bold; font-family: Arial">
<fmt:message key="index_jsp_Bench4Q_as_a_Service" />
</p>
</div>
</div>
<div class="clear"></div>
</div>
<div class="button">
<div align="center">
<a href="register.jsp"><img id="register" class="register"
src="images/go.jpg"></img></a>
<div class="content introduce">
<div class="text">
<div class="right-text">
<div>
<p class="text-title">Bench4Q</p>
</div>
<div>
<p style="text-align: center">
<fmt:message key="index_jsp_FreeRegister" />
<p class="text-content">
<fmt:message key="index_jsp_Bench4Q" />
</p>
</div>
</div>
<div class="left-text">
<div>
<p class="text-title">Bench4Q_as_a_Service</p>
</div>
<div>
<p class="text-content">
<fmt:message key="index_jsp_Bench4Q_as_a_Service" />
</p>
</div>
</div>
<div class="clear"></div>
</div>
<div class="button">
<div align="center">
<a href="register.jsp"><img id="register" class="register"
src="images/go.jpg"></img></a>
</div>
<div>
<p style="text-align: center">
<fmt:message key="index_jsp_FreeRegister" />
</p>
</div>
</div>
</div>
</div>
<!--/.fluid-container-->
<div class="bottom">
<div
style="width: 100%; height: 200px; background-color: #f8f8f8; border-top: 1px #cbcaca solid; border-bottom: 1px #cbcaca solid;">
<div align=right
style="width: 25%; height: 200px; padding-top: 20px; float: left">
<img src="images/logo.png" />
<div align=right class="bottom-logo">
<img src="images/logo.png" />
</div>
<div style="width: 3%; height: 200px; float: left"></div>
<div style="width: 12%; height: 200px; float: left">
<div style="width: 100%; height: 200px;">
<div class="introduce-title">Bench4Q</div>
<div class="introduce-content">About Us</div>
<div class="introduce-content">Sina Blog</div>
<div class="introduce-content">Sina Weibo</div>
<div class="introduce-content">Features</div>
<div class="introduce-content">Contact Support</div>
</div>
<div style="width: 3%; height: 200px; float: left"></div>
<div style="width: 12%; height: 200px; float: left">
<div style="width: 100%; height: 200px;">
<div
style="font-weight: 600; color: #868583; width: 100%; height: 30px; padding: 15px 0px 0px 0px; font-size: 15px; border-bottom: 1px #cbcaca solid;">
Bench4Q</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3; padding-top: 5px">
About Us</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3;">
Sina Blog</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3;">
Sina Weibo</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3;">
Features</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3;">
Contact Support</div>
</div>
</div>
<div style="width: 2%; height: 200px; float: left"></div>
<div style="width: 13%; height: 200px; float: left">
<div style="width: 100%; height: 200px;">
<div class="introduce-title">Document</div>
<div class="introduce-content">Requirement Analysis Document</div>
<div class="introduce-content">Design Document</div>
<div class="introduce-content">UserManual Document</div>
<div class="introduce-content">Test Document</div>
</div>
<div style="width: 2%; height: 200px; float: left"></div>
<div style="width: 13%; height: 200px; float: left">
<div style="width: 100%; height: 200px;">
<div
style="font-weight: 600; color: #868583; width: 100%; height: 30px; padding: 15px 0px 0px 0px; font-size: 15px; border-bottom: 1px #cbcaca solid;">
Document</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 40px; color: #5a86b3; padding-top: 5px">
Requirement Analysis Document</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3;">
Design Document</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3;">
UserManual Document</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3;">
Test Document</div>
</div>
</div>
<div style="width: 2%; height: 200px; float: left"></div>
<div style="width: 12%; height: 200px; float: left">
<div style="width: 100%; height: 200px;">
<div class="introduce-title">Tools</div>
<div class="introduce-content">Mysql</div>
<div class="introduce-content">Navicat Lite for MySQL</div>
<div class="introduce-content">CentOS</div>
<div class="introduce-content">Tommcat</div>
</div>
<div style="width: 2%; height: 200px; float: left"></div>
<div style="width: 12%; height: 200px; float: left">
<div style="width: 100%; height: 200px;">
<div
style="font-weight: 600; color: #868583; width: 100%; height: 30px; padding: 15px 0px 0px 0px; font-size: 15px; border-bottom: 1px #cbcaca solid;">
Tools</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3; padding-top: 5px">
Mysql</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 40px; color: #5a86b3;">
Navicat Lite for MySQL</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3;">
CentOS</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3;">
Tommcat</div>
</div>
</div>
<div style="width: 2%; height: 200px; float: left"></div>
<div style="width: 12%; height: 200px; float: left">
<div style="width: 100%; height: 200px;">
<div
style="font-weight: 600; color: #868583; width: 100%; height: 30px; padding: 15px 0px 0px 0px; font-size: 15px; border-bottom: 1px #cbcaca solid;">
Download</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3; padding-top: 5px">
SSH</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3;">
SUT</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3;">
TPC-W</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3;">
Bench4Q1.0</div>
<div
style="font-size: 12px; font-weight: 500; width: 100%; height: 20px; color: #5a86b3;">
Bench4Q_Script</div>
</div>
</div>
<div style="width: 2%; height: 200px; float: left"></div>
<div style="width: 12%; height: 200px; float: left">
<div style="width: 100%; height: 200px;">
<div class="introduce-title">Download</div>
<div class="introduce-content">SSH</div>
<div class="introduce-content">SUT</div>
<div class="introduce-content">TPC-W</div>
<div class="introduce-content">Bench4Q1.0</div>
<div class="introduce-content">Bench4Q_Script</div>
</div>
</div>
</div>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js"></script>
<script src="lib/bootstrap/js/bootstrap-carousel.js"></script>
<script src="script/index.js"></script>
</body>
</html>

View File

@ -1,144 +1,144 @@
<%@page language="java" contentType="text/html; charset=GBK"
pageEncoding="GBK"%>
<html>
<head>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Bench4Q</title>
<link rel="search" type="application/opensearchdescription+xml"
href="https://github.com/opensearch.xml" title="GitHub">
<link rel="fluid-icon" href="https://github.com/fluidicon.png"
title="GitHub">
<link rel="shortcut icon" href="favicon.ico" type="images/x-icon">
<meta content="authenticity_token" name="csrf-param">
<meta content="wedm5SiF4gf6cxpqmjS1xTCRp86Sc8PAssZUiID8N0M="
name="csrf-token">
<link href="lib/github/css/github-6053501db2b69fd2b04652c6349117be14468ce4.css"
media="screen" rel="stylesheet" type="text/css">
<link href="lib/github/css/github2-277183b6724249eea8a7d10300542831eac78d3f.css"
media="screen" rel="stylesheet" type="text/css">
<link href="css/login.css" rel="stylesheet">
<link id="bs-css" href="lib/chrisma/css/bootstrap-cerulean.css" rel="stylesheet">
<script src="lib/other/frameworks-a450c7f907bdc1ee6b362ab1ecca811c761fd259.js"
type="text/javascript"></script>
<!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><link rel="stylesheet" type="text/css" href="flip_ie.css"/><![endif]-->
<!-- <script src="http://www.google.com/jsapi"></script> -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body class="logged_out wider windows env-production ">
<div id="wrapper">
<div id="header" class="true clearfix">
<div class="container clearfix">
<a class="site-logo" href="index.jsp"> <img alt="GitHub"
class="github-logo-4x" src="images/headerLogo.png" height="30"> <img
alt="GitHub" class="github-logo-4x-hover" src="images/bench4q-2.png"
height="30">
</a>
<ul class="top-nav logged_out">
<li class="login"><a href="login.jsp"><fmt:message key="login_jsp_home" /></a></li>
<li class="login"><a href="register.jsp"><fmt:message key="login_jsp_register" /></a></li>
</ul>
</div>
</div>
<div class="site home">
<div class="container">
<div class="pagehead homehead">
<div class="hero">
<h1><fmt:message key="login_jsp_Title" /></h1>
</div>
</div>
</div>
</div>
<div class="loginDiv">
<div style="height: 20px"></div>
<div style="font-size: 18px; margin-left: 280px">
<h1><fmt:message key="login_jsp_welcome" /></h1>
</div>
<div style="height: 60px;"></div>
<div id="div1" style="float: left; width: 270px; height: 300px;"></div>
<div id="div2"
style="width: 400px; height: 300px; float: left; background-color: #e9f1f4; border: efefff 1px solid;">
<div style="width: 100%; height: 100%">
<div style="width: 100%; height: 40px; background-color: #607989">
<div style="width: 10%; height: 40px; float: left"></div>
<div
style="font-size: 20px; color: #ffffff; padding-top: 5px; font-weight: 900">
<fmt:message key="login_jsp_signIn" /> <a
style="font-size: 15px; color: #ffffff; font-weight: normal"
href="register.jsp">(<fmt:message key="login_jsp_register" />)</a>
</div>
</div>
<div style="width: 100%; height: 260px;">
<div style="height: 10px; width: 100%"></div>
<div style="height: 40px; width: 100% border:black 1px solid;">
<div
style="height: 40px; width: 30px; padding-left: 40px; float: left">
<img src="images/username.jpg" />
</div>
<div style="height: 40px; padding-top: 9px;">
&nbsp;&nbsp;&nbsp;<fmt:message key="login_jsp_username" /> </div>
</div>
<div style="height: 2px; width: 100%"></div>
<div>
<input autofocus type="text" id="username" name="username"
style="font-size: 18px; margin-left: 40px; height: 30px; width: 300px;"
onblur="checkName(this.value)" />
<div id='alertUserName'
style='display: none; color: red; margin-left: 40px'><fmt:message key="login_jsp_usernameWarnning" /> </div>
</div>
<div style="height: 10px; width: 100%"></div>
<div style="height: 40px; width: 100%">
<div
style="height: 40px; width: 30; padding-left: 40px; float: left">
<img src="images/password.jpg" />
</div>
<div style="height: 40px; padding-top: 9px;">
&nbsp;&nbsp;&nbsp;<fmt:message key="login_jsp_password" /> </div>
</div>
<div style="height: 10px; width: 100%"></div>
<div>
<input type="password" id="password" name="password"
style="font-size: 18px; margin-left: 40px; height: 30px; width: 300px;"
onblur="checkPass(this.value)" />
<div id='alertPassWord'
style='display: none; color: red; margin-left: 40px'><fmt:message key="login_jsp_passwordWarnning" /> </div>
</div>
<div style="height: 20px; width: 100%"></div>
<div style="height: 40px; padding-left: 40px;">
<button type="submit" class="btn btn-large btn-primary"
onClick="login()"><fmt:message key="login_jsp_signIn" /> </button>
<button type="submit" class="btn btn-large btn-primary"
onClick="adminLogin()"><fmt:message key="login_jsp_admin" /> </button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js"></script>
<script src="script/login.js"></script>
</body>
</html>
<%@page language="java" contentType="text/html; charset=GBK"
pageEncoding="GBK"%>
<html>
<head>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Bench4Q</title>
<link rel="search" type="application/opensearchdescription+xml"
href="https://github.com/opensearch.xml" title="GitHub">
<link rel="fluid-icon" href="https://github.com/fluidicon.png"
title="GitHub">
<link rel="shortcut icon" href="favicon.ico" type="images/x-icon">
<meta content="authenticity_token" name="csrf-param">
<meta content="wedm5SiF4gf6cxpqmjS1xTCRp86Sc8PAssZUiID8N0M="
name="csrf-token">
<link href="lib/github/css/github-6053501db2b69fd2b04652c6349117be14468ce4.css"
media="screen" rel="stylesheet" type="text/css">
<link href="lib/github/css/github2-277183b6724249eea8a7d10300542831eac78d3f.css"
media="screen" rel="stylesheet" type="text/css">
<link href="css/login.css" rel="stylesheet">
<link id="bs-css" href="lib/chrisma/css/bootstrap-cerulean.css" rel="stylesheet">
<script src="lib/other/frameworks-a450c7f907bdc1ee6b362ab1ecca811c761fd259.js"
type="text/javascript"></script>
<!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><link rel="stylesheet" type="text/css" href="flip_ie.css"/><![endif]-->
<!-- <script src="http://www.google.com/jsapi"></script> -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body class="logged_out wider windows env-production ">
<div id="wrapper">
<div id="header" class="true clearfix">
<div class="container clearfix">
<a class="site-logo" href="index.jsp"> <img alt="GitHub"
class="github-logo-4x" src="images/headerLogo.png" height="30"> <img
alt="GitHub" class="github-logo-4x-hover" src="images/bench4q-2.png"
height="30">
</a>
<ul class="top-nav logged_out">
<li class="login"><a href="index.jsp"><fmt:message key="login_jsp_home" /></a></li>
<li class="login"><a href="register.jsp"><fmt:message key="login_jsp_register" /></a></li>
</ul>
</div>
</div>
<div class="site home">
<div class="container">
<div class="pagehead homehead">
<div class="hero">
<h1><fmt:message key="login_jsp_Title" /></h1>
</div>
</div>
</div>
</div>
<div class="loginDiv">
<div style="height: 20px"></div>
<div style="font-size: 18px; margin-left: 280px">
<h1><fmt:message key="login_jsp_welcome" /></h1>
</div>
<div style="height: 60px;"></div>
<div id="div1" style="float: left; width: 270px; height: 300px;"></div>
<div id="div2"
style="width: 400px; height: 300px; float: left; background-color: #e9f1f4; border: efefff 1px solid;">
<div style="width: 100%; height: 100%">
<div style="width: 100%; height: 40px; background-color: #607989">
<div style="width: 10%; height: 40px; float: left"></div>
<div
style="font-size: 20px; color: #ffffff; padding-top: 5px; font-weight: 900">
<fmt:message key="login_jsp_signIn" /> <a
style="font-size: 15px; color: #ffffff; font-weight: normal"
href="register.jsp">(<fmt:message key="login_jsp_register" />)</a>
</div>
</div>
<div style="width: 100%; height: 260px;">
<div style="height: 10px; width: 100%"></div>
<div style="height: 40px; width: 100% border:black 1px solid;">
<div
style="height: 40px; width: 30px; padding-left: 40px; float: left">
<img src="images/username.jpg" />
</div>
<div style="height: 40px; padding-top: 9px;">
&nbsp;&nbsp;&nbsp;<fmt:message key="login_jsp_username" /> </div>
</div>
<div style="height: 2px; width: 100%"></div>
<div>
<input autofocus type="text" id="username" name="username"
style="font-size: 18px; margin-left: 40px; height: 30px; width: 300px;"
onblur="checkName(this.value)" />
<div id='alertUserName'
style='display: none; color: red; margin-left: 40px'><fmt:message key="login_jsp_usernameWarnning" /> </div>
</div>
<div style="height: 10px; width: 100%"></div>
<div style="height: 40px; width: 100%">
<div
style="height: 40px; width: 30; padding-left: 40px; float: left">
<img src="images/password.jpg" />
</div>
<div style="height: 40px; padding-top: 9px;">
&nbsp;&nbsp;&nbsp;<fmt:message key="login_jsp_password" /> </div>
</div>
<div style="height: 10px; width: 100%"></div>
<div>
<input type="password" id="password" name="password"
style="font-size: 18px; margin-left: 40px; height: 30px; width: 300px;"
onblur="checkPass(this.value)" />
<div id='alertPassWord'
style='display: none; color: red; margin-left: 40px'><fmt:message key="login_jsp_passwordWarnning" /> </div>
</div>
<div style="height: 20px; width: 100%"></div>
<div style="height: 40px; padding-left: 40px;">
<button type="submit" class="btn btn-large btn-primary"
onClick="login()"><fmt:message key="login_jsp_signIn" /> </button>
<button type="submit" class="btn btn-large btn-primary"
onClick="adminLogin()"><fmt:message key="login_jsp_admin" /> </button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js"></script>
<script src="script/login.js"></script>
</body>
</html>

View File

@ -1,269 +1,279 @@
<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<html>
<head>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<meta charset="utf-8">
<title>Bench4Q</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description"
content="Bench4Q, a new method for QOS benchmarking.">
<link id="bs-css" href="lib/chrisma/css/bootstrap-cerulean.css" rel="stylesheet">
<link href="lib/chrisma/css/opa-icons.css" rel="stylesheet">
<link
href="http://ajax.aspnetcdn.com/ajax/bootstrap/2.3.2/css/bootstrap-responsive.css"
rel="stylesheet">
<link href="lib/chrisma/css/charisma-app.css" rel="stylesheet">
<style type="text/css">
body {
padding-bottom: 40px;
}
.sidebar-nav {
padding: 9px 0;
}
</style>
<link href="lib/chrisma/css/charisma-app.css" rel="stylesheet">
<link href="css/bench4q.css" rel="stylesheet">
<link href='css/plugin.css' rel='stylesheet'>
<link rel="shortcut icon" href="images/bench4q.png">
<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- The fav icon -->
<link rel="shortcut icon" href="img/favicon.ico">
</head>
<body>
<fmt:bundle basename="i18n">
<!-- topbar starts -->
<jsp:include page="publiccontrol/navigatebar.jsp"></jsp:include>
<!-- topbar ends -->
<div class="container-fluid">
<div class="row-fluid">
<jsp:include page="publiccontrol/leftmenubar.jsp"></jsp:include>
<noscript>
<div class="alert alert-block span10">
<h4 class="alert-heading">
<fmt:message key="warning" />
!
</h4>
<p>
<fmt:message key="warningcontent1" />
<a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a>
<fmt:message key="warningcontent2" />
.
</p>
</div>
</noscript>
<div id="content" class="span10">
<!-- content starts -->
<div>
<ul class="breadcrumb">
<li><a href="homepage.jsp"><fmt:message key="home" /></a> <span
class="divider">/</span></li>
<li><a href="script.jsp"><fmt:message
key="scriptmanagement" /></a><span class="divider">/</span></li>
<li><a href="plugin.jsp"><fmt:message
key="script_jsp_makeScript" /></a></li>
</ul>
</div>
<div class="row-fluid sortable">
<div class="box span6">
<div class="box-header well" data-original-title>
<i class="icon-pencil left"></i>
<h2>
<span><fmt:message key="plugin_jsp_plugins" />(usePlugins)</span>
</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i
class="icon-plus"></i></a> <a href="#" class="btn btn-round"><i
class="icon-list"></i></a> <a href="#"
class="btn btn-minimize btn-round"><i
class="icon-chevron-up"></i></a>
</div>
</div>
<div class="box-content row-fluid">
<div id="pluginArea" class="listArea span9"></div>
<div class=" span3 button-div">
<div>
<button type="submit" class="btn btn-primary btn-width"
id="addPlugin" onClick="addPlugin();">
<fmt:message key="plugin_jsp_add" />
</button>
</div>
<div>
<button type="submit" class="btn btn-primary btn-width"
id="removePlugin" onClick="removePluginByClicked();">
<fmt:message key="plugin_jsp_remove" />
</button>
</div>
<div>
<button type="submit" class="btn btn-primary btn-width"
id="removeAllPlugin" onClick="clearPluginChoosedList();">
<fmt:message key="plugin_jsp_clear" />
</button>
</div>
</div>
</div>
</div>
<!--/span-->
<!-- Behavior start -->
<div class="box span6">
<div class="box-header well" data-original-title>
<i class="icon-pencil left"></i>
<h2>
<i></i>
<fmt:message key="plugin_jsp_behavior" />
(behaviors)
</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i
class="icon-plus"></i></a> <a href="#" class="btn btn-round"><i
class="icon-list"></i></a> <a href="#"
class="btn btn-minimize btn-round"><i
class="icon-chevron-up"></i></a>
</div>
</div>
<div class="box-content row-fluid">
<div id="behaviorArea" class="listArea span9"></div>
<div class="span3 button-div">
<div class="hide" id="insertBefore">
<button type="submit" class="btn btn-primary btn-width"
onClick="insert();">
<fmt:message key="plugin_jsp_insertBefore" />
</button>
</div>
<div>
<button type="submit" class="btn btn-primary btn-width"
onClick="insertAfter();">
<fmt:message key="plugin_jsp_insertAfter" />
</button>
</div>
<div>
<button type="submit" class="btn btn-primary btn-width"
id="removeBehavior_Plugin"
onClick="removeInsertPluginByClicked();">
<fmt:message key="plugin_jsp_remove" />
</button>
</div>
<div>
<button type="submit" class="btn btn-primary btn-width"
onClick="clearPluginMethodList();">
<fmt:message key="plugin_jsp_clear" />
</button>
</div>
</div>
</div>
</div>
<div id="showPluginMethod" class="showPluginMethod"></div>
</div>
<!--/row-->
<!-- content ends -->
<div class="hide" id="submitBehaviors">
<p>
<fmt:message key="plugin_jsp_scriptName"></fmt:message>
<input id="writeAScriptName" type="text" name="scriptName"
size=20></input>
</p>
<p>
<button class='btn-large' onClick="submitBehaviors(this);">
<fmt:message key="plugin_jsp_submit" />
</button>
</p>
</div>
</div>
<!--/#content.span10-->
</div>
<hr>
<div class="modal hide fade " id="myModal_Plugin">
<div class="modal-header">
<button type="button" id="myModal-close" class="close"
data-dismiss="modal">×</button>
<h3>
<fmt:message key="plugin_jsp_addNewPlugin" />
</h3>
</div>
<div class="modal-body" style="height: 260px;">
<div class="inset scroll" id="choosePlugin"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary btn-width"
onClick="pluginFinish();" id="pluginFinish">
<fmt:message key="plugin_jsp_finish" />
</button>
<button type="button" class="btn btn-primary btn-width"
onClick="pluginCancel();" id="pluginCancel">
<fmt:message key="plugin_jsp_cancel" />
</button>
</div>
</div>
<div class="modal hide fade " id="myModal_Behavior">
<div class="modal-header">
<button type="button" id="myModal-close" class="close"
data-dismiss="modal">×</button>
<h3>
<fmt:message key="plugin_jsp_chooseBehaviors" />
</h3>
</div>
<div class="modal-body">
<div class="row-fluid">
<div class="span6 behavior-box scroll">
<div id="insertPluginAreaPlugins"></div>
</div>
<div class="span6 behavior-box scroll">
<div id="pluginMethod"></div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary btn-width"
onClick="behaviorFinish();" id="behaviorFinish">
<fmt:message key="plugin_jsp_finish" />
</button>
<button type="button" class="btn btn-primary btn-width" onClick=""
id="behaviorCancel">
<fmt:message key="plugin_jsp_cancel" />
</button>
</div>
</div>
<jsp:include page="publiccontrol/footer.jsp"></jsp:include>
</div>
<!--/.fluid-container-->
<!-- external javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- jQuery -->
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js"></script>
<script
src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.4/jquery-ui.min.js"></script>
<script src="lib/jqueryi18n/jquery.i18n.properties-1.0.9.js"></script>
<script src="lib/bootstrap/js/bootstrap-modal.js"></script>
<script
src='http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.js'></script>
<script src="lib/chrisma/js/jquery.cookie.js"></script>
<script src="lib/chrisma/js/theme.js"></script>
<script src="script/base.js"></script>
<script src="script/pluginModel.js"></script>
<script src="script/plugin-new.js"></script>
<script src="script/behaviorsForm.js"></script>
</fmt:bundle>
</body>
<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<html>
<head>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<meta charset="utf-8">
<title>Bench4Q</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description"
content="Bench4Q, a new method for QOS benchmarking.">
<link id="bs-css" href="lib/chrisma/css/bootstrap-cerulean.css"
rel="stylesheet">
<link href="lib/chrisma/css/opa-icons.css" rel="stylesheet">
<link
href="http://ajax.aspnetcdn.com/ajax/bootstrap/2.3.2/css/bootstrap-responsive.css"
rel="stylesheet">
<link href="lib/chrisma/css/charisma-app.css" rel="stylesheet">
<style type="text/css">
body {
padding-bottom: 40px;
}
.sidebar-nav {
padding: 9px 0;
}
</style>
<link href="lib/chrisma/css/charisma-app.css" rel="stylesheet">
<link href="css/bench4q.css" rel="stylesheet">
<link href='css/plugin.css' rel='stylesheet'>
<link rel="shortcut icon" href="images/bench4q.png">
<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- The fav icon -->
<link rel="shortcut icon" href="img/favicon.ico">
</head>
<body>
<fmt:bundle basename="i18n">
<!-- topbar starts -->
<jsp:include page="publiccontrol/navigatebar.jsp"></jsp:include>
<!-- topbar ends -->
<div class="container-fluid">
<div class="row-fluid">
<jsp:include page="publiccontrol/leftmenubar.jsp"></jsp:include>
<noscript>
<div class="alert alert-block span10">
<h4 class="alert-heading">
<fmt:message key="warning" />
!
</h4>
<p>
<fmt:message key="warningcontent1" />
<a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a>
<fmt:message key="warningcontent2" />
.
</p>
</div>
</noscript>
<div id="content" class="span10">
<!-- content starts -->
<ul class="breadcrumb">
<li><a href="homepage.jsp"><fmt:message key="home" /></a> <span
class="divider">/</span></li>
<li><a href="script.jsp"><fmt:message
key="scriptmanagement" /></a><span class="divider">/</span></li>
<li><a href="plugin.jsp"><fmt:message
key="script_jsp_makeScript" /></a></li>
</ul>
<div class="tab">
<ul style="cursor: pointer" class="nav nav-tabs">
<li id="tow1" onclick='setTab("tow",1,3);' class="on"><a
href="#"><fmt:message key="plugin_jsp_plugins" />(usePlugins)</a></li>
<li id="tow2" onclick='setTab("tow",2,3);'><a href="#">参数化(Parameters)</a></li>
<li id="tow3" onclick='setTab("tow",3,3);'><a href="#"><fmt:message
key="plugin_jsp_behavior" /> (behaviors)</a></li>
</ul>
</div>
<div class="tabContent">
<div class="span12">
<div id="cont_tow_1" class="one block">
<div class="box span10">
<div class="box-header well" data-original-title>
<i class="icon-pencil left"></i>
<h2>
<span><fmt:message key="plugin_jsp_plugins" />(usePlugins)</span>
</h2>
<div class="box-icon">
<a href="#" class="btn btn-minimize btn-round"><i
class="icon-chevron-up"></i></a>
</div>
</div>
<div class="box-content row-fluid">
<div id="pluginArea" class="listArea span6"></div>
<div class=" span4 button-div">
<div>
<button type="submit" class="btn btn-primary btn-width"
id="addPlugin" onClick="addPlugin();">
<fmt:message key="plugin_jsp_add" />
</button>
</div>
<div>
<button type="submit" class="btn btn-primary btn-width"
id="removePlugin" onClick="removePluginByClicked();">
<fmt:message key="plugin_jsp_remove" />
</button>
</div>
<div>
<button type="submit" class="btn btn-primary btn-width"
id="removeAllPlugin" onClick="clearPluginChoosedList();">
<fmt:message key="plugin_jsp_clear" />
</button>
</div>
</div>
</div>
</div>
</div>
<div id="cont_tow_2" class="one " style="display: none"></div>
<div id="cont_tow_3" class="one " style="display: none">
<div class="box span6">
<div class="box-header well" data-original-title>
<i class="icon-pencil left"></i>
<h2>
<i></i>
<fmt:message key="plugin_jsp_behavior" />
(behaviors)
</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i
class="icon-plus"></i></a> <a href="#" class="btn btn-round"><i
class="icon-list"></i></a> <a href="#"
class="btn btn-minimize btn-round"><i
class="icon-chevron-up"></i></a>
</div>
</div>
<div class="box-content row-fluid">
<div id="behaviorArea" class="listArea span8"></div>
<div class="span4 button-div">
<div class="hide" id="insertBefore">
<button type="submit" class="btn btn-primary btn-width"
onClick="insert();">
<fmt:message key="plugin_jsp_insertBefore" />
</button>
</div>
<div>
<button type="submit" class="btn btn-primary btn-width"
onClick="insertAfter();">
<fmt:message key="plugin_jsp_insertAfter" />
</button>
</div>
<div>
<button type="submit" class="btn btn-primary btn-width"
id="removeBehavior_Plugin"
onClick="removeInsertPluginByClicked();">
<fmt:message key="plugin_jsp_remove" />
</button>
</div>
<div>
<button type="submit" class="btn btn-primary btn-width"
onClick="clearPluginMethodList();">
<fmt:message key="plugin_jsp_clear" />
</button>
</div>
</div>
</div>
</div>
<div class="span6">
<div id="showPluginMethod" class="showPluginMethod"></div>
<div class="hide" id="submitBehaviors">
<p>
<fmt:message key="plugin_jsp_scriptName"></fmt:message>
<input id="writeAScriptName" type="text" name="scriptName"
size=20></input>
</p>
<p>
<button class='btn-large' onClick="submit(this);">
<fmt:message key="plugin_jsp_submit" />
</button>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!--/#content.span10-->
</div>
<hr>
<div class="modal hide fade " id="myModal_Plugin">
<div class="modal-header">
<button type="button" id="myModal-close" class="close"
data-dismiss="modal">×</button>
<h3>
<fmt:message key="plugin_jsp_addNewPlugin" />
</h3>
</div>
<div class="modal-body" style="height: 260px;">
<div class="inset scroll" id="choosePlugin"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary btn-width"
onClick="pluginFinish();" id="pluginFinish">
<fmt:message key="plugin_jsp_finish" />
</button>
<button type="button" class="btn btn-primary btn-width"
onClick="pluginCancel();" id="pluginCancel">
<fmt:message key="plugin_jsp_cancel" />
</button>
</div>
</div>
<div class="modal hide fade " id="myModal_Behavior">
<div class="modal-header">
<button type="button" id="myModal-close" class="close"
data-dismiss="modal">×</button>
<h3>
<fmt:message key="plugin_jsp_chooseBehaviors" />
</h3>
</div>
<div class="modal-body">
<div class="row-fluid">
<div class="span6 behavior-box scroll">
<div id="insertPluginAreaPlugins"></div>
</div>
<div class="span6 behavior-box scroll">
<div id="pluginMethod"></div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary btn-width"
onClick="behaviorFinish();" id="behaviorFinish">
<fmt:message key="plugin_jsp_finish" />
</button>
<button type="button" class="btn btn-primary btn-width" onClick=""
id="behaviorCancel">
<fmt:message key="plugin_jsp_cancel" />
</button>
</div>
</div>
<jsp:include page="publiccontrol/footer.jsp"></jsp:include>
</div>
<!--/.fluid-container-->
<!-- external javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- jQuery -->
<script
src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js"></script>
<script
src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.4/jquery-ui.min.js"></script>
<script src="lib/jqueryi18n/jquery.i18n.properties-1.0.9.js"></script>
<script src="lib/bootstrap/js/bootstrap-modal.js"></script>
<script
src='http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.js'></script>
<script src="lib/chrisma/js/jquery.cookie.js"></script>
<script src="lib/chrisma/js/theme.js"></script>
<script src="script/base.js"></script>
<script src="script/pluginModel.js"></script>
<script src="script/plugin-new.js"></script>
<script src="script/behaviorsForm.js"></script>
</fmt:bundle>
</body>
</html>

View File

@ -20,14 +20,14 @@
<div id="content" class="span10">
<div>
<ul class="breadcrumb">
<li><a href="#">Home</a> <span class="divider">/</span></li>
<li><a href="#">Port Management</a></li>
<li><a href="#"><fmt:message key="home" /></a> <span class="divider">/</span></li>
<li><a href="#"><fmt:message key="portmanagement"></fmt:message></a></li>
</ul>
</div>
<div class="row-fluid sortable">
<div class="box span12 center">
<div class="box-header well" data-original-title>
<h2>Ports</h2>
<h2><fmt:message key="port"></fmt:message></h2>
<div class="box-icon">
<a class="btn btn-setting btn-round" id="plus"><i
class="icon-plus"></i></a> <a class="btn btn-round list"><i

View File

@ -0,0 +1,233 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<div class="box span4" style="margin-top: 0px;">
<div class="box-header well" data-original-title>
<h2>
<i></i> API Documentation
</h2>
<div class="box-icon">
<a href="#" class="btn btn-minimize btn-round"> <i
class="icon-chevron-up" id="icon-user" onclick="toggleAPI()"></i>
</a>
</div>
</div>
<div class="box-content main-menu-span " id="box-api">
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading" id="api-header">
<a class="accordion-toggle" data-toggle="collapse"
data-parent="#accordion2" href="#collapseOne"> poolSize </a>
</div>
<div id="collapseOne" class="accordion-body collapse"
style="height: 0px;">
<div class="accordion-inner" id="api-content">
<p>The amount of people we simulated to generate actions .</p>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading" id="api-header">
<a class="accordion-toggle" data-toggle="collapse"
data-parent="#accordion2" href="#collapseTwo">usePlugins </a>
</div>
<div id="collapseTwo" class="accordion-body collapse"
style="height: 0px;">
<div class="accordion-inner" id="api-content">
<div>
<h3 class="title">usePlugin</h3>
<p>The plug-ins which help us to create scripts, such as
CommandLinePlugin ,ConstantTimerPlugin,HttpPlugin and LogPlugin.</p>
</div>
<div>
<span class="arguments">Arguments</span>
<table class="details">
<tbody>
<tr>
<td>id</td>
<td>String</td>
</tr>
<tr>
<td>The description of plug-in which we used.</td>
</tr>
<tr>
<td>name</td>
<td>String</td>
</tr>
<tr>
<td>The name of plug-in,such as HTTP,ConstantTimer and so
on.</td>
</tr>
<tr>
<td>parameters</td>
<td>Parameter[]</td>
</tr>
<tr>
<td>The list of parameter,which include the important
information of script which you are editing.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading" id="api-header">
<a class="accordion-toggle" data-toggle="collapse"
data-parent="#accordion2" href="#collapseThree">pages </a>
</div>
<div id="collapseThree" class="accordion-body in"
style="height: auto;">
<div class="accordion-inner" id="api-content">
<div>
<h3 class="title">batches</h3>
<p>a series of behaviors which you have made in the network.</p>
</div>
<div>
<span class="arguments">Arguments</span>
<table class="details">
<tbody>
<tr>
<td>Id</td>
<td>int</td>
</tr>
<tr>
<td>The serial number of batches.</td>
</tr>
<tr>
<td>parentId</td>
<td>int</td>
</tr>
<tr>
<td>The parent batch's serial number.</td>
</tr>
<tr>
<td>childId</td>
<td>int</td>
</tr>
<tr>
<td>The child batch's serial number.</td>
</tr>
<tr>
<td>behaviors</td>
<td>Behavior[]</td>
</tr>
<tr>
<td>A list of actions which you want the script to do.</td>
</tr>
</tbody>
</table>
</div>
<div>
<h3 class="title">behaviors</h3>
<p>The actions you do with the network. There are two types
of Behavior, namely TimerBehavior and UserBehavior.</p>
</div>
<div>
<span class="arguments">Arguments</span>
<table class="details">
<tbody>
<tr>
<td>id</td>
<td>int</td>
</tr>
<tr>
<td>The serial number of behaviors you have choosed.</td>
</tr>
<tr>
<td>use</td>
<td>String</td>
</tr>
<tr>
<td>The plug-in name which you have choosed, such as http
and timer.</td>
</tr>
<tr>
<td>name</td>
<td>String</td>
</tr>
<tr>
<td>The name of the method which you have choosed based
on the type of plug-in.For example,when you generate the http
request, you can use the method such as GET,POST,PUT and
DELETE.</td>
</tr>
<tr>
<td>type</td>
<td>String</td>
</tr>
<tr>
<td>The type of behavior, such as TIMEBEHAVIOR and
USERBEHAVIOR.</td>
</tr>
<tr>
<td>parameters</td>
<td>Parameter[]</td>
</tr>
<tr>
<td>The list of parameter,which include the important
information of script which you are editing.</td>
</tr>
</tbody>
</table>
</div>
<div>
<h3 class="title">parameters</h3>
<p>The specific information of your script.</p>
</div>
<div>
<table class="details">
<tbody>
<tr>
<td>key</td>
<td>String</td>
</tr>
<tr>
<td>The important parameters when you edit your
script.For example, you should write the url(The URL for the
resource we are requesting),queryParams and headers (A table
of custom HTTP headers to send along with the request)</td>
</tr>
<tr>
<td>value</td>
<td>String</td>
</tr>
<tr>
<td>The content of the key.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -9,7 +9,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description"
content="Bench4Q, a new method for QOS benchmarking.">
<link id="bs-css" href="lib/chrisma/css/bootstrap-cerulean.css" rel="stylesheet">
<link id="bs-css" href="lib/chrisma/css/bootstrap-cerulean.css"
rel="stylesheet">
<link href="lib/chrisma/css/opa-icons.css" rel="stylesheet">
<link
href="http://ajax.aspnetcdn.com/ajax/bootstrap/2.3.2/css/bootstrap-responsive.css"
@ -30,50 +31,6 @@
<![endif]-->
<!-- The fav icon -->
<script type="text/javascript">
function toggleAPI() {
$("#apiDocumentation").slideToggle();
if ($("#icon-user").attr("class") == "icon-chevron-down") {
$("#icon-user").attr("class", "icon-chevron-up");
} else {
$("#icon-user").attr("class", "icon-chevron-down");
}
}
function toggleAPIContent(apiHeader) {
switch (apiHeader) {
case 'apiHeader1': {
$("#apiContent1").slideToggle();
if ($("#apiHeader1").attr("class") == "down")
$("#apiHeader1").attr("class", "up");
else
$("#apiHeader1").attr("class", "down");
}
break;
case 'apiHeader2': {
$("#apiContent2").slideToggle();
if ($("#apiHeader2").attr("class") == "down")
$("#apiHeader2").attr("class", "up");
else
$("#apiHeader2").attr("class", "down");
}
break;
case 'apiHeader3': {
$("#apiContent3").slideToggle();
if ($("#apiHeader3").attr("class") == "down")
$("#apiHeader3").attr("class", "up");
else
$("#apiHeader3").attr("class", "down");
}
break;
default:
break;
}
}
</script>
</head>
<body>
<fmt:bundle basename="i18n">
@ -81,249 +38,59 @@
<div class="container-fluid">
<div class="row-fluid">
<jsp:include page="publiccontrol/leftmenubar.jsp"></jsp:include>
<div class="span10 row-fluid">
<div id="contents" class="span7">
<div id="codeEditor"></div>
</div>
<!-- API Documentation -->
<div class="box span3" style="margin-top: 0px;">
<div class="box-header well" data-original-title>
<h2>
<i></i> API Documentation
</h2>
<div class="box-icon">
<a href="#" class="btn btn-minimize btn-round"> <i
class="icon-chevron-up" id="icon-user" onclick="toggleAPI()"></i>
</a>
</div>
<div class="tab span10">
<ul style="cursor: pointer" class="nav nav-tabs">
<li id="tow1" class="on" onclick='refresh();setTab("tow",1,3);'><a href="#">View</a></li>
<li id="tow2" onclick='setTab("tow",2,3);showUsePlugins();'><a href="#">Edit</a></li>
</ul>
</div>
<div class="span10">
<div id="cont_tow_1" class="one block">
<div id="contents" class="span8">
<div id="codeEditor" class="view"></div>
</div>
<jsp:include page="publiccontrol/scriptEditRightMenuBar.jsp"></jsp:include>
</div>
<div id="cont_tow_2" class="one" style="display: none">
<div class="all-plugins btn-group span12">
<a class="btn dropdown-toggle" href="#" data-toggle="dropdown">
<span class="hidden-phone"> All plug-ins </span> <span
class="caret"></span>
</a>
<ul class="dropdown-menu" id="allPlugins">
<li><a onclick="choosePlugin(this);">All</a></li>
<li class="divider"></li>
</ul>
</div>
<div class="box-content main-menu-span " id="apiDocumentation "
style="height: 398px;">
<div class="api" onclick="toggleAPIContent('apiHeader1')">
<div class="title_style">
<p class="" id="apiHeader1">poolSize</p>
</div>
<div id="apiContent1" class="apiShow">
<p>The amount of people we simulated to generate actions .</p>
</div>
</div>
<div class="api" onclick="toggleAPIContent('apiHeader2')">
<div class="title_style">
<p class="" id="apiHeader2">usePlugins</p>
</div>
<div id="apiContent2" class="apiShow">
<div>
<h3 class="title">usePlugin</h3>
<p>The plug-ins which help us to create scripts, such as
CommandLinePlugin ,ConstantTimerPlugin,HttpPlugin and
LogPlugin.</p>
</div>
<div>
<span class="arguments">Arguments</span>
<table class="details">
<tbody>
<tr>
<td>id</td>
<td>String</td>
</tr>
<tr>
<td>The description of plug-in which we used.</td>
</tr>
<tr>
<td>name</td>
<td>String</td>
</tr>
<tr>
<td>The name of plug-in,such as HTTP,ConstantTimer and
so on.</td>
</tr>
<tr>
<td>parameters</td>
<td>Parameter[]</td>
</tr>
<tr>
<td>The list of parameter,which include the important
information of script which you are editing.</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row-fluid">
<div id="behaviors" class="all-behaviors span4">
<ul id="behaviorUl">
</ul>
</div>
<div class="api" onclick="toggleAPIContent('apiHeader3')">
<div class="title_style">
<p class="" id="apiHeader3">pages</p>
</div>
<div id="apiContent3" class="apiShow">
<p></p>
<div>
<div>
<h3 class="title">batches</h3>
<p>a series of behaviors which you have made in the
network.</p>
</div>
<div>
<span class="arguments">Arguments</span>
<table class="details">
<tbody>
<tr>
<td>Id</td>
<td>int</td>
</tr>
<tr>
<td>The serial number of batches.</td>
</tr>
<tr>
<td>parentId</td>
<td>int</td>
</tr>
<tr>
<td>The parent batch's serial number.</td>
</tr>
<tr>
<td>childId</td>
<td>int</td>
</tr>
<tr>
<td>The child batch's serial number.</td>
</tr>
<tr>
<td>behaviors</td>
<td>Behavior[]</td>
</tr>
<tr>
<td>A list of actions which you want the script to
do.</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div>
<h3 class="title">behaviors</h3>
<p>The actions you do with the network. There are two
types of Behavior, namely TimerBehavior and UserBehavior.</p>
</div>
<div>
<span class="arguments">Arguments</span>
<table class="details">
<tbody>
<tr>
<td>id</td>
<td>int</td>
</tr>
<tr>
<td>The serial number of behaviors you have choosed.</td>
</tr>
<tr>
<td>use</td>
<td>String</td>
</tr>
<tr>
<td>The plug-in name which you have choosed, such as
http and timer.</td>
</tr>
<tr>
<td>name</td>
<td>String</td>
</tr>
<tr>
<td>The name of the method which you have choosed
based on the type of plug-in.For example,when you
generate the http request, you can use the method such as
GET,POST,PUT and DELETE.</td>
</tr>
<tr>
<td>type</td>
<td>String</td>
</tr>
<tr>
<td>The type of behaivor, such as TIMEBEHAVIOR and
USERBEHAVIOR.</td>
</tr>
<tr>
<td>parameters</td>
<td>Parameter[]</td>
</tr>
<tr>
<td>The list of parameter,which include the important
information of script which you are editing.</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div>
<h3 class="title">parameters</h3>
<p>The specific information of your script.</p>
</div>
<div>
<table class="details">
<tbody>
<tr>
<td>key</td>
<td>String</td>
</tr>
<tr>
<td>The important parameters when you edit your
script.For example, you should write the url(The URL for
the resource we are requesting),queryParams and headers
(A table of custom HTTP headers to send along with the
request)</td>
</tr>
<tr>
<td>value</td>
<td>String</td>
</tr>
<tr>
<td>The content of the key.</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- 结束 -->
<div class="span8">
<div id="showPluginMethodForm"></div>
<div id="action" style="display:none">
<button type="button" class="btn btn-primary" id="submit"
title="save edit">
<fmt:message key="script_edit_jsp_save"></fmt:message>
</button>
<button type="button" class="btn btn-primary" id="cancel"
title="cancel edit">
<fmt:message key="script_edit_jsp_cancel" />
</button>
<button type="button" class="btn btn-primary" id="validate"
title="validate edit">
<fmt:message key="script_edit_jsp_validate"></fmt:message>
</button>
</div>
</div>
</div>
</div>
<div class="span10 row-fluid">
<div class="span4 chooseScript" >
<p>UsePlugins:</p> <select name="usePlugins" id="usePlugins" onchange=" choosePlugin();">
<option >please choose one plug-in</option>
</select>
</div>
<div class="span4 chooseScript" >
<p>Behaviors:</p> <select name="behaviors" id="behaviors" onchange="chooseBehavior();">
<!-- <option value="send">Send -->
</select>
</div>
</div>
<div id="showPluginMethodForm"></div>
</div>
</div>
<div id="action">
<button type="button" class="btn btn-primary" id="submit"
title="save edit">
<fmt:message key="script_edit_jsp_save"></fmt:message>
</button>
<button type="button" class="btn btn-primary" id="cancel"
title="cancel edit">
<fmt:message key="script_edit_jsp_cancel" />
</button>
<button type="button" class="btn btn-primary" id="validate"
title="validate edit">
<fmt:message key="script_edit_jsp_validate"></fmt:message>
</button>
</div>
</div>
<!-- </div> -->
<hr>
<jsp:include page="publiccontrol/footer.jsp"></jsp:include>
@ -347,6 +114,7 @@
<script src="lib/ace/js/mode-json.js"></script>
<script src="lib/ace/js/theme-textmate.js"></script>
<script src="lib/ace/js/theme-jsoneditor.js"></script>
<script src="lib/bootstrap/js/bootstrap-collapse.js"></script>
<script src="script/base.js"></script>
<script src="script/jsonEditorApp.js"></script>
<script src="script/behaviorsForm.js"></script>

View File

@ -144,7 +144,7 @@ body {
</select></td>
<td><a href="#" class="button" onClick="viewScript(this)"><img
src="image/script_edit.png" alt="Add"> View/Edit user
src="images/script_edit.png" alt="Add"> View/Edit user
script</a></td>
</tr>
</table>