示例#1
0
                                        <!-- /.item -->
                                    <? endforeach ?>
                                </div>
                                <div class="box-footer" id="comment">

                                </div>
                                <?php 
echo Html::form_begin('comments/add?next=post/read/' . $post['id']);
?>
                                <? if (Ngaji\Http\Request::is_authenticated()) : ?>
                                    <input type="text" name="post_id" value="<?php 
echo $post['id'];
?>
" hidden="hidden">
                                    <input type="text" name="member_id" value="<?php 
echo Ngaji\Http\Request::user()->id;
?>
"
                                           hidden="hidden">
                                    <textarea class="form-control" name="comment" rows="3"
                                              placeholder="Write a comment ..." required></textarea>
                                    <br/>
                                    <button type="submit" class="btn btn-primary btn-flat">Post</button>
                                <? else: ?>
                                    <textarea class="form-control" name="comment" rows="3"
                                              placeholder="Write a comment ..." required disabled></textarea>
                                    <br/>
                                    <button type="submit" class="btn btn-primary btn-flat" disabled>Post</button>
                                    <?php 
echo Html::anchor('login?next=post/read/' . $post['id'] . '#comment', 'You must login to post a comment!');
?>
示例#2
0
echo date_format_en($message['created_at']);
?>
</cite>
                                        </small>
                                    </blockquote>
                                <? else : ?>
                                    <article>
                                        <?php 
echo $message['text'];
?>
                                    </article>
                                <? endif; ?>
                            </div>
                            <!-- /.box-body -->
                            <div class="box-footer" id="reply">
                                <? if (Ngaji\Http\Request::user()->id != $message['from_account']): ?>
                                <?php 
echo Html::form_begin('mail/compose');
?>

                                <input name="to_account" value="<?php 
echo $message['from_account'];
?>
" hidden/>
                                <div class="form-group">
                                    <textarea id="compose-textarea" class="form-control" placeholder="Write a reply..." name="text" style="height: 120px"></textarea>
                                </div>
                                <button type="submit" class="btn btn-primary btn-flat">Send</button>

                                <?php 
echo Html::form_end();
示例#3
0
                <div class="col-md-8">
                    <!-- TABLE: LATEST ORDERS -->
                    <div class="box box-info">
                        <div class="box-header with-border">
                            <h3 class="box-title">Add Accounts</h3>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body">
                            <div class="register-box-body">
                                <p class="login-box-msg">Register a new membership</p>

                                <?php 
echo Html::form_begin('', 'POST', ['enctype' => "multipart/form-data", 'id' => "register-form", 'novalidate' => "novalidate"]);
?>
                                <input type="text" name="type" value="<?php 
echo Ngaji\Http\Request::GET()->type;
?>
" hidden=""/>
                                <div class="form-group has-feedback">
                                    <span class="glyphicon glyphicon-user form-control-feedback"></span>
                                    <input type="text" id="name" name="name" class="form-control" placeholder="Full name"/>
                                </div>
                                <div class="form-group has-feedback">
                                    <span class="glyphicon glyphicon-user form-control-feedback"></span>
                                    <input type="text" id="username" name="username" class="form-control" placeholder="Username"/>
                                </div>
                                <div class="form-group has-feedback">
                                    <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
                                    <input type="text" id="email" name="email" class="form-control" placeholder="Email"/>
                                </div>
                                <div class="form-group has-feedback">
示例#4
0
<?php

/**
 * @var array $categories
 * @var array $users
 */
?>

<div class="col-md-4">
    <!-- Form Element sizes -->
    <? if (Ngaji\Http\Request::is_authenticated()) : ?>

        <!-- /.box -->
    <? else : ?>
        <!-- Input addon -->
        <div class="box box-success hidden-lg hidden-md">
            <div class="box-header">
                <h3 class="box-title">
                    <b>Ini</b>FORUM
                </h3>
            </div>
            <div class="box-body">
                <p class="login-box-msg">Sign in to start your session</p>
                <?php 
echo Html::form_begin('login');
?>
                <div class="form-group has-feedback">
                    <input id="id_username" name="username" type="text" class="form-control"
                           placeholder="Username"
                           required="true"/>
                    <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
示例#5
0
                <div class="col-md-9">
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">Compose New Message</h3>
                        </div>
                        <!-- /.box-header -->
                        <?php 
echo Html::form_begin('mail/compose');
?>
                        <div class="box-body">
                            <div class="form-group">
                                <label for="compose-textarea">TO:</label>
                                <select class="form-control" name="to_account">
                                    <option value="">---</option>
                                    <? foreach ($users as $user):?>
                                        <? if ($user['id'] == Ngaji\Http\Request::user()->id or
                                            '1' == $user['type']
                                        )
                                        continue ?>
                                        <option value="<?php 
echo $user['id'];
?>
"><?php 
echo $user['name'];
?>
</option>
                                    <? endforeach; ?>
                                </select>
                            </div>
                            <div class="form-group">
                                <input class="form-control" name="subject" placeholder="Subject:"/>
示例#6
0
?>
                                                </span>
                                            </td>
                                            <td>
                                                <?php 
echo $account->name;
?>
                                            </td>
                                            <td>
                                                <span class="badge bg-primary"><i class="fa fa-eye">
                                                    </i> <?php 
echo date_format_en($account->created_at);
?>
                                                </span>
                                            </td>
                                            <? if (Ngaji\Http\Request::is_admin()): ?>
                                                <td>
                                                    <?php 
echo Html::anchor("#", '<i class="fa fa-trash-o"></i> Delete', ['class' => 'btn btn-xs btn-flat btn-danger', 'data-post-id' => $account->id, 'data-type-modal' => 'User', 'data-post-title' => $account->name, 'data-href' => sprintf("%s/accounts/delete/%d", HOSTNAME, $account->id), 'data-toggle' => "modal", 'data-target' => "#confirm-delete"]);
?>
                                                </td>
                                            <? endif; ?>
                                        </tr>
                                    <? endforeach; ?>
                                </table>
                            </div>
                            <!-- /.table-responsive -->
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer clearfix">
示例#7
0
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
    <!-- Sidebar user panel -->
    <div class="user-panel">
        <div class="pull-left image">
            <?php 
echo Html::loadIMG('user2-160x160.jpg', ['class' => 'img-circle', 'alt' => 'User Image']);
?>
        </div>
        <div class="pull-left info">
            <p><?php 
echo Ngaji\Http\Request::get_user('name');
?>
</p>

            <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
    </div>
    <!-- search form -->
    <form action="#" method="get" class="sidebar-form">
        <div class="input-group">
            <input type="text" name="q" class="form-control" placeholder="Search..."/>
              <span class="input-group-btn">
                <button type='submit' name='search' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
        </div>
    </form>
    <!-- /.search form -->
    <!-- sidebar menu: : style can be found in sidebar.less -->
    <ul class="sidebar-menu">