| 1 | <!--{* |
|---|
| 2 | /* |
|---|
| 3 | * This file is part of EC-CUBE |
|---|
| 4 | * |
|---|
| 5 | * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved. |
|---|
| 6 | * |
|---|
| 7 | * http://www.lockon.co.jp/ |
|---|
| 8 | * |
|---|
| 9 | * This program is free software; you can redistribute it and/or |
|---|
| 10 | * modify it under the terms of the GNU General Public License |
|---|
| 11 | * as published by the Free Software Foundation; either version 2 |
|---|
| 12 | * of the License, or (at your option) any later version. |
|---|
| 13 | * |
|---|
| 14 | * This program is distributed in the hope that it will be useful, |
|---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 17 | * GNU General Public License for more details. |
|---|
| 18 | * |
|---|
| 19 | * You should have received a copy of the GNU General Public License |
|---|
| 20 | * along with this program; if not, write to the Free Software |
|---|
| 21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 22 | */ |
|---|
| 23 | *}--> |
|---|
| 24 | |
|---|
| 25 | <div id="mail" class="contents-main"> |
|---|
| 26 | <form name="search_form" id="search_form" method="post" action="?"> |
|---|
| 27 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
|---|
| 28 | <input type="hidden" name="mode" value="search" /> |
|---|
| 29 | <h2>配信先検索条件設定</h2> |
|---|
| 30 | |
|---|
| 31 | <!--{* 検索条件設定テーブルここから *}--> |
|---|
| 32 | <table> |
|---|
| 33 | <!--{include file="`$smarty.const.TEMPLATE_ADMIN_REALDIR`/adminparts/form_customer_search.tpl"}--> |
|---|
| 34 | <tr> |
|---|
| 35 | <th>配信形式</th> |
|---|
| 36 | <td colspan="3"> |
|---|
| 37 | <!--{assign var=key value="search_htmlmail"}--> |
|---|
| 38 | <!--{if $arrErr[$key]}--><span class="attention"><!--{$arrErr[$key]}--></span><br /><!--{/if}--> |
|---|
| 39 | <!--{html_radios name=$key options=$arrHtmlmail separator=" " selected=$arrForm[$key].value}--> |
|---|
| 40 | </td> |
|---|
| 41 | </tr> |
|---|
| 42 | <tr> |
|---|
| 43 | <th>配信メールアドレス種別</th> |
|---|
| 44 | <td colspan="3"> |
|---|
| 45 | <!--{assign var=key value="search_mail_type"}--> |
|---|
| 46 | <!--{html_radios name=$key options=$arrMailType separator="<br />" selected=$arrForm[$key].value|default:1}--> |
|---|
| 47 | </td> |
|---|
| 48 | </tr> |
|---|
| 49 | </table> |
|---|
| 50 | <!--{* 検索条件設定テーブルここまで *}--> |
|---|
| 51 | |
|---|
| 52 | <div class="btn"> |
|---|
| 53 | <p class="page_rows">検索結果表示件数 |
|---|
| 54 | <!--{assign var=key value="search_page_max"}--> |
|---|
| 55 | <select name="<!--{$key}-->"> |
|---|
| 56 | <!--{html_options options=$arrPageRows selected=$arrForm[$key]}--> |
|---|
| 57 | </select> 件</p> |
|---|
| 58 | <div class="btn-area"> |
|---|
| 59 | <ul> |
|---|
| 60 | <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('search_form', 'search', '', ''); return false;"><span class="btn-next">この条件で検索する</span></a></li> |
|---|
| 61 | </ul> |
|---|
| 62 | </div> |
|---|
| 63 | </div> |
|---|
| 64 | </form> |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | <!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete' or $smarty.post.mode == 'back')}--> |
|---|
| 68 | |
|---|
| 69 | <form name="form1" id="form1" method="post" action="?"> |
|---|
| 70 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
|---|
| 71 | <input type="hidden" name="mode" value="" /> |
|---|
| 72 | <!--{foreach key=key item=item from=$arrHidden}--> |
|---|
| 73 | <!--{if is_array($item)}--> |
|---|
| 74 | <!--{foreach item=c_item from=$item}--> |
|---|
| 75 | <input type="hidden" name="<!--{$key}-->[]" value="<!--{$c_item|h}-->" /> |
|---|
| 76 | <!--{/foreach}--> |
|---|
| 77 | <!--{else}--> |
|---|
| 78 | <input type="hidden" name="<!--{$key}-->" value="<!--{$item|h}-->" /> |
|---|
| 79 | <!--{/if}--> |
|---|
| 80 | <!--{/foreach}--> |
|---|
| 81 | |
|---|
| 82 | <h2>検索結果一覧</h2> |
|---|
| 83 | <div class="btn"> |
|---|
| 84 | <span class="attention"><!--検索結果数--><!--{$tpl_linemax}-->件</span> が該当しました。 |
|---|
| 85 | <!--{if $smarty.const.ADMIN_MODE == '1'}--> |
|---|
| 86 | <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('delete_all','',''); return false;"><span>検索結果をすべて削除</span></a> |
|---|
| 87 | <!--{/if}--> |
|---|
| 88 | <!--{if $tpl_linemax > 0}--> |
|---|
| 89 | <a class="btn-normal" href="javascript:;" onclick="document.form1['mode'].value='input'; document.form1.submit(); return false;"><span>配信内容を設定する</span></a> |
|---|
| 90 | <!--{/if}--> |
|---|
| 91 | </div> |
|---|
| 92 | <!--{if count($arrResults) > 0}--> |
|---|
| 93 | |
|---|
| 94 | <!--{include file=$tpl_pager}--> |
|---|
| 95 | |
|---|
| 96 | <!--検索結果表示テーブル--> |
|---|
| 97 | <table class="list"> |
|---|
| 98 | <col width="10%" /> |
|---|
| 99 | <col width="25%" /> |
|---|
| 100 | <col width="35%" /> |
|---|
| 101 | <col width="15%" /> |
|---|
| 102 | <col width="15%" /> |
|---|
| 103 | <tr> |
|---|
| 104 | <th>会員ID</th> |
|---|
| 105 | <th>名前</th> |
|---|
| 106 | <th>メールアドレス</th> |
|---|
| 107 | <th>希望配信</th> |
|---|
| 108 | <th>登録・更新日</th> |
|---|
| 109 | </tr> |
|---|
| 110 | <!--{section name=i loop=$arrResults}--> |
|---|
| 111 | <tr> |
|---|
| 112 | <td class="center"><!--{$arrResults[i].customer_id}--></td> |
|---|
| 113 | <td><!--{$arrResults[i].name01|h}--> <!--{$arrResults[i].name02|h}--></td> |
|---|
| 114 | <td><!--{$arrResults[i].email|h}--></td> |
|---|
| 115 | <!--{assign var="key" value="`$arrResults[i].mailmaga_flg`"}--> |
|---|
| 116 | <td class="center"><!--{$arrHtmlmail[$key]}--></td> |
|---|
| 117 | <td class="center"><!--{$arrResults[i].update_date|sfDispDBDate}--></td> |
|---|
| 118 | </tr> |
|---|
| 119 | <!--{/section}--> |
|---|
| 120 | </table> |
|---|
| 121 | <!--検索結果表示テーブル--> |
|---|
| 122 | <!--{/if}--> |
|---|
| 123 | |
|---|
| 124 | </form> |
|---|
| 125 | |
|---|
| 126 | <!--{/if}--> |
|---|
| 127 | </div> |
|---|