Return Type | Function name | Arguments |
---|---|---|
void | hdsButton::Generate | (hzChain&,hzHttpEvent*,unsigned int&,) |
Declared in file: hzDissemino.h
Defined in file : hdsGenerate.cpp
Function Logic:
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) ; } }