コード例 #1
0
            ?>
                  </ul></div><?php 
        }
        ?>
            </li><?php 
    }
}
?>
         </ul>
      </nav>
   </div>
</header>

<?php 
$term = sp_get_term($_GET['id']);
$child_terms = sp_get_child_terms($term['parent']);
$pterm = sp_get_term($term['parent']);
$nav_label = $pterm['name'];
$lists = sp_sql_posts_paged_bycatid($_GET['id'], "order:post_modified DESC,listorder ASC;", 33, "{prev}{liststart}{list}{listend}{next}");
$kaoyan_img = sp_getslide('kaoyan_img');
$kyimg = $kaoyan_img[0];
$nav_label = isset($nav_label) ? $nav_label : $post_title;
$nid = sp_nav_id($nav_label);
$nav_cid = sp_nav_cid($nid);
if ($nav_cid == 1) {
    $navList = tree_to_list($navTree);
} else {
    $navT = sp_get_menu_tree($nav_cid);
    $navList = tree_to_list($navT);
}
$snav = getParents($navList, $nid);
コード例 #2
0
</div>

<?php 
$ntime = date('Y-m-d');
if (isset($_GET['ntime'])) {
    if ($_GET['ntime'] == 'begin') {
        $lists = sp_sql_posts_paged("cid:{$cat_id};order:post_keywords asc,listorder desc;where:post_keywords>'{$ntime}' or post_keywords = '{$ntime}';", 20, "{prev}{liststart}{list}{listend}{next}");
    } else {
        if ($_GET['ntime'] == 'over') {
            $lists = sp_sql_posts_paged("cid:{$cat_id};order:post_keywords desc,listorder desc;where:post_keywords<'{$ntime}';", 20, "{prev}{liststart}{list}{listend}{next}");
        }
    }
} else {
    $lists = sp_sql_posts_paged("cid:{$cat_id};order:post_keywords asc,listorder desc;where:post_keywords>'{$ntime}';", 20, "{prev}{liststart}{list}{listend}{next}");
}
$cterm = sp_get_child_terms($_GET['id']);
?>
<section class="contentbox">
	<div class="container">
    	<div class="conboxcon">
        	<div class="conboxcon_1">
                <div class="lecturecont">
                    <div class="lectext" style="margin-bottom:1px;">
                    	<div>
                    		<img class="img_float_left" src="/tpl/hualibootx/Public/images/jiangzuo.jpg" alt="" style="width:240px;height:102px;">
							<div class="oh">
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<?php 
echo $description;
?>
(注:每期讲座都可以提前一周前往一楼总服务台报名登记。听满8次讲座的同学可获得相应学分。参见“<a href="http://library.hualixy.com/index.php?g=portal&m=article&a=index&id=69" target="_blank">参加华图一小时讲座怎么加分</a>”)&nbsp;&nbsp;<a href="http://library.hualixy.com/data/upload/ueditor/20150823/55d9323cc0674.xls" target="_blank"><b>听课表下载</b></a>
コード例 #3
0
        ?>
</a> &gt;<?php 
    }
}
?>
            &nbsp;<span><?php 
echo $nav_label;
?>
</span>
        </div>
    </div>
</div>
</div>
<?php 
$term_id = I('get.id', 1);
$childterm = sp_get_child_terms($term_id);
$cid1 = $childterm[0]['term_id'];
$cid2 = $childterm[1]['term_id'];
$lists1 = sp_sql_posts_paged("cid:{$cid1};order:listorder ASC,post_modified DESC;", 50, "{prev}{liststart}{list}{listend}{next}");
$lists1 = $lists1['posts'];
$lists2 = sp_sql_posts_paged("cid:{$cid2};order:listorder ASC,post_modified DESC;", 50, "{prev}{liststart}{list}{listend}{next}");
$lists2 = $lists2['posts'];
$list_c_1 = count($lists1);
$list_c_2 = count($lists2);
if ($list_c_1 > $list_c_2) {
    $fnum_1 = $list_c_1 - $list_c_2;
} else {
    if ($list_c_1 < $list_c_2) {
        $fnum_2 = $list_c_2 - $list_c_1;
    } else {
        $fnum_1 = 0;
コード例 #4
0
</h2>
						</div> <!-- /.section-title -->
					</div> <!-- /.col-md-12 -->
				</div> <!-- /.row -->
				
				<div class="row">
					<div class="col-md-12" id="key4">
						&nbsp;&nbsp;&nbsp;&nbsp;
						<?php 
                echo $lvo['description'];
                ?>
					</div>
				</div><br>
				<?php 
                $tid = $lvo['term_id'];
                $ctid = sp_get_child_terms($tid);
                $ctid = array_chunk($ctid, 2);
                ?>
				<?php 
                if (is_array($ctid)) {
                    $i = 0;
                    $__LIST__ = $ctid;
                    if (count($__LIST__) == 0) {
                        echo "";
                    } else {
                        foreach ($__LIST__ as $key => $ct) {
                            $mod = $i % 2;
                            ++$i;
                            ?>
<div class="row">
					<?php