Пример #1
0
         $start = 0;
     }
     if ($total < $start + $msg_his) {
         $end = $total;
     } else {
         $end = $start + $msg_his;
     }
     for ($i = $start; $i < $end; $i++) {
         $data = explode("|", $file[$i]);
         $num = $total - $i - 1;
         if (!empty($data[2])) {
             $icq = ' (ICQ: ' . $data[2] . ')';
         } else {
             $icq = '';
         }
         echo ' <a href="index.php?name=' . safe_encode(nickname($data[0])) . '"><b>' . nickname($data[0]) . '</b></a>' . $icq;
         if (is_admin(array(101, 102, 103, 105))) {
             echo ' <a href="del.php?id=' . $num . '&amp;' . SID . '">[x]</a> ';
         }
         echo '<br />' . bb_code($data[1]) . '<br />';
         if (is_admin(array(101, 102, 103, 105))) {
             if ($look_ip == "On") {
                 echo '<span class="data">(' . $data[4] . ', ' . $data[5] . ')</span><br />';
             }
         }
     }
     page_jumpnavigation('history.php?', $msg_his, $start, $total);
     page_strnavigation('history.php?', $msg_his, $start, $total);
 } else {
     show_error('В пирамиде еще нет сообщений!');
 }
Пример #2
0
        if ($jenis_surat == 'surat-biasa') {
            switch ($a->pos) {
                case 0:
                    $pos = '<i class="fa fa-share" title="Langsung"></i>';
                    break;
                case 1:
                    $pos = '<i class="fa fa-envelope" title="Pos"></i>';
                    break;
                case 2:
                    $pos = '<i class="fa fa-forward" title="Telah dikirim"></i>';
                    break;
                case 2:
                    $pos = 'Terkirim';
                    break;
                default:
                    $pos = '-';
                    break;
            }
            echo '<td>' . ($a->deleted ? '-' : $pos) . '</td>';
        }
        echo '<td>' . ($a->deleted ? "<button class='btn btn-default btn-xs disabled'>deleted</button>" : "<button class='btn btn-primary btn-xs' onclick=\"BukaPage('outbox/" . str_replace('-', '_', $jenis_surat) . "/edit/" . safe_encode($a->id_surat) . "/" . $this->uri->segment(3) . "/" . $this->uri->segment(4) . "')\"><i class='fa fa-pencil'></i></button>" . " <button class='btn btn-danger btn-xs' onclick=\"ConfirmDelete('" . $this->encrypt->encode($a->id_surat) . "')\"><i class='fa fa-trash'></i></button>") . '</td>';
        echo '</tr>';
    }
    echo '</table>';
} else {
    $kosong = array('data' => 'Tidak ditemukan data!', 'colspan' => 7);
    $this->table->add_row(array($kosong));
}
?>
</div>
Пример #3
0
        $useravatars = user_avatars($data[1]);
        if ($data[1] == 'Вундер-киндер') {
            $useravatars = '<img src="../images/img/mag.gif" alt="image" /> ';
            $useronline = '<span style="color:#00ff00">[On]</span>';
        }
        if ($data[1] == 'Настюха') {
            $useravatars = '<img src="../images/img/bot.gif" alt="image" /> ';
            $useronline = '<span style="color:#00ff00">[On]</span>';
        }
        if ($data[1] == 'Весельчак') {
            $useravatars = '<img src="../images/img/shut.gif" alt="image" /> ';
            $useronline = '<span style="color:#00ff00">[On]</span>';
        }
        echo '<div class="b">';
        echo $useravatars;
        echo '<b><a href="index.php?imja=' . safe_encode(nickname($data[1])) . '&amp;' . SID . '#form">' . nickname($data[1]) . '</a></b> ' . user_title($data[1]) . $useronline . ' <small>(' . date_fixed($data[3]) . ')</small></div>';
        echo '<div>' . bb_code($data[0]) . '<br />';
        echo '<span class="data">(' . $data[4] . ', ' . $data[5] . ')</span></div>';
    }
    page_jumpnavigation('index.php?', $config['chatpost'], $start, $total);
    page_strnavigation('index.php?', $config['chatpost'], $start, $total);
} else {
    show_error('Сообщений нет, будь первым!');
}
if (is_user()) {
    echo '<br /><div class="form" id="form">';
    echo '<form action="add.php?' . SID . '" method="post">';
    echo '<b>Сообщение:</b><br />';
    echo '<textarea cols="20" rows="3" name="msg">' . $imja . '</textarea><br />';
    echo '<input type="submit" value="Добавить" /></form></div>';
} else {