mirror of
https://github.com/gigablast/open-source-search-engine.git
synced 2024-10-04 12:17:35 +03:00
more website updates for gigabot guide
This commit is contained in:
parent
f4e8a8260b
commit
da63cb1f17
@ -724,6 +724,9 @@ bool printFrontPageShell ( SafeBuf *sb , char *tabName , CollectionRec *cr ) {
|
||||
{"API","/api.html"}
|
||||
};
|
||||
|
||||
char *coll = "";
|
||||
if ( cr ) coll = cr->m_coll;
|
||||
|
||||
//
|
||||
// first the nav column
|
||||
//
|
||||
@ -736,7 +739,7 @@ bool printFrontPageShell ( SafeBuf *sb , char *tabName , CollectionRec *cr ) {
|
||||
"<br>"
|
||||
|
||||
"<center>"
|
||||
"<a href=/>"
|
||||
"<a href=/?c=%s>"
|
||||
"<div style=\""
|
||||
"background-color:white;"
|
||||
"padding:10px;"
|
||||
@ -747,6 +750,7 @@ bool printFrontPageShell ( SafeBuf *sb , char *tabName , CollectionRec *cr ) {
|
||||
"width:100px;"
|
||||
"height:100px;"
|
||||
"\">"
|
||||
, coll
|
||||
);
|
||||
|
||||
if ( strcmp(tabName,"appliance") == 0 )
|
||||
@ -767,8 +771,6 @@ bool printFrontPageShell ( SafeBuf *sb , char *tabName , CollectionRec *cr ) {
|
||||
|
||||
long n = sizeof(mi) / sizeof(MenuItem);
|
||||
|
||||
char *coll = "";
|
||||
if ( cr ) coll = cr->m_coll;
|
||||
|
||||
for ( long i = 0 ; i < n ; i++ ) {
|
||||
|
||||
|
12
Parms.cpp
12
Parms.cpp
@ -1200,9 +1200,13 @@ bool Parms::sendPageGeneric ( TcpSocket *s , HttpRequest *r ) {
|
||||
// return false;
|
||||
//}
|
||||
|
||||
char *bodyjs = NULL;
|
||||
if ( page == PAGE_BASIC_SETTINGS )
|
||||
bodyjs =" onload=document.getElementById('tabox').focus();";
|
||||
|
||||
// print standard header
|
||||
if ( format != FORMAT_XML && format != FORMAT_JSON )
|
||||
g_pages.printAdminTop ( sb , s , r );
|
||||
g_pages.printAdminTop ( sb , s , r , NULL , bodyjs );
|
||||
|
||||
// xml/json header
|
||||
char *res = NULL;
|
||||
@ -2512,7 +2516,8 @@ bool Parms::printParm ( SafeBuf* sb,
|
||||
// }
|
||||
// }
|
||||
if ( m->m_flags & PF_TEXTAREA ) {
|
||||
sb->safePrintf ("<textarea name=%s rows=10 cols=80>",
|
||||
sb->safePrintf ("<textarea id=tabox "
|
||||
"name=%s rows=10 cols=80>",
|
||||
cgi);
|
||||
//sb->dequote ( s , gbstrlen(s) );
|
||||
// note it
|
||||
@ -2537,7 +2542,8 @@ bool Parms::printParm ( SafeBuf* sb,
|
||||
}
|
||||
}
|
||||
else if ( t == TYPE_STRINGBOX ) {
|
||||
sb->safePrintf("<textarea rows=10 cols=64 name=%s>",cgi);
|
||||
sb->safePrintf("<textarea id=tabox rows=10 cols=64 name=%s>",
|
||||
cgi);
|
||||
//p += urlEncode ( p , pend - p , s , gbstrlen(s) );
|
||||
//p += htmlDecode ( p , s , gbstrlen(s) );
|
||||
sb->htmlEncode ( s , gbstrlen(s), false );
|
||||
|
Loading…
Reference in New Issue
Block a user