예제 #1
0
파일: addfloor.php 프로젝트: jechiy/PHPWind
}
//分类信息主题帖
if ($read['modelid']) {
    $modelid = $read['modelid'];
    $topicvalue = $postTopic->getTopicvalue($read['modelid']);
    $initSearchHtml = $postTopic->initSearchHtml($read['modelid']);
    foreach ($postTopic->topicmodeldb as $key => $value) {
        if ($value['cateid'] == $foruminfo['cateid']) {
            $modeldb[$key] = $value;
        }
    }
}
//团购主题帖
if ($read['special'] > 20) {
    $pcid = $read['special'] - 20;
    list($fieldone, $topicvalue) = $postCate->getCatevalue($pcid);
    $initSearchHtml = $postCate->initSearchHtml($pcid);
    is_array($fieldone) && ($read = array_merge($read, $fieldone));
    $isadminright = $postCate->getAdminright($pcid, $read['authorid']);
    list($pcuid) = $postCate->getViewright($pcid, $tid);
    $payway = $fieldone['payway'];
    $ifend = $read['endtime'] < $timestamp ? 1 : 0;
}
//活动主题帖
if ($read['special'] == 8) {
    $actmid = $postActForBbs->getActmid($tid);
    //获取子分类id
    list($topicvalue, $activityValue) = $postActForBbs->getActValue($actmid);
    $orderMemberList = $postActForBbs->getOrderMemberList($actmid, $tid, $fid, $activityValue['paymethod'], $read['authorid']);
    //报名列表
    $actRecommendHtml = $postActForBbs->getActRecommendHtml($actmid, $tid, $activityValue['recommend']);
예제 #2
0
require_once R_P . 'require/bbscode.php';
S::gp(array('pcid', 'modelid'), 'P', 2);
$fielddb = array();
$data = array();
$atc_content = S::escapeChar(stripslashes(S::getGP('atc_content', 'P')));
$pcinfo = S::escapeChar(stripslashes(S::getGP('pcinfo', 'P')));
if ($modelid > 0) {
    $query = $db->query("SELECT fieldid,fieldname FROM pw_topicfield WHERE modelid=" . S::sqlEscape($modelid));
    while ($rt = $db->fetch_array($query)) {
        $fielddb[$rt['fieldid']] = $rt['fieldname'];
    }
    $pcdb = getPcviewdata($pcinfo, 'topic');
    L::loadClass('posttopic', 'forum', false);
    $postTopic = new postTopic($data);
    $topicvalue = $postTopic->getTopicvalue($modelid, $pcdb);
} elseif ($pcid > 0) {
    $query = $db->query("SELECT fieldid,fieldname FROM pw_pcfield WHERE pcid=" . S::sqlEscape($pcid));
    while ($rt = $db->fetch_array($query)) {
        $fielddb[$rt['fieldname']] = $rt['fieldid'];
    }
    $pcdb = getPcviewdata($pcinfo, 'postcate');
    L::loadClass('postcate', 'forum', false);
    $postCate = new postCate($data);
    list(, $topicvalue) = $postCate->getCatevalue($pcid, $pcdb);
}
$atc_content = wordsConvert($atc_content);
$atc_content = convert($atc_content, $db_windpost);
$preatc = str_replace("\n", "<br>", $atc_content);
require_once R_P . 'require/header.php';
require_once PrintEot('preview');
footer();