Пример #1
0
<?php

include TPL_PATH . 'header.php';
?>
<div class="container">

    <form class="form-signin" role="form" method="post" action="<?php 
echo \common\Utils::makeUrl('main', 'check');
?>
" />
        <h2 class="form-signin-heading">请登录</h2>
        <input type="text" name="username" class="form-control" placeholder="用户名" required autofocus>
        <input type="password" name="password" class="form-control" placeholder="密码" required>
        <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
        <a href="<?php 
echo \common\Utils::makeUrl('main', 'reg');
?>
" class="btn btn-primary btn-lg active" role="button">注册</a>
    </form>

</div> <!-- /container -->
<?php 
include TPL_PATH . 'footer.php';
Пример #2
0
    </div>
    <div class="chat_send">
        <div class="col-lg-6">
            <div class="input-group">
                <select class="form-control" id="sendTo" style="width:100px;">
                    <option value="0">全体</option>
                </select>
                <input type="text" id="msgContent" class="form-control">
      <span class="input-group-btn">
        <button class="btn btn-default" type="button" id="sendBtn" onclick="sendMsg()">发言</button>(ctrl+enter发送)
      </span>
            </div><!-- /input-group -->
        </div><!-- /.col-lg-6 -->
    </div>
    <div>协议自适应范例(socket和http自适应):<a href="<?php 
echo \common\Utils::makeUrl('chat/main', 'online');
?>
" target='_blank'>web方式查看在线用户</a>)</div>


</div> <!-- /container -->
<div id="chat_swf"></div>
<script src="<?php 
echo $static_url;
?>
js/jquery-1.9.1.js"></script>
<script src="<?php 
echo $static_url;
?>
js/jsocket.js"></script>
<script src="<?php 
Пример #3
0
<?php

include 'header.php';
?>
<div class="container">

    <form class="form-signin" role="form" method="post" action="<?php 
echo \common\Utils::makeUrl('main/main', 'savereg');
?>
" />
        <h2 class="form-signin-heading">请注册</h2>
        <input type="text" name="username" class="form-control" placeholder="用户名" required autofocus>
        <input type="password" name="password" class="form-control" placeholder="密码" required>
        <button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>
    </form>

</div> <!-- /container -->
<?php 
include 'footer.php';