<table border="0" celladding="1" cellspacing="1" width="100%">
<?php 
foreach ($tpldata as $id => $comment) {
    ?>
<tr>
    <th width="100%" align="left" valign="middle"><?php 
    echo $lang['articles']['poster'];
    ?>
 <?php 
    echo user_create_link($comment['author_user'], $comment['author_nick']);
    ?>
</td>
    <th align="left" valign="center" nowrap="nowrap"><?php 
    echo rcms_format_time('H:i:s d.m.Y', $comment['time']);
    ?>
</td>
    <?php 
    if ($system->checkForRight('A-MA')) {
        ?>
    <th nowrap="nowrap"><form method="post" action=""><input type="hidden" name="cdelete" value="<?php 
        echo $id;
        ?>
"><input type="submit" name="" value="<?php 
        echo $lang['articles']['delete'];
        ?>
"></form></td>
    <?php 
    }
    ?>
</tr>
<tr>
            ?>
 <?php 
            echo $post['author_ip'];
            ?>
 <?php 
        }
        ?>
 </small>
    </td>
    <td class="row2" align="right" nowrap="nowrap">
        <small>
            <?php 
        if ($post['author_name'] != 'guest') {
            ?>
            [ <?php 
            echo user_create_link($post['author_name'], __('Profile'));
            ?>
 ]
            <?php 
        }
        ?>
            <?php 
        if ($system->checkForRight('FORUM')) {
            ?>
            [ <a href="?module=forum.archive&amp;action=restore_topic&amp;t=<?php 
            echo $tpldata['topic']['id'];
            ?>
&amp;p=<?php 
            echo $post_id + 2;
            ?>
"><?php 
Exemplo n.º 3
0
        $frm->addrow(__('Add link to file'), $frm->select_tag('files', $files, -1, 'onChange="selChange(this.form)">\\n
	<option value="-1">' . __('Select file') . '</option') . '&nbsp;&nbsp;&nbsp;' . __('You entered filename of file uploaded through upload interface'), 'top');
    }
    //End Insert list uploaded files
    if ($system->checkForRight('GENERAL')) {
        $arr_modes = array('html' => __('HTML'), 'text' => __('Text'), 'htmlbb' => __('bbCodes') . '+' . __('HTML'), 'php' => __('PHP'));
    } else {
        $arr_modes = array('html' => __('HTML'), 'text' => __('Text'), 'htmlbb' => __('bbCodes') . '+' . __('HTML'));
    }
    $frm->addrow(__('Mode'), $frm->select_tag('mode', $arr_modes, $article['mode']), 'top');
    $frm->addrow(__('Date') . ' (yyyy-mm-dd hh:mm:ss)', $frm->text_box('time', gmdate("Y-m-d H:i:s", $article['time'])), 'top');
    $frm->addrow(__('Allow comments'), $frm->radio_button('comments', array('yes' => __('Allow'), 'no' => __('Disallow')), $article['comments']), 'top');
    $frm->show();
} elseif (!empty($b) || $c == '#hidden' || $c == '#root') {
    if ($articles->setWorkContainer($c)) {
        $frm = new InputForm('', 'post', __('Submit'), __('Reset'));
        $frm->addbreak(__('List of articles'));
        $frm->hidden('c', $c);
        $frm->hidden('b', $b);
        if (($list = $articles->getArticles($b, false, false, false)) !== false) {
            foreach (array_reverse($list, true) as $id => $article) {
                $frm->addrow('<a href="' . RCMS_ROOT_PATH . '?module=articles&c=' . $c . '&b=' . $b . '&a=' . $article['id'] . '" target="_blank">' . $article['title'] . '</a>' . ' [' . user_create_link($article['author_name'], $article['author_nick'], '_blank') . '] [' . rcms_format_time('d F Y H:i:s', $article['time']) . ']', $frm->checkbox('delete[' . $article['id'] . ']', '1', __('Delete')) . $frm->radio_button('a', array($article['id'] => __('Edit'))) . $frm->radio_button('move', array($article['id'] => __('Move'))));
            }
        } else {
            rcms_showAdminMessage($articles->last_error);
        }
        $frm->show();
    } else {
        rcms_showAdminMessage($articles->last_error);
    }
}
?>
        <?php 
echo !empty($tpldata['showdesc']) || empty($tpldata['text']) ? $tpldata['desc'] : $tpldata['text'];
?>
    </td>
</tr>
<tr>
    <td class="row3" align="left" nowrap><?php 
echo rcms_format_time('d F Y H:i:s', $tpldata['time']);
?>
</td>
    <td align="center" class="row2" width="100%"><?php 
echo $lang['articles']['poster'];
?>
 <?php 
echo user_create_link($tpldata['author_name'], $tpldata['author_nick']);
?>
 :: <?php 
echo $lang['articles']['author'];
?>
: <?php 
echo $tpldata['src'];
?>
</td>
<?php 
if (!empty($tpldata['linktext']) && !empty($tpldata['linkurl'])) {
    ?>
   	<td align="left" class="row3" nowrap><a href="<?php 
    echo $tpldata['linkurl'];
    ?>
"><?php 
Exemplo n.º 5
0
<table border="0" cellpadding="1" cellspacing="1" style="width: 100%; text-align: left " >
<tr><td colspan="2"><?php 
echo $tpldata['text'];
?>
</td></tr>
<tr><td><?php 
echo rcms_format_time('d/m/Y H:i', $tpldata['date']);
?>
</td><td><?php 
echo __('Posted by') . ': ' . user_create_link($tpldata['author_name'], $tpldata['author_nick'], '_blank');
?>
</td></tr>
</table>
<br />
Exemplo n.º 6
0
<div class="border">
    <div class="row3"><?php 
echo user_create_link($tpldata['username'], $tpldata['nickname']);
?>
</div>
    <div class="row2" style=""><?php 
echo $tpldata['text'];
?>
</div>
    <div class="row3" style="height: auto;">
        <?php 
echo rcms_format_time('d F Y H:i:s', $tpldata['time'], $system->user['tz']);
?>
    <?php 
if ($system->checkForRight('MINICHAT')) {
    ?>
        <form method="post" action="">
            <input type="hidden" name="mcdelete" value="<?php 
    echo $tpldata['id'];
    ?>
" />
            <input type="submit" name="" value="X" />
        </form>
    <?php 
}
?>
    </div>
</div>
<br />
Exemplo n.º 7
0
    if (!empty($stats['online']) || !empty($stats['guests_online'])) {
        $result .= '
    <td align="left" class="row1" colspan="2">' . __('Online') . ' - ' . sizeof($stats['online']) . ' (' . (sizeof($stats['online']) - $guests_count) . ' ' . __('registered') . ')</td>
</tr>';
    }
    if (!empty($stats['online'])) {
        $result .= '
<tr>
    <td align="right" class="row2" colspan="2">';
        $i = 0;
        foreach ($stats['online'] as $ip => $data) {
            if ($data['name'] !== 'guest') {
                if ($i != 0) {
                    $result .= ', ';
                }
                $result .= user_create_link($data['name'], $data['nick']);
                $i++;
            }
        }
        if ($i > 1) {
            $result .= '.';
        }
        $result .= '
    </td>
</tr>';
    }
    $result .= '
<tr>
    <td align="left" class="row1" width="100%">' . __('Total hits') . '</td><td align="right" class="row2" nowrap="nowrap">' . $stats['totalhits'] . '&nbsp;</td>
</tr>
<tr>
Exemplo n.º 8
0
        ?>
    </td>
    <td class="<?php 
        echo $style;
        ?>
" nowrap="nowrap" align="center">
        <?php 
        echo (int) @$topic['replies'];
        ?>
    </td>
    <td class="<?php 
        echo $style;
        ?>
" nowrap="nowrap" align="center">
        <?php 
        echo user_create_link($topic['author_name'], $topic['author_nick']);
        ?>
    </td>
    <td class="<?php 
        echo $style;
        ?>
" nowrap="nowrap" align="center">        
        <?php 
        if ($topic['last_reply'] != 0 && @$topic['last_reply_id'] != 0) {
            ?>
            <?php 
            if (rcms_format_time('d', $topic['last_reply']) == rcms_format_time('d', rcms_get_time())) {
                ?>
                <?php 
                echo __('Today at') . ' ' . rcms_format_time('H:i:s', $topic['last_reply']);
                ?>
Exemplo n.º 9
0
echo empty($tpldata['text']) ? $tpldata['desc'] : $tpldata['text'];
?>
    </td>
</tr>
<tr>
    <td class="row3" align="left" style="white-space: nowrap;">
        <?php 
echo rcms_format_time('d F Y H:i:s', $tpldata['time']);
?>
    </td>
    <td align="center" class="row2" style="width: 100%;">
        <?php 
echo __('Posted by');
?>
 <?php 
echo user_create_link($tpldata['author_name'], str_replace(' ', '&nbsp;', $tpldata['author_nick']));
?>
,
        <?php 
echo __('Author/source');
?>
: <?php 
echo rcms_parse_text($tpldata['src'], false, false, false, false, false);
?>
    </td>
<?php 
if (!empty($tpldata['linktext']) && !empty($tpldata['linkurl'])) {
    ?>
   	<td class="row3" align="left" style="white-space: nowrap;">
   	    <a href="<?php 
    echo $tpldata['linkurl'];
Exemplo n.º 10
0
<?php

////////////////////////////////////////////////////////////////////////////////
//   Copyright (C) ReloadCMS Development Team                                 //
//   http://reloadcms.com                                                     //
//   This product released under GNU General Public License v2                //
////////////////////////////////////////////////////////////////////////////////
if (!empty($_POST['d'])) {
    foreach ($_POST['d'] as $id => $cond) {
        if ($cond) {
            post_remove($id, DF_PATH . 'support.dat');
        }
    }
}
$messages = get_messages(null, true, false, DF_PATH . 'support.dat');
$frm = new InputForm('', 'post', __('Submit'));
$frm->addbreak(__('Feedback requests'));
if (!empty($messages)) {
    foreach ($messages as $id => $message) {
        $frm->addrow('[' . rcms_format_time('d F Y H:i:s', $message['time'], $system->user['tz']) . '] ' . __('Message by') . ' ' . user_create_link($message['username'], $message['nickname']) . '<hr>' . $message['text'], $frm->checkbox('d[' . $id . ']', '1', __('Delete')));
    }
} else {
    $frm->addmessage(__('Nothing founded'));
}
$frm->show();
Exemplo n.º 11
0
?>
</th>
</tr>
<?php 
$i = 1;
for ($c = $start; $c < $total + $start; $c++) {
    if (!empty($keys[$c])) {
        $user =& $tpldata[$keys[$c]];
        if (!empty($user)) {
            ?>
<tr>
    <td class="row<?php 
            echo $i;
            ?>
"><?php 
            echo user_create_link($user['username'], $user['nickname']);
            ?>
</td>
    <td class="row<?php 
            echo $i;
            ?>
"><?php 
            echo !$user['hideemail'] ? '<a href="mailto:' . $user['email'] . '">' . $user['email'] . '</a>' : __('This field is hidden');
            ?>
</td>
</tr>
<?php 
            $i++;
            if ($i > 3) {
                $i = 1;
            }