Return TypeFunction nameArguments
voidhdsPage::EvalHtml(hzChain&,)

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

Function Logic:

0:START 1:hzLogger::Log 2:!m_Title 3:m_Title 4:items items 5:m_Desc 6:hzChain::Printf 7:hzChain::Printf 8:m_Keys 9:hzChain::Printf 10:items items 11:m_bScriptFlags||m_xForms.Count() 12:m_bScriptFlags&INC_SCRIPT_RECAPTCHA 13:items 14:items hzList::Count 15:m_xForms.Count() 16:m_bScriptFlags&INC_SCRIPT_CKEMAIL 17:items 18:m_bScriptFlags&INC_SCRIPT_CKURL 19:items 20:m_bScriptFlags&INC_SCRIPT_EXISTS 21:items iF 22:iF.Valid(); 23:hzList::Iter::Element pFormref pFormdef items 24:items 25:items 26:items items 27:m_CSS 28:hzChain::Printf 29:hzChain::Printf 30:m_Onpage 31:hzChain::Printf 32:m_Onload 33:hzChain::Printf 34:m_Resize 35:hzChain::Printf 36:items hzLogger::Log relLn nV 37:nV 38:pH hdsVE::Generate 39:items hzLogger::Log 40: No text

Function body:

void hdsPage::EvalHtml (hzChain& C)
{
   _hzfunc("hdsPage::EvalHtml") ;
   hzList<hdsVE*>::Iter        ih ;
   hzList<hdsFormref*>::Iter   iF ;
   hzHttpEvent     httpEv ;
   hzChain         X ;
   hdsVE*          pH ;
   hdsFormref*     pFormref ;
   hdsFormdef*     pFormdef ;
   uint32_t        relLn ;
   uint32_t        nV ;
   hzEcode         rc ;
   m_pApp->m_pLog->Log("PAGE %s Script Flags %x\n", *m_Title, m_bScriptFlags) ;
   if (!m_Title)
       m_Title = "untitled" ;
   C << "<!DOCTYPE html>\n<html>\n<head>\n"
              ;
   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_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" ;
   m_pApp->m_pLog->Log("PAGE %s Script Flags %x\n", *m_Title, m_bScriptFlags) ;
   relLn = m_Line ;
   for (nV = 0; nV < m_VEs.Count() ; nV++)
   {
       pH = m_VEs[nV] ; pH->Generate(C, &httpEv, relLn) ;
   }
   C << "</body>\n</html>\n" ;
   m_pApp->m_pLog->Log("PAGE %s Script Flags %x\n", *m_Title, m_bScriptFlags) ;
}