<commit_before><?php use_helper('Date', 'JavascriptBase'); ?>
<?php echo javascript_tag("
function checkAll() {
    var sm = document.delete_message;
    var len = sm.elements.length;
    for (var i = 0; i < len; i++) {
        sm.elements[i].checked = true;
    }
    return false;
}
function clearAll() {
    var sm = document.delete_message;
    var len = sm.elements.length;
    for (var i = 0; i < len; i++) {
        sm.elements[i].checked = false;
    }
    return false;
}
") ?>
<?php 
switch ($message_type):
  case 'receive':
    $title = __('Inbox');
    $page_url = "message/receiveList";
    $sender_title = __('From');
    break;
  case 'send':
    $title = __('Sent Message');
    $page_url = "message/sendList";
    $sender_title = __('To');
    break;
  case 'draft':
    $title = __('Drafts');
    $page_url = "message/draftList";
    $sender_title = __('To');
    break;
  case 'dust':
    $title = __('Trash');
    $page_url = "message/dustList";
    $sender_title = __('From/To');
    break;
endswitch;
?>
<div class="dparts searchResultList"><div class="parts">
<div class="partsHeading"><h3><?php echo $title ?></h3></div>
<?php if ($pager->getNbResults()): ?>
<div class="pagerRelativeMulti">
<?php if ($message_type == 'receive'): ?>
<p class="icons"> 
<span>
<?php echo image_tag('/plugins/opMessagePlugin/images/icon_mail_4.gif', array('alt' => __('Replied'))) ?>
<?php echo __('Replied') ?>
</span> 
</p>
<?php endif; ?>
</div>
<div class="pagerRelative">
<p class="number"><?php echo pager_navigation($pager, $page_url."?page=%d"); ?></p>
</div>

<form action="<?php echo url_for($page_url) ?>" method="post" name="delete_message">
<?php echo $form["object_name"] ?>
<?php echo $form["object_name"]->renderError() ?><commit_msg>#3399 bug_fix -- cannot Delete Messages<commit_after><?php use_helper('Date', 'JavascriptBase'); ?>
<?php echo javascript_tag("
function checkAll() {
    var sm = document.delete_message;
    var len = sm.elements.length;
    for (var i = 0; i < len; i++) {
        sm.elements[i].checked = true;
    }
    return false;
}
function clearAll() {
    var sm = document.delete_message;
    var len = sm.elements.length;
    for (var i = 0; i < len; i++) {
        sm.elements[i].checked = false;
    }
    return false;
}
") ?>
<?php 
switch ($message_type):
  case 'receive':
    $title = __('Inbox');
    $page_url = "message/receiveList";
    $sender_title = __('From');
    break;
  case 'send':
    $title = __('Sent Message');
    $page_url = "message/sendList";
    $sender_title = __('To');
    break;
  case 'draft':
    $title = __('Drafts');
    $page_url = "message/draftList";
    $sender_title = __('To');
    break;
  case 'dust':
    $title = __('Trash');
    $page_url = "message/dustList";
    $sender_title = __('From/To');
    break;
endswitch;
?>
<div class="dparts searchResultList"><div class="parts">
<div class="partsHeading"><h3><?php echo $title ?></h3></div>
<?php if ($pager->getNbResults()): ?>
<div class="pagerRelativeMulti">
<?php if ($message_type == 'receive'): ?>
<p class="icons"> 
<span>
<?php echo image_tag('/plugins/opMessagePlugin/images/icon_mail_4.gif', array('alt' => __('Replied'))) ?>
<?php echo __('Replied') ?>
</span> 
</p>
<?php endif; ?>
</div>
<div class="pagerRelative">
<p class="number"><?php echo pager_navigation($pager, $page_url."?page=%d"); ?></p>
</div>

<form action="<?php echo url_for($page_url) ?>" method="post" name="delete_message">
<?php echo $form['_csrf_token'] ?>
<?php echo $form["object_name"] ?>
<?php echo $form["object_name"]->renderError() ?>
{'fraction_non_alphanumeric': 0.20867132867132868, 'fraction_numerical': 0.003916083916083916, 'mean_word_length': 4.094017094017094, 'pattern_counts': {'":': 0, '<': 68, '<?xml version=': 0, '>': 70, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6641814', 'n_tokens_mistral': 1273, 'n_tokens_neox': 1266, 'n_words': 288}