Changeset 17922


Ignore:
Timestamp:
2009/03/23 22:18:36 (8 years ago)
Author:
Yammy
Message:

http://svn.ec-cube.net/open_trac/ticket/435

Location:
branches/comu-ver2
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/Smarty/templates/default/mypage/history.tpl

    r17605 r17922  
    148148    </table> 
    149149 
     150    <br /> 
     151 
     152    <h3>メール配信履歴一覧</h3> 
     153    <table> 
     154      <tr> 
     155        <th>処理日</th> 
     156        <th>通知メール</th> 
     157        <th>件名</th> 
     158      </tr> 
     159      <!--{section name=cnt loop=$arrMailHistory}--> 
     160      <tr class="center"> 
     161        <td><!--{$arrMailHistory[cnt].send_date|sfDispDBDate|escape}--></td> 
     162        <!--{assign var=key value="`$arrMailHistory[cnt].template_id`"}--> 
     163        <td><!--{$arrMAILTEMPLATE[$key]|escape}--></td> 
     164        <td><a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="win01('./mail_view.php?send_id=<!--{$arrMailHistory[cnt].send_id}-->','mail_view','650','800'); return false;"><!--{$arrMailHistory[cnt].subject|escape}--></a></td> 
     165      </tr> 
     166      <!--{/section}--> 
     167    </table> 
     168  </div> 
     169 
    150170    <div class="tblareabtn"> 
    151171      <a href="./<!--{$smarty.const.DIR_INDEX_URL}-->" onmouseover="chgImg('<!--{$TPL_DIR}-->img/common/b_back_on.gif','change');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/common/b_back.gif','change');"><img src="<!--{$TPL_DIR}-->img/common/b_back.gif" width="150" height="30" alt="戻る" name="change" id="change" /></a> 
  • branches/comu-ver2/data/class/pages/mypage/LC_Page_Mypage_History.php

    r17519 r17922  
    5252        $this->tpl_mypageno = 'index'; 
    5353        $this->allowClientCache(); 
     54 
     55        $masterData = new SC_DB_MasterData_Ex(); 
     56        $this->arrMAILTEMPLATE = $masterData->getMasterData("mtb_mail_template"); 
    5457    } 
    5558 
     
    9194            $this->CustomerName2 = $objCustomer->getvalue('name02'); 
    9295            $this->CustomerPoint = $objCustomer->getvalue('point'); 
     96        } 
     97 
     98        if(SC_Utils_Ex::sfIsInt($_POST['order_id'])) { 
     99            $col = "send_date, subject, template_id, send_id"; 
     100            $where = "order_id = ?"; 
     101            $objQuery->setorder("send_date DESC"); 
     102            $this->arrMailHistory = $objQuery->select($col, "dtb_mail_history", $where, array($_POST['order_id'])); 
    93103        } 
    94104 
Note: See TracChangeset for help on using the changeset viewer.