" /> <div class="pb10 lh180"> <span class="green3">标题:</span> <input name="title" id ="title" type="text" readonly="readonly" class="inp_text2" value="[转]<?php echo $article->title; ?> " /> </div> <div class="pb20 lh180"> <p class="green3">内容: <?php $CopyRightTip = '转载自:' . $article->getUrl(); echo '<p style="margin-bottom:5px">' . $CopyRightTip . '</p>'; $content = htmlspecialchars_decode(Seolink::directOutPut($article->content)); if (strpos($space->extraOptions, 'ArticleEmbeddedLink=0') === FALSE) { $content = preg_replace('/^(.{300}.*?)\\<(br|\\/p|\\/div|\\/center)/is', '\\1' . $space->getFullUrl() . '<\\2', $content); echo $content; } ?> </p> <textarea style="display:none" name="content" ><p><?php echo $CopyRightTip; ?> </p><?php echo $content; ?> </textarea> </div>
public function addReTopic($request, $response) { /*{{{*/ $groupIds = $request->getRequest('groupIds', array()); $groupList = DAL::get()->find('regroup', $groupIds); $article = DAL::get()->find('article', $request->articleId); if (false == $article->isNull()) { if (false == empty($groupIds) && false === array_search('refused', $groupIds)) { foreach ($groupList as $group) { if (false == $group->isNull()) { $reBoard = DAL::get()->find('reboard', $group->reboardId); if ($reBoard->isNull()) { continue; } $content = htmlspecialchars_decode(Seolink::directOutPut($article->content)); if (strpos($this->space->extraOptions, 'ArticleEmbeddedLink=0') === FALSE) { $content = preg_replace('/^(.{300}.*?)\\<(br|\\/p|\\/div|\\/center)/is', '\\1' . $this->space->getFullUrl() . '<\\2', $content); } $content = preg_replace("/<\\/?a[^>]*>/i", "", $content); $content = $content . "\n\n<span style='color:#007BC1'>希望此文对大家有帮助,欢迎大家在这里跟帖讨论,发表自己的心得与感想。祝大家早日康复!</span>"; ResidentEvilClient::getInstance()->createTopic($group->space, $reBoard, $group->space->user, $article->title, $content, $article->id); } } } else { ArticleClient::getInstance()->modifyArticle($article->id, array('reproduce' => Article::REPRODUCE_REFUSED)); } } $response->setRedirect($response->router->urlfor('adminarticle/newpostcomplete', array('id' => $article->id))); }
<?php include_once dirname(__file__).'/../_headergohome.php' ?> <div class="disease_nav_div_2"> <div class="disease_nav"> <ul> <li class="current"><a href="<?=$router->urlfor('disease/info', array('key' => $disease->key))?>">¼²²¡½éÉÜ</a></li> <li class=""><a class="last" href="<?=$router->urlfor('disease/getrelateddiseaselist', array('key'=>$disease->key))?>">Ïà¹Ø¼²²¡</a></li> </ul> <div class="clear_l"></div> </div> </div> <?php $content = $diseaseIntro['fld_diseasecontent']; $content = Seolink::directOutPut($content); $content = str_replace('www.haodf.com', URL_PREFIX.'m.haodf.com/touch', $content); ?> <div class="main_content_box"> <div class="con_top"> <h1>ʲôÊÇ<?=$disease->name?>£¿</h1> </div> <div class="con_con black" style="padding-top:10px;"> <p><?php echo $content; ?></p> </div> </div> <style> .con_con a{ color:#000; display:inline;} .con_con strong{ font-weight:normal;} </style> <script type="text/javascript">