Return TypeFunction nameArguments
voidhdsPage::Display(hzHttpEvent*,)

Declared in file: hzDissemino.h
Defined in file : hdsGenerate.cpp

Function Logic:

0:START 1:!pE 2:Fatal 3:!pE->m_pContextLang 4:Fatal 5:hzLogger::Log ei 6:ei.Valid(); 7:hzList::Iter::Element pExec Exec2Txt hzLogger::Log hdsExec::Exec rc hzLogger::Out hzChain::Clear 8:!m_Title 9:m_Title 10:items 11:pE&&pE->m_Resarg 12:hzChain::Printf 13:items 14:m_Desc 15:hzChain::Printf 16:hzChain::Printf 17:m_Keys 18:hzChain::Printf 19:items items 20:m_bScriptFlags||m_xForms.Count() 21:m_bScriptFlags&INC_SCRIPT_RECAPTCHA 22:items 23:items 24:m_bScriptFlags&INC_SCRIPT_WINDIM 25:items 26:m_bScriptFlags&INC_SCRIPT_NAVTREE 27:items items items hzList::Count 28:m_xForms.Count() 29:m_bScriptFlags&INC_SCRIPT_CKEMAIL 30:items 31:m_bScriptFlags&INC_SCRIPT_CKURL 32:items 33:m_bScriptFlags&INC_SCRIPT_EXISTS 34:items iF 35:iF.Valid(); 36:hzList::Iter::Element pFormref pFormdef items 37:items 38:items 39:items items 40:m_CSS 41:hzChain::Printf 42:hzChain::Printf 43:m_Onpage 44:hzChain::Printf 45:m_Onload 46:hzChain::Printf 47:m_Resize 48:hzChain::Printf 49:items relLn nV 50:nV 51:pVE hdsVE::Generate 52:items hzHttpEvent::SendRawChain rc 53: No text

Function body:

void hdsPage::Display (hzHttpEvent* pE)
{
   _hzfunc("hdsPage::Display") ;
   hzList<hdsExec*>::Iter      ei ;
   hzList<hdsVE*>::Iter        ih ;
   hzList<hdsFormref*>::Iter   iF ;
   hzChain         C ;
   hdsExec*        pExec ;
   hdsVE*          pVE ;
   hdsFormref*     pFormref ;
   hdsFormdef*     pFormdef ;
   uint32_t        relLn ;
   uint32_t        nV ;
   hzEcode         rc ;
   if (!pE)                    Fatal("No HTTP Event\n") ;
   if (!pE->m_pContextLang)    Fatal("No Language\n") ;
   m_pApp->m_pLog->Log("PAGE %s Script Flags %x\n", *m_Title, m_bScriptFlags) ;
   for (ei = m_Exec ; ei.Valid() ; ei++)
   {
       pExec = ei.Element() ;
        m_pApp->m_pLog->Log("HAVE EXEC %s\n", Exec2Txt(pExec->m_Command)) ;
        rc = pExec->Exec(C, pE) ;
        m_pApp->m_pLog->Out(C) ;
        C.Clear() ;
   }
   if (!m_Title)
       m_Title = "untitled" ;
   C << "<!DOCTYPE html>\n<html>\n<head>\n"
              ;
   if (pE && pE->m_Resarg)
       C.Printf("<title>%s-%s</title>\n", *m_Title, *pE->m_Resarg) ;
   else
       C << "<title>" << m_Title << "</title>\n" ;
   if (m_Desc)
       C.Printf("<meta name="description" content="%s"/>\n"    , *m_Desc) ;
   else
       C.Printf("<meta name="description" content="%s"/>\n"    , *m_Title) ;
   if (m_Keys)
       C.Printf("<meta name="keywords" content="%s"/>\n"    , *m_Keys) ;
   C << s_std_metas ;
   C << "<link rel="stylesheet" href=""    << m_pApp->m_namCSS << ""/>\n"  ;
   if (m_bScriptFlags || m_xForms.Count())
   {
       if (m_bScriptFlags & INC_SCRIPT_RECAPTCHA)
           C << s_Recaptcha ;
       C << "<script language="javascript">\n"   ;
       if (m_bScriptFlags & INC_SCRIPT_WINDIM)
           C << _dsmScript_gwp ;
       if (m_bScriptFlags & INC_SCRIPT_NAVTREE)
       {
           C << _dsmScript_tog ;
           C << _dsmScript_loadArticle ;
           C << _dsmScript_navtree ;
       }
       if (m_xForms.Count())
       {
           if (m_bScriptFlags & INC_SCRIPT_CKEMAIL)    C << _dsmScript_ckEmail ;
           if (m_bScriptFlags & INC_SCRIPT_CKURL)      C << _dsmScript_ckUrl ;
           if (m_bScriptFlags & INC_SCRIPT_EXISTS)     C << _dsmScript_ckExists ;
           for (iF = m_xForms ; iF.Valid() ; iF++)
           {
               pFormref = iF.Element() ;
               pFormdef = m_pApp->m_FormDefs[pFormref->m_Formname] ;
               C << pFormdef->m_ValJS ;
           }
           C << m_validateJS ;
       }
       C << "</script>\n" ;
   }
   C << "</head>\n\n" ;
   C << "<body" ;
   if (m_CSS)
       C.Printf(" class="%s""  , *m_CSS) ;
   else
       C.Printf(" bgcolor="#%06x" marginwidth="%d" marginheight="%d" leftmargin="%d" topmargin="%d""          ,
           m_BgColor, m_Width, m_Height, m_Width, m_Top) ;
   if (m_Onpage) C.Printf(" onpageshow="%s""  , *m_Onpage) ;
   if (m_Onload) C.Printf(" onload="%s""  , *m_Onload) ;
   if (m_Resize) C.Printf(" onresize="%s""  , *m_Resize) ;
   C << ">\n" ;
   relLn = m_Line ;
   for (nV = 0; nV < m_VEs.Count() ; nV++)
   {
       pVE = m_VEs[nV] ; pVE->Generate(C, pE, relLn) ;
   }
   C << "</body>\n</html>\n" ;
   rc = pE->SendRawChain(HTTPMSG_OK, HMTYPE_TXT_HTML, C, 0,false) ;
}