formatting

This commit is contained in:
Matt Wells 2014-01-19 13:21:58 -08:00
parent 04b0650301
commit 99de2188e1
2 changed files with 40 additions and 18 deletions

@ -1016,21 +1016,12 @@ bool Pages::printAdminTop ( SafeBuf *sb ,
sb->safePrintf("<TABLE "
"cellpadding=5 border=0>"
"<TR>"
"<TD valign=top>"
"<div "
"style="
"max-height:600px;"
"max-width:225px;"
//"min-width:225px;"
"overflow-y:auto;"
"overflow-x:hidden>"
"<td></td>"
);
// collection under that
status &= printCollectionNavBar ( sb, page , username , coll,pwd, qs );
// then collection page links and parms
sb->safePrintf("</div></TD><TD valign=top>");
sb->safePrintf("<TD valign=top>");
// print emergency msg box
if ( adds )
@ -1070,6 +1061,35 @@ bool Pages::printAdminTop ( SafeBuf *sb ,
sb->safePrintf ("<input type=hidden name=cast value=\"%li\">\n",
(long)s_pages[page].m_cast);
// begin 2nd row in big table
sb->safePrintf("</td></TR>");
sb->safePrintf(
"<TR>"
"<TD valign=top>"
"<div "
"style="
"max-height:600px;"
"max-width:200px;"
"min-width:200px;"
"padding:4px;" // same as TABLE_STYLE
"background-color:#c0c0c0;"
"border-radius:10px;"
"border-width:2px;"
"border-color:#606060;"
"overflow-y:auto;"
"overflow-x:hidden;"
">"
);
// collection under that
status &= printCollectionNavBar ( sb, page , username , coll,pwd, qs );
sb->safePrintf("</div></TD>");
// the controls will go here
sb->safePrintf("<TD>");
return true;
}
@ -1875,7 +1895,8 @@ bool Pages::printAdminLinks ( SafeBuf *sb,
//sb->safePrintf("</center>" );
sb->safePrintf("<br/>" );
sb->safePrintf("<br/>" );
if ( top ) sb->safePrintf("<br/>" );
if ( top ) return status;
@ -1970,6 +1991,7 @@ bool Pages::printCollectionNavBar ( SafeBuf *sb ,
bool status = true;
//if ( ! pwd ) pwd = "";
if ( ! qs ) qs = "";
// if not admin just print collection name
if ( g_collectiondb.m_numRecsUsed == 0 ) {
sb->safePrintf ( "<center>"

@ -6095,8 +6095,8 @@ void Parms::init ( ) {
m++;
*/
m->m_title = "all just save";
m->m_desc = "Saves the data for all hosts. Does Not exit.";
m->m_title = "save";
m->m_desc = "Saves in-memory data for ALL hosts. Does Not exit.";
m->m_cgi = "js";
m->m_type = TYPE_CMD;
m->m_func = CommandJustSave;
@ -6141,8 +6141,8 @@ void Parms::init ( ) {
m++;
*/
m->m_title = "all save & exit";
m->m_desc = "Saves the data and exits for all hosts.";
m->m_title = "save & exit";
m->m_desc = "Saves the data and exits for ALL hosts.";
m->m_cgi = "save";
m->m_type = TYPE_CMD;
m->m_func = CommandSaveAndExit;
@ -9417,7 +9417,7 @@ void Parms::init ( ) {
m->m_title = "max spiders";
m->m_desc = "What is the maximum number of web "
"pages the spider is allowed to download "
"simultaneously?";
"simultaneously PER HOST?";
m->m_cgi = "mns";
m->m_off = (char *)&cr.m_maxNumSpiders - x;
m->m_type = TYPE_LONG;