Exemplo n.º 1
0
                      <tr class="<?php 
            echo $odd_even;
            ?>
">
                      <?php 
            $user = User::newInstance()->findByPrimaryKey($recipPM['recip_id']);
            ?>
                        <td class="pmCheckboxes"><input class="delChecks" type="checkbox" id="delete<?php 
            echo $recipPM['pm_id'];
            ?>
" name="pms[]" value="<?php 
            echo $recipPM['pm_id'];
            ?>
" /></td>
                        <td><?php 
            echo osc_format_date($recipPM['message_date']) . ', ' . osclass_pm_format_time($recipPM['message_date']);
            ?>
</td>
                        <td><a class="mesLink" href="<?php 
            echo osc_render_file_url(osc_plugin_folder(__FILE__) . 'user-messages.php?message=' . $recipPM['pm_id'] . '&box=outbox');
            ?>
"><?php 
            echo $recipPM['pm_subject'];
            ?>
</a></td>
                        <td><?php 
            echo $user['s_name'];
            ?>
</td>
                      </tr>
                  <?php 
Exemplo n.º 2
0
            <div class="pm_tools">
               <div class="pm_sub">
                  <span class="subject_pm"><?php 
echo $pm['pm_subject'];
?>
</span>
                  <br />
                  <?php 
if ($pm['recip_id'] != 0) {
    $user = User::newInstance()->findByPrimaryKey($pm['recip_id']);
} else {
    $user['s_name'] = pmAdmin();
}
?>
                  <?php 
echo __('Sent to: ', 'osclass_pm') . $user['s_name'] . ' ' . __('on: ', 'osclass_pm') . osc_format_date($pm['message_date']) . ', ' . osclass_pm_format_time($pm['message_date']);
?>
               </div> 
               <ul class="reset pm_tool">
                  <li class="reply"><a href="<?php 
echo osc_admin_base_url(true) . '?page=plugins&action=renderplugin&file=osclass_pm/admin-send.php&mType=adminReply&messId=' . $pm_id . '&userId=' . $pm['sender_id'];
?>
" ><?php 
_e('Reply', 'osclass_pm');
?>
</a></li>
                  <li class="quote"><a href="<?php 
echo osc_admin_base_url(true) . '?page=plugins&action=renderplugin&file=osclass_pm/admin-send.php&mType=adminQuote&messId=' . $pm_id . '&userId=' . $pm['sender_id'];
?>
" ><?php 
_e('Quote', 'osclass_pm');
Exemplo n.º 3
0
            if (@$item != '') {
                echo '' . @$item['s_title'];
            } elseif ($mType == 'reply' || $mType == 'quote') {
                echo $pm['pm_subject'];
            } else {
                _e('[No subject]', 'osclass_pm');
            }
            ?>
" /></td>
                            </tr>
                        </table>
                    </div>
                    <div class="pm_mess">
                        <textarea tabindex="3" rows="12" name="message" id="message"><?php 
            if ($mType == 'quote') {
                echo '[quote][quoteAuthor]' . __('Quote from:', 'osclass_pm') . ' ' . $user['s_name'] . ' ' . __('on: ', 'osclass_pm') . osc_format_date($pm['message_date']) . ', ' . osclass_pm_format_time($pm['message_date']) . "[/quoteAuthor]\n" . $pm['pm_message'] . "\n[/quote]";
            }
            ?>
</textarea>
                        <br />
                        <?php 
            if (pmSent()) {
                ?>
                        <p>
                            <label for="outbox"><input <?php 
                if (pmSaveSent() == 1) {
                    echo 'checked';
                }
                ?>
 tabindex="4" type="checkbox" class="input_check" tabindex="5" value="1" id="outbox" name="outbox"><?php 
                _e(' Save a copy in my outbox', 'osclass_pm');