edit the style of script.jsp,scriptview.jsp,scriptedit.jsp

This commit is contained in:
fanfuxiaoran 2013-09-06 10:06:59 +08:00
parent f33cee6d9f
commit f7276b4777
6 changed files with 420 additions and 428 deletions

View File

@ -120,6 +120,7 @@ function starttest(){
scriptID = scriptID +","+ID;
scriptLoad = scriptLoad + "," + requireLoad;
alert(scriptLoad);
scriptWarmup = scriptWarmup + "," + warmup;
scriptCooldown = scriptCooldown + "," + cooldown;
scriptExecuteRange = scriptExecuteRange + "," + executeRange;

View File

@ -89,7 +89,7 @@
<!-- user dropdown starts -->
<div class="btn-group pull-right" >
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
<i class="icon-user"></i><span class="hidden-phone"> admin</span>
<i class="icon-user"></i><span class="hidden-phone"> <%=session.getAttribute("username") %></span>
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
@ -126,8 +126,7 @@
<li><a class="ajax-link" href="testplan.jsp"><i class="icon-eye-open"></i><span class="hidden-tablet"> Test Plan</span></a></li>
<li><a class="ajax-link" href="script.jsp"><i class="icon-edit"></i><span class="hidden-tablet"> Script</span></a></li>
<li><a class="ajax-link" href="test.jsp"><i class="icon-list-alt"></i><span class="hidden-tablet"> Create a test</span></a></li>
<li><a class="ajax-link" href="register.jsp"><i class="icon-font"></i><span class="hidden-tablet"> Register</span></a></li>
<li><a class="ajax-link" href="userlogin.jsp"><i class="icon-picture"></i><span class="hidden-tablet"> Userlogin</span></a></li>
</ul>
<label id="for-is-ajax" class="hidden-tablet" for="is-ajax"><input id="is-ajax" type="checkbox"> Ajax on menu</label>
</div><!--/.well -->
@ -157,13 +156,14 @@
</div>
<div class="row-fluid sortable">
<div class="box span12">
<div class="box span12 center">
<div class="box-header well" data-original-title>
<h2><i ></i> Scripts</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class=" "><i class="icon-plus"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round" ><i class="icon-remove"></i></a>
<a href="#" class="btn btn-round" onClick="loadscript()"><i class="icon-list" ></i></a>
</div>
</div>
<div class="box-content">
@ -177,12 +177,6 @@
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
@ -199,15 +193,19 @@
<div class="modal hide fade" id="myModal">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<button type="button" class="close" data-dismiss="modal">×</button>
<h3>Settings</h3>
</div>
<div class="modal-body">
<p>Here settings can be configured...</p>
<p id="scriptinfo">Here can be configured...</p>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
<a href="#" class="btn btn-primary">Save changes</a>
<button type="button" class="btn btn-primary" onClick="startserver()">Start Server</button>
<button type="button" class="btn btn-primary" onClick="stopserver()">Stop Server</button>
</div>
<div id="scriptdiv" style="display:none" class="modal-footer">
<input class="input-mini" name="scriptname"></input>
<button type="button" class="btn btn-primary" onClick="savescript()">Save File</button>
</div>
</div>

View File

@ -184,10 +184,10 @@ body {
</div>
<div class="row-fluid sortable">
<div class="box span12">
<div class="box span12 center">
<div class="box-header well" data-original-title>
<h2>
<i class="icon-edit"></i> Script "<%=request.getParameter("name")%>"
<i class="icon-edit"></i>Script "<%=request.getParameter("name") %>
</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i
@ -203,8 +203,7 @@ body {
<form class="form-horizontal">
<fieldset>
<textarea id="textarea2" cols="170" rows="20"></textarea>
<textarea id="textarea2" cols="172" rows="20"></textarea>
<div class="form-actions">
<button type="submit" class="btn btn-primary"

View File

@ -146,12 +146,7 @@ body {
<li><a class="ajax-link" href="test.jsp"><i
class="icon-list-alt"></i><span class="hidden-tablet">
Create a test</span></a></li>
<li><a class="ajax-link" href="register.jsp"><i
class="icon-font"></i><span class="hidden-tablet">
Register</span></a></li>
<li><a class="ajax-link" href="userlogin.jsp"><i
class="icon-picture"></i><span class="hidden-tablet">
Userlogin</span></a></li>
</ul>
<label id="for-is-ajax" class="hidden-tablet" for="is-ajax"><input
id="is-ajax" type="checkbox"> Ajax on menu</label>
@ -184,7 +179,7 @@ body {
</div>
<div class="row-fluid sortable">
<div class="box span12">
<div class="box span12 center">
<div class="box-header well" data-original-title>
<h2>
<i ></i> Script "<%=request.getParameter("name")%>"
@ -203,7 +198,7 @@ body {
<form class="form-horizontal" >
<fieldset>
<textarea id="textarea2" cols="170" rows="20" readOnly></textarea>
<textarea id="textarea2" cols="172" rows="20" readOnly></textarea>
</fieldset>
</form>

View File

@ -1,11 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!--
Charisma v1.0.0
Copyright 2012 Muhammad Usman
Licensed under the Apache License v2.0
http://www.apache.org/licenses/LICENSE-2.0
http://usman.it
http://twitter.com/halalit_usman
-->
<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.">
<meta name="author" content="Kai Ren">
<!-- The styles -->
<link id="bs-css" href="css/bootstrap-cerulean.css" rel="stylesheet">
<style type="text/css">
@ -39,7 +50,7 @@
<![endif]-->
<!-- The fav icon -->
<link rel="shortcut icon" href="img/bench4q-1.ico">
<link rel="shortcut icon" href="img/favicon.ico">
</head>
@ -53,7 +64,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="index.jsp"> <img alt="Charisma Logo" src="img/bench4q-1.png" /> <span>Bench4Q</span></a>
<a class="brand" href="index.html"> <img alt="Charisma Logo" src="img/bench4q-1.png" /> <span>Bench4Q</span></a>
<!-- theme selector starts -->
<div class="btn-group pull-right theme-container" >
@ -78,7 +89,7 @@
<!-- user dropdown starts -->
<div class="btn-group pull-right" >
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
<i class="icon-user"></i><span class="hidden-phone"> <%=session.getAttribute("username")%></span>
<i class="icon-user"></i><span class="hidden-phone"> admin</span>
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
@ -91,11 +102,12 @@
<div class="top-nav nav-collapse">
<ul class="nav">
<li><a href="#">Welcome Page</a></li>
<li><a href="index.jsp">Home Page</a></li>
<li><a href="register.jsp">Register</a></li>
<li><a href="userlogin.jsp">Login</a></li>
<li><a href="#">Visit Site</a></li>
<li>
<form class="navbar-search pull-left">
<input placeholder="Search" class="search-query span2" name="query" type="text">
</form>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
@ -106,17 +118,29 @@
<div class="row-fluid">
<!-- left menu starts -->
<div class="span2 main-menu-span">
<div class="well nav-collapse sidebar-nav">
<ul class="nav nav-tabs nav-stacked main-menu">
<li class="nav-header hidden-tablet">Main</li>
<li><a class="ajax-link" href="index.jsp"><i class="icon-home"></i><span class="hidden-tablet"> HomePage</span></a></li>
<li><a class="ajax-link" href="testplan.jsp"><i class="icon-eye-open"></i><span class="hidden-tablet"> Test Plan</span></a></li>
<li><a class="ajax-link" href="script.jsp"><i class="icon-edit"></i><span class="hidden-tablet"> Script</span></a></li>
<li><a class="ajax-link" href="test.jsp"><i class="icon-list-alt"></i><span class="hidden-tablet"> Create a test</span></a></li>
</ul>
<label id="for-is-ajax" class="hidden-tablet" for="is-ajax"><input id="is-ajax" type="checkbox"> Ajax on menu</label>
</div><!--/.well -->
</div><!--/span-->
<!-- left menu ends -->
<noscript>
<div class="alert alert-block span10 center">
<div class="alert alert-block span10">
<h4 class="alert-heading">Warning!</h4>
<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
</div>
</noscript>
<div id="content" class="span10 center">
<div id="content" class="span10">
<!-- content starts -->
@ -126,40 +150,15 @@
<a href="#">Home</a> <span class="divider">/</span>
</li>
<li>
<a href="#">Dashboard</a>
<a href="#">Create a test</a>
</li>
</ul>
</div>
<div class="sortable row-fluid">
<a data-rel="tooltip" title="Your homepage." class="well span3 top-block" href="index.jsp">
<span class="icon32 icon-red icon-user"></span>
<div>Your</div>
<div>Home Page</div>
</a>
<a data-rel="tooltip" title="Your testplans." class="well span3 top-block" href="testplan.jsp">
<span class="icon32 icon-color icon-star-on"></span>
<div>Testplan</div>
<div>Management</div>
</a>
<a data-rel="tooltip" title="Your scripts." class="well span3 top-block" href="script.jsp">
<span class="icon32 icon-color icon-cart"></span>
<div>Script</div>
<div>Management</div>
</a>
<a data-rel="tooltip" title="Create a new test." class="well span3 top-block" href="test.jsp">
<span class="icon32 icon-color icon-envelope-closed"></span>
<div>Create</div>
<div>Testplan</div>
</a>
</div>
<div class="row-fluid">
<div class="box span12">
<div class="box span12 center">
<div class="box-header well">
<h2><i class="icon-info-sign"></i> Introduction</h2>
<h2><i ></i> Create a test</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round" onClick="addparam()"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
@ -309,10 +308,9 @@
</div>
</div>
<footer>
<p class="pull-left">&copy; <a href="http://usman.it" target="_blank">Muhammad Usman</a> 2012</p>
<p class="pull-right">Powered by: <a href="http://usman.it/free-responsive-admin-template">Charisma</a></p>
<p class="pull-left">&copy; Bench4Q 2013</p>
<p class="pull-right">Powered by: Bench4Q</p>
</footer>
</div><!--/.fluid-container-->
@ -389,9 +387,8 @@
<!-- history.js for cross-browser state change on ajax -->
<script src="js/jquery.history.js"></script>
<!-- application script for Charisma demo -->
<script src="js/test.js"></script>
<script src="js/charisma.js"></script>
<script src="bench4qjs/test.js"></script>
</body>
</html>

View File

@ -56,6 +56,9 @@
<body>
<!-- topbar starts -->
<div class="navbar">
<div class="navbar-inner">
<div class="container-fluid">
@ -126,8 +129,7 @@
<li><a class="ajax-link" href="testplan.jsp"><i class="icon-eye-open"></i><span class="hidden-tablet"> Test Plan</span></a></li>
<li><a class="ajax-link" href="script.jsp"><i class="icon-edit"></i><span class="hidden-tablet"> Script</span></a></li>
<li><a class="ajax-link" href="test.jsp"><i class="icon-list-alt"></i><span class="hidden-tablet"> Create a test</span></a></li>
<li><a class="ajax-link" href="register.jsp"><i class="icon-font"></i><span class="hidden-tablet"> Register</span></a></li>
<li><a class="ajax-link" href="userlogin.jsp"><i class="icon-picture"></i><span class="hidden-tablet"> Userlogin</span></a></li>
</ul>
<label id="for-is-ajax" class="hidden-tablet" for="is-ajax"><input id="is-ajax" type="checkbox"> Ajax on menu</label>
</div><!--/.well -->