- Timestamp:
- 2008/06/16 12:13:09 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/Smarty/templates/default/admin/contents/recomend.tpl
r17256 r17351 1 <!--{*1 <!--{* 2 2 /* 3 3 * This file is part of EC-CUBE 4 4 * 5 * Copyright(c) 2000-200 7LOCKON CO.,LTD. All Rights Reserved.5 * Copyright(c) 2000-2008 LOCKON CO.,LTD. All Rights Reserved. 6 6 * 7 7 * http://www.lockon.co.jp/ … … 22 22 */ 23 23 *}--> 24 <script language="JavaScript">24 <script type="text/javascript"> 25 25 <!-- 26 26 function lfnCheckSubmit( fm ){ 27 28 var err = ''; 29 /* 30 if ( ! fm["title"].value ){ 31 err += '見出しコメントを入力して下さい。'; 32 } 33 */ 34 if ( ! fm["comment"].value ){ 35 if ( err ) err += '\n'; 36 err += 'オススメコメントを入力して下さい。'; 37 } 38 if ( err ){ 39 alert(err); 40 return false; 41 } else { 42 if(window.confirm('内容を登録しても宜しいですか')){ 43 return true; 44 } 45 return false; 46 } 27 28 var err = ''; 29 /* 30 if ( ! fm["title"].value ){ 31 err += '見出しコメントを入力して下さい。'; 32 } 33 */ 34 if ( ! fm["comment"].value ){ 35 if ( err ) err += ''; 36 err += 'オススメコメントを入力して下さい。'; 37 } 38 if ( err ){ 39 alert(err); 40 return false; 41 } else { 42 if(window.confirm('内容を登録しても宜しいですか')){ 43 return true; 44 } 45 } 47 46 } 48 47 49 48 function lfnCheckSetItem( rank ){ 50 51 52 53 54 55 56 57 58 59 60 61 62 49 var flag = true; 50 var checkRank = '<!--{$checkRank}-->'; 51 if ( checkRank ){ 52 if ( rank != checkRank ){ 53 if( ! window.confirm('さきほど選択した<!--{$checkRank}-->位の情報は破棄されます。宜しいでしょうか')){ 54 flag = false; 55 } 56 } 57 } 58 59 if ( flag ){ 60 win03('./recommend_search.php?rank=' + rank,'search','500','500'); 61 } 63 62 } 64 63 … … 66 65 </script> 67 66 68 <!--★★メインコンテンツ★★--> 69 <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" "> 70 <tr valign="top"> 71 <td background="<!--{$TPL_DIR}-->img/contents/navi_bg.gif" height="402"> 72 <!--▼SUB NAVI--> 73 <!--{include file=$tpl_subnavi}--> 74 <!--▲SUB NAVI--> 75 </td> 76 <td class="mainbg" > 77 <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" "> 78 <!--メインエリア--> 79 <tr> 80 <td align="center"> 81 <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" "> 82 83 <tr><td height="14"></td></tr> 84 <tr> 85 <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td> 86 </tr> 87 <tr> 88 <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 89 <td bgcolor="#cccccc"> 90 91 <!--登録テーブルここから--> 92 <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> 93 <tr> 94 <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td> 95 </tr> 96 <tr> 97 <td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td> 98 <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->オススメ管理</span></td> 99 <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> 100 </tr> 101 <tr> 102 <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td> 103 </tr> 104 <tr> 105 <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td> 106 </tr> 107 </table> 108 109 <!--{section name=cnt loop=$tpl_disp_max}--> 110 <!--▼おすすめ<!--{$smarty.section.cnt.iteration}-->--> 111 <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" "> 112 <form name="form<!--{$smarty.section.cnt.iteration}-->" id="form<!--{$smarty.section.cnt.iteration}-->" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->"> 113 <input type="hidden" name="mode" value="regist"> 114 <input type="hidden" name="product_id" value="<!--{$arrItems[$smarty.section.cnt.iteration].product_id|escape}-->"> 115 <input type="hidden" name="category_id" value="<!--{$category_id|escape}-->"> 116 <input type="hidden" name="rank" value="<!--{$arrItems[$smarty.section.cnt.iteration].rank|escape}-->"> 117 118 <tr class="fs12n"> 119 <td bgcolor="#f2f1ec" width="15" align="center"><!--{$smarty.section.cnt.iteration}--></td> 120 <td bgcolor="#ffffff" width="130" align="center"> 121 <!--{if $arrItems[$smarty.section.cnt.iteration].main_list_image != ""}--> 122 <!--{assign var=image_path value="`$smarty.const.IMAGE_SAVE_URL`/`$arrItems[$smarty.section.cnt.iteration].main_list_image`"}--> 123 <!--{else}--> 124 <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_URL`"}--> 125 <!--{/if}--> 126 <img src="<!--{$image_path}-->" alt="" /> 127 </td> 128 <td bgcolor="#ffffff" width="40" align="center"> 129 <!--{if $arrItems[$smarty.section.cnt.iteration].product_id}--> 130 <a href="#" onClick="return fnInsertValAndSubmit( document.form<!--{$smarty.section.cnt.iteration}-->, 'mode', 'delete', '削除します。宜しいですか' )">削除</a> 131 <!--{/if}--> 132 </td> 133 <td bgcolor="#ffffff" width="40" align="center"> 134 <a href="#" onclick="lfnCheckSetItem('<!--{$smarty.section.cnt.iteration}-->'); return false;" target="_blank"> 135 <!--{if $arrItems[$smarty.section.cnt.iteration].product_id}-->商品<br/>変更<!--{else}-->商品<br/>選択<!--{/if}--> 136 </a></td> 137 <td bgcolor="#ffffff" width="350"> 138 <table width="350" border="0" cellspacing="0" cellpadding="0" summary=" "> 139 <tr class="fs12"> 140 <td width="70">商品名:<!--{$arrItems[$smarty.section.cnt.iteration].name|escape}--></td> 141 </tr> 142 <tr><td height="5"></td></tr> 143 <tr class="fs12"> 144 <td colspan="2">オススメコメント:</td> 145 </tr> 146 <tr> 147 <td colspan="2" class="fs12n"> 148 <span class="red"><!--{$arrErr[$smarty.section.cnt.iteration].comment}--></span> 149 <textarea name="comment" cols="45" rows="4" style="width: 337px; height: 82px; " <!--{$arrItems[$smarty.section.cnt.iteration].product_id|sfGetEnabled}-->><!--{$arrItems[$smarty.section.cnt.iteration].comment}--></textarea> 150 </td> 151 </tr> 152 <!--{if $arrItems[$smarty.section.cnt.iteration].product_id}--> 153 <tr><td colspan=2><input type="submit" name="subm" value="登録する" onclick="return lfnCheckSubmit(document.form<!--{$smarty.section.cnt.iteration}-->);"/></td></tr> 154 <!--{/if}--> 155 </table> 156 </td> 157 </tr> 158 </form> 159 </table> 160 <!--▲おすすめ<!--{$smarty.section.cnt.iteration}-->--> 161 <!--{/section}--> 162 163 <!--登録テーブルここまで--> 164 </td> 165 <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> 166 </tr> 167 <tr> 168 <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td> 169 </tr> 170 <tr><td height="30"></td></tr> 171 172 </table> 173 </td> 174 </tr> 175 <!--メインエリア--> 176 </table> 177 </td> 178 </tr> 179 </table> 180 <!--★★メインコンテンツ★★--> 67 <div id="admin-contents" class="contents-main"> 68 <table class="list center" id="recommend-table"> 69 <tr> 70 <th>#</th> 71 <th>画像</th> 72 <th>削除</th> 73 <th>変更</th> 74 <th>商品名</th> 75 <th>コメント</th> 76 </tr> 77 <!--{section name=cnt loop=$tpl_disp_max}--> 78 <!--▼おすすめ<!--{$smarty.section.cnt.iteration}-->--> 79 <tr> 80 <th><!--{$smarty.section.cnt.iteration}--></th> 81 <td> 82 <!--{if $arrItems[$smarty.section.cnt.iteration].main_list_image != ""}--> 83 <!--{assign var=image_path value="`$smarty.const.IMAGE_SAVE_URL`/`$arrItems[$smarty.section.cnt.iteration].main_list_image`"}--> 84 <!--{else}--> 85 <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_URL`"}--> 86 <!--{/if}--> 87 <img src="<!--{$image_path}-->" alt="" /> 88 </td> 89 <td><!--{$arrItems[$smarty.section.cnt.iteration].name|escape}--></td> 90 <td> 91 <!--{if $arrItems[$smarty.section.cnt.iteration].product_id}--> 92 <a href="#" onClick="return fnInsertValAndSubmit( document.form<!--{$smarty.section.cnt.iteration}-->, 'mode', 'delete', '削除します。宜しいですか' )">削除</a> 93 <!--{/if}--> 94 </td> 95 <td> 96 <a href="#" onclick="lfnCheckSetItem('<!--{$smarty.section.cnt.iteration}-->'); return false;" target="_blank"> 97 <!--{if $arrItems[$smarty.section.cnt.iteration].product_id}-->商品変更<!--{else}-->商品選択<!--{/if}--> 98 </a> 99 </td> 100 <td> 101 <form name="form<!--{$smarty.section.cnt.iteration}-->" id="form<!--{$smarty.section.cnt.iteration}-->" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->"> 102 <input type="hidden" name="mode" value="regist" /> 103 <input type="hidden" name="product_id" value="<!--{$arrItems[$smarty.section.cnt.iteration].product_id|escape}-->" /> 104 <input type="hidden" name="category_id" value="<!--{$category_id|escape}-->" /> 105 <input type="hidden" name="rank" value="<!--{$arrItems[$smarty.section.cnt.iteration].rank|escape}-->" /> 106 <span class="attention"><!--{$arrErr[$smarty.section.cnt.iteration].comment}--></span> 107 <textarea name="comment" cols="45" rows="4" style="width: 337px; height: 82px; " <!--{$arrItems[$smarty.section.cnt.iteration].product_id|sfGetEnabled}-->><!--{$arrItems[$smarty.section.cnt.iteration].comment}--></textarea> 108 <!--{if $arrItems[$smarty.section.cnt.iteration].product_id}--> 109 <br /><button type="submit" onclick="return lfnCheckSubmit(document.form<!--{$smarty.section.cnt.iteration}-->);"><span>登録する</span></button> 110 <!--{/if}--> 111 </form> 112 </td> 113 </tr> 114 <!--▲おすすめ<!--{$smarty.section.cnt.iteration}-->--> 115 <!--{/section}--> 116 </table> 117 </div>
Note: See TracChangeset
for help on using the changeset viewer.