Пример #1
0
$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 
WYTSD("ReadMoreEditorTitle", true);
?>