<div id="selInboxMessage" class="clsTitleLinkRoundedCorner">
	  <div class="clsClearfix">
        <div class="clsTitleLeft"><h2>{$heading}</h2></div>
        <div class="clsTitleRight">
          <ul class="clsTitleLink clsFloatright">
            <li  class="{$myobj->mailcompose.populateMailNavigation.inbox_class}"><span><a href="{$myobj->mailcompose.populateMailNavigation.inbox}"> {$myobj->LANG.nav_mail_inbox} ({$myobj->mailcompose.countUnReadMail.mail_count}) </a></span></li>
            <li class="{$myobj->mailcompose.populateMailNavigation.sent_class}"><span><a href="{$myobj->mailcompose.populateMailNavigation.sent}"> {$myobj->LANG.nav_mail_sent} </a></span></li>
            <li ><span><a href="{$myobj->mailcompose.populateMailNavigation.compose}"> {$myobj->LANG.nav_mail_compose} </a></span></li>
          </ul>
        </div>
      </div>
		{include file='../general/box.tpl' opt='topanalyst_top'}
                        {if $myobj->isShowPageBlock('block_form_mail') }
                            <div id="selMsgConfirm" class="clsPopupAlert" style="display:none;">
                              <form name="msgConfirmform" id="msgConfirmform" method="post" action="{$myobj->getCurrentUrl(true)}">
                                <p id="confirmMessage"></p>
                                <!-- clsFormSection - starts here -->
                                {include file='../general/box.tpl' opt='form_top'}
                                    <div class="clsFormSection">
                                  <div class="clsFormRow">
                                    <div class="clsFormFieldCellDefault">
                                      <input type="submit" class="clsPopSubmitButton" name="confirm" id="confirm" value="{$LANG.common_confirm}" tabindex="{smartyTabIndex}" />
                                      &nbsp;
                                      <input type="button" class="clsPopCancelButton" name="cancel" id="cancel" value="{$LANG.common_cancel}" tabindex="{smartyTabIndex}" onclick="return hideAllBlocks('selFormMail');" />
                                      <input type="hidden" name="message_ids" />
                                      <input type="hidden" name="action" />
                                    </div>
                                  </div>
                                </div>
                                {$myobj->populateHidden($msg_confirm_form_hidden_arr)}
                                {include file='../general/box.tpl' opt='form_bottom'}
                                <!-- clsFormSection - ends here -->
                              </form>
                            </div>
                        {/if}
                          {include file='../general/information.tpl'}
                          {if $myobj->isShowPageBlock('block_form_mail') }
                              <div id="selShowInbox">
                                    <form name="selFormMail" id="selFormMail" method="post" action="{$myobj->getCurrentUrl()}">
                                        <div class="clsClearfix clsSelectPagingContainer">
                                             <div class="clsFloatright">
                                                {if $CFG.admin.navigation.top}
                                                    {include file='../general/pagination.tpl'}
                                                {/if}
                                            </div>
                                        </div>
                                      <table class="clsTableBorder">
                                        <tr class="clsDataHeadSection">


                                              <th class="clsSelectColumn">
                                                <input type="checkbox" class="clsCheckBox" id="checkall" onclick="CheckAll(document.selFormMail.name, document.selFormMail.checkall.name)" name="checkall" value="" tabindex="{smartyTabIndex}" />
                                              </th>
                                              <th class="clsUserNameColumn">{$LANG.sender_name_title}</th>
                                               <th class="clsStatusColumn">{$LANG.common_status}</th>
                                               <th class="clsTitleColumn">{$LANG.common_subject}</th>
                                              <th class="clsDateColumn clsNoBorders">{$LANG.common_date}</th>


                                        </tr>
                                       {foreach key=inc item=value from=$populateMessages_arr}
                                          <tr class="clsDataRow {$myobj->getCSSRowClass()} {$populateMessages_arr.$inc.row_css}">

                                              <td class="clsSelectColumn">
                                                <input type="checkbox" class="clsCheckBox" name="message_ids[]" value="{$populateMessages_arr.$inc.from_id}_{$populateMessages_arr.$inc.to_id}_{$populateMessages_arr.$inc.info_id}"  onClick="disableHeading('selFormMail');"   tabindex="{smartyTabIndex}" />
                                              </td>

                                              <td class="clsUserNameColumn">
                                                {if isUserImageAllowed()}
                                                    {$myobj->displayProfileImage($populateMessages_arr.$inc.user_id, 'tiny')}
                                                    <a class="clsInboxUserName" href="{$populateMessages_arr.$inc.user_profiles_link}">{$populateMessages_arr.$inc.display_user_name}</a>
                                                {/if}
                                              </td>
                                              {if $populateMessages_arr.$inc.answer  eq 'Reply'}
                                                 <td class="clsMessageStatus"><span class="clsRepliedMail">{$LANG.replied}</span></td>
                                               {elseif $populateMessages_arr.$inc.answer  eq 'Forward'}
                                                 <td class="clsMessageStatus"><span class="clsForwardedMail">{$LANG.forward}</span></td>
                                               {elseif $populateMessages_arr.$inc.viewed  eq 'No'}
                                                 <td class="clsMessageStatus"><span class="clsNotReadMail">{$LANG.new_mail}</span></td>
                                               {else}
                                                 <td class="clsMessageStatus"><span class="clsReadMail">{$LANG.read}</span></td>
                                              {/if}
                                              <td class="clsTitleColumn">
                                              	<span class="clsMailTitle"><a href="{$populateMessages_arr.$inc.mail_read_link}">{$populateMessages_arr.$inc.subject}</a></span></td>
                                              <td class="clsDateColumn clsNoBorders">
                                                <p>{$populateMessages_arr.$inc.mess_date}</p>
                                                <p>{$populateMessages_arr.$inc.mess_time}</p>
                                              </td>

                                          </tr>
                                          {/foreach}
                                          <tr>
                                          	<td colspan="5">
                                               <div class="clsClearfix">
                                                   <div class="clsFloatleft">
                                                        <select name="act" id="act" tabindex="{smartyTabIndex}" class="clsFloatleft clsMailSelect">
                                                            <option value="">{$LANG.common_select_action}</option>
                                                            {$myobj->generalPopulateArray($action_arr, $myobj->getFormField('action'))}
                                                        </select>
                                                        <div class="clsSubmitLeft clsMarginLeft10">
                                                            <div class="clsSubmitRight">
                                                                <input type="button" class="clsSubmitButton" name="mail_action" id="mail_action" onclick="{$mail_action_onclick}" tabindex="{smartyTabIndex}" value="{$LANG.common_submit}" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                   <div class="clsFloatright clsMailPagination">
                                                       {if $CFG.admin.navigation.bottom}
                                                            {include file='../general/pagination.tpl'}
                                                        {/if}
                                                    </div>
                                                </div>

                                            </td>
                                          </tr>
                                      </table>


                                      {$myobj->populateHidden($selFormMail_hidden_arr)}
                                    </form>
                               </div>
                          {/if}
	{include file='../general/box.tpl' opt='topanalyst_bottom'}
</div>