Skip to content

Instantly share code, notes, and snippets.

@styson
Created July 15, 2010 23:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save styson/fe60e9d1b60bc3231e4f to your computer and use it in GitHub Desktop.
<%@ Language=JavaScript %>
<% Response.Buffer = true %>
<%
///////////////////////////////////////////////////////////////////////////////
// Product : Dovetail Admin
//
// Series : Dovetail Software Web Series(tm)
//
// Name : grid_workgroup.asp
//
// Description : Grid of Workgroups
//
// Author : Dovetail Software Software, Inc.
// 4807 Spicewood Springs Rd., Building 4, Suite 200
// Austin, TX 78759
// (512) 610-5400
// EMAIL: support@dovetailsoftware.com
// www.dovetailsoftware.com
//
// Platforms : This version supports Clarify 4.5 and later
//
// Copyright (C) 2010 Dovetail Software Software, Inc.
// All Rights Reserved.
///////////////////////////////////////////////////////////////////////////////
%>
<!--#include file="../include/inc_page_init.asp"-->
<!--#include file="../include/inc_utility.asp"-->
<%
try {
var strName = Request.QueryString("name").Item;
var boWorkgroup = FCSession.CreateGeneric("workgroup");
boWorkgroup.AppendFilter("work_group", "starts with", strName);
boWorkgroup.Query();
%>
<html>
<head>
<meta http-equiv="expires" content="0">
<link rel="stylesheet" href="../stylesheets/webagent.css" type="text/css">
<link rel="stylesheet" href="../code/jquery/jquery.tablesorter.css" type="text/css">
<script language="javascript" src="../code/jquery/jquery.tablesorter.min.js"></script>
<script language="javascript">
var prev_grid_sel_row = -1;
function SelRow(thisRow) {
$("#workgroup_objid", parent.document).val(thisRow.id);
$("#SelRow", parent.document).click();
}
$(function() {
$(".tablesorter").tablesorter();
});
</script>
</head>
<body style="margin-top:2">
<table id="workgroup_table" class="tablesorter" width="100%">
<thead>
<tr>
<th>Workgroup</th>
<th>Site</th>
<th>Online Privilege</th>
<th>Offline Privilege</th>
</tr>
</thead>
<tbody>
<% while(!boWorkgroup.EOF) { %>
<tr id="<%=boWorkgroup.Id %>" defColor="" bgColor=""
onclick="GridRowClickHandler(this, 'workgroup_table', 'prev_grid_sel_row');SelRow(this)" title="Click Row to Select">
<td><%=boWorkgroup("work_group").value %></td>
<td><%=boWorkgroup("x_site_name").value %></td>
<td><%=boWorkgroup("x_online_priv").value %></td>
<td><%=boWorkgroup("x_offline_priv").value %></td>
</tr>
<% boWorkgroup.MoveNext();
}
%>
</tbody>
</table>
</body>
</html>
<%
} catch(e) { PrintError(e); }
// clean up
boWorkgroup.CloseGeneric();
boWorkgroup = null;
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment