Exemple #1
0
<?php

use blog\components\StaticService;
use blog\components\UrlService;
StaticService::includeAppJsStatic("/js/game/tools/index.js", \blog\assets\GameAsset::className());
echo Yii::$app->controller->renderPartial("/tools/tab.php", ['current' => 'strlen']);
?>

<div class="am-container" id="strlen" style="margin-top: 10px;">
    <form class="am-form">
        <div class="am-form-group">
            <textarea name="content" rows="10"></textarea>
        </div>
        <div class="am-form-group">
            <label class="strlen_tip">共计:--</label>
        </div>
        <button type="button" class="am-btn am-btn-primary am-radius am-btn-block am-hide">统计</button>
    </form>
</div>
Exemple #2
0
<?php

use blog\components\StaticService;
use common\service\GlobalUrlService;
StaticService::includeAppCssStatic("/css/game/music/info.css", blog\assets\GameAsset::className());
StaticService::includeAppJsStatic("/js/game/music/info.js", blog\assets\GameAsset::className());
?>
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-text-center">
    <div id="music-pic" style="background-image: url(<?php 
echo $info["cover_image"];
?>
);">
        <img src="<?php 
echo GlobalUrlService::buildStaticUrl("/images/game/music/play.png");
?>
" class="btn_play">
        <img src="<?php 
echo GlobalUrlService::buildStaticUrl("/images/game/music/pause.png");
?>
" class="btn_pause">
        <img src="<?php 
echo GlobalUrlService::buildStaticUrl("/images/game/music/refresh.png");
?>
" class="btn_refresh">
    </div>
    <p>
        <?php 
echo $info["song_title"];
?>
<br/>
        <?php 
Exemple #3
0
<?php

use blog\components\StaticService;
StaticService::includeStaticJs("/plugin/highcharts/highcharts.js", \blog\assets\AppAsset::className());
StaticService::includeAppJsStatic("/js/web/run/step.js", \blog\assets\AppAsset::className());
?>
<style type="text/css">
    .sub_title {
        font-size: 18px;
    }

    .sub_title span {
        font-size: 14px;
    }
</style>
<div class="col-lg-12" style="margin-bottom: 10px;">
    <div class="btn-group">
        <a href="<?php 
echo $urls["daily"];
?>
" type="button" class="btn btn-default">日</a>
        <a href="<?php 
echo $urls["monthly"];
?>
" type="button" class="btn btn-default">月</a>
    </div>
</div>
<div class="col-lg-12" style="margin-bottom: 100px;">
    <div id="container" style="min-width:100%;height:400px"></div>
</div>
<input type="hidden" id="chart_data" value='<?php 
Exemple #4
0
<?php

use blog\components\StaticService;
StaticService::includeAppJsStatic("/js/wap/library/info.js", \blog\assets\WapAsset::className());
?>
<div class="am-paragraph am-paragraph-default">
    <article class="am-article">
        <div class="am-article-hd">
            <h1 class="am-article-title"><?php 
echo $info["title"];
?>
</h1>

            <p class="am-article-meta">
                作者:<?php 
echo $info["author"];
?>
                出版时间:<?php 
echo $info['publish_date'];
?>
            </p>
        </div>
        <hr data-am-widget="divider" style="" class="am-divider am-divider-default"/>
        <div class="am-article-bd">
            <figure data-am-widget="figure" class="am am-figure am-figure-default ">
                <img data-src="<?php 
echo $info["image_url"];
?>
" alt="<?php 
echo $info["title"];
?>
Exemple #5
0
<?php

use blog\components\StaticService;
use blog\components\UrlService;
StaticService::includeAppCssStatic("/css/wap/richmedia/index.css", \blog\assets\WapAsset::className());
StaticService::includeAppJsStatic("/js/wap/richmedia/index.js", \blog\assets\WapAsset::className());
?>
<div class="am-g" id="se_btn">
    <a href="javascript:void(0);" class="am-btn am-btn-default am-u-sm-6 am-u-md-6 am-u-lg-6 am-btn-primary">
        看今朝
    </a>
    <a href="<?php 
echo UrlService::buildWapUrl("/gallery/index");
?>
" class="am-btn am-btn-default am-u-sm-6 am-u-md-6 am-u-lg-6">
        想当年
    </a>
</div>
<ul data-am-widget="gallery" class="am-gallery am-avg-sm-1 am-gallery-overlay">
    <?php 
echo $media_list_html;
?>
</ul>
<div class="am-g">
    <div class="loading">
        <div class="bubble">
            <div class="bubble1"></div>
            <div class="bubble2"></div>
        </div>
        <p class="loading_txt">富媒体马上来</p>
    </div>
Exemple #6
0
<?php

use blog\components\StaticService;
use common\service\GlobalUrlService;
StaticService::includeStaticCss("/codemirror/lib/codemirror.css", \blog\assets\CodeMirrorAsset::className());
StaticService::includeStaticCss("/codemirror/theme/material.css", \blog\assets\CodeMirrorAsset::className());
StaticService::includeStaticJs("/codemirror/lib/codemirror.js", \blog\assets\CodeMirrorAsset::className());
StaticService::includeStaticJs("/codemirror/mode/xml/xml.js", \blog\assets\CodeMirrorAsset::className());
StaticService::includeStaticJs("/codemirror/mode/javascript/javascript.js", \blog\assets\CodeMirrorAsset::className());
StaticService::includeStaticJs("/codemirror/mode/css/css.js", \blog\assets\CodeMirrorAsset::className());
StaticService::includeStaticJs("/codemirror/mode/htmlmixed/htmlmixed.js", \blog\assets\CodeMirrorAsset::className());
StaticService::includeAppCssStatic("/css/web/code/run.css", \blog\assets\CodeMirrorAsset::className());
StaticService::includeAppJsStatic("/js/web/code/run.js", \blog\assets\CodeMirrorAsset::className());
?>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
    <div class="row" id="code-box">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
            <textarea id="code_html">
                <!doctype html>
                <html>
                <head>
                    <meta charset=utf-8>
                    <title>HTML5 canvas demo</title>
                    <style>p {font-family: monospace;}</style>
                </head>
                <body>
                <p>Canvas pane goes here:</p>
                <canvas id=pane width=300 height=200></canvas>
                <script>
                    var canvas = document.getElementById('pane');
                    var context = canvas.getContext('2d');
Exemple #7
0
<?php

use yii\helpers\Url;
use blog\components\StaticService;
StaticService::includeAppCssStatic("/js/jquery/blueimp-gallery/css/blueimp-gallery.css", \blog\assets\AppAsset::className());
StaticService::includeAppCssStatic("/js/jquery/blueimp-gallery/css/blueimp-gallery-indicator.css", \blog\assets\AppAsset::className());
StaticService::includeAppCssStatic("/js/jquery/blueimp-gallery/css/blueimp-gallery-video.css", \blog\assets\AppAsset::className());
StaticService::includeAppJsStatic("/js/jquery/blueimp-gallery/js/blueimp-helper.js", \blog\assets\AppAsset::className());
StaticService::includeAppJsStatic("/js/jquery/blueimp-gallery/js/blueimp-gallery.js", \blog\assets\AppAsset::className());
StaticService::includeAppJsStatic("/js/jquery/blueimp-gallery/js/blueimp-gallery-fullscreen.js", \blog\assets\AppAsset::className());
StaticService::includeAppJsStatic("/js/jquery/blueimp-gallery/js/blueimp-gallery-indicator.js", \blog\assets\AppAsset::className());
StaticService::includeAppJsStatic("/js/jquery/blueimp-gallery/js/blueimp-gallery-video.js", \blog\assets\AppAsset::className());
StaticService::includeAppJsStatic("/js/jquery/blueimp-gallery/js/blueimp-gallery-vimeo.js", \blog\assets\AppAsset::className());
StaticService::includeAppJsStatic("/js/jquery/blueimp-gallery/js/jquery.blueimp-gallery.js", \blog\assets\AppAsset::className());
?>
<style type="text/css">
    .thumbnail {
        position: relative;
    }

    .rich_media_title {
        text-align: left;
        position: absolute;
        bottom: 4px;
        width: 97%;
        background-color: #000000;
        filter: alpha(opacity=50);
        -moz-opacity: 0.5;
        -khtml-opacity: 0.5;
        opacity: 0.5;
        color: #ffffff;
Exemple #8
0
<?php

use blog\components\StaticService;
use blog\components\UrlService;
StaticService::includeAppCssStatic("/css/wap/default/index.css", \blog\assets\WapAsset::className());
StaticService::includeAppJsStatic("/js/wap/default/index.js", \blog\assets\WapAsset::className());
?>
<div class="am-g" id="se_btn">
    <a href="<?php 
echo UrlService::buildWapUrl("/default/index", ["type" => 1]);
?>
"
       class="am-btn am-btn-default am-u-sm-3 am-u-md-3">文章</a>
    <a href="<?php 
echo UrlService::buildWapUrl("/default/index", ["type" => 2]);
?>
"
       class="am-btn am-btn-default am-u-sm-3 am-u-md-3">热门</a>
    <a href="<?php 
echo UrlService::buildWapUrl("/default/index", ["type" => 3]);
?>
"
       class="am-btn am-btn-default am-u-sm-3 am-u-md-3">原创</a>
    <a href="<?php 
echo UrlService::buildWapUrl("/search/do");
?>
"
       class="am-btn am-btn-default am-u-sm-3 am-u-md-3"><span class="am-icon-search"></span></a>
</div>
<div data-am-widget="list_news" class="am-list-news am-list-news-default">
    <div class="am-list-news-bd">
Exemple #9
0
<?php

use blog\components\StaticService;
use common\components\DataHelper;
use common\service\GlobalUrlService;
StaticService::includeAppJsStatic("/js/wap/wechat_wall/index.js", \blog\assets\WapAsset::className());
?>
<ol class="am-breadcrumb">
    <li><a href="<?php 
echo GlobalUrlService::buildWapUrl("/demo/index");
?>
">Demo列表</a></li>
    <li class="am-active">微信墙</li>
</ol>
<div class="am-g">
    <div class="am-u-sm-12 am-u-md-12">
        <p class="am-text-xl am-text-center"><?php 
echo DataHelper::getAuthorName();
?>
微信墙</p>
    </div>
    <div class="am-u-sm-12 am-u-md-12">
        <?php 
if ($list) {
    ?>
        <ul class="am-comments-list am-comments-list-flip">
            <?php 
    foreach ($list as $_item) {
        ?>
            <li class="am-comment" data_id="<?php 
        echo $_item["id"];
Exemple #10
0
<?php

use blog\components\StaticService;
use blog\components\UrlService;
use common\components\DataHelper;
StaticService::includeAppCssStatic("/css/wap/wechat_wall/sign.css", \blog\assets\MarketAsset::className());
StaticService::includeAppJsStatic("http://res.wx.qq.com/open/js/jweixin-1.0.0.js", \blog\assets\MarketAsset::className());
StaticService::includeAppJsStatic("/js/wap/wechat_wall/sign.js", \blog\assets\MarketAsset::className());
?>
<div class="user_info">
    <p><img src="<?php 
echo $user_info['avatar'];
?>
" alt="" /></p>
    <p><?php 
echo DataHelper::encode($user_info['nickname']);
?>
</p>
</div>
<div class="checkin_info">
    <p class="t1">恭喜您上墙成功!</p>
    <p class="t2">关闭本页面直接发送“<span style="font-weight: bold;color: #ff0000;font-size: large;">#消息内容</span>”即可参与互动哦!</p>
</div>
<a href="javascript:void(0)" id="close_checkin_window" class="button">关闭本页面</a>

<input type="hidden" name="can_award_user" value="">
Exemple #11
0
<?php

use blog\components\StaticService;
use common\service\GlobalUrlService;
StaticService::includeAppJsStatic("/js/wap/demo/h5_upload.js", \blog\assets\WapAsset::className());
?>
<ol class="am-breadcrumb">
	<li><a href="<?php 
echo GlobalUrlService::buildWapUrl("/demo/index");
?>
">Demo列表</a></li>
	<li class="am-active">H5上传和拍照</li>
</ol>
<div class="am-paragraph am-paragraph-default">
	<article class="am-article">
		<div class="am-article-hd">
			<h1 class="am-article-title">H5上传和拍照</h1>
		</div>
		<hr data-am-widget="divider"  class="am-divider am-divider-default"/>
		<div class="am-article-bd  ">
			<div class="am-form-group am-form-file">
				<button type="button" class="am-btn am-btn-danger am-btn-sm">
					<i class="am-icon-cloud-upload"></i> 选择要上传的文件
				</button>
				<input id="upload" type="file" accept="image/*;" capture="camera" >
			</div>
		</div>

		<figure data-am-widget="figure" class="am am-figure am-figure-default am-no-layout">
			<img  class="img_wrap" style="display: none;">
		</figure>
Exemple #12
0
<?php

use blog\components\StaticService;
use blog\components\UrlService;
use common\service\GlobalUrlService;
StaticService::includeAppCssStatic("/css/wap/gallary/demo.css", \blog\assets\WapAsset::className());
StaticService::includeAppCssStatic("/css/wap/gallary/style.css", \blog\assets\WapAsset::className());
StaticService::includeStaticJs("/jquery/jquery.montage.min.js", \blog\assets\WapAsset::className());
StaticService::includeAppJsStatic("/js/wap/gallery/list.js", \blog\assets\WapAsset::className());
if ($images) {
    ?>
<div class="am-g">
    <?php 
    foreach ($images as $_url) {
        ?>
    <a href="javascript:void(0);">
        <img src="<?php 
        echo $_url;
        ?>
">
    </a>
    <?php 
    }
    ?>
</div>
<?php 
}
Exemple #13
0
<?php

use blog\components\StaticService;
use blog\components\UrlService;
use common\service\GlobalUrlService;
StaticService::includeAppJsStatic("/js/mate/default/index.js", \blog\assets\MateAsset::className());
?>
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-text-center">
    <h1>2016年同学会报名<br/>T773 纯真年华 - 青春</h1>
</div>
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
    <form class="am-form am-form-horizontal" id="enrol">
        <div class="am-form-group">
            <label for="nickname" class="am-u-sm-3 am-form-label">姓名:</label>
            <div class="am-u-sm-9">
                <input type="text" id="nickname" name="nickname" placeholder="请输入你的真实姓名">
            </div>
        </div>
        <div class="am-form-group">
            <label for="mobile" class="am-u-sm-3 am-form-label">手机(选填):</label>
            <div class="am-u-sm-9">
                <input type="text" id="mobile" name="mobile" placeholder="请输入你的手机号码(此项可不填写)">
            </div>
        </div>

        <div class="am-form-group">
            <label for=person_number" class="am-u-sm-3 am-form-label">人数:</label>
            <div class="am-u-sm-9">
                <select id="person_number">
                    <?php 
foreach ($person_number_mapping as $_person_key => $_person_title) {
Exemple #14
0
use yii\helpers\Url;
use blog\components\UrlService;
use common\service\GlobalUrlService;
/*lightbox*/
//StaticService::includeStaticCss("/jquery/lightbox2/css/lightbox.css",\blog\assets\AppAsset::className());
//StaticService::includeStaticJs("/jquery/lightbox2/js/lightbox.min.js",\blog\assets\AppAsset::className());
/*fancy*/
StaticService::includeStaticCss("/jquery/fancy/jquery.fancybox.css", \blog\assets\AppAsset::className());
StaticService::includeStaticJs("/jquery/fancy/jquery.fancybox.pack.js", \blog\assets\AppAsset::className());
/*prettify*/
StaticService::includeStaticCss("/prettify/prettify.sons.css", \blog\assets\AppAsset::className());
StaticService::includeStaticJs("/prettify/prettify.js", \blog\assets\AppAsset::className());
StaticService::includeAppCssStatic("/css/web/default/info.css", \blog\assets\AppAsset::className());
StaticService::includeAppJsStatic("/js/web/default/info.js", \blog\assets\AppAsset::className());
StaticService::includeAppJsStatic("/js/duoshuo.js", \blog\assets\AppAsset::className());
StaticService::includeAppJsStatic("http://v3.jiathis.com/code/jia.js?uid=900964", \blog\assets\AppAsset::className());
?>
<main class="col-md-8 main-content">
    <article class="post tag-zhuti tag-static-page tag-customize-page">
        <header class="post-head">
            <h1 class="post-title"><?php 
echo $info['title'];
?>
</h1>
            <section class="post-meta">
                <span class="author">作者:<a
                        href="<?php 
echo $info['author']['link'];
?>
"><?php 
echo $info['author']['nickname'];
Exemple #15
0
<?php

use blog\components\StaticService;
StaticService::includeAppJsStatic("/js/demo/scan.js", \blog\assets\AppAsset::className());
?>
<main class="col-md-12 main-content">
    <article class="post page">
        <header class="post-head">
            <h1 class="post-title">扫描登录</h1>
        </header>
        <section class="post-content text-center">
            <div class="row qrcode">
                <img src="/demo/qrcode">
            </div>
            <div class="row result" style="display: none;">
                <h3>扫描成功!</h3>

                <p class="nickname"> -- </p>

                <p class="email"> -- </p>
            </div>
        </section>
    </article>
</main>