| 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="admin-contents" class="contents-main"> |
|---|
| 26 | <form name="form1" id="form1" method="post" action="?"> |
|---|
| 27 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
|---|
| 28 | <input type="hidden" name="mode" value="" /> |
|---|
| 29 | <input type="hidden" name="news_id" value="<!--{$arrForm.news_id.value|default:$tpl_news_id|h}-->" /> |
|---|
| 30 | <!--{* ▼登録テーブルここから *}--> |
|---|
| 31 | <table> |
|---|
| 32 | <tr> |
|---|
| 33 | <th>日付<span class="attention"> *</span></th> |
|---|
| 34 | <td> |
|---|
| 35 | <!--{if $arrErr.year || $arrErr.month || $arrErr.day}--><span class="attention"><!--{$arrErr.year}--><!--{$arrErr.month}--><!--{$arrErr.day}--></span><!--{/if}--> |
|---|
| 36 | <select name="year" <!--{if $arrErr.year || $arrErr.month || $arrErr.day }-->style="background-color:<!--{$smarty.const.ERR_COLOR|h}-->"<!--{/if}-->> |
|---|
| 37 | <option value="" selected="selected">----</option> |
|---|
| 38 | <!--{html_options options=$arrYear selected=$arrForm.year.value}--> |
|---|
| 39 | </select>年 |
|---|
| 40 | <select name="month" <!--{if $arrErr.year || $arrErr.month || $arrErr.day}-->style="background-color:<!--{$smarty.const.ERR_COLOR|h}-->"<!--{/if}-->> |
|---|
| 41 | <option value="" selected="selected">--</option> |
|---|
| 42 | <!--{html_options options=$arrMonth selected=$arrForm.month.value}--> |
|---|
| 43 | </select>月 |
|---|
| 44 | <select name="day" <!--{if $arrErr.year || $arrErr.month || $arrErr.day}-->style="background-color:<!--{$smarty.const.ERR_COLOR|h}-->"<!--{/if}-->> |
|---|
| 45 | <option value="" selected="selected">--</option> |
|---|
| 46 | <!--{html_options options=$arrDay selected=$arrForm.day.value}--> |
|---|
| 47 | </select>日 |
|---|
| 48 | </td> |
|---|
| 49 | </tr> |
|---|
| 50 | <tr> |
|---|
| 51 | <th>タイトル<span class="attention"> *</span></th> |
|---|
| 52 | <td> |
|---|
| 53 | <!--{if $arrErr.news_title}--><span class="attention"><!--{$arrErr.news_title}--></span><!--{/if}--> |
|---|
| 54 | <textarea name="news_title" cols="60" rows="8" class="area60" maxlength="<!--{$smarty.const.MTEXT_LEN}-->" <!--{if $arrErr.news_title}-->style="background-color:<!--{$smarty.const.ERR_COLOR|h}-->"<!--{/if}-->><!--{"\n"}--><!--{$arrForm.news_title.value|h}--></textarea><br /> |
|---|
| 55 | <span class="attention"> (上限<!--{$smarty.const.MTEXT_LEN}-->文字)</span> |
|---|
| 56 | </td> |
|---|
| 57 | </tr> |
|---|
| 58 | <tr> |
|---|
| 59 | <th>URL</th> |
|---|
| 60 | <td> |
|---|
| 61 | <span class="attention"><!--{$arrErr.news_url}--></span> |
|---|
| 62 | <input type="text" name="news_url" size="60" class="box60" value="<!--{$arrForm.news_url.value|h}-->" <!--{if $arrErr.news_url}-->style="background-color:<!--{$smarty.const.ERR_COLOR|h}-->"<!--{/if}--> maxlength="<!--{$smarty.const.URL_LEN}-->" /> |
|---|
| 63 | <span class="attention"> (上限<!--{$smarty.const.URL_LEN}-->文字)</span> |
|---|
| 64 | </td> |
|---|
| 65 | </tr> |
|---|
| 66 | <tr> |
|---|
| 67 | <th>リンク</th> |
|---|
| 68 | <td><label><input type="checkbox" name="link_method" value="2" <!--{if $arrForm.link_method.value eq 2}--> checked <!--{/if}--> /> 別ウィンドウで開く</label></td> |
|---|
| 69 | </tr> |
|---|
| 70 | <tr> |
|---|
| 71 | <th>本文作成</th> |
|---|
| 72 | <td> |
|---|
| 73 | <!--{if $arrErr.news_comment}--><span class="attention"><!--{$arrErr.news_comment}--></span><!--{/if}--> |
|---|
| 74 | <textarea name="news_comment" cols="60" rows="8" wrap="soft" class="area60" maxlength="<!--{$smarty.const.LTEXT_LEN}-->" style="background-color:<!--{if $arrErr.news_comment}--><!--{$smarty.const.ERR_COLOR|h}--><!--{/if}-->"><!--{"\n"}--><!--{$arrForm.news_comment.value|h}--></textarea><br /> |
|---|
| 75 | <span class="attention"> (上限3000文字)</span> |
|---|
| 76 | </td> |
|---|
| 77 | </tr> |
|---|
| 78 | </table> |
|---|
| 79 | <!--{* ▲登録テーブルここまで *}--> |
|---|
| 80 | |
|---|
| 81 | <div class="btn-area"> |
|---|
| 82 | <ul> |
|---|
| 83 | <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('form1', 'edit', '', ''); return false;"><span class="btn-next">この内容で登録する</span></a></li> |
|---|
| 84 | </ul> |
|---|
| 85 | </div> |
|---|
| 86 | </form> |
|---|
| 87 | |
|---|
| 88 | <h2>新着情報一覧 |
|---|
| 89 | <a class="btn-normal" href="">新規登録</a> |
|---|
| 90 | </h2> |
|---|
| 91 | |
|---|
| 92 | <!--{if $arrErr.moveposition}--> |
|---|
| 93 | <p><span class="attention"><!--{$arrErr.moveposition}--></span></p> |
|---|
| 94 | <!--{/if}--> |
|---|
| 95 | <!--{* ▼一覧表示エリアここから *}--> |
|---|
| 96 | <form name="move" id="move" method="post" action="?"> |
|---|
| 97 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
|---|
| 98 | <input type="hidden" name="mode" value="moveRankSet" /> |
|---|
| 99 | <input type="hidden" name="news_id" value="" /> |
|---|
| 100 | <input type="hidden" name="moveposition" value="" /> |
|---|
| 101 | <input type="hidden" name="rank" value="" /> |
|---|
| 102 | <table class="list"> |
|---|
| 103 | <col width="5%" /> |
|---|
| 104 | <col width="15%" /> |
|---|
| 105 | <col width="45%" /> |
|---|
| 106 | <col width="5%" /> |
|---|
| 107 | <col width="5%" /> |
|---|
| 108 | <col width="25%" /> |
|---|
| 109 | <tr> |
|---|
| 110 | <th>順位</th> |
|---|
| 111 | <th>日付</th> |
|---|
| 112 | <th>タイトル</th> |
|---|
| 113 | <th class="edit">編集</th> |
|---|
| 114 | <th class="delete">削除</th> |
|---|
| 115 | <th>移動</th> |
|---|
| 116 | </tr> |
|---|
| 117 | <!--{section name=data loop=$arrNews}--> |
|---|
| 118 | <tr style="background:<!--{if $arrNews[data].news_id != $tpl_news_id}-->#ffffff<!--{else}--><!--{$smarty.const.SELECT_RGB}--><!--{/if}-->;" class="center"> |
|---|
| 119 | <!--{assign var=db_rank value="`$arrNews[data].rank`"}--> |
|---|
| 120 | <td><!--{math equation="$line_max - $db_rank + 1"}--></td> |
|---|
| 121 | <td><!--{$arrNews[data].cast_news_date|date_format:"%Y/%m/%d"}--></td> |
|---|
| 122 | <td class="left"> |
|---|
| 123 | <!--{if $arrNews[data].link_method eq 1 && $arrNews[data].news_url != ""}--><a href="<!--{$arrNews[data].news_url|h}-->" ><!--{$arrNews[data].news_title|h|nl2br}--></a> |
|---|
| 124 | <!--{elseif $arrNews[data].link_method eq 1 && $arrNews[data].news_url == ""}--><!--{$arrNews[data].news_title|h|nl2br}--> |
|---|
| 125 | <!--{elseif $arrNews[data].link_method eq 2 && $arrNews[data].news_url != ""}--><a href="<!--{$arrNews[data].news_url|h}-->" target="_blank" ><!--{$arrNews[data].news_title|h|nl2br}--></a> |
|---|
| 126 | <!--{else}--><!--{$arrNews[data].news_title|h|nl2br}--> |
|---|
| 127 | <!--{/if}--> |
|---|
| 128 | </td> |
|---|
| 129 | <td> |
|---|
| 130 | <!--{if $arrNews[data].news_id != $tpl_news_id}--> |
|---|
| 131 | <a href="#" onclick="fnFormModeSubmit('move','pre_edit','news_id','<!--{$arrNews[data].news_id|h}-->'); return false;">編集</a> |
|---|
| 132 | <!--{else}--> |
|---|
| 133 | 編集中 |
|---|
| 134 | <!--{/if}--> |
|---|
| 135 | </td> |
|---|
| 136 | <td><a href="#" onclick="fnFormModeSubmit('move','delete','news_id','<!--{$arrNews[data].news_id|h}-->'); return false;">削除</a></td> |
|---|
| 137 | <td> |
|---|
| 138 | <!--{if count($arrNews) != 1}--> |
|---|
| 139 | <input type="text" name="pos-<!--{$arrNews[data].news_id|h}-->" size="3" class="box3" />番目へ<a href="?" onclick="fnFormModeSubmit('move', 'moveRankSet','news_id', '<!--{$arrNews[data].news_id|h}-->'); return false;">移動</a><br /> |
|---|
| 140 | <!--{/if}--> |
|---|
| 141 | <!--{if $smarty.section.data.iteration != 1}--> |
|---|
| 142 | <a href="?" onclick="fnFormModeSubmit('move','up','news_id','<!--{$arrNews[data].news_id|h}-->'); return false;">上へ</a> |
|---|
| 143 | <!--{/if}--> |
|---|
| 144 | <!--{if !$smarty.section.data.last}--> |
|---|
| 145 | <a href="?" onclick="fnFormModeSubmit('move','down','news_id','<!--{$arrNews[data].news_id|h}-->'); return false;">下へ</a> |
|---|
| 146 | <!--{/if}--> |
|---|
| 147 | </td> |
|---|
| 148 | </tr> |
|---|
| 149 | <!--{sectionelse}--> |
|---|
| 150 | <tr class="center"> |
|---|
| 151 | <td colspan="6">現在データはありません。</td> |
|---|
| 152 | </tr> |
|---|
| 153 | <!--{/section}--> |
|---|
| 154 | </table> |
|---|
| 155 | </form> |
|---|
| 156 | <!--{* ▲一覧表示エリアここまで *}--> |
|---|
| 157 | |
|---|
| 158 | </div> |
|---|