mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 00:53:53 +02:00
2017-01-31 Fred Gleason <fredg@paravelsystems.com>
* Added an 'AddLog' method to the Web API. * Added an 'DeleteLog' method to the Web API. * Added a 'SaveLog' method to the Web API. * Added 'eventLength', 'linkEventName', 'linkStartSlop', 'linkEndSlop', 'linkId', 'linkEmbedded', 'extStartTime', 'extLength', 'extCartName', 'extData', 'extEventId', and 'extAnncType' XML fields to the return of the ListLog web API method
This commit is contained in:
@@ -24,16 +24,96 @@
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <rdcreate_log.h>
|
||||
#include <rddb.h>
|
||||
#include <rdformpost.h>
|
||||
#include <rdweb.h>
|
||||
#include <rdsvc.h>
|
||||
#include <rduser.h>
|
||||
#include <rdlog.h>
|
||||
#include <rdlog_event.h>
|
||||
#include <rdlog_line.h>
|
||||
#include <rdconf.h>
|
||||
#include <rdescape_string.h>
|
||||
|
||||
#include <rdxport.h>
|
||||
|
||||
void Xport::AddLog()
|
||||
{
|
||||
QString log_name;
|
||||
QString service_name;
|
||||
|
||||
//
|
||||
// Get Arguments
|
||||
//
|
||||
if(!xport_post->getValue("LOG_NAME",&log_name)) {
|
||||
XmlExit("Missing LOG_NAME",400);
|
||||
}
|
||||
if(!xport_post->getValue("SERVICE_NAME",&service_name)) {
|
||||
XmlExit("Missing SERVICE_NAME",400);
|
||||
}
|
||||
RDSvc *svc=new RDSvc(service_name);
|
||||
if(!svc->exists()) {
|
||||
XmlExit("No such service",404);
|
||||
}
|
||||
|
||||
//
|
||||
// Verify User Perms
|
||||
//
|
||||
if(!xport_user->createLog()) {
|
||||
XmlExit("Unauthorized",404);
|
||||
}
|
||||
|
||||
RDLog *log=new RDLog(log_name);
|
||||
if(!log->exists()) {
|
||||
delete log;
|
||||
log=new RDLog(log_name,true);
|
||||
if(!log->exists()) {
|
||||
delete log;
|
||||
XmlExit("Unable to create log",500);
|
||||
}
|
||||
log->setOriginUser(xport_user->name());
|
||||
log->setDescription("[new log]");
|
||||
log->setService(service_name);
|
||||
}
|
||||
delete log;
|
||||
RDCreateLogTable(RDLog::tableName(log_name));
|
||||
|
||||
XmlExit("OK",200);
|
||||
}
|
||||
|
||||
|
||||
void Xport::DeleteLog()
|
||||
{
|
||||
QString log_name;
|
||||
|
||||
//
|
||||
// Get Arguments
|
||||
//
|
||||
if(!xport_post->getValue("LOG_NAME",&log_name)) {
|
||||
XmlExit("Missing LOG_NAME",400);
|
||||
}
|
||||
|
||||
//
|
||||
// Verify User Perms
|
||||
//
|
||||
if(!xport_user->deleteLog()) {
|
||||
XmlExit("Unauthorized",404);
|
||||
}
|
||||
|
||||
RDLog *log=new RDLog(log_name);
|
||||
if(log->exists()) {
|
||||
if(!log->remove(xport_station,xport_user,xport_config)) {
|
||||
delete log;
|
||||
XmlExit("Unable to delete log",500);
|
||||
}
|
||||
}
|
||||
delete log;
|
||||
|
||||
XmlExit("OK",200);
|
||||
}
|
||||
|
||||
|
||||
void Xport::ListLogs()
|
||||
{
|
||||
QString sql;
|
||||
@@ -124,3 +204,253 @@ void Xport::ListLog()
|
||||
|
||||
Exit(0);
|
||||
}
|
||||
|
||||
|
||||
void Xport::SaveLog()
|
||||
{
|
||||
//
|
||||
// Verify User Perms
|
||||
//
|
||||
if((!xport_user->addtoLog())||(!xport_user->removefromLog())||(!xport_user->arrangeLog())) {
|
||||
XmlExit("No user privilege",404);
|
||||
}
|
||||
|
||||
QString log_name;
|
||||
QString service_name;
|
||||
QString description;
|
||||
QDate purge_date;
|
||||
bool auto_refresh;
|
||||
QDate start_date;
|
||||
QDate end_date;
|
||||
int line_quantity;
|
||||
|
||||
//
|
||||
// Header Data
|
||||
//
|
||||
if(!xport_post->getValue("LOG_NAME",&log_name)) {
|
||||
XmlExit("Missing LOG_NAME",400);
|
||||
}
|
||||
if(!xport_post->getValue("SERVICE_NAME",&service_name)) {
|
||||
XmlExit("Missing SERVICE_NAME",400);
|
||||
}
|
||||
if(!xport_post->getValue("DESCRIPTION",&description)) {
|
||||
XmlExit("Missing DESCRIPTION",400);
|
||||
}
|
||||
if(!xport_post->getValue("PURGE_DATE",&purge_date)) {
|
||||
XmlExit("Missing PURGE_DATE",400);
|
||||
}
|
||||
if(!xport_post->getValue("AUTO_REFRESH",&auto_refresh)) {
|
||||
XmlExit("Missing AUTO_REFRESH",400);
|
||||
}
|
||||
if(!xport_post->getValue("START_DATE",&start_date)) {
|
||||
XmlExit("Missing START_DATE",400);
|
||||
}
|
||||
if(!xport_post->getValue("END_DATE",&end_date)) {
|
||||
XmlExit("Missing END_DATE",400);
|
||||
}
|
||||
if(!xport_post->getValue("LINE_QUANTITY",&line_quantity)) {
|
||||
XmlExit("Missing LINE_QUANTITY",400);
|
||||
}
|
||||
|
||||
//
|
||||
// Logline Data
|
||||
//
|
||||
RDLogEvent *logevt=new RDLogEvent(RDLog::tableName(log_name));
|
||||
for(int i=0;i<line_quantity;i++) {
|
||||
logevt->insert(i,1);
|
||||
RDLogLine *ll=logevt->logLine(i);
|
||||
QString line=QString().sprintf("LINE%d_",i);
|
||||
QString str;
|
||||
int integer1;
|
||||
int integer2;
|
||||
QDateTime datetime;
|
||||
QTime time;
|
||||
bool state;
|
||||
if(!xport_post->getValue(line+"_ID",&integer1)) {
|
||||
XmlExit("Missing "+line+"_ID",400);
|
||||
}
|
||||
ll->setId(integer1);
|
||||
|
||||
if(!xport_post->getValue(line+"_TYPE",&integer1)) {
|
||||
XmlExit("Missing "+line+"_TYPE",400);
|
||||
}
|
||||
ll->setType((RDLogLine::Type)integer1);
|
||||
|
||||
if(!xport_post->getValue(line+"_CART_NUMBER",&integer1)) {
|
||||
XmlExit("Missing "+line+"_CART_NUMBER",400);
|
||||
}
|
||||
ll->setCartNumber(integer1);
|
||||
|
||||
if(!xport_post->getValue(line+"_START_TIME",&integer1)) {
|
||||
XmlExit("Missing "+line+"_START_TIME",400);
|
||||
}
|
||||
if(!xport_post->getValue(line+"_TIME_TYPE",&integer2)) {
|
||||
XmlExit("Missing "+line+"_TIME_TYPE",400);
|
||||
}
|
||||
ll->setStartTime((RDLogLine::StartTimeType)integer2,
|
||||
QTime().addMSecs(integer1));
|
||||
|
||||
if(!xport_post->getValue(line+"_GRACE_TIME",&integer1)) {
|
||||
XmlExit("Missing "+line+"_GRACE_TIME",400);
|
||||
}
|
||||
ll->setGraceTime(integer1);
|
||||
|
||||
if(!xport_post->getValue(line+"_TRANS_TYPE",&str)) {
|
||||
XmlExit("Missing "+line+"_TRANS_TYPE",400);
|
||||
}
|
||||
integer1=-1;
|
||||
if(str.lower()=="play") {
|
||||
integer1=RDLogLine::Play;
|
||||
}
|
||||
if(str.lower()=="segue") {
|
||||
integer1=RDLogLine::Segue;
|
||||
}
|
||||
if(str.lower()=="stop") {
|
||||
integer1=RDLogLine::Stop;
|
||||
}
|
||||
if(integer1<0) {
|
||||
XmlExit("Invalid transition type in "+line+"_TRANS_TYPE",400);
|
||||
}
|
||||
ll->setTransType((RDLogLine::TransType)integer1);
|
||||
|
||||
if(!xport_post->getValue(line+"_START_POINT",&integer1)) {
|
||||
XmlExit("Missing "+line+"_START_POINT",400);
|
||||
}
|
||||
ll->setStartPoint(integer1,RDLogLine::LogPointer);
|
||||
|
||||
if(!xport_post->getValue(line+"_END_POINT",&integer1)) {
|
||||
XmlExit("Missing "+line+"_END_POINT",400);
|
||||
}
|
||||
ll->setEndPoint(integer1,RDLogLine::LogPointer);
|
||||
|
||||
if(!xport_post->getValue(line+"_SEGUE_START_POINT",&integer1)) {
|
||||
XmlExit("Missing "+line+"_SEGUE_START_POINT",400);
|
||||
}
|
||||
ll->setSegueStartPoint(integer1,RDLogLine::LogPointer);
|
||||
|
||||
if(!xport_post->getValue(line+"_SEGUE_END_POINT",&integer1)) {
|
||||
XmlExit("Missing "+line+"_SEGUE_END_POINT",400);
|
||||
}
|
||||
ll->setSegueEndPoint(integer1,RDLogLine::LogPointer);
|
||||
|
||||
if(!xport_post->getValue(line+"_FADEUP_POINT",&integer1)) {
|
||||
XmlExit("Missing "+line+"_FADEUP_POINT",400);
|
||||
}
|
||||
ll->setFadeupPoint(integer1,RDLogLine::LogPointer);
|
||||
|
||||
if(!xport_post->getValue(line+"_FADEDOWN_POINT",&integer1)) {
|
||||
XmlExit("Missing "+line+"_FADEDOWN_POINT",400);
|
||||
}
|
||||
ll->setFadedownPoint(integer1,RDLogLine::LogPointer);
|
||||
|
||||
if(!xport_post->getValue(line+"_DUCK_UP_GAIN",&integer1)) {
|
||||
XmlExit("Missing "+line+"_DUCK_UP_GAIN",400);
|
||||
}
|
||||
ll->setDuckUpGain(integer1);
|
||||
|
||||
if(!xport_post->getValue(line+"_DUCK_DOWN_GAIN",&integer1)) {
|
||||
XmlExit("Missing "+line+"_DUCK_DOWN_GAIN",400);
|
||||
}
|
||||
ll->setDuckDownGain(integer1);
|
||||
|
||||
if(!xport_post->getValue(line+"_COMMENT",&str)) {
|
||||
XmlExit("Missing "+line+"_COMMENT",400);
|
||||
}
|
||||
ll->setMarkerComment(str);
|
||||
|
||||
if(!xport_post->getValue(line+"_LABEL",&str)) {
|
||||
XmlExit("Missing "+line+"_LABEL",400);
|
||||
}
|
||||
ll->setMarkerLabel(str);
|
||||
|
||||
if(!xport_post->getValue(line+"_ORIGIN_USER",&str)) {
|
||||
XmlExit("Missing "+line+"_ORIGIN_USER",400);
|
||||
}
|
||||
ll->setOriginUser(str);
|
||||
|
||||
if(!xport_post->getValue(line+"_ORIGIN_DATETIME",&datetime)) {
|
||||
XmlExit("Missing "+line+"_ORIGIN_DATETIME",400);
|
||||
}
|
||||
ll->setOriginDateTime(datetime);
|
||||
|
||||
if(!xport_post->getValue(line+"_EVENT_LENGTH",&integer1)) {
|
||||
XmlExit("Missing "+line+"_EVENT_LENGTH",400);
|
||||
}
|
||||
ll->setEventLength(integer1);
|
||||
|
||||
if(!xport_post->getValue(line+"_LINK_EVENT_NAME",&str)) {
|
||||
XmlExit("Missing "+line+"_LINK_EVENT_NAME",400);
|
||||
}
|
||||
ll->setLinkEventName(str);
|
||||
|
||||
if(!xport_post->getValue(line+"_LINK_START_TIME",&integer1)) {
|
||||
XmlExit("Missing "+line+"_LINK_START_TIME",400);
|
||||
}
|
||||
ll->setLinkStartTime(QTime().addMSecs(integer1));
|
||||
|
||||
if(!xport_post->getValue(line+"_LINK_LENGTH",&integer1)) {
|
||||
XmlExit("Missing "+line+"_LINK_LENGTH",400);
|
||||
}
|
||||
ll->setLinkLength(integer1);
|
||||
|
||||
if(!xport_post->getValue(line+"_LINK_START_SLOP",&integer1)) {
|
||||
XmlExit("Missing "+line+"_LINK_START_SLOP",400);
|
||||
}
|
||||
ll->setLinkStartSlop(integer1);
|
||||
|
||||
if(!xport_post->getValue(line+"_LINK_END_SLOP",&integer1)) {
|
||||
XmlExit("Missing "+line+"_LINK_END_SLOP",400);
|
||||
}
|
||||
ll->setLinkEndSlop(integer1);
|
||||
|
||||
if(!xport_post->getValue(line+"_LINK_ID",&integer1)) {
|
||||
XmlExit("Missing "+line+"_LINK_ID",400);
|
||||
}
|
||||
ll->setLinkId(integer1);
|
||||
|
||||
if(!xport_post->getValue(line+"_LINK_EMBEDDED",&state)) {
|
||||
XmlExit("Missing "+line+"_LINK_EMBEDDED",400);
|
||||
}
|
||||
ll->setLinkEmbedded(state);
|
||||
|
||||
if(!xport_post->getValue(line+"_EXT_START_TIME",&time)) {
|
||||
XmlExit("Missing "+line+"_EXT_START_TIME",400);
|
||||
}
|
||||
ll->setExtStartTime(time);
|
||||
|
||||
if(!xport_post->getValue(line+"_EXT_CART_NAME",&str)) {
|
||||
XmlExit("Missing "+line+"_EXT_CART_NAME",400);
|
||||
}
|
||||
ll->setExtCartName(str);
|
||||
|
||||
if(!xport_post->getValue(line+"_EXT_DATA",&str)) {
|
||||
XmlExit("Missing "+line+"_EXT_DATA",400);
|
||||
}
|
||||
ll->setExtData(str);
|
||||
|
||||
if(!xport_post->getValue(line+"_EXT_EVENT_ID",&str)) {
|
||||
XmlExit("Missing "+line+"_EXT_EVENT_ID",400);
|
||||
}
|
||||
ll->setExtEventId(str);
|
||||
|
||||
if(!xport_post->getValue(line+"_EXT_ANNC_TYPE",&str)) {
|
||||
XmlExit("Missing "+line+"_EXT_ANNC_TYPE",400);
|
||||
}
|
||||
ll->setExtAnncType(str);
|
||||
}
|
||||
|
||||
RDLog *log=new RDLog(log_name);
|
||||
if(!log->exists()) {
|
||||
XmlExit("No such log",404);
|
||||
}
|
||||
log->setService(service_name);
|
||||
log->setDescription(description);
|
||||
log->setPurgeDate(purge_date);
|
||||
log->setAutoRefresh(auto_refresh);
|
||||
log->setStartDate(start_date);
|
||||
log->setEndDate(end_date);
|
||||
|
||||
logevt->save();
|
||||
|
||||
XmlExit("OK",200);
|
||||
}
|
||||
|
@@ -119,6 +119,7 @@ Xport::Xport(QObject *parent)
|
||||
// Load System Settings
|
||||
//
|
||||
xport_system=new RDSystem();
|
||||
xport_station=new RDStation(xport_config->stationName());
|
||||
|
||||
//
|
||||
// Generate Post
|
||||
@@ -221,6 +222,14 @@ Xport::Xport(QObject *parent)
|
||||
AudioStore();
|
||||
break;
|
||||
|
||||
case RDXPORT_COMMAND_ADDLOG:
|
||||
AddLog();
|
||||
break;
|
||||
|
||||
case RDXPORT_COMMAND_DELETELOG:
|
||||
DeleteLog();
|
||||
break;
|
||||
|
||||
case RDXPORT_COMMAND_LISTLOGS:
|
||||
ListLogs();
|
||||
break;
|
||||
@@ -229,6 +238,10 @@ Xport::Xport(QObject *parent)
|
||||
ListLog();
|
||||
break;
|
||||
|
||||
case RDXPORT_COMMAND_SAVELOG:
|
||||
SaveLog();
|
||||
break;
|
||||
|
||||
case RDXPORT_COMMAND_LISTSCHEDCODES:
|
||||
ListSchedCodes();
|
||||
break;
|
||||
|
@@ -27,8 +27,9 @@
|
||||
#include <rdaudioconvert.h>
|
||||
#include <rdconfig.h>
|
||||
#include <rdformpost.h>
|
||||
#include <rduser.h>
|
||||
#include <rdstation.h>
|
||||
#include <rdsystem.h>
|
||||
#include <rduser.h>
|
||||
|
||||
class Xport : public QObject
|
||||
{
|
||||
@@ -59,8 +60,11 @@ class Xport : public QObject
|
||||
void CopyAudio();
|
||||
void AudioInfo();
|
||||
void AudioStore();
|
||||
void AddLog();
|
||||
void DeleteLog();
|
||||
void ListLogs();
|
||||
void ListLog();
|
||||
void SaveLog();
|
||||
void ListSchedCodes();
|
||||
void AssignSchedCode();
|
||||
void UnassignSchedCode();
|
||||
@@ -73,6 +77,7 @@ class Xport : public QObject
|
||||
RDUser *xport_user;
|
||||
RDConfig *xport_config;
|
||||
RDSystem *xport_system;
|
||||
RDStation *xport_station;
|
||||
};
|
||||
|
||||
|
||||
|
@@ -23,11 +23,13 @@ install-exec-am:
|
||||
mkdir -p $(DESTDIR)@libexecdir@
|
||||
cp addcart.html $(DESTDIR)@libexecdir@
|
||||
cp addcut.html $(DESTDIR)@libexecdir@
|
||||
cp addlog.html $(DESTDIR)@libexecdir@
|
||||
cp assignschedcode.html $(DESTDIR)@libexecdir@
|
||||
cp audioinfo.html $(DESTDIR)@libexecdir@
|
||||
cp audiostore.html $(DESTDIR)@libexecdir@
|
||||
cp copyaudio.html $(DESTDIR)@libexecdir@
|
||||
cp delete_audio.html $(DESTDIR)@libexecdir@
|
||||
cp deletelog.html $(DESTDIR)@libexecdir@
|
||||
cp editcart.html $(DESTDIR)@libexecdir@
|
||||
cp editcut.js $(DESTDIR)@libexecdir@
|
||||
cp editcut.html $(DESTDIR)@libexecdir@
|
||||
@@ -49,6 +51,7 @@ install-exec-am:
|
||||
cp listservices.html $(DESTDIR)@libexecdir@
|
||||
cp removecart.html $(DESTDIR)@libexecdir@
|
||||
cp removecut.html $(DESTDIR)@libexecdir@
|
||||
cp savelog.html $(DESTDIR)@libexecdir@
|
||||
cp trimaudio.html $(DESTDIR)@libexecdir@
|
||||
cp unassignschedcode.html $(DESTDIR)@libexecdir@
|
||||
cp utils.js $(DESTDIR)@libexecdir@
|
||||
@@ -56,11 +59,13 @@ install-exec-am:
|
||||
uninstall-local:
|
||||
rm -f $(DESTDIR)@libexecdir@/addcart.html
|
||||
rm -f $(DESTDIR)@libexecdir@/addcut.html
|
||||
rm -f $(DESTDIR)@libexecdir@/addlog.html
|
||||
rm -f $(DESTDIR)@libexecdir@/assignschedcode.html
|
||||
rm -f $(DESTDIR)@libexecdir@/audioinfo.html
|
||||
rm -f $(DESTDIR)@libexecdir@/audiostore.html
|
||||
rm -f $(DESTDIR)@libexecdir@/copyaudio.html
|
||||
rm -f $(DESTDIR)@libexecdir@/delete_audio.html
|
||||
rm -f $(DESTDIR)@libexecdir@/deletelog.html
|
||||
rm -f $(DESTDIR)@libexecdir@/editcart.html
|
||||
rm -f $(DESTDIR)@libexecdir@/editcart.js
|
||||
rm -f $(DESTDIR)@libexecdir@/editcut.html
|
||||
@@ -81,17 +86,20 @@ uninstall-local:
|
||||
rm -f $(DESTDIR)@libexecdir@/listservices.html
|
||||
rm -f $(DESTDIR)@libexecdir@/removecart.html
|
||||
rm -f $(DESTDIR)@libexecdir@/removecut.html
|
||||
rm -f $(DESTDIR)@libexecdir@/savelog.html
|
||||
rm -f $(DESTDIR)@libexecdir@/trimaudio.html
|
||||
rm -f $(DESTDIR)@libexecdir@/unassignschedcode.html
|
||||
rm -f $(DESTDIR)@libexecdir@/utils.js
|
||||
|
||||
EXTRA_DIST = addcart.html\
|
||||
addcut.html\
|
||||
addlog.html\
|
||||
assignschedcode.html\
|
||||
audioinfo.html\
|
||||
audiostore.html\
|
||||
copyaudio.html\
|
||||
delete_audio.html\
|
||||
deletelog.html\
|
||||
editcart.html\
|
||||
editcart.js\
|
||||
editcut.html\
|
||||
@@ -112,6 +120,7 @@ EXTRA_DIST = addcart.html\
|
||||
listservices.html\
|
||||
removecart.html\
|
||||
removecut.html\
|
||||
savelog.html\
|
||||
trimaudio.html\
|
||||
unassignschedcode.html\
|
||||
utils.js
|
||||
|
33
web/tests/addlog.html
Normal file
33
web/tests/addlog.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Rivendell ADDLOG Service Test Harness</title>
|
||||
<body>
|
||||
<form action="/rd-bin/rdxport.cgi" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="COMMAND" value="29">
|
||||
<table cellpadding="0" cellspacing="2" border="0">
|
||||
<tr>
|
||||
<td align="right">LOGIN NAME:</td>
|
||||
<td><input type="text" name="LOGIN_NAME" size="20" maxlength="255"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">PASSWORD:</td>
|
||||
<td><input type="password" name="PASSWORD" size="20" maxlength="32"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">LOG NAME:</td>
|
||||
<td><input type="text" name="LOG_NAME" size="20" maxlength="64"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">SERVICE NAME:</td>
|
||||
<td><input type="text" name="SERVICE_NAME" size="20" maxlength="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="right"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="right"><input type="submit" value="OK"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
29
web/tests/deletelog.html
Normal file
29
web/tests/deletelog.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Rivendell DELETELOG Service Test Harness</title>
|
||||
<body>
|
||||
<form action="/rd-bin/rdxport.cgi" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="COMMAND" value="30">
|
||||
<table cellpadding="0" cellspacing="2" border="0">
|
||||
<tr>
|
||||
<td align="right">LOGIN NAME:</td>
|
||||
<td><input type="text" name="LOGIN_NAME" size="20" maxlength="255"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">PASSWORD:</td>
|
||||
<td><input type="password" name="PASSWORD" size="20" maxlength="32"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">LOG NAME:</td>
|
||||
<td><input type="text" name="LOG_NAME" size="20" maxlength="64"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="right"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="right"><input type="submit" value="OK"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
57
web/tests/savelog.html
Normal file
57
web/tests/savelog.html
Normal file
@@ -0,0 +1,57 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Rivendell SAVELOG Service Test Harness</title>
|
||||
<body>
|
||||
<form action="/rd-bin/rdxport.cgi" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="COMMAND" value="28">
|
||||
<table cellpadding="0" cellspacing="2" border="0">
|
||||
<tr>
|
||||
<td align="right">LOGIN NAME:</td>
|
||||
<td><input type="text" name="LOGIN_NAME" size="20" maxlength="255"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">PASSWORD:</td>
|
||||
<td><input type="password" name="PASSWORD" size="20" maxlength="32"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">LOG_NAME:</td>
|
||||
<td><input type="text" name="LOG_NAME" size="20" maxlength="64"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">SERVICE_NAME:</td>
|
||||
<td><input type="text" name="SERVICE_NAME" size="20" maxlength="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">DESCRIPTION:</td>
|
||||
<td><input type="text" name="DESCRIPTION" size="20" maxlength="64"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">PURGE DATE (YYYY-MM-DD):</td>
|
||||
<td><input type="text" name="PURGE_DATE" size="20" maxlength="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">AUTO REFRESH:</td>
|
||||
<td><input type="text" name="AUTO_REFRESH" size="20" maxlength="1"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">START DATE (YYYY-MM-DD):</td>
|
||||
<td><input type="text" name="START_DATE" size="20" maxlength="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">END DATE (YYYY-MM-DD):</td>
|
||||
<td><input type="text" name="END_DATE" size="20" maxlength="10"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">LINE QUANTITY:</td>
|
||||
<td><input type="text" name="LINE_QUANTITY" size="20" maxlength="6"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="right"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="right"><input type="submit" value="OK"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user