コード例 #1
0
 public function delete($request,$response){
     $id = $request->id;
     $flagvalue=1;
     $param=array('id' => $request->id,'flag'=>$flagvalue);       
     ZhuantiTopicClient::getInstance()->update($param);
     $url = $response->router->urlfor('topic/showlist',array ('id' => $request->id));
     $response->setRedirect($url);
 }
コード例 #2
0
 </div>
 <div class="sidebar-t6">
     <!--start xianxinSideBox-->
     <?php
     if(empty($zhuantiDrarr) == false){
     ?>
     <div class="xianxinSideBox mb10">
         <h4 class="xianxinSideBox_h4">本期嘉宾</h4>
         <?php foreach($zhuanti->zhuanTiDoctorRefs as $zhuantiDrRef)
               {
                 $doctor = $zhuantiDrRef->doctor;
                 if (!$doctor instanceof Doctor)
                 {
                     continue;
                 }
                 $headImgUrl = ZhuantiTopicClient::getInstance()->getHeadImageByZhuanti($doctor);
                 $_space = $doctor->getSpace();
                 if($_space instanceof Space)
                 {
                     $doctorUrl = $doctor->getUrl();
                 }
                 else
                 {
                     $doctorUrl = $_space->getUrl();
                 }
         ?>
         <div class="p15">
             <!--start xianxinSideBox_list-->
             <div class="clearfix xianxinSideBox_list">
                 <table class="fl mr10"><tr><td width="94px" height="94px"><a href="<?=$doctorUrl ?>" target="_blank"><img src="<?=$headImgUrl ?>" alt="" class="xianxin_topic_img" /></a></td></tr></table>
               <div class="fl">