首页 > 程序开发 > Web开发 > PHP教程 > PHP框架专栏 > Yii > 正文
花了一个多小时写的Yii-实例百科(视图文件)
2016-01-06       个评论      
收藏    我要投稿
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta http-equiv="Content-Language" content="zh-CN"/>
        <title><!--{$baike.title}--> - <!--{$site_name}-->实例百科</title>
        <meta name="keywords" content="实例百科,<!--{$baike.title}-->,<!--{$baike.title}-->实例">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="<!--{$site_name}-->实例百科">
        <meta name="author" content="">
        <!-- Le styles - 对不起,你的IE浏览器版本实在太低了,我们没有办法支持! -->
        <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet">
        <link href="/static/css/base.css" rel="stylesheet">
        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="/static/bootstrap/js/html5shiv.js"></script>
        <![endif]-->
        <link rel="shortcut icon" href="/static/bootstrap/ico/favicon.png">
        <script src="/static/bootstrap/js/jquery.js"></script>
        <script type="text/javascript" src="/static/raty/jquery.raty.min.js"></script>
    </head>
    <body>
        <!--{include file="header.html"}-->
        <div class="container" style="width: 1000px;">
            <div class="container" style="width:1000px;">
                <!-- Main hero unit for a primary marketing message or call to action -->
                <div style="width:980px;border-bottom: 1px solid #eaeaea;clear: both; height:32px;">
                    <span><a href="">首页</a> » <a href="">IT技术</a> » <a href="">PHP</a> »
                </div>

                <!-- Example row of columns -->
                <div style="width:1000px; margin-top: 20px;min-height: 456px;">
                    <div style="width:678px;float:left; background: #fff;border: 1px solid #ccc;min-height: 656px;" id="left">
                        <h1 style="padding-left:12px;"><!--{$baike.title}--></h1>
                        <div style="margin: 15px 0 6px 0;color: #666;padding-left: 12px;">
                            <a href=""><!--{$baike.User.nickname}--></a> 发布于: <!--{$baike.created|date_format:'Y-m-d'}-->
                            (<a href="javascript:;">0评</a>) <!--{if $smarty.session.admin}-->
                            [<a href="/index.php?r=baike/update&id=<!--{$baike.id}-->">修改信 息</a>] <!--{/if}-->
                        </div>
                        <div style="height: 22px;margin: 0;padding-top: 4px;padding-left:4px;vertical-align: middle;padding-left: 12px;">
                            <span><!-- JiaThis Button BEGIN -->
                                <div class="jiathis_style_24x24">
                                    <a class="jiathis_button_qzone"></a>
                                    <a class="jiathis_button_tsina"></a>
                                    <a class="jiathis_button_tqq"></a>
                                    <a class="jiathis_button_weixin"></a>
                                    <a class="jiathis_button_renren"></a>
                                    <a href="http://www.jiathis.com/share?uid=1577487" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
                                    <a class="jiathis_counter_style"></a>
                                </div>
                                <script type="text/javascript">
                                    var jiathis_config = {
                                        data_track_clickback : 'true'
                                    };
                                </script> <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1577487" charset="utf-8"></script> <!-- JiaThis Button END --> </span>
                        </div>
                        <div id="content" style="padding:20px;">
                            <!--{$baike_data.content}-->
                        </div>
                    
                    </div>

                    <div style="float:left;width:300px;margin-left: 12px;border: 1px solid #eaeaea;" id="right">
                        <div style="">
                            <!--{include file="adv/right_top_300x250.html"}-->
                        </div>

                        <!--// end 标签-->
                        <h2 style="border-bottom: 1px solid #eaeaea;font-size:15px;padding-top:24px;padding-left: 12px;">最新分享实例... <span><!--//<a href="" style="font-size:12px;">更多排行»</a>--></span></h2>
                        <div style="padding-left: 12px;">
                            <ul class="unstyled">
                                <!--{foreach from=$baikes item=bk}-->
                                <li style="overflow: hidden;text-align: left;height: 24px;">
                                    <a href="<!--{$base_url}-->/baike/<!--{$bk.id}-->/" target="_blank" title="<!--{$bk.title}-->"><!--{$bk.title}--> </a>
                                </li>
                                <!--{/foreach}-->
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <!--// end right-->
        </div>
        <div style="margin: auto;width: 1000px;height: 1px;">
             
        </div>
        <!-- /container -->

        <!--// end modal -->
        <!--{include file='footer.html'}-->
    </body>
    <script src="/static/bootstrap/js/bootstrap-modal.js"></script>
    <script src="/static/bootstrap/js/bootstrap-dropdown.js"></script>
    <script src="/static/bootstrap/js/bootstrap-tooltip.js"></script>
    <script src="/static/js/base.js"></script>
    <script src="/static/js/video.js"></script>
</html>
点击复制链接 与好友分享!回本站首页
上一篇:PHP开发框架Yii Framework教程(48) 多国语言示例
下一篇:Yii本地项目上传LINUX无法正常应用
相关文章
图文推荐
文章
推荐
点击排行

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训
版权所有: 红黑联盟--致力于做实用的IT技术学习网站