예제 #1
0
 protected function printViewContent()
 {
     parent::printViewContent();
     $htmlPageSettings = new HtmlPageSettings();
     $htmlPageSettings->PageTitle = "";
     ?>
         <div id="login-panel">
             <div id="login-panel-bg"></div>
             <div id="login-panel-fg">
                 <h1>Sveicināti!</h1>
                 <p>Ielogoties šeit</p>
                 <div id="inputs">
                     <div class="form-group __group">
                         <label for="name">Vārds</label>
                         <?php 
     echo $this->presenters['username'];
     ?>
                     </div>
                     <div class="form-group __group">
                         <label for="password">Parole</label>
                         <?php 
     echo $this->presenters['password'];
     ?>
                     </div>
                     <button id="log-in" class="button btn">Ienākt</button>
                 </div>
             </div>
         </div>
     <?php 
 }
예제 #2
0
    protected function printViewContent()
    {
        parent::printViewContent();
        $discussions = Gallery::find()->addSort('Order')->setRange(0, 6);
        $users = CustomUser::find(new Equals('Enabled', 1))->addSort('UserID', false)->setRange(0, 6);
        $sql = MySql::executeStatement('SELECT Source FROM tblImage ORDER BY RAND() LIMIT 6');
        $images = [];
        while ($a = $sql->fetch(\PDO::FETCH_ASSOC)) {
            $images[] = $a['Source'];
        }
        ?>
        <div class="__container noPadding">
            <?php 
        echo new ImagePanorama($images);
        ?>
        </div>
        <div class="row">
            <div class="discussion-group col-md-6">
                <div class="__container min-height-500">
                    <div class="center-block clearfix relative">
                        <h1 style="text-align: center">
                            Top 6 Galerijas
                        </h1>
                        <a href="gallery/add/" class="btn btn-primary right-side-title">Pievienot galeriju</a>
                    </div>
                    <div class="row" style="height: 150px; text-align: center">
                        <?php 
        foreach ($discussions as $discussion) {
            print '<div class="col-md-4 center-align">';
            print new GalleryPresenter($discussion);
            print '</div>';
        }
        ?>
                    </div>
                    <div class="__clear-floats"></div>
                    <div class="__clear-floats"></div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="__container noPadding min-height-500">
                    <div class="center-block clearfix relative">
                        <h1 style="text-align: center">
                            6 Jaunākie biedri portālā!
                        </h1>
                        <a href="/portal/users/" class="btn btn-primary right-side-title">Redzēt visus</a>
                    </div>
                    <div class="row">
                        <?php 
        foreach ($users as $user) {
            print '<div class="col-md-4 center-align">';
            print new ProfileSummaryPresenter($user);
            print '</div>';
        }
        ?>
                    </div>
                    <div class="__clear-floats"></div>
                </div>
            </div>
        </div>

        <?php 
    }