示例#1
0
文件: menu.php 项目: bcneb/WebYep
$oHFURL = new WYHiddenField(WY_QK_MENU_URL);
$sURL = $oHFURL->sValue();
if ($sURL) {
    $oURL = new WYURL($sURL);
    //echo '$oURL = '.$oURL->sEURL().', $sURL = '.$sURL;
} else {
    $oURL = od_nil;
    //echo '$oURL = od_nil';
}
$oElement = new WYMenuElement($oEditor->sFieldName, $oEditor->bGlobal, $oURL, "", "", od_nil);
if ($oEditor->bSave) {
    if (isset($oTAWYEditorPostArea->sText)) {
        $chunks = explode('|@|', $oTAWYEditorPostArea->sText());
        $chunks[1] = explode('|§|', $chunks[1]);
        $oElement->dContent = parseDataForServer($chunks[1], $chunks[2]);
        $oElement->save();
        $bOK = true;
    }
} else {
    $sContent = parseDataForClient($oElement->dContent, $oURL->sURL());
}
$goApp->outputWarningPanels();
// give App a chance to say something
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php 
global $webyep_sHTMLStandard;
$webyep_sHTMLStandard = 'XHTML';
echo $goApp->sCharsetMetatag();