function webyep_shortText($sFieldName, $bGlobal) { global $goApp, $webyep_sCharset; $o = new WYShortTextElement($sFieldName, $bGlobal); $s = $o->sDisplay(); if ($goApp->bEditMode) { echo $o->sEditButtonHTML("edit-button-short-text.gif"); if (!$s) { $s = $o->sName; } } 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/WYShortTextElement.php"; include_once @webyep_sConfigValue("webyep_sIncludePath") . "/lib/WYTextField.php"; include_once @webyep_sConfigValue("webyep_sIncludePath") . "/lib/WYEditor.php"; $bOK = false; $sResponse = WYTS("ShortTextSaved"); $sHelpFile = "shorttext-element.php"; $oEditor = new WYEditor(); $oTF = new WYTextField("TEXT"); $oTF->setWidth($goApp->bIsiPhone ? 40 : 40); $oTF->setAttribute("id", "inputTextField"); $oElement = new WYShortTextElement($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