function webyep_readMore($sFieldName, $sLinkText, $sTargetPage, $sTargetFrame) { global $goApp, $webyep_sCharset; $o = new WYReadMoreElement($sFieldName, $sLinkText, $sTargetPage, $sTargetFrame); $s = $o->sDisplay(); echo $s; }
// (C) Objective Development Software GmbH // http://www.obdev.at $webyep_bDocumentPage = false; $webyep_sIncludePath = ".."; include_once "{$webyep_sIncludePath}/webyep.php"; include_once @webyep_sConfigValue("webyep_sIncludePath") . "/elements/WYReadMoreElement.php"; include_once @webyep_sConfigValue("webyep_sIncludePath") . "/lib/WYTextField.php"; include_once @webyep_sConfigValue("webyep_sIncludePath") . "/lib/WYEditor.php"; $bOK = false; $sResponse = WYTS("ReadMoreSaved"); $sHelpFile = "readmore-element.php"; $oEditor = new WYEditor(); $oTF = new WYTextField("TEXT"); $oTF->setWidth($goApp->bIsiPhone ? 40 : 40); $oTF->setAttribute("id", "inputTextField"); $oElement = new WYReadMoreElement($oEditor->sFieldName, $oEditor->bGlobal); if ($oEditor->bSave) { $oElement->setText($oTF->sValue()); $oElement->save(); $bOK = true; } else { $oTF->setValue($oElement->sText()); $sOnLoadScript = 'document.forms[0].TEXT.focus();'; } $goApp->outputWarningPanels(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head> <title> <?php