Warning: session_start(): open(/var/lib/php/sessions/sess_6uortp77gdj0r03hfatihdjgi3, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
concept TestScript {
S scriptName, comments;
bool active;
S botLine1, userLine1;
S botLine2, userLine2;
S botLine3, userLine3;
S botLine4, userLine4;
S botLine5, userLine5;
}
sclass TestScripting {
sO html(S uri, SS params, AuthedDialogID auth) null {
S uri2 = appendSlash(uri);
bool requestAuthed = auth != null;
if (startsWith(uri2, "/testscripts/")) {
if (!requestAuthed) ret serveAuthForm(params.get('uri));
ret serveTestScriptingAdmin(uri, params);
}
}
sS serveTestScriptingAdmin(S uri, SS params) {
S nav = p(ahref(rawBotLink(dbBotID), "Main admin") + " | " + ahref(baseLink + "/testscripts", "Test scripts admin"));
HCRUD_Concepts data = new HCRUD_Concepts<>(TestScript);
HCRUD crud = new(rawLink("testscripts"), data) {
S frame(S title, S contents) {
ret hhtml(hhead_title_htmldecode(title) + hbody(
hsansserif() + hcss_responstable()
+ nav + h1(title)
+ contents));
}
};
crud.cmdsLeft = true;
crud.tableClass = "responstable";
ret crud.renderPage(params);
}
}