当前位置: 首页>>代码示例>>PHP>>正文


PHP cmsTemplate::printEot方法代码示例

本文整理汇总了PHP中cmsTemplate::printEot方法的典型用法代码示例。如果您正苦于以下问题:PHP cmsTemplate::printEot方法的具体用法?PHP cmsTemplate::printEot怎么用?PHP cmsTemplate::printEot使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cmsTemplate的用法示例。


在下文中一共展示了cmsTemplate::printEot方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: elseif

} elseif ($action == 'del') {
    define('AJAX', 1);
    S::gp(array('ids', 'column_id'));
    /*
    if(!checkEditPurview($windid,$column_id)) {
    	Showmsg('您没有权限删除帖子');
    }
    */
    if (strpos($ids, ',')) {
        $ids = explode(',', $ids);
    }
    $articleDB = C::loadDB('article');
    $list = $articleDB->getArticlesByIds(is_array($ids) ? $ids : array($ids));
    if (empty($list)) {
        Showmsg('data_error');
    }
    foreach ($list as $key => $value) {
        if (!checkEditPurview($windid, $value['column_id'])) {
            Showmsg('您没有权限删除帖子');
        }
    }
    if (!$articleService->deleteArticlesToRecycle($ids)) {
        echo 'error';
        ajax_footer();
    }
    echo 'success';
    ajax_footer();
}
require_once M_P . 'require/header.php';
require cmsTemplate::printEot('list');
footer();
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:m_list.php

示例2: elseif

} elseif ($action == 'deletepage') {
    S::gp(array('id', 'page'));
    $articleModule = $articleService->getArticleModule($id);
    if (!checkEditPurview($windid, $articleModule->columnId) && $articleModule->user != $windid) {
        Showmsg('你没有权限编辑本栏目的文章');
    }
    $articleModule->deletePage($page);
    $articleModule->showError();
    $result = $articleService->updateArticle($articleModule);
    if ($result) {
        refreshto("{$basename}q=post&action=edit&id={$id}&page=1", 'operate_success', 2);
    } else {
        Showmsg('删除分页失败');
    }
}
require cmsTemplate::printEot('post');
footer();
function initFileTypeInfo($db_uploadfiletype)
{
    $uploadfiletype = $db_uploadfiletype ? unserialize($db_uploadfiletype) : array();
    $attachAllow = pwJsonEncode($uploadfiletype);
    $imageAllow = pwJsonEncode(getAllowKeysFromArray($uploadfiletype, array('jpg', 'jpeg', 'gif', 'png', 'bmp')));
    return array($attachAllow, $imageAllow);
}
function initAttach($attachs)
{
    $attach = '';
    if ($attachs) {
        foreach ($attachs as $key => $value) {
            $attach .= "'{$key}' : ['{$value['name']}', '{$value['size']}', '{$value['attachurl']}', '{$value['type']}', '0', '0', '', '{$value['descrip']}'],";
        }
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:m_post.php

示例3: unserialize

if (checkReplyPurview()) {
    // 编辑器
    $uploadfiletype = $db_uploadfiletype ? unserialize($db_uploadfiletype) : array();
    $attachAllow = pwJsonEncode($uploadfiletype);
    $imageAllow = pwJsonEncode(getAllowKeysFromArray($uploadfiletype, array('jpg', 'jpeg', 'gif', 'png', 'bmp')));
}
// 评论列表
$reply_perpage = 10;
!$replypage && ($replypage = 1);
$cmscomment = C::loadClass('cmscommentservice');
$replyCount = $cmscomment->getCommentsCountByArticleId($id);
$cmsReplyList = $cmscomment->getCommentsByArticleId($id, $replypage, $reply_perpage);
$replynumofpage = ceil($replyCount / $reply_perpage);
$replyPages = numofpage($replyCount, 1, $replynumofpage, "pw_ajax.php?action=cmsreply&type=listcomment&id={$id}&", 10, 'getCommentList');
require_once M_P . 'require/header.php';
require cmsTemplate::printEot('view');
footer();
function cookContent($articleModule, $page)
{
    global $db_windpost;
    $content = $articleModule->getPageContent($page);
    $articleModule->showError();
    //$content = showface($content);
    $content = str_replace(array(" "), ' ', $content);
    $content = str_replace(array("\n", "\r\n"), '<br />', trim($content, "\r\n \n \r"));
    if ($articleModule->ifAttach && is_array($articleModule->attach)) {
        $aids = attachment($articleModule->content);
    }
    $endAttachs = array();
    foreach ($articleModule->attach as $at) {
        if (in_array($at['attach_id'], $aids)) {
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:m_view.php


注:本文中的cmsTemplate::printEot方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。