本文整理汇总了PHP中CKEditor::setHeight方法的典型用法代码示例。如果您正苦于以下问题:PHP CKEditor::setHeight方法的具体用法?PHP CKEditor::setHeight怎么用?PHP CKEditor::setHeight使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKEditor
的用法示例。
在下文中一共展示了CKEditor::setHeight方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tad_web_news_form
function tad_web_news_form($NewsID = "")
{
global $xoopsDB, $xoopsUser, $WebID, $MyWebs, $isMyWeb, $xoopsTpl, $TadUpFiles, $web_cate;
if (!$isMyWeb and $MyWebs) {
redirect_header($_SERVER['PHP_SELF'] . "?WebID={$MyWebs[0]}&op=tad_web_news_form", 3, _MD_TCW_AUTO_TO_HOME);
} elseif (empty($MyWebs)) {
redirect_header("index.php", 3, _MD_TCW_NOT_OWNER);
}
$Class = getWebInfo($WebID);
//抓取預設值
if (!empty($NewsID)) {
$DBV = get_tad_web_news($NewsID);
} else {
$DBV = array();
}
//設定「NewsID」欄位預設值
$NewsID = !isset($DBV['NewsID']) ? "" : $DBV['NewsID'];
//設定「NewsTitle」欄位預設值
if (isset($DBV['NewsTitle'])) {
$NewsTitle = _NEWS_KIND == "homework" ? $Class['WebTitle'] . date(" Y-m-d ") . _MD_TCW_HOMEWORK : $DBV['NewsTitle'];
} else {
$NewsTitle = _NEWS_KIND == "homework" ? $Class['WebTitle'] . date(" Y-m-d ") . _MD_TCW_HOMEWORK : "";
}
//設定「NewsContent」欄位預設值
if (isset($DBV['NewsContent'])) {
$NewsContent = $DBV['NewsContent'];
} else {
$NewsContent = _NEWS_KIND == "homework" ? _MD_TCW_HOMEWORK_DEFAULT : "";
}
//設定「NewsDate」欄位預設值
$NewsDate = !isset($DBV['NewsDate']) ? date("Y-m-d H:i:s") : $DBV['NewsDate'];
//設定「toCal」欄位預設值
if (!isset($DBV['toCal'])) {
$toCal = _NEWS_KIND == "homework" ? date("Y-m-d") : "";
} else {
$toCal = $DBV['toCal'] == "0000-00-00 00:00:00" ? "" : $DBV['toCal'];
}
//設定「NewsPlace」欄位預設值
$NewsPlace = !isset($DBV['NewsPlace']) ? "" : $DBV['NewsPlace'];
//設定「NewsMaster」欄位預設值
$NewsMaster = !isset($DBV['NewsMaster']) ? "" : $DBV['NewsMaster'];
//設定「NewsUrl」欄位預設值
$NewsUrl = !isset($DBV['NewsUrl']) ? "" : $DBV['NewsUrl'];
//設定「WebID」欄位預設值
$WebID = !isset($DBV['WebID']) ? $WebID : $DBV['WebID'];
//設定「NewsKind」欄位預設值
$NewsKind = !isset($DBV['NewsKind']) ? "" : $DBV['NewsKind'];
//設定「NewsCounter」欄位預設值
$NewsCounter = !isset($DBV['NewsCounter']) ? "" : $DBV['NewsCounter'];
//設定「CateID」欄位預設值
$CateID = !isset($DBV['CateID']) ? "" : $DBV['CateID'];
$cate_menu = $web_cate->cate_menu($CateID);
$xoopsTpl->assign('cate_menu', $cate_menu);
$op = empty($NewsID) ? "insert_tad_web_news" : "update_tad_web_news";
//$op="replace_tad_web_news";
if (!file_exists(TADTOOLS_PATH . "/formValidator.php")) {
redirect_header("index.php", 3, _MD_NEED_TADTOOLS);
}
include_once TADTOOLS_PATH . "/formValidator.php";
$formValidator = new formValidator("#myForm", true);
$formValidator_code = $formValidator->render();
if (_USE_FCKEDITOR) {
include_once XOOPS_ROOT_PATH . "/modules/tadtools/ck.php";
$ck = new CKEditor("tad_web", "NewsContent", $NewsContent);
$ck->setHeight(300);
$editor = $ck->render();
} else {
$editor = "<textarea name='NewsContent' id='NewsContent' class='span12'>{$NewsContent}</textarea>";
}
$_SHOW_NEWS_PLACE = $_SHOW_NEWS_MASTER = $_USE_NEWS_FORM_DATETIME = $_SHOW_NEWS_URL = $_SHOW_NEWS_TOCAL = $_SHOW_NEWS_UPLOAD = "";
$xoopsTpl->assign('formValidator_code', $formValidator_code);
$xoopsTpl->assign('op', $op);
$xoopsTpl->assign('NewsID', $NewsID);
$xoopsTpl->assign('NewsContent_editor', $editor);
$xoopsTpl->assign('SHOW_NEWS_UPLOAD', _SHOW_NEWS_UPLOAD);
$xoopsTpl->assign('SHOW_NEWS_TOCAL', _SHOW_NEWS_TOCAL);
$xoopsTpl->assign('toCal', $toCal);
$xoopsTpl->assign('USE_NEWS_FORM_DATETIME', _USE_NEWS_FORM_DATETIME);
$xoopsTpl->assign('NewsDate', $NewsDate);
$xoopsTpl->assign('SHOW_NEWS_URL', _SHOW_NEWS_URL);
$xoopsTpl->assign('NewsUrl', $NewsUrl);
$xoopsTpl->assign('SHOW_NEWS_MASTER', _SHOW_NEWS_MASTER);
$xoopsTpl->assign('NewsMaster', $NewsMaster);
$xoopsTpl->assign('SHOW_NEWS_PLACE', _SHOW_NEWS_PLACE);
$xoopsTpl->assign('NewsPlace', $NewsPlace);
$xoopsTpl->assign('NewsTitle', $NewsTitle);
$TadUpFiles->set_col("NewsID", $NewsID);
$upform = $TadUpFiles->upform();
$xoopsTpl->assign('upform', $upform);
}