Location: PHPKode > projects > Eventum > eventum-2.2/templates/attached_emails.tpl.html
<br />
<script language="JavaScript">
<!--
var url = '{$smarty.server.PHP_SELF}?cat=associate&';
{literal}
function removeEmails(f)
{
    if (!hasOneChecked(f, 'emails[]')) {
        alert('{/literal}{t escape=js}Please choose which entries need to be removed.{/t}{literal}');
        return false;
    }
    // loop through all of the form elements and build a dynamic url
    for (var i = 0; i < f.elements.length; i++) {
        if ((f.elements[i].name == 'emails[]') && (!f.elements[i].checked)) {
            url += 'item[]=' + f.elements[i].value + '&';
        }
    }
    window.location.href = url;
}
//-->
</script>
{/literal}
<table width="600" bgcolor="{$cell_color}" border="0" cellspacing="0" cellpadding="1" align="center">
  <tr>
    <td>
      &nbsp;
    </td>
    <td width="100%">
      <table bgcolor="#FFFFFF" width="100%" cellspacing="1" cellpadding="2" border="0">
        <tr>
          <td bgcolor="{$light_color}" colspan="3" class="default">
            <b>{t}Attached Emails{/t}</b>
          </td>
        </tr>
        <tr>
          <td>
            <table cellpadding="2" cellspacing="1" bgcolor="white" width="100%" border="0">
              <tr>
                <td bgcolor="{$cell_color}" class="default_white" width="10">{t}Remove?{/t}</td>
                <td bgcolor="{$cell_color}" class="default_white">{t}Sender{/t}</td>
                <td bgcolor="{$cell_color}" class="default_white">{t}Subject{/t}</td>
                <td bgcolor="{$cell_color}" class="default_white" width="10"><nobr>{t}Notify Sender?{/t}</nobr></td>
              </tr>
              {section name="i" loop=$emails}
              {cycle values=$cycle assign="row_color"}
              <tr bgcolor="{$row_color}">
                <td align="center">
                  <input type="checkbox" name="emails[]" value="{$emails[i].sup_id}">
                </td>
                <td class="default" width="30%">
                  {$emails[i].sup_from|escape:"html"}
                </td>
                <td class="default" width="50%">
                  {$emails[i].sup_subject|escape:"html"}
                </td>
                <td align="center">
                  <input type="checkbox" name="notify_senders[]" value="{$emails[i].sup_id}">
                </td>
              </tr>
              {/section}
              <tr>
                <td colspan="4">
                  <input type="button" class="button" value="{t}Remove Selected{/t}" onClick="javascript:removeEmails(this.form);">
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
    <td>
      &nbsp;
    </td>
  </tr>
</table>

Return current item: Eventum