72 lines
2.4 KiB
Plaintext
72 lines
2.4 KiB
Plaintext
<%@ language = "JavaScript" %>
|
|
<% /*
|
|
$Revision$
|
|
$Id$
|
|
|
|
File: fac_api_list.asp
|
|
Description: Toont alle api's
|
|
Parameters:
|
|
Context: INTERNAL USE
|
|
Requires: WEB_PRSSYS autorisatie
|
|
Note: Eerste opzet, nog geen bovenliggend Search-formulier
|
|
|
|
*/ %>
|
|
|
|
<!-- #include file="../Shared/common.inc" -->
|
|
<!-- #include file="../Shared/resultset_table_v2.inc" -->
|
|
<!-- #include file="fac.inc" -->
|
|
<!-- #include file="../Shared/json2.js" -->
|
|
<%
|
|
var smodule = getQParam("smodule", "-1");
|
|
var zoek = getQParam("zoek", "");
|
|
var showall = getQParamInt("showall", 0) == 1;
|
|
var outputmode = getQParamInt("outputmode", 0);
|
|
|
|
var autfunction = "WEB_PRSSYS";
|
|
var authparams = user.checkAutorisation(autfunction);
|
|
|
|
FCLTHeader.Requires({ plugins: ["jQuery"] })
|
|
%>
|
|
|
|
<html>
|
|
<head>
|
|
<% FCLTHeader.Generate({outputmode: outputmode}) %>
|
|
</head>
|
|
|
|
<body id="listbody">
|
|
|
|
<script type="text/javascript">
|
|
function doZet(row)
|
|
{
|
|
var url = "appl/fac/fac_show_api.asp?api_key=" + row.getAttribute("ROWKEY");
|
|
FcltMgr.openDetail(url, L('lcl_fac_api')+' '+row.getAttribute("ROWKEY"));
|
|
}
|
|
</script>
|
|
<%
|
|
var addurl = "appl/fac/fac_edit_api.asp";
|
|
addButton = [{ icon: "plus.png", title: L("lcl_add"), action: "FcltMgr.openDetail('" + addurl + "', '" + L("lcl_add")+" "+L("lcl_fac_api") + "')" }]
|
|
|
|
var sql = "SELECT * FROM fac_api"
|
|
+ " ORDER BY fac_api_name";
|
|
|
|
var rst = new ResultsetTable({ sql: sql,
|
|
keyColumn: "fac_api_key",
|
|
ID: "apitable",
|
|
title : L("lcl_fac_apis"),
|
|
showAll: showall,
|
|
outputmode: outputmode,
|
|
buttons: addButton
|
|
});
|
|
|
|
rst.addColumn(new Column({caption: L("lcl_fac_api_name"), content: "fac_api_name"}));
|
|
//rst.addColumn(new Column({caption: L("lcl_fac_api_apikey"), content: "fac_api_apikey"}));
|
|
rst.addColumn(new Column({caption: L("lcl_fac_api_filepath"), content: "fac_api_filepath"}));
|
|
rst.addColumn(new Column({caption: L("lcl_fac_api_omschrijving"), content: "fac_api_omschrijving"}));
|
|
|
|
rst.addAction({ action: "doZet", isDefault: true });
|
|
|
|
var cnt = rst.processResultset();
|
|
%>
|
|
</body>
|
|
</html>
|