コード例 #1
0
ファイル: config.php プロジェクト: prepare4battle/Ilch-2.0
 public function install()
 {
     $this->db()->queryMulti($this->getInstallSql());
     $receiverMapper = new \Modules\Contact\Mappers\Receiver();
     $model = new \Modules\Contact\Models\Receiver();
     $userMapper = new \Modules\User\Mappers\User();
     $user = $userMapper->getUserById(1);
     $model->setName('Webmaster')->setEmail($user->getEmail());
     $receiverMapper->save($model);
 }
コード例 #2
0
ファイル: Statistic.php プロジェクト: prepare4battle/Ilch-2.0
 public function getVisitsOnlineUser()
 {
     $userMapper = new \Modules\User\Mappers\User();
     $date = new \Ilch\Date();
     $date->modify('-5 minutes');
     $sql = 'SELECT *
             FROM `[prefix]_visits_online`
             WHERE `date_last_activity` > "' . $date->format("Y-m-d H:i:s", true) . '"
             AND `user_id` > 0';
     $rows = $this->db()->queryArray($sql);
     $users = array();
     foreach ($rows as $row) {
         $users[] = $userMapper->getUserById($row['user_id']);
     }
     return $users;
 }
コード例 #3
0
ファイル: config.php プロジェクト: sCar-w4y/Ilch-2.0
 public function install()
 {
     $this->db()->queryMulti($this->getInstallSql());
     $groupMapper = new \Modules\User\Mappers\Group();
     $adminGroup = $groupMapper->getGroupById(1);
     $usersGroup = $groupMapper->getGroupById(2);
     $userMapper = new \Modules\User\Mappers\User();
     $databaseConfig = new \Ilch\Config\Database($this->db());
     $databaseConfig->set('regist_accept', '1');
     $databaseConfig->set('regist_confirm', '1');
     $databaseConfig->set('regist_rules', '<p>Die Registrierung ist völlig kostenlos</p>
                           <p>Die Betreiber der Seite übernehmen keine Haftung.</p>
                           <p>Bitte verhalten Sie sich angemessen und mit Respekt gegenüber den anderen Community Mitgliedern.</p>');
     $databaseConfig->set('regist_confirm_mail', '<p>Hallo <b>{name}</b>,</p>
                           <p>&nbsp;</p>
                           <p>Willkommen auf <i>{sitetitle}</i>.</p>
                           <p>um die Registrierung erfolgreich abzuschlie&szlig;en klicken Sie Bitte auf folgenden Link.</p>
                           <p>{confirm}</p>
                           <p>&nbsp;</p>
                           <p>Mit freundlichen Gr&uuml;&szlig;en</p>
                           <p>Administrator</p>');
     $databaseConfig->set('password_change_mail', '<p>Hallo <b>{name}</b>,</p>
                           <p>&nbsp;</p>
                           <p>um Ihr Passwort auf <i>{sitetitle}</i> zu ändern klicken Sie Bitte auf folgenden Link.</p>
                           <p>{confirm}</p>
                           <p>&nbsp;</p>
                           <p>Mit freundlichen Gr&uuml;&szlig;en</p>
                           <p>Administrator</p>');
     $databaseConfig->set('avatar_uploadpath', 'application/modules/user/static/upload/avatar/');
     $databaseConfig->set('avatar_height', '120');
     $databaseConfig->set('avatar_width', '120');
     $databaseConfig->set('avatar_size', '51200');
     $databaseConfig->set('avatar_filetypes', 'jpg jpeg png gif');
     $databaseConfig->set('usergallery_allowed', '1');
     $databaseConfig->set('usergallery_uploadpath', 'application/modules/user/static/upload/gallery/');
     $databaseConfig->set('usergallery_filetypes', 'jpg jpeg png gif');
     $user = new \Modules\User\Models\User();
     $user->setName($_SESSION['install']['adminName']);
     $user->setPassword((new PasswordService())->hash($_SESSION['install']['adminPassword']));
     $user->setEmail($_SESSION['install']['adminEmail']);
     $user->addGroup($adminGroup);
     $user->addGroup($usersGroup);
     $dateCreated = new \Ilch\Date();
     $user->setDateConfirmed($dateCreated);
     $user->setDateCreated($dateCreated);
     $userMapper->save($user);
 }
コード例 #4
0
ファイル: Birthday.php プロジェクト: prepare4battle/Ilch-2.0
 /**
  * @return \Modules\User\Mappers\User[]
  */
 public function getBirthdayUserList($limit = null)
 {
     $userMapper = new \Modules\User\Mappers\User();
     if ($limit != '') {
         $sql = 'SELECT *
                 FROM `[prefix]_users`
                 WHERE DAY(birthday) = DAY(CURDATE()) AND MONTH(birthday) = MONTH(CURDATE())
                 LIMIT ' . $limit;
     } else {
         $sql = 'SELECT *
                 FROM `[prefix]_users`
                 WHERE DAY(birthday) = DAY(CURDATE()) AND MONTH(birthday) = MONTH(CURDATE())';
     }
     $rows = $this->db()->queryArray($sql);
     if (empty($rows)) {
         return null;
     }
     $users = array();
     foreach ($rows as $row) {
         $users[] = $userMapper->getUserById($row['id']);
     }
     return $users;
 }
コード例 #5
0
ファイル: index.php プロジェクト: prepare4battle/Ilch-2.0
<legend><?php 
echo $this->getTrans('menuShoutbox');
?>
</legend>
<?php 
if ($this->get('shoutbox') != '') {
    ?>
    <table class="table table-striped table-responsive">
        <?php 
    foreach ($this->get('shoutbox') as $shoutbox) {
        ?>
            <?php 
        $userMapper = new \Modules\User\Mappers\User();
        ?>
            <?php 
        $user = $userMapper->getUserById($shoutbox->getUid());
        ?>
            <?php 
        $date = new \Ilch\Date($shoutbox->getTime());
        ?>
            <tr>
                <?php 
        if ($shoutbox->getUid() == '0') {
            ?>
                    <td>
                        <b><?php 
            echo $this->escape($shoutbox->getName());
            ?>
:</b> <span class="small"><?php 
            echo $date->format("d.m.Y H:i", true);
            ?>
コード例 #6
0
ファイル: index.php プロジェクト: prepare4battle/Ilch-2.0
<?php

$userMapper = new Modules\User\Mappers\User();
?>

<legend><?php 
echo $this->getTrans('menuUserList');
?>
</legend>
<div class="row">
    <?php 
foreach ($this->get('userList') as $userlist) {
    ?>
        <div class="col-lg-4">
            <div class="user">
                <img class="thumbnail" src="<?php 
    echo $this->getStaticUrl() . '../' . $this->escape($userlist->getAvatar());
    ?>
" alt="">
                <h3><a href="<?php 
    echo $this->getUrl(array('controller' => 'profil', 'action' => 'index', 'user' => $userlist->getId()));
    ?>
" title="<?php 
    echo $this->escape($userlist->getName());
    ?>
s <?php 
    echo $this->getTrans('profile');
    ?>
"><?php 
    echo $this->escape($userlist->getName());
    ?>
コード例 #7
0
ファイル: online.php プロジェクト: prepare4battle/Ilch-2.0
    ?>
                <?php 
}
?>
                <th><?php 
echo $this->getTrans('findOnSite');
?>
</th>
            </tr>
        </thead>
        <tbody>
            <?php 
foreach ($this->get('userOnlineList') as $userOnlineList) {
    ?>
                <?php 
    $userMapper = new \Modules\User\Mappers\User();
    ?>
                <?php 
    $user = $userMapper->getUserById($userOnlineList->getUserId());
    ?>
                <?php 
    $moduleKey = implode('/', array_slice(explode('/', $userOnlineList->getSite()), 1, 1));
    ?>
                <?php 
    if ($moduleKey != '') {
        ?>
                    <?php 
        $modulesMapper = new \Modules\Admin\Mappers\Module();
        ?>
                    <?php 
        $module = $modulesMapper->getModulesByKey($moduleKey, $this->getTranslator()->getLocale());
コード例 #8
0
ファイル: index.php プロジェクト: prepare4battle/Ilch-2.0
                        <th><?php 
    echo $this->getTrans('creator');
    ?>
</th>
                        <th><?php 
    echo $this->getTrans('title');
    ?>
</th>
                    </tr>
                </thead>
                <tbody>
                    <?php 
    foreach ($this->get('event') as $event) {
        ?>
                        <?php 
        $userMapper = new \Modules\User\Mappers\User();
        ?>
                        <?php 
        $user = $userMapper->getUserById($event->getUserId());
        ?>
                        <tr>
                            <td><input value="<?php 
        echo $event->getId();
        ?>
" type="checkbox" name="check_entries[]" /></td>
                            <td><?php 
        echo $this->getEditIcon(array('action' => 'treat', 'id' => $event->getId()));
        ?>
</td>
                            <td><?php 
        echo $this->getDeleteIcon(array('action' => 'del', 'id' => $event->getId()));
コード例 #9
0
ファイル: partner.php プロジェクト: prepare4battle/Ilch-2.0
        ?>
">
            </a>
            <br />
        </div>
    <?php 
    }
} else {
    ?>
    <div class="partnersslider">
        <ul class="bxslider">
            <?php 
    foreach ($this->get('partners') as $partner) {
        ?>
                <?php 
        $userMapper = new Modules\User\Mappers\User();
        ?>
                <?php 
        $link = $userMapper->getHomepage($partner->getLink());
        ?>

                <?php 
        if (substr($partner->getBanner(), 0, 11) == 'application') {
            ?>
                    <?php 
            $banner = $this->getBaseUrl($partner->getBanner());
            ?>
                <?php 
        } else {
            ?>
                    <?php 
コード例 #10
0
ファイル: showfile.php プロジェクト: prepare4battle/Ilch-2.0
    ?>
" />
        </div>
    </div>
</form>
<?php 
}
?>
<div class="comments-gallery">
    <h4><?php 
echo $this->getTrans('comments');
echo '(' . count($comments) . ')';
?>
</h4>
<?php 
$userMapper = new \Modules\User\Mappers\User();
foreach ($comments as $comment) {
    $user = $userMapper->getUserById($comment->getUserId());
    ?>
    <div class="comment-heading">
        <span><?php 
    echo $this->getTrans('from');
    ?>
: </span>
        <a href="<?php 
    echo $this->getUrl(array('module' => 'user', 'controller' => 'profil', 'action' => 'index', 'user' => $user->getId()));
    ?>
"><?php 
    echo $this->escape($user->getName());
    ?>
</a>
コード例 #11
0
ファイル: index.php プロジェクト: prepare4battle/Ilch-2.0
function rec($id, $uid, $req, $obj)
{
    $CommentMappers = new \Modules\Comment\Mappers\Comment();
    $userMapper = new \Modules\User\Mappers\User();
    $fk_comments = $CommentMappers->getCommentsByFKId($id);
    $user_rep = $userMapper->getUserById($uid);
    $config = \Ilch\Registry::get('config');
    foreach ($fk_comments as $fk_comment) {
        $commentDate = new \Ilch\Date($fk_comment->getDateCreated());
        $user = $userMapper->getUserById($fk_comment->getUserId());
        if ($req > $config->get('comment_interleaving')) {
            $req = $config->get('comment_interleaving');
        }
        $col = 9 - $req;
        $req = $req + 1;
        echo '<article class="row" id="' . $fk_comment->getId() . '">';
        if ($config->get('comment_avatar') == 1) {
            echo '<div class="col-md-2 col-sm-2 col-md-offset-' . $req . ' col-sm-offset-' . $req . ' hidden-xs">';
            echo '<figure class="thumbnail" title="' . $user->getName() . '">';
            echo '<a href="' . $obj->getUrl(array('module' => 'user', 'controller' => 'profil', 'action' => 'index', 'user' => $user->getId())) . '"><img class="img-responsive" src="' . $obj->getBaseUrl($user->getAvatar()) . '" alt="' . $user->getName() . '"></a>';
            echo '</figure>';
            echo '</div>';
            echo '<div class="col-md-' . $col . ' col-sm-' . $col . '">';
        } else {
            $col = $col + 2;
            echo '<div class="col-md-' . $col . ' col-sm-' . $col . ' col-md-offset-' . $req . ' col-sm-offset-' . $req . '">';
        }
        echo '<div class="panel panel-default">';
        echo '<div class="panel-bodylist">';
        echo '<div class="panel-heading right"><i class="fa fa-reply"></i> ' . $user_rep->getName() . '</div>';
        echo '<header class="text-left">';
        echo '<div class="comment-user">';
        echo '<i class="fa fa-user" title="' . $obj->getTrans('commentUser') . '"></i> <a href="' . $obj->getUrl(array('module' => 'user', 'controller' => 'profil', 'action' => 'index', 'user' => $fk_comment->getUserId())) . '">' . $user->getName() . '</a>';
        echo '</div>';
        if ($config->get('comment_date') == 1) {
            echo '<time class="comment-date"><i class="fa fa-clock-o" title="' . $obj->getTrans('dateTime') . '"></i> ' . $commentDate->format("d.m.Y - H:i", true) . '</time>';
        }
        echo '</header>';
        echo '<div class="comment-post"><p>' . nl2br($fk_comment->getText()) . '</p></div>';
        if ($config->get('comment_reply') == 1) {
            echo '<p class="text-right"><a href="' . $obj->getUrl(array('module' => 'comment', 'controller' => 'index', 'action' => 'index', 'id' => $fk_comment->getId(), 'id_a' => $obj->getRequest()->getParam('id'))) . '" class="btn btn-default btn-sm"><i class="fa fa-reply"></i> ' . $obj->getTrans('reply') . '</a></p>';
        }
        echo '</div>';
        echo '</div>';
        echo '</div>';
        echo '</article>';
        $fkk_comments = $CommentMappers->getCommentsByFKId($fk_comment->getId());
        if (count($fkk_comments) > 0) {
            $req++;
        }
        $i = 1;
        foreach ($fkk_comments as $fkk_comment) {
            if ($i == 1) {
                rec($fk_comment->getId(), $fk_comment->getUserId(), $req, $obj);
                $i++;
            }
        }
        if (count($fkk_comments) > 0) {
            $req--;
        }
    }
}
コード例 #12
0
ファイル: index.php プロジェクト: prepare4battle/Ilch-2.0
                        <?php 
        }
        ?>
                    </div>
                    <div class="rank_info">
                        <?php 
        if ($awards->getTyp() == 1) {
            ?>
                            <?php 
            echo $awards->getUTId();
            ?>
                        <?php 
        } else {
            ?>
                            <?php 
            $userMapper = new \Modules\User\Mappers\User();
            ?>
                            <?php 
            $user = $userMapper->getUserById($awards->getUTId());
            ?>
                            <a href="<?php 
            echo $this->getUrl('user/profil/index/user/' . $user->getId());
            ?>
" target="_blank"><?php 
            echo $this->escape($user->getName());
            ?>
</a>
                        <?php 
        }
        ?>
                        <br />
コード例 #13
0
ファイル: index.php プロジェクト: prepare4battle/Ilch-2.0
<?php

$userMapper = new Modules\User\Mappers\User();
$profil = $this->get('profil');
$birthday = new \Ilch\Date($profil->getBirthday());
$homepage = $userMapper->getHomepage($this->escape($profil->getHomepage()));
$groups = '';
foreach ($profil->getGroups() as $group) {
    if ($groups != '') {
        $groups .= ', ';
    }
    $groups .= $group->getName();
}
?>

<div class="profil">
    <div class="profil-header">
        <div class="row">
            <div class="col-lg-2">
                <img class="thumbnail" src="<?php 
echo $this->getStaticUrl() . '../' . $this->escape($profil->getAvatar());
?>
" title="<?php 
echo $this->escape($profil->getName());
?>
">
            </div>
            <div class="col-lg-5 col-xs-12">
                <h3><?php 
echo $this->escape($profil->getName());
?>
コード例 #14
0
ファイル: show.php プロジェクト: prepare4battle/Ilch-2.0
<?php

$newsletter = $this->get('newsletter');
$userMapper = new \Modules\User\Mappers\User();
$user = $userMapper->getUserById($newsletter->getUserId());
$date = new \Ilch\Date($newsletter->getDateCreated());
?>

<legend><?php 
echo $this->getTrans('show');
?>
</legend>
<form class="form-horizontal" method="POST" action="">
    <?php 
echo $this->getTokenField();
?>
    <div class="form-horizontal">
        <div class="form-group">
            <label for="date" class="col-lg-2">
                <?php 
echo $this->getTrans('date');
?>
:
            </label>
            <div class="col-lg-4"><?php 
echo $date->format("d.m.Y H:i", true);
?>
</div>
        </div>
        <div class="form-group">
            <label for="from" class="col-lg-2">
コード例 #15
0
ファイル: index.php プロジェクト: prepare4battle/Ilch-2.0
<?php

$userMapper = new \Modules\User\Mappers\User();
?>

<legend><?php 
echo $this->getTrans('manage');
?>
</legend>
<?php 
if ($this->get('entries') != '') {
    ?>
    <form class="form-horizontal" method="POST" action="">
        <?php 
    echo $this->getTokenField();
    ?>
        <div class="table-responsive">
            <table class="table table-hover table-striped">
                <colgroup>
                    <col class="icon_width">
                    <col class="icon_width">
                    <col class="col-lg-1">
                    <col class="col-lg-2">
                    <col class="col-lg-9">
                    <col />
                </colgroup>
                <thead>
                    <tr>
                        <th><?php 
    echo $this->getCheckAllCheckbox('check_entries');
    ?>
コード例 #16
0
ファイル: event.php プロジェクト: prepare4battle/Ilch-2.0
<?php

$event = $this->get('event');
$eventEntrants = $this->get('eventEntrants');
$start = new \Ilch\Date($event->getStart());
$end = new \Ilch\Date($event->getEnd());
$userMapper = new \Modules\User\Mappers\User();
$user = $userMapper->getUserById($event->getUserId());
?>

<?php 
include APPLICATION_PATH . '/modules/events/views/index/navi.php';
?>
<legend>
    <?php 
echo $this->getTrans('event');
?>
    <?php 
if ($this->getUser() and $event->getUserId() == $this->getUser()->getId()) {
    ?>
        <div class="pull-right">
            <?php 
    echo $this->getEditIcon(array('controller' => 'index', 'action' => 'treat', 'id' => $event->getId()));
    ?>
            <?php 
    echo $this->getDeleteIcon(array('controller' => 'index', 'action' => 'del', 'id' => $event->getId()));
    ?>
        </div>
    <?php 
}
?>
コード例 #17
0
ファイル: show.php プロジェクト: prepare4battle/Ilch-2.0
function rec($id, $uid, $req, $obj)
{
    $CommentMappers = new \Modules\Comment\Mappers\Comment();
    $userMapper = new \Modules\User\Mappers\User();
    $fk_comments = $CommentMappers->getCommentsByFKId($id);
    $user_rep = $userMapper->getUserById($uid);
    $config = \Ilch\Registry::get('config');
    $nowDate = new \Ilch\Date();
    foreach ($fk_comments as $fk_comment) {
        $commentDate = new \Ilch\Date($fk_comment->getDateCreated());
        $user = $userMapper->getUserById($fk_comment->getUserId());
        if ($req > $config->get('comment_interleaving')) {
            $req = $config->get('comment_interleaving');
        }
        $col = 10 - $req;
        echo '  <article class="row" id="comment_' . $fk_comment->getId() . '">';
        if ($config->get('comment_avatar') == 1) {
            echo '  <div class="col-md-2 col-sm-2 col-md-offset-' . $req . ' col-sm-offset-' . $req . ' hidden-xs">';
            echo '      <figure class="thumbnail" title="' . $user->getName() . '">';
            echo '          <a href="' . $obj->getUrl(array('module' => 'user', 'controller' => 'profil', 'action' => 'index', 'user' => $user->getId())) . '"><img class="img-responsive" src="' . $obj->getBaseUrl($user->getAvatar()) . '" alt="' . $user->getName() . '"></a>';
            echo '      </figure>';
            echo '  </div>';
            echo '  <div class="col-md-' . $col . ' col-sm-' . $col . '">';
        } else {
            $col = $col + 2;
            echo '  <div class="col-md-' . $col . ' col-sm-' . $col . ' col-md-offset-' . $req . ' col-sm-offset-' . $req . '">';
        }
        echo '      <div class="panel panel-default">';
        echo '          <div class="panel-bodylist">';
        echo '              <div class="panel-heading right"><i class="fa fa-reply"></i> ' . $user_rep->getName() . '</div>';
        echo '              <header class="text-left">';
        echo '                  <div class="comment-user">';
        echo '                      <i class="fa fa-user" title="' . $obj->getTrans('commentUser') . '"></i> <a href="' . $obj->getUrl(array('module' => 'user', 'controller' => 'profil', 'action' => 'index', 'user' => $fk_comment->getUserId())) . '">' . $user->getName() . '</a>';
        echo '                  </div>';
        if ($config->get('comment_date') == 1) {
            echo '<time class="comment-date"><i class="fa fa-clock-o" title="' . $obj->getTrans('commentDateTime') . '"></i> ' . $commentDate->format("d.m.Y - H:i", true) . '</time>';
        }
        echo '              </header>';
        echo '              <div class="comment-post"><p>' . nl2br($fk_comment->getText()) . '</p></div>';
        if ($obj->getUser() and $config->get('comment_reply') == 1) {
            echo '<p class="text-right"><a href="javascript:slideReply(\'reply_' . $fk_comment->getId() . '\');" class="btn btn-default btn-sm"><i class="fa fa-reply"></i> ' . $obj->getTrans('reply') . '</a></p>';
        }
        echo '              </div>';
        echo '          </div>';
        echo '      </div>';
        echo '  </article>';
        if ($obj->getUser()) {
            echo '  <div class="replyHidden" id="reply_' . $fk_comment->getId() . '">';
            echo '      <form action="" class="form-horizontal" method="POST">';
            echo $obj->getTokenField();
            echo '          <section class="comment-list">';
            echo '              <article class="row">';
            $col = $col - 1;
            $req = $req + 1;
            if ($config->get('comment_avatar') == 1) {
                echo '  <div class="col-md-2 col-sm-2 col-md-offset-' . $req . ' col-sm-offset-' . $req . ' hidden-xs">';
                echo '      <figure class="thumbnail" title="' . $obj->getUser()->getName() . '">';
                echo '          <a href="' . $obj->getUrl('user/profil/index/user/' . $obj->getUser()->getId()) . '"><img class="img-responsive" src="' . $obj->getUrl() . '/' . $obj->getUser()->getAvatar() . '" alt="' . $obj->getUser()->getName() . '"></a>';
                echo '      </figure>';
                echo '  </div>';
            }
            echo '                  <div class="col-md-' . $col . ' col-sm-' . $col . '">';
            echo '                      <div class="panel panel-default">';
            echo '                          <div class="panel-body">';
            echo '                              <div class="panel-heading right"><i class="fa fa-reply"></i> ' . $user->getName() . '</div>';
            echo '                              <header class="text-left">';
            echo '                                  <div class="comment-user">';
            echo '                                      <i class="fa fa-user" title="' . $obj->getTrans('commentUser') . '"></i> <a href="' . $obj->getUrl(array('module' => 'user', 'controller' => 'profil', 'action' => 'index', 'user' => $obj->getUser()->getId())) . '">' . $obj->getUser()->getName() . '</a>';
            echo '                                  </div>';
            if ($config->get('comment_date') == 1) {
                echo '<time class="comment-date"><i class="fa fa-clock-o" title="' . $obj->getTrans('commentDateTime') . '"></i> ' . $nowDate->format("d.m.Y - H:i", true) . '</time>';
            }
            echo '                              </header>';
            echo '                              <div class="comment-post">';
            echo '                                  <p>';
            echo '                                      <textarea class="form-control"
                                                                    accesskey=""
                                                                    name="article_comment_text"
                                                                    style="resize: vertical"
                                                                    required></textarea>';
            echo '                                  </p>';
            echo '                              </div>';
            echo '                              <input type="hidden" name="fkId" value="' . $fk_comment->getId() . '" />';
            echo '                              <p class="text-right submit">';
            echo $obj->getSaveBar('submit', 'Comment');
            echo '                              </p>';
            echo '                          </div>';
            echo '                      </div>';
            echo '                  </div>';
            echo '              </article>';
            echo '          </section>';
            echo '      </form>';
            echo '  </div>';
        }
        $fkk_comments = $CommentMappers->getCommentsByFKId($fk_comment->getId());
        $req = $req - 1;
        if (count($fkk_comments) > 0) {
            $req++;
        }
        $i = 1;
        foreach ($fkk_comments as $fkk_comment) {
            if ($i == 1) {
                rec($fk_comment->getId(), $fk_comment->getUserId(), $req, $obj);
                $i++;
            }
        }
        if (count($fkk_comments) > 0) {
            $req--;
        }
    }
}
コード例 #18
0
ファイル: index.php プロジェクト: prepare4battle/Ilch-2.0
                        <th><?php 
    echo $this->getTrans('reason');
    ?>
</th>
                        <th><?php 
    echo $this->getTrans('text');
    ?>
</th>
                    </tr>
                </thead>
                <tbody>
                    <?php 
    foreach ($this->get('aways') as $away) {
        ?>
                        <?php 
        $userMapper = new \Modules\User\Mappers\User();
        ?>
                        <?php 
        $user = $userMapper->getUserById($away->getUserId());
        ?>
                        <tr>
                            <td><input value="<?php 
        echo $away->getId();
        ?>
" type="checkbox" name="check_aways[]" /></td>
                            <td><?php 
        echo $this->getDeleteIcon(array('action' => 'del', 'id' => $away->getId()));
        ?>
</td>
                            <td>
                                <?php 
コード例 #19
0
ファイル: show.php プロジェクト: prepare4battle/Ilch-2.0
<?php

$training = $this->get('training');
$userMapper = new \Modules\User\Mappers\User();
?>

<legend><?php 
echo $this->getTrans('trainDetails');
?>
</legend>
<div class="form-horizontal">
    <div class="form-group">
        <label for="receiver" class="col-lg-3">
            <?php 
echo $this->getTrans('title');
?>
:
        </label>
        <div class="col-lg-9"><?php 
echo $this->escape($training->getTitle());
?>
</div>
    </div>
    <div class="form-group">
        <label for="date" class="col-lg-3">
            <?php 
echo $this->getTrans('dateTime');
?>
:
        </label>
        <div class="col-lg-9"><?php 
コード例 #20
0
ファイル: index.php プロジェクト: prepare4battle/Ilch-2.0
<link href="<?php 
echo $this->getModuleUrl('static/css/statistic.css');
?>
" rel="stylesheet">
<link href="<?php 
echo $this->getStaticUrl('css/bootstrap-progressbar-3.3.4.css');
?>
" rel="stylesheet">
<script type="text/javascript" src="<?php 
echo $this->getStaticUrl('js/bootstrap-progressbar.js');
?>
"></script>

<?php 
$statisticMapper = new \Modules\Statistic\Mappers\Statistic();
$userMapper = new \Modules\User\Mappers\User();
$languageCodes = new \Modules\Statistic\Plugins\languageCodes();
$date = new \Ilch\Date();
$dateCmsInstalled = new \Ilch\Date($this->get('dateCmsInstalled'));
$registNewUser = $userMapper->getUserById($this->get('registNewUser'));
?>

<legend><?php 
echo $this->getTrans('menuStatistic');
?>
</legend>
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h4 class="panel-title"><?php 
コード例 #21
0
ファイル: index.php プロジェクト: sCar-w4y/Ilch-2.0
<?php

$userMapper = new Modules\User\Mappers\User();
?>

<link href="<?php 
echo $this->getModuleUrl('static/css/user.css');
?>
" rel="stylesheet">

<legend><?php 
echo $this->getTrans('menuUserList');
?>
</legend>
<div class="row">
    <?php 
foreach ($this->get('userList') as $userlist) {
    ?>
        <div class="col-lg-4">
            <div class="user">
                <img class="thumbnail" src="<?php 
    echo $this->getStaticUrl() . '../' . $this->escape($userlist->getAvatar());
    ?>
" alt="">
                <h3><a href="<?php 
    echo $this->getUrl(array('controller' => 'profil', 'action' => 'index', 'user' => $userlist->getId()));
    ?>
" title="<?php 
    echo $this->escape($userlist->getName());
    ?>
s <?php 
コード例 #22
0
ファイル: index.php プロジェクト: sCar-w4y/Ilch-2.0
<?php

$userMapper = new Modules\User\Mappers\User();
$profil = $this->get('profil');
$birthday = new \Ilch\Date($profil->getBirthday());
$homepage = $userMapper->getHomepage($this->escape($profil->getHomepage()));
$facebook = $userMapper->getFacebook($this->escape($profil->getFacebook()));
$twitter = $userMapper->getTwitter($this->escape($profil->getTwitter()));
$google = $userMapper->getGoogle($this->escape($profil->getGoogle()));
$groups = '';
foreach ($profil->getGroups() as $group) {
    if ($groups != '') {
        $groups .= ', ';
    }
    $groups .= $group->getName();
}
?>

<link href="<?php 
echo $this->getModuleUrl('static/css/user.css');
?>
" rel="stylesheet">

<div class="profil">
    <div class="profil-header">
        <div class="row">
            <div class="col-lg-2">
                <img class="thumbnail" src="<?php 
echo $this->getStaticUrl() . '../' . $this->escape($profil->getAvatar());
?>
" title="<?php 
コード例 #23
0
ファイル: show.php プロジェクト: prepare4battle/Ilch-2.0
        <?php 
        } else {
            ?>
            <?php 
            echo $content;
            ?>
        <?php 
        }
        ?>
        <hr />
        <div>
            <?php 
        if ($article->getAuthorId() != '') {
            ?>
                <?php 
            $userMapper = new \Modules\User\Mappers\User();
            ?>
                <?php 
            $user = $userMapper->getUserById($article->getAuthorId());
            ?>
                <?php 
            if ($user != '') {
                ?>
                    <i class="fa fa-user" title="<?php 
                echo $this->getTrans('author');
                ?>
"></i> <a href="<?php 
                echo $this->getUrl(array('module' => 'user', 'controller' => 'profil', 'action' => 'index', 'user' => $user->getId()));
                ?>
"><?php 
                echo $this->escape($user->getName());
コード例 #24
0
ファイル: index.php プロジェクト: prepare4battle/Ilch-2.0
<?php

$userMapper = new \Modules\User\Mappers\User();
if ($this->getUser()) {
    $userCheck = $userMapper->getUserById($this->getUser()->getId());
}
?>

<link href="<?php 
echo $this->getStaticUrl('js/datetimepicker/css/bootstrap-datetimepicker.min.css');
?>
" rel="stylesheet">

<style>
.agenda {
    width: 140px;
}
.agenda-arrow {
    float:left;
    width: 45px;
    text-align: center;
    font-weight: bold;
    line-height: 36px;
    color: #000;
}
.dayofmonth {
    width: 40px;
    font-size: 36px;
    line-height: 36px;
    float: left;
    text-align: right;