function show_action() { $this->view->page=front::get('page')?front::get('page'):1; $this->pagesize=config::get('list_pagesize'); $limit=(($this->view->page-1)*$this->pagesize).','.$this->pagesize; $special=new special(); $this->view->special=$special->getrow('spid='.front::get('spid')); $this->view->archive['title'] = $this->view->special['title']; $this->view->pages=true; $archive=new archive(); $archives=$archive->getrows('spid='.front::get('spid'),$limit); foreach($archives as $order=>$arc) { $archives[$order]['url']=archive::url($arc); $archives[$order]['catname']=category::name($arc['catid']); $archives[$order]['caturl']=category::url($arc['catid']); $archives[$order]['adddate']= sdate($arc['adddate']); $archives[$order]['stitle']= strip_tags($arc['title']); } $this->view->archives=$archives; $this->view->record_count=$archive->rec_count('spid='.front::get('spid')); front::$record_count=$this->view->record_count; $this->view->spid=front::get('spid'); if (front::get('t') == 'wap') { $this->out('wap/special_show.html'); return; } }
function list_action() { $this->view->page=front::get('page') ?front::get('page') : 1; $this->pagesize=config::get('list_pagesize'); $limit=(($this->view->page -1) * $this->pagesize).','.$this->pagesize; $area=new area(); $where='1'; if (front::get('province_id')) $where.=' and id='.front::get('province_id'); if (front::get('city_id')) $where.=' and id='.front::get('city_id'); if (front::get('section_id')) $where.=' and id='.front::get('section_id'); if (front::get('id')) $where.=' and id='.front::get('id'); $this->view->area=$area->getrow($where); $archive=new archive(); $where='1'; if (front::get('province_id')) $where.=' and province_id='.front::get('province_id'); if (front::get('city_id')) $where.=' and city_id='.front::get('city_id'); if (front::get('section_id')) $where.=' and section_id='.front::get('section_id'); if (front::get('id')) $where.=' and section_id='.front::get('id').' or city_id='.front::get('id').' or province_id='.front::get('id'); $archives=$archive->getrows($where,$limit,'listorder,aid desc'); foreach ($archives as $order=>$arc) { $archives[$order]['url']=archive::url($arc); $archives[$order]['catname']=category::name($arc['catid']); $archives[$order]['caturl']=category::url($arc['catid']); $archives[$order]['adddate']=sdate($arc['adddate']); $archives[$order]['stitle']=strip_tags($arc['title']); } $this->view->pages=true; if(front::get('id')!='') { $this->view->areaid=front::get('id'); }elseif(front::get('province_id')!='') { $this->view->areaid=front::get('province_id'); }elseif(front::get('city_id')!='') { $this->view->areaid=front::get('city_id'); }elseif(front::get('section_id')!='') { $this->view->areaid=front::get('section_id'); } $this->view->archive['title'] = area::name($this->view->areaid); $this->view->archives=$archives; $this->view->record_count=$archive->rec_count($where); front::$record_count=$this->view->record_count; if (front::get('t') == 'wap') { $this->out('wap/area_list.html'); return; } $this->render(); }
function show_action() { $tagname=urldecode(front::get('tag')); if(preg_match('/union/i',$tagname) || preg_match('/"/i',$tagname) ||preg_match('/\'/i',$tagname)){ exit('非法参数'); } $tag=new tag(); $tag=$tag->getrow('tagname="'.$tagname.'"'); $tagid=$tag['tagid']; $archives=array(); if($tagid) { $arctag=new arctag(); if(front::get('page')) $page=front::get('page'); else $page=1; $this->view->page=$page; $this->view->pagesize=config::get('list_pagesize'); $limit=(($this->view->page-1)*$this->view->pagesize).','.$this->view->pagesize; $this->view->record_count=$arctag->rec_count('tagid='.$tagid); if($this->view->record_count>$this->view->pagesize) $this->view->pages=true; front::$record_count=$this->view->record_count; $arctags=$arctag->getrows('tagid='.$tagid,$limit); $arcids=array(); foreach($arctags as $arctag) { $arcids[]=$arctag['aid']; } $archive=new archive(); $archives=$archive->getrows('aid in ('.implode(',',$arcids).')',null,'aid desc'); foreach($archives as $order=>$arc) { $archives[$order]['url']=archive::url($arc); $archives[$order]['catname']=category::name($arc['catid']); $archives[$order]['caturl']=category::url($arc['catid']); $archives[$order]['adddate']= sdate($arc['adddate']); $archives[$order]['stitle']= strip_tags($arc['title']); } } else echo lang('标签信息不存在'); $this->view->tag=$tagname; $this->view->archive['title'] = $tagname; $this->view->archives=$archives; if (front::get('t') == 'wap') { echo $this->fetch('wap/tag_show.html'); return; } $this->render(); }
function list_action() { $this->view->page=front::get('page') ?front::get('page') : 1; $this->pagesize=config::get('list_pagesize'); $limit=(($this->view->page -1) * $this->pagesize).','.$this->pagesize; $type=new type(); $types=array(); $types=$type->sons(front::get('typeid')); $types[]=front::get('typeid'); $where='typeid in ('.implode(',',$types).') AND checked=1 AND state=1'; $this->view->type=$type->getrow('typeid='.front::get('typeid')); $this->view->pages=@$this->view->type['ispages']; $this->view->typeid=front::get('typeid'); $archive=new archive(); $archives=$archive->getrows($where,$limit,'listorder desc,aid desc'); foreach ($archives as $order=>$arc) { $archives[$order]['url']=archive::url($arc); $archives[$order]['typename']=type::name($arc['typeid']); $archives[$order]['typeurl']=type::url($arc['typeid']); $archives[$order]['adddate']=sdate($arc['adddate']); $archives[$order]['stitle']=strip_tags($arc['title']); $archives[$order]['sthumb'] = @strstr($arc['thumb'], "http://") ? $arc['thumb'] : config::get('base_url') . '/' . $arc['thumb']; } $this->view->archives=$archives; $this->view->record_count=$archive->rec_count($where); front::$record_count=$this->view->record_count; $this->type=type::getInstance(); if (front::get('t') == 'wap') { $this->out('wap/type_list.html'); return; } $template=$this->type->type[front::get('typeid')]['template']; if ($template&&file_exists(TEMPLATE.'/'.$this->view->_style.'/'.$template)) $this->out($template); else { $tpl=type::gettemplate($this->view->typeid); if (type::getishtml($this->view->typeid)) { $path=ROOT.type::url($this->view->typeid,@front::$get['page']>1 ?front::$get['page'] : null); if (!preg_match('/\.[a-zA-Z]+$/',$path)) $path=rtrim(rtrim($path,'/'),'\\').'/index.html'; $this->cache_path=$path; } $this->out($tpl); } }
function asearch_action() { if (front::get('keyword') && !front::post('keyword')) front::$post['keyword'] = front::get('keyword'); front::check_type(front::post('keyword'), 'safe'); if (front::post('keyword')) { $this->view->keyword = trim(front::post('keyword')); session::set('keyword', $this->view->keyword); } elseif (session::get('keyword')) { $this->view->keyword = trim(session::get('keyword')); session::set('keyword', $this->view->keyword); } else { session::set('keyword', null); $this->view->keyword = session::get('keyword'); } $limit = (($this->view->page - 1) * $this->pagesize) . ',' . $this->pagesize; $articles = $this->archive->getrows("title like '%" . $this->view->keyword . "%'", $limit); foreach ($articles as $order => $arc) { $articles[$order]['url'] = archive::url($arc); $articles[$order]['catname'] = category::name($arc['catid']); $articles[$order]['caturl'] = category::url($arc['catid']); $articles[$order]['adddate'] = sdate($arc['adddate']); $articles[$order]['stitle'] = strip_tags($arc['title']); } $this->view->articles = $articles; $this->view->archives = $articles; $this->view->record_count = $this->archive->record_count; }
<div class="blank30"></div> <dl class="comment_list"> <?php if (is_array($comments) && !empty($comments)) { foreach ($comments as $comment) { ?> <dt><strong><?php echo lang('username'); ?> :<?php echo $comment['username']; ?> </strong><span><?php echo sdate($comment['adddate'], 'Y-m-d H:i'); ?> </span></dt> <dd><?php echo strip_tags($comment['content']); ?> </dd> <?php if (!isset($i)) { $i = 0; } $i++; if ($i < count($comments)) { echo "<br>"; } else { unset($i);
?> </ul> </div> <!--最新评论资讯显示--><?php block("spacenews", "type/{$channel}/order/i.lastpost DESC/limit/0,10/subjectlen/26/subjectdot/0/cachetime/7500/cachename/newnews"); ?> <div class="global_module margin_bot10 bg_fff"> <div class="global_module2_caption"><h3>最新评论</h3></div> <ul class="global_tx_list3"> <?php if (is_array($_SBLOCK['newnews'])) { foreach ($_SBLOCK['newnews'] as $value) { ?> <li><span class="box_r"><?php sdate('y-m-d', $value[lastpost]); ?> </span><a href="<?php echo $value['url']; ?> " title="<?php echo $value['subjectall']; ?> "><?php echo $value['subject']; ?> </a></li> <?php } } ?>
foreach ($iarr as $value) { ?> <dt><a href="/viewnews-<?php print_r($value['itemid']); ?> .html"><?php echo $value['subject']; ?> </a> <a class="cat" href="/category-<?php echo $channels['menus'][$value['type']]['nameid']['html']; ?> "><?php echo $channels['menus'][$value['type']]['name']; ?> </a> <i><?php sdate("Y-n-d", $value["dateline"]); ?> </i></dt> <dd><?php print_r(mb_substr(strip_tags($value['message']), 0, 105, 'UTF-8')); ?> ...</dd> <dd class="url">www.toboedu.com/viewnews-<?php print_r($value['itemid']); ?> .html - <a href="/viewnews-<?php print_r($value['itemid']); ?> .html">Cached</a></dd> <?php }
?> </a></h5> <p><?php echo $value['message']; ?> </p> <p class="user_blog_op"><a class="more" href="<?php echo $value['url']; ?> ">点击此处查看原文</a> <span> <?php if ($_SGLOBAL['timestamp'] - $value['dateline'] > 86400) { ?> <?php sdate("Y-m-d", $value[dateline]); } else { echo intval(($_SGLOBAL['timestamp'] - $value['dateline']) / 3600 + 1); ?> 小时之前 <?php } ?> | <?php if ($_GET['op'] == 'bbs') { ?> 评论(<?php echo $value['replies']; ?> ) | 阅读(<?php
<?php echo $Form->end(); } ?> <div class="comment"> <div class="author"><?php echo h($comment->author); ?> </div> <div class="content"> <?php echo h($comment->content); ?> </div> <div class="byline"> <?php echo '<time datetime="' . date('c', $comment->created) . '" title="' . ldate($comment->created) . '">' . sdate($comment->created) . '</time>'; ?> </div> </div> </li> <?php } ?> </ul> <?php echo $this->embed('comments/pagination.html');
:</strong></div> <div class="blank30"></div> <dl class="comment_list"> <?php if (is_array($data) && !empty($data)) { foreach ($data as $d) { ?> <dt><strong><?php echo lang('username'); ?> :<?php echo $d['username']; ?> </strong><span><?php echo sdate($d['adddate'], 'Y-m-d H:i'); ?> </span></dt> <dd><?php echo $d['content']; ?> </dd> <?php if ($d['reply']) { ?> <dd class="admin_reply"> <?php echo lang('adminreply'); ?> : <?php
/cp.php?ac=models&op=view&itemid=<?php echo $value['itemid']; ?> &do=<?php echo $do; ?> &nameid=<?php echo $cacheinfo['models']['modelname']; ?> "> <?php } echo $value['subject']; ?> </a> <?php sdate("m-d H:i", $value[dateline], 1); ?> </span></td> <td width="130"> </td> <?php if ($do == 'me') { ?> <td width="40"> <a href="<?php echo S_URL; ?> /cp.php?ac=models&op=edit&itemid=<?php echo $value['itemid']; ?>
if ($_SCONFIG['commshowip']) { ?> ip: <?php if ($value['hideip']) { ?> *.*.*.* <?php } else { echo $value['ip']; } } ?> </div> <span class="post_time"><?php sdate("Y-m-d H:i:s", $value["dateline"], 1); ?> </span> <a name="cid_<?php echo $value['cid']; ?> "></a> </div> <div id="cid_<?php echo $value['cid']; ?> " class="body"> <?php echo $value['message']; ?> </div>
function index_archive($catid) { $index_archive = new archive(); $index_category = category::getInstance(); $index_view_category = $index_category->category; if (front::get('page')) $page = front::get('page'); else $page = 1; $index_view_page = $page; front::check_type($page); $_catpage = category::categorypages($catid); if ($_catpage) { $index_pagesize = $_catpage; } else { $index_pagesize = config::get('list_pagesize'); } front::check_type($index_pagesize); $index_view_categorys = category::getpositionlink2($catid); $topid = category::gettopparent($catid); if (!isset($index_category->category[$catid]) || !isset($index_category->category[$topid])) { $this->out('message/error.html'); } $limit = (($index_view_page - 1) * $index_pagesize) . ',' . $index_pagesize; $categories = array(); if (@$index_category->category[$catid]['ispages']) $categories = $index_category->sons($catid); $categories[] = $catid; $index_view_pages = @$index_category->category[$catid]['ispages']; if (!rank::catget($catid, $index_view_usergroupid)) $this->out('message/error.html'); $order = "`listorder` asc,`adddate` DESC"; if (@$index_category->category[$catid]['includecatarchives']) $articles = $index_archive->getrows('catid in (' . implode(',', $categories) . ') and checked=1', $limit, $order); else $articles = $index_archive->getrows('catid=' . $catid . ' and checked=1', $limit, $order); if (!is_array($articles)) { $this->out('message/error.html'); } foreach ($articles as $order => $arc) { $articles[$order]['url'] = archive::url($arc); $articles[$order]['catname'] = category::name($arc['catid']); $articles[$order]['caturl'] = category::url($arc['catid']); $articles[$order]['adddate'] = sdate($arc['adddate']); $articles[$order]['stitle'] = strip_tags($arc['title']); $articles[$order]['strgrade'] = archive::getgrade($arc['grade']); } $index_view_archives = $articles; if (@$index_category->category[$catid]['includecatarchives']) $index_view_record_count = $index_archive->rec_count('catid in(' . implode(',', $categories) . ')'); else $index_view_record_count = $index_archive->rec_count('catid=' . $catid); front::$record_count = $index_view_record_count; return $index_view_archives; }
<div class="btn-group pull-right"> <button type="button" class="btn btn-default" title="Параметры отчета" onclick='toggle_report_toolbar()'><i class='fa fa-cog'></i></button> </div> </div> </div> <!-- ./col-md-12 --> </div> <!-- ./row --> <input type='hidden' id='usd_selected' value='1'> <input type='hidden' id='type_selected' value='clicks'> <input type='hidden' id='sales_selected' value='0'> <?php // ******************************************************** if (!empty($arr_data)) { echo "<h4>Лента переходов за " . sdate($date) . '<span style="float:right;">' . "<a title='Экспорт в Excel' href='?csrfkey=" . _e(CSRF_KEY) . "&ajax_act=excel_export&date=" . _e($date) . "'><img src='" . _HTML_TEMPLATE_PATH . "/img/icons/table-excel.png'></a></span><span style='float:right; margin-right:16px;'><a title='Экспорт в TSV' href='?csrfkey=" . _e(CSRF_KEY) . "&ajax_act=tsv_export&date=" . _e($date) . "'><img src='" . _HTML_TEMPLATE_PATH . "/img/icons/table-tsv.png'></a></span>" . '<div class="col-xs-4" style="float: right; margin-bottom: 7px;"><form action="" method="get"><input type="hidden" name="filter_by" value="search"/><input type="hidden" name="date" value="' . $date . '"/><input name="search" class="form-control" " type="text" value="' . _e($search) . '" placeholder="поиск" /></form></div>' . "</h4>"; echo "<table class='table table-striped' id='stats-flow'><thead>\n\t\t\t<tr><th></th><th></th><th>Ссылка</th><th>Источник</th><th>Кампания</th><th colspan=\"6\">Реферер</th><th></th></tr>\n\t\t</thead>"; echo "<tbody>"; foreach ($arr_data as $row) { require _TRACK_SHOW_COMMON_PATH . '/pages/stats-flow-row.php'; } echo "</tbody></table>"; if ($total > 20) { echo '<a href="#" onclick="return load_flow(this)" class="center-block text-center">Показать больше</a>'; ?> <script type="text/javascript"> function load_flow(obj) { $.post( 'index.php?ajax_act=a_load_flow', { offset: $('#stats-flow tbody').children().length / 2 , date: '<?php
if (!empty($mine_list)) { ?> <?php $hotnews2 = @array_slice($mine_list, 5, 17); ?> <?php } ?> <?php if (is_array($_SBLOCK['mine_list'])) { foreach ($_SBLOCK['mine_list'] as $key => $value) { ?> <li><span class="box_r"><?php sdate('y-m-d', $value[dateline]); ?> </span><a href="<?php echo $value['url']; ?> " title="<?php echo $value['subjectall']; ?> "><?php echo $value['subject']; ?> </a></li> <?php } }
function announ($num=10) { $announcement=new announcement(); $announcs=$announcement->getrows(null,$num); foreach ($announcs as $order=>$annc) { $announcs[$order]['adddate']=sdate($annc['adddate']); $announcs[$order]['url']=announcement::url($annc['id']); } return $announcs; }
function search_action() { if(front::get('keyword') &&!front::post('keyword')) front::$post['keyword']=front::get('keyword'); front::check_type(front::post('keyword'),'safe'); if(front::post('keyword')) { $this->view->keyword=trim(front::post('keyword')); session::set('keyword',$this->view->keyword); } else { session::set('keyword',null); $this->view->keyword=session::get('keyword'); } $type = $this->view->type; $condition = ""; if(front::post('catid')) { $condition .= "catid = '".front::post('catid')."' AND "; } $condition .= "(title like '%".$this->view->keyword."%'"; $sets=settings::getInstance()->getrow(array('tag'=>'table-fieldset')); $arr = unserialize($sets['value']); if(is_array($arr['archive']) &&!empty($arr['archive'])) { foreach ($arr['archive'] as $v) { if($v['issearch'] == '1') { $condition .= " OR {$v['name']} like '%{$this->view->keyword}%'"; } } } $condition .= ")"; $order = "`listorder` desc,1 DESC"; $limit=(($this->view->page-1)*$this->pagesize).','.$this->pagesize; $articles=$this->archive->getrows($condition,$limit,$order); foreach($articles as $order=>$arc) { $articles[$order]['url']=archive::url($arc); $articles[$order]['catname']=category::name($arc['catid']); $articles[$order]['caturl']=category::url($arc['catid']); $articles[$order]['adddate']= sdate($arc['adddate']); $articles[$order]['stitle']= strip_tags($arc['title']); } $this->view->articles=$articles; $this->view->archives=$articles; $this->view->record_count=$this->archive->record_count; }
public function visitCD($cd) { $logline = "{$cd->title} by {$cd->band} was purchased for {$cd->price} "; $logline .= "at " . sdate('r') . "\n"; file_put_contents('/logs/purchases.log', $logline, FILE_APPEND); }
function make_list_action() { $servip = gethostbyname($_SERVER['SERVER_NAME']); if($servip==front::ip()&&front::get('ishtml')==1){ }else{ chkpw('cache_category'); } header('Cache-control: private, must-revalidate'); @set_time_limit(0); if (!front::post('submit')) return; $case = 'archive'; $act = 'list'; $_GET = array('case' => $case, 'act' => $act); $front = new front(); front::$admin = false; front::$html = true; front::$rewrite = false; $case = $case . '_act'; $case = new $case(); $case->init(); $method = $act . '_action'; $totalpage = 100; $time_start = time::getTime(); $category = category::getInstance(); $categories = $category->sons(front::post('catid')); $categories[] = front::post('catid'); $cpage = 0; $archive_all = new archive(); foreach ($categories as $key => $catid) { $new_categories = $category->sons($catid); $new_categories[] = $catid; $archive_num[$catid] = $archive_all->rec_count('catid in(' . implode(',', $new_categories) . ') and checked=1 and `state`=1'); } $i = 0; foreach ($categories as $catid) { if ($catid == 0) continue; if (!category::getishtml($catid)) continue; front::$get['catid'] = $catid; $case->view->categories = category::getpositionlink2($catid); $_categories = $category->sons($catid); $_categories[] = $catid; $case->view->ifson = category::hasson($catid); for (front::$get['page'] = 1;; front::$get['page']++) { $view = $case->view; $_catpage = category::categorypages($catid); if ($_catpage) { $pagesize = $_catpage; } else { $pagesize = config::get('list_pagesize'); } $limit = ((front::$get['page'] - 1) * $pagesize) . ',' . $pagesize; $archive = new archive(); $tops = array(); $tops = $archive->getrows("checked=1 AND state=1 AND toppost!=0",0,'toppost DESC,listorder=0,listorder ASC,aid DESC'); if (@$category->category[$catid]['includecatarchives']) { $case->view->archives = $archive->getrows('catid in(' . implode(',', $_categories) . ') and checked=1 and `state`=1', $limit, 'listorder=0,`listorder` asc,`adddate` DESC'); } else { $case->view->archives = $archive->getrows("catid=$catid and checked=1 and `state`=1", $limit, 'listorder=0,`listorder` asc,`adddate` DESC'); } $case->view->page = front::$get['page']; if(is_array($tops) && !empty($tops)){ foreach($tops as $order => $arc){ if($arc['toppost'] == 3){ $tops[$order]['title'] = "[全站置顶]".$arc['title']; } if($arc['toppost'] == 2){ $subcatids = $category->sons($arc['catid']); if($arc['catid'] != front::get('catid') && !in_array(front::get('catid'), $subcatids)){ unset($tops[$order]); }else{ $tops[$order]['title'] = "[栏目置顶]".$arc['title']; } } } $case->view->archives = array_merge($tops , $case->view->archives); } foreach ($case->view->archives as $order => $arc) { $articles = $arc; if (!$arc['introduce']) $arc['introduce'] = cut($arc['content'], 200); $articles['url'] = archive::url($arc); $articles['catname'] = category::name($arc['catid']); $articles['caturl'] = category::url($arc['catid']); $articles['image'] = @strstr($arc['image'], "http://") ? $arc['image'] : config::get('base_url') . '/' . $arc['image']; $articles['strgrade'] = archive::getgrade($arc['grade']); $articles['adddate'] = sdate($arc['adddate']); $articles['buyurl'] = url('archive/orders/aid/' . $arc['aid']); $articles['stitle'] = strip_tags($arc['title']); if(strtolower(substr($arc['thumb'],0,7)) == 'http://'){ $articles['sthumb'] = $arc['thumb']; }else{ $articles['sthumb'] = config::get('base_url').'/'.$arc['thumb']; } if($arc['strong']) { $articles['title'] = '<strong>'.$arc['title'].'</strong>'; } if($arc['color']) { $articles['title'] = '<font style="color:'.$arc['color'].';">'.$articles['title'].'</font>'; } $case->view->archives[$order] = $articles; } if (!isset($page_count)) { front::$record_count = $case->view->record_count = $archive_num[$catid]; $case->view->page_count = ceil($case->view->record_count / $pagesize); $page_count = $case->view->page_count; } $case->view->catid = $catid; $case->view->topid = category::gettopparent($catid); $case->view->parentid = $category->getparent($catid); $case->view->pages = @$category->category[$catid]['ispages']; if (front::get('page') > 1 && front::get('page') > $case->view->page_count) { $page_count = null; break; } if (front::get('page') > 1 && !@$category->category[$catid]['ispages']) { $page_count = null; break; } $template = @$category->category[$catid]['template']; if ($template && file_exists(TEMPLATE . '/' . $case->view->_style . '/' . $template)) $tpl = $template; else $tpl = category::gettemplate($case->view->catid); $content = $case->fetch($tpl); $path = ROOT . category::url($catid, front::$get['page'] > 1 ? front::$get['page'] : null, true); if (!preg_match('/\.[a-zA-Z]+$/', $path)) $path = rtrim(rtrim($path, '/'), '\\') . '/index.html'; $path = rtrim($path, '/'); $path = rtrim($path, '\\'); $path = str_replace('//', '/', $path); tool::mkdir(dirname($path)); file_put_contents($path, $content); $indexpath = dirname($path) . '/index.html'; if (front::$get['page'] == 1 && $indexpath != ROOT . '/index.html') { file_put_contents($indexpath, $content); $cpage++; } $cpage++; $case->view = $view; $case->view->archives = null; } $i++; } if ($cpage > 0) front::flash("成功生成html <b>$cpage</b> 页!"); else front::flash("没有生成html!"); front::$admin = true; }
/m.php?name=<?php echo $modelsinfoarr['modelname']; ?> &mo_<?php echo $tmpkey; ?> =<?php echo rawurlencode($value[$tmpkey]); ?> "><?php echo $value[$tmpkey]; ?> </a> <?php } else { sdate("m月d日 H:i", $value[$tmpkey]); } ?> </li> <?php } } else { ?> <li class="maxcontent"><em><?php echo $tmpvalue['fieldcomment']; ?> :</em> <?php if (is_array($value[$tmpkey])) { foreach ($value[$tmpkey] as $dkey => $dvalue) { if ($tmpvalue['formtype'] == 'textarea') {
</div> <div class="t_box_4 t_list_14"> <h1><?php echo $news['subject']; ?> </h1> <div id="iiContent"> <div style="padding:0 0 20px 20px;padding-bottom:10px;float:right;width:300px;height:250px;" id="ad_box_2">加载中...</div> <h5>来源:<?php echo $news['newsfrom']; ?> 发布时间:<?php sdate('Y年n月d日 H:i', $news["dateline"]); ?> <!--浏览<?php echo $news['viewnum']; ?> 次--></h5> <?php if (!empty($relativetagarr)) { ?> <div id="article_tag" class="t_list_15">TAG: <?php if (is_array($relativetagarr)) { foreach ($relativetagarr as $value) { $svalue = rawurlencode($value); ?> <a href="<?php