Return TypeFunction nameArguments
voidhdsButton::Generate(hzChain&,hzHttpEvent*,unsigned int&,)

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

Function Logic:

0:START 1:m_Line!=nLine 2:hzChain::AddByte x 3:x; 4:hzChain::AddByte 5:nLine 6:pE->m_pContextForm 7:pFR hzMapM::First x 8:x>=0 9:hzMapM::GetObj url 10:m_Formname 11:url 12:hzChain::Printf 13:hzChain::Printf 14:pE&&m_Linkto[0]==(char)37 15:hdsApp::ConvertText hzChain::Printf 16:hzChain::Printf 17: No text

Function body:

void hdsButton::Generate (hzChain& C, hzHttpEvent* pE, unsigned int& nLine)
{
   _hzfunc("hdsButton::Generate") ;
   hdsFormref* pFR ;
   hzString    url ;
   uint32_t    x ;
   if (m_Line != nLine)
   {
       C.AddByte(CHAR_NL) ;
       for (x = m_Indent ; x ; x--)
           C.AddByte(CHAR_TAB) ;
       nLine = m_Line ;
   }
   if (pE->m_pContextForm)
   {
       pFR = (hdsFormref*) pE->m_pContextForm ;
       x = m_pApp->m_FormRef2Url.First(pFR) ;
       if (x >&eq; 0)
           url = m_pApp->m_FormRef2Url.GetObj(x + m_Resv - 1);
   }
   if (m_Formname)
   {
       if (url)
           C.Printf("<input type="submit" formaction="%s" value="%s">"      , *url, *m_strContent) ;
       else
           C.Printf("<input type="submit" value="%s">"    , *m_strContent) ;
   }
   else
   {
       if (pE && m_Linkto[0]== CHAR_PERCENT)
           C.Printf("<input type="button" value="%s" onclick="window.location.href='%s'">"      , *m_strContent, *m_pApp->ConvertText(m_Linkto, pE)) ;
       else
           C.Printf("<input type="button" value="%s" onclick="window.location.href='%s'">"      , *m_strContent, *m_Linkto) ;
   }
}