Esempio n. 1
0
function allmenu()
{
    if (!S('menu')) {
        $Category = DD('Category');
        $result = $Category->selectByShow(1);
        foreach ($result as $key => $v) {
            if ($v['type'] == 1) {
                $v['href'] = $v['link'];
            } else {
                if ($v['mid'] == -1) {
                    $v['href'] = \Org\Helper\Route::CUrl('Content/Content/page', array('cid' => $v['id']));
                } else {
                    if ($v['isleaf'] == 1) {
                        $v['href'] = \Org\Helper\Route::CUrl('Content/Content/newslist', array('cid' => $v['id']));
                    } else {
                        $v['href'] = \Org\Helper\Route::CUrl('Content/Content/category', array('cid' => $v['id']));
                    }
                }
            }
            $result[$key] = $v;
        }
        S('menu', $result);
    } else {
        $result = S('menu');
    }
    return $result;
}
Esempio n. 2
0
                </p>
                 <p><a href="<?php 
echo \Org\Helper\Route::CUrl('Content/Content/page', array('cid' => 11));
?>
">Read more...</a></p>
            </div>
            <div class="widget span3">
                <h4>商务合作</h4>
                <p>
                 <?php 
$Business = \Org\Helper\TMP::SINGLEPAGE(12);
echo \Org\Util\String::msubstr(strip_tags($Business['content']), 0, 100);
?>
                </p>
                <p><a href="<?php 
echo \Org\Helper\Route::CUrl('Content/Content/page', array('cid' => 12));
?>
">Read more...</a></p>
            </div>
            <div class="widget span3">
                <h4>联系我们</h4>
                <p><i class="icon-map-marker"></i> Address: 江苏省 镇江市</p>
                <p><i class="icon-user"></i> QQ: 284909375</p>
                <p><i class="icon-envelope-alt"></i> Email: <a href="">284909375@qq.com</a></p>
                <p><i class="icon-envelope-alt"></i> Email: <a href="">hot12121212@163.com</a></p>
            </div>
        </div>
        <div class="footer-border"></div>
        <div class="row">
            <div class="copyright span4">
                <p>Copyright 2015 DreamCMS - All rights reserved. </p>