<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<!--
////////////////////////////////////////////////////////////////////////////
// Rev: 2010.1 (P4JsApi 1.0 Example)
//
// NOTE: This is an example only, and should be modified to work in
// a production environment! No warranty is expressed or implied.
// Scripts should be tested thoroughly on a test server before
// using in a production environment.
//
////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2010, Perforce Software, Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL PERFORCE SOFTWARE, INC. BE LIABLE FOR ANY
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
////////////////////////////////////////////////////////////////////////////
//
// An example of a P4JsApi submit dialog replacement without using frameworks.
//
// Note: You will need internet access to use Firebug Lite.
//
////////////////////////////////////////////////////////////////////////////
-->
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>
Submit Dialog
</title>
<link rel="stylesheet" type="text/css" href="css/submitNoFramework.css">
<script type="text/javascript" src="js/submitNoFramework.js"></script>
<script type="text/javascript">
function toggleVisible(id) {
var element = document.getElementById(id);
var dispstyle = element.style.display;
element.style.display = (dispstyle == "none"? "block": "none");
}
</script>
</head>
<body onload="Submit.init(); toggleVisible('jobs_section');">
<div id="contents">
<h1>
Submit Pending Changelist
</h1>
<div>
<h2>
Description
</h2>
<h3 id="desc_header"> </h3>
<div id="desc_section">
<textarea id="description" name="description" rows="10" cols="80"></textarea>
<fieldset>
<select id="previous_descriptions" class="dropdown">
<option>
Previous Change Descriptions
</option>
</select>
<button id="clear">Clear</button>
<label for="store_size">Maximum number of changelists</label>
<input id="store_size" onchange="Submit.setSize(this.value);" type="text" size="5">
</fieldset>
</div>
</div>
<div>
<h2>
<a href="#" onclick="toggleVisible('files_section');">Files</a>
</h2>
<h3 id="files_header"></h3>
<div id="files_section">
<label for="allfiles"><input checked="checked" id="allfiles" onclick="Submit.checkAll('Files',this.checked);" type="checkbox"> <b>Check/Uncheck All Files</b></label>
<ul class="checklist" id="filelist"></ul><span><b>On submit:</b> <select id="fileoption_submit" class="dropdown">
<option selected="selected">
Submit all selected files
</option>
<option>
Don't submit unchanged files
</option>
<option>
Revert unchanged files
</option>
</select></span> <span class="column2"><input id="recheckout" type="checkbox"> <b>Check out submitted files after submit</b></span>
</div>
</div>
<div>
<h2>
<a href="#" onclick="toggleVisible('jobs_section');">Jobs</a>
</h2>
<div id="jobs_section">
<label for="alljobs"><input checked="checked" id="alljobs" onclick="Submit.checkAll('Jobs',this.checked);" type="checkbox"> <b>Check/Uncheck All Jobs</b></label>
<ul class="checklist" id="joblist"></ul><span><input id="addjob" onclick="Submit.addJob()" value="Add Job:" style="vertical-align: middle;" type="button">
<textarea id="jobAdd" name="jobAdd" cols="12" rows="1" style="vertical-align: middle;"></textarea>
</span> <span class="column2"><b>Job status upon submit:</b> <select id="jobstatus_submit" class="dropdown">
<option selected="selected">
closed
</option>
<option>
suspended
</option>
<option>
fixed
</option>
<option>
same
</option>
</select></span><br>
</div>
<span><input id="save" onclick="Submit.saveChange()" value="Save Changelist" type="button"></span> <span class="column2"><input id="cancel" onclick="P4JsApi.accepted()" value="Cancel" type="button"> <input id="submit" onclick="Submit.submitChanges()" value="Submit" type="button"></span>
</div>
<span>
<textarea class="hidden" id="user"></textarea>
<textarea class="hidden" id="change"></textarea>
<textarea class="hidden" id="client"></textarea>
<textarea class="hidden" id="status"></textarea>
</span>
</div>
</body>
</html>