Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div style="position: static; top: 134px; left: 10px; height: auto; margin-left: 15px;">
- <style tyle="text/css">
- .gameCard {border: solid white 4px;line-height: 12px !important;text-align:center;height:auto;width:auto;min-width:110px;padding: 13px 25px;margin-bottom:10px !important;font-size: 14px;color:#616161; display: inline-block; white-space: nowrap;}
- .gameCard:hover {border: solid #dbdbdb 4px;-webkit-transition: 0.3s cubic-bezier(0, 0, 0.55, 1); -moz-transition: 0.3s cubic-bezier(0, 0, 0.55, 1); -ms-transition: 0.3s cubic-bezier(0, 0, 0.55, 1); -o-transition: 0.3s cubic-bezier(0, 0, 0.55, 1); transition: 0.3s cubic-bezier(0, 0, 0.55, 1);}
- .gameCard img {background: #e3e3e3; padding: 5px; border-radius: 5px; margin-bottom: 5px; margin-top: 5px;}
- .gameCard.inactive {opacity:0.3}
- .gameCard.inactive:hover {opacity:0.7}
- .gameCard span{font-size: 0.85em}
- .gameCard .seen{display:none}
- .gameCard .time{display:inline}
- .gameCard:hover .seen{display:inline}
- .gameCard:hover .time{display:none}
- .online {display: inherit; background: #7ba60d; color: white; padding: 2px 6px; border-radius: 3px; margin-top: 2px;}
- .noonline {display: inherit; background: #e3e3e3; color: #4d4d4d; padding: 2px 6px; border-radius: 3px; margin-top: 2px;}
- </style>
- <script type="text/javascript" src="/public/js/ips.game.js" charset='{$this->settings['gb_char_set']}' async></script>
- <if test="count($przycisk)">
- <foreach loop="$przycisk as $row">
- <div class="header" style='padding: 5px; margin-bottom: 10px;'>
- <div class="ipsButton_secondary ipsList_inline" style="margin-top: 5px; margin-left: 5px;margin-right:5px;font-weight:normal"><a href="/index.php?app=panel&module=characters§ion=create"><i class="fas fa-plus"></i> Stwórz postać</a></div>
- </div>
- </foreach></if>
- <div class="ipsPad">
- <if test="count($chars)">
- <ul class="ipsList_inline">
- <foreach loop="$chars as $row">
- <php>
- $this->DB->query('SELECT * FROM `ipb_members` WHERE `member_id` = '.$row['GUID'].'');
- $rows = $this->DB->fetch();
- </php>
- <if test="$row['UKRYTA'] == 1">
- <if test="$this->memberData['member_id'] == $row['GUID'] || $this->memberData['g_access_cp'] || $this->memberData['member_group_id'] == 7 || $this->memberData['member_group_id'] == 8">
- <a href="{parse url=" app=panel&module=ajax&section=character&do=details&char={$row[ 'ID']}&md5check={$this->member->form_hash}" base="public"}" onclick="ipb.game.showCharacterDetails(this, {$row['ID']});return false;">
- <li class="gameCard">
- <img src="/public/skins/{$row['LSKIN']}.png" <if test="$row['UKRYTA'] == 1 || $row['AKTYWNE'] == 0 || $row['AKTYWNE'] == -1 || $rows['ban'] > IPS_UNIX_TIME_NOW || $rows['ban'] == -1">style="opacity: 0.5;"</if>>
- <br>
- <span class="hnick" <if test="$row['UKRYTA'] == 1 || $row['AKTYWNE'] == 0 || $row['AKTYWNE'] == -1 || $rows['ban'] > IPS_UNIX_TIME_NOW || $rows['ban'] == -1">style="opacity: 0.5;"</if>>{$row['name']}</span>
- <br>
- <if test="$row['ONLINE'] == 1"><span class="online" <if test="$row['UKRYTA'] == 1 || $row['AKTYWNE'] == 0 || $row['AKTYWNE'] == -1 || $rows['ban'] > IPS_UNIX_TIME_NOW || $rows['ban'] == -1">style="opacity: 0.5;"</if>>Online!</span>
- <else /><span class="noonline" <if test="$row['UKRYTA'] == 1 || $row['AKTYWNE'] == 0 || $row['AKTYWNE'] == -1 || $rows['ban'] > IPS_UNIX_TIME_NOW || $rows['ban'] == -1">style="opacity: 0.5;"</if>>Postać ukryta!</span></if>
- </span>
- </li>
- </a>
- </if>
- <else />
- <a href="{parse url=" app=panel&module=ajax&section=character&do=details&char={$row[ 'ID']}&md5check={$this->member->form_hash}" base="public"}" onclick="ipb.game.showCharacterDetails(this, {$row['ID']});return false;">
- <li class="gameCard"
- <if test="$row['UKRYTA'] == 1 || $row['AKTYWNE'] == 0 || $row['AKTYWNE'] == -1 || $rows['ban'] > IPS_UNIX_TIME_NOW || $rows['ban'] == -1">style="opacity: 0.5;"</if>>
- <img src="/public/skins/{$row['LSKIN']}.png">
- <br>
- <span class="hnick">{$row['name']}</span>
- <br>
- <if test="$row['ONLINE'] == 1"><span class="online"><if test="$row['is_team'] == 1">TEAM<else />Online!</if></span>
- <else />
- <span class="noonline" <if test="$row['is_team'] == 1">style='font-weight: bold; color: white; background: #2c4762;'</if>>
- <if test="$row['is_team'] == 1">TEAM<else />{parse date="$row['OSTATNIO_NA_SERWERZE']" format="short"}</if></span></if>
- </span>
- </li>
- </a>
- </if>
- </foreach>
- <else />
- <div class="message unspecific">Nie znaleziono żadnych postaci.</div>
- </if>
- </div>
- <if test="$this->memberData['member_group_id'] == 4 || $this->memberData['member_group_id'] == 7 || $this->memberData['member_group_id'] == 8">
- <form action="{parse url="app=panel&module=admin§ion=penality" base="public"}" method="POST" style="text-align: center;">
- <select name="option" style='font: normal 13px helvetica, arial, sans-serif; padding: 3px; border-width: 1px; border-style: solid; border-color: rgba(0, 0, 0, 0.29); background: #fff; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 5px;'>
- <option value="block">Blokada postaci</option>
- <option value="block_ooc">Blokada OOC</option>
- <option value="block_veh">Blokada prowadzenia pojazdów</option>
- <option value="block_bieg">Blokada biegania</option>
- <option value="block_bron">Blokada broni</option>
- <option value="klatwa">Klątwa</option>
- <option value="ban">Ban</option>
- <option value="aj">AJ</option>
- <if test="$this->memberData['member_group_id'] == 4 || $this->memberData['member_group_id'] == 7">
- <option value="score">iPoints</option>
- </if>
- </select>
- <select name="ID" style='font: normal 13px helvetica, arial, sans-serif; padding: 3px; border-width: 1px; border-style: solid; border-color: rgba(0, 0, 0, 0.29); background: #fff; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 5px;'>
- <if test="count($chars)">
- <foreach loop="$chars as $postac">
- <option value="{$postac['ID']}">{$postac['name']}</option>
- </foreach>
- </if>
- </select>
- <input id="anonymous_element_69" data-tooltip="W tym miejscu wprowadź ilość dni kary, ilość iPoints lub ilość minut Admin Jail" name="wartosc" type="text" placeholder="Wartość np. ilość dni" style='font: normal 13px helvetica, arial, sans-serif; padding: 3px; border-width: 1px; border-style: solid; border-color: rgba(0, 0, 0, 0.29); background: #fff; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 5px;'>
- <input name="Tekst" type="text" placeholder="Powód" style='font: normal 13px helvetica, arial, sans-serif; padding: 3px; border-width: 1px; border-style: solid; border-color: rgba(0, 0, 0, 0.29); background: #fff; -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 5px;'>
- <input type="submit" class="input_submit" name="submitForm" value="Nadaj karę">
- </form>
- </if>
- <br>
- <div class="ipsBox" style="margin-right: 15px; margin-bottom: 5px;">
- <if test="count($logs)">
- <table class="ipb_table" summary="Logi"><tbody style='font-size:12px;'><tr class="header"><th scope="col">Nadano</th><th scope="col">Postać</th><th scope="col">Powód</th><th scope="col"></th><th scope="col"></th></tr>
- <foreach loop="$logs as $row">
- <php>
- $this->DB->query('SELECT * FROM `jochym_postacie` WHERE `ID` = '.$row['UID_POSTACI'].'');
- $char = $this->DB->fetch();
- $char['name'] = str_replace("_", " ", $char['name']);
- if($row['GUID_NADAJACEGO'] > 0)
- {
- $this->DB->query('SELECT * FROM `ipb_members` WHERE `member_id` = '.$row['GUID_NADAJACEGO'].'');
- $iss = $this->DB->fetch();
- }
- $user = IPSMember::load( $row['GUID_NADAJACEGO'] );
- $user2 = IPSMember::load( $row['GUID_DEZ'] );
- </php>
- <tr class="row1">
- <td>
- {parse date="$row['DATA']" format="short"}<br>
- <span class="desc">przez <if test="$row['GUID_NADAJACEGO'] == -1">System<else />{parse template="userHoverCard" group="global" params="$user"}</if></span>
- </td>
- <td>
- <if test="$char['UKRYTA'] == 1">
- <if test="$this->memberData['member_group_id'] == 4 || $this->memberData['member_group_id'] == 7 || $this->memberData['member_group_id'] == 8">{$char['name']}</if>
- (postać ukryta)<else />{$char['name']}</if>
- <br>
- <span class="desc">{$row['Typ']}</span>
- </td>
- <td>
- {$row['POWOD']}
- <br>
- <span class="desc">
- <if test="$row['AKTYWNE'] == 1"><if test="$row['DATA_DEZAKTYWACJI'] == -1">Nigdy nie wygasa<br /><else /><if test="$row['DATA_DEZAKTYWACJI'] > IPS_UNIX_TIME_NOW">Wygasa {parse date="$row['DATA_DEZAKTYWACJI']" format="short"}<else />Wygasła {parse date="$row['DATA_DEZAKTYWACJI']" format="short"}</if></if><else />Dezaktywowano przez {parse template="userHoverCard" group="global" params="$user2"}
- </if>
- </span>
- </td>
- <if test="count($przycisk)"><td>
- <ul class="right"><li>
- <a href="/index.php?app=panel&module=apelacje§ion=add&id={$row['ID']}" class="ipsButton_secondary">Apeluj</a>
- </li></ul>
- </td></if>
- <if test="$this->memberData['member_group_id'] == 7 || $this->memberData['member_group_id'] == 4">
- <td>
- <a href=/index.php?app=panel&module=ajax§ion=character&do=penDeactivate&penalty={$row['ID']}&md5check={$this->member->form_hash} class="ipsButton_secondary">Dezaktywuj</a>
- </td>
- </if>
- </foreach>
- </tr></tbody></table>
- <else />
- <div class="message unspecific">Nie znaleziono żadnych logów.</div>
- </if>
- </div>
- <div class="ipsBox" style="margin-right: 15px; margin-bottom: 5px;">
- <if test="count($apelacja)">
- <table class="ipb_table" summary="Logi"><tbody style='font-size: 12px;'>
- <tr class="header">
- <th scope="col">Postać</th>
- <th scope="col">Kara</th>
- <th scope="col">Werdykt</th>
- </tr>
- <foreach loop="$apelacja as $row">
- <php>
- $this->DB->query('SELECT * FROM `jochym_kary` WHERE ID = '.$row['Kara'].'');
- $rows = $this->DB->fetch();
- $member2 = IPSMember::load( $rows['GUID_NADAJACEGO'] );
- $this->DB->query('SELECT * FROM `jochym_postacie` WHERE ID = '.$rows['UID_POSTACI'].'');
- $rowss = $this->DB->fetch();
- $rowss['Postac'] = str_replace("_", " ", $rowss['name']);
- if($rowss['UKRYTA'] == 1)
- {
- if($this->memberData['member_group_id'] == 4 || $this->memberData['member_group_id'] == 7 || $this->memberData['member_group_id'] == 8)
- {
- $rowss['Postac'] = str_replace($rowss['Postac'], $rowss['Postac']." (postać ukryta)", $rowss['Postac']);
- }
- else
- {
- $rowss['Postac'] = str_replace($rowss['Postac'], "(postać ukryta)", $rowss['Postac']);
- }
- }
- $typ = array(
- 0 => 'Kick',
- 1 => 'Warn', //h 1 +
- 2 => 'Ban', //h 2 +
- 3 => 'Admin Jail', //h 3 +
- 4 => 'Blokada postaci', //h 4
- 5 => 'Blokada biegania', //h 5 +
- 6 => 'Blokada prowadzenia pojazdów', // 6 -
- 7 => 'Blokada OOC', // 7 -
- 8 => 'Blokada broni', // 8 -
- 9 => 'GameScore+', // 9
- 10 => 'Klątwa', //h 10 +
- 12 => 'Ban w wyniku klątwy', // 11 +
- 12 => 'GameScore-', // 12 +
- );
- $rows['Type'] = $typ[(int)$rows['TYP']];
- </php>
- <tr class="row1">
- <td class="altrow">{$rowss['Postac']}</td>
- <td>
- <a href="/index.php?app=panel&module=apelacje§ion=view&id={$row['id']}">{$rows['Type']} z {parse date="$rows['DATA']" format="short"} od</a> <i><if test="$rows['GUID_NADAJACEGO'] == -1">System<else />{parse template="userHoverCard" group="global" params="$member2"}</if></i><br><span class="desc">{$rows['Tekst']}</span>
- </td>
- <td class="altrow">
- <if test="$row['Status'] == 0"><span style="color:#ff8c00;"><strong>Oczekuje</strong></span></if><if test="$row['Status'] == 1"><strong><span style="color:#008000;"><img src="/public/style_images/master/accept.png" alt="+"> Zaakceptowane</span></strong></if><if test="$row['Status'] == 2"><span style="color:#ff0000;"><strong><img src="/public/style_images/master/cross.png" title="" alt="*"> Odrzucona</strong></span></if>
- </td>
- </tr>
- </foreach>
- </tr></tbody></table>
- <else />
- <div class="message unspecific">Nie znaleziono żadnej apelacji.</div>
- </if>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement