Ignore:
Timestamp:
2010/08/06 14:52:59 (16 years ago)
Author:
eccuore
Message:

#792(ダウンロード販売機能) 機能追加

Location:
branches/version-2_5-dev/data/Smarty/templates/default
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/default/admin/basis/index.tpl

    r18776 r18777  
    278278      </td> 
    279279    </tr> 
     280    <tr> 
     281      <th>ダウンロード可能日数</th> 
     282      <td> 
     283        <span class="attention"><!--{$arrErr.downloadable_days}--></span> 
     284        <input type="text" name="downloadable_days" value="<!--{$arrForm.downloadable_days|escape}-->" maxlength="<!--{$smarty.const.DAYS_LEN}-->" size="6" class="box6" style="<!--{if $arrErr.downloadable_days != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->" /> 日間有効 
     285        <input type="checkbox" name="downloadable_days_unlimited" value="1" <!--{if $arrForm.downloadable_days_unlimited == "1"}-->checked<!--{/if}--> onclick="fnCheckLimit('downloadable_days', 'downloadable_days_unlimited', '<!--{$smarty.const.DISABLED_RGB}-->');"/>無制限 
     286      </td> 
     287    </tr> 
    280288  </table> 
    281289 
  • branches/version-2_5-dev/data/Smarty/templates/default/admin/products/confirm.tpl

    r18700 r18777  
    4646    </tr> 
    4747    <tr> 
     48      <th>実商品・ダウンロード</th> 
     49      <td> 
     50      <!--{$arrDown[$arrForm.down]}--> 
     51      </td> 
     52    </tr> 
     53    <tr> 
     54      <th>ダウンロードファイル名</th> 
     55      <td> 
     56      <!--{$arrForm.down_filename|escape}--> 
     57      </td> 
     58    </tr> 
     59    <tr> 
     60      <th>ダウンロード商品用<BR />ファイル</th> 
     61      <td> 
     62      <!--{if $arrForm.down_realfilename != ""}--> 
     63          <!--{$arrForm.down_realfilename|escape}--> 
     64      <!--{/if}--> 
     65      </td> 
     66    </tr> 
     67    <tr> 
    4868      <th>公開・非公開</th> 
    4969      <td> 
    … …  
    228248    <!--▲商品<!--{$smarty.section.cnt.iteration}-->--> 
    229249    <!--{/section}--> 
    230    
     250 
    231251    <!--{if $smarty.const.OPTION_RECOMMEND == 1}--> 
    232252    <!--▼関連商品--> 
  • branches/version-2_5-dev/data/Smarty/templates/default/admin/products/product.tpl

    r18700 r18777  
    6464<input type="hidden" name="mode" value="edit" /> 
    6565<input type="hidden" name="image_key" value="" /> 
     66<input type="hidden" name="down_key" value=""> 
    6667<input type="hidden" name="product_id" value="<!--{$arrForm.product_id}-->" /> 
    6768<input type="hidden" name="product_class_id" value="<!--{$arrForm.product_class_id}-->" /> 
    … …  
    111112    </tr> 
    112113    <tr> 
     114      <th>実商品・ダウンロード<span class="attention"> *</span></th> 
     115      <td> 
     116        <input type="radio" name="down" value="1" <!--{if $arrForm.down == "1"}-->checked<!--{/if}-->/>実商品  
     117        <input type="radio" name="down" value="2" <!--{if $arrForm.down == "2"}-->checked<!--{/if}--> />ダウンロード 
     118      </td> 
     119    </tr> 
     120    <tr> 
     121      <th>ダウンロードファイル名<span class="attention"> *</span></th> 
     122      <td> 
     123        <span class="attention"><!--{$arrErr.down_filename}--></span> 
     124        <input type="text" name="down_filename" value="<!--{$arrForm.down_filename|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr.down_filename != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->" size="60" class="box60" /> 
     125        <span class="red"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span> 
     126      </td> 
     127    </tr> 
     128    <tr> 
     129      <!--{assign var=key value="down_file"}--> 
     130      <th>ダウンロード商品用<BR>ファイルアップロード<span class="attention"> *</span></th> 
     131      <td> 
     132        <span class="attention"><!--{$arrErr[$key]}--><!--{$arrErr.down_realfilename}--></span> 
     133          <!--{if $arrForm.down_realfilename != ""}--> 
     134            <!--{$arrForm.down_realfilename|escape}--><input type="hidden" name="down_realfilename" value="<!--{$arrForm.down_realfilename|escape}-->"> 
     135            <a href="" onclick="selectAll('category_id'); fnModeSubmit('delete_down', 'down_key', '<!--{$key}-->'); return false;">[ファイルの取り消し]</a><br> 
     136          <!--{/if}--> 
     137          <input type="file" name="down_file" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" /> 
     138          <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_down', 'down_key', '<!--{$key}-->')" value="アップロード"> 
     139      </td> 
     140    </tr> 
     141    <tr> 
    113142      <th>公開・非公開<span class="attention"> *</span></th> 
    114143      <td> 
  • branches/version-2_5-dev/data/Smarty/templates/default/detail.tpl

    r18700 r18777  
    3636                sele2.options[i] = null; 
    3737            } 
    38              
     38 
    3939            // 規格2に選択肢を割り当てる 
    4040            classcats = classCategories[sele1.value]; 
    … …  
    5555    classcat_id2 = form.classcategory_id2 ? form.classcategory_id2.value : 0; 
    5656    classcat2 = classCategories[classcat_id1][classcat_id2]; 
    57      
     57 
    5858    // 商品コード 
    5959    eleDefault = document.getElementById('product_code_default'); 
    … …  
    6969        eleDynamic.innerHTML = ''; 
    7070    } 
    71      
     71 
    7272    // 在庫(品切れ) 
    7373    eleDefault = document.getElementById('cartbtn_default'); 
    … …  
    8383        eleDynamic.innerHTML = ''; 
    8484    } 
    85      
     85 
    8686    // 通常価格 
    8787    eleDefault = document.getElementById('price01_default'); 
    … …  
    100100        } 
    101101    } 
    102      
     102 
    103103    // 販売価格 
    104104    eleDefault = document.getElementById('price02_default'); 
    … …  
    115115        eleDynamic.innerHTML = ''; 
    116116    } 
    117      
     117 
    118118    // ポイント 
    119119    eleDefault = document.getElementById('point_default'); 
    … …  
    140140<!--▼CONTENTS--> 
    141141<div id="undercolumn" class="product product_detail"> 
    142      
     142 
    143143    <!--★タイトル★--> 
    144144    <h2 class="title"><!--{$tpl_subtitle|escape}--></h2> 
    145      
     145 
    146146    <!--★詳細メインコメント★--> 
    147147    <div class="main_comment"><!--{$arrProduct.main_comment|nl2br_html}--></div> 
    … …  
    151151 
    152152            <!--{assign var=key value="main_image"}--> 
    153              
     153 
    154154            <!--★画像★--> 
    155155            <a 
    … …  
    186186            <!--▲商品ステータス--> 
    187187 
     188            <!--★ダウンロード販売★--> 
     189            <!--{if $arrProduct.down == 2}--> 
     190                <div><font color="red">本商品はダウンロード販売となります。<br /> 購入後はMYページの購入履歴からダウンロード可能です。</font></div><br /> 
     191            <!--{/if}--> 
     192 
    188193            <!--★商品コード★--> 
    189194            <div>商品コード: 
    … …  
    196201                </span><span id="product_code_dynamic"></span> 
    197202            </div> 
    198              
     203 
    199204            <!--★商品名★--> 
    200205            <h2><!--{$arrProduct.name|escape}--></h2> 
    201              
     206 
    202207            <!--★販売価格★--> 
    203208            <div class="sale_price"><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>: 
    … …  
    213218                </span> 
    214219            </div> 
    215              
     220 
    216221            <!--★通常価格★--> 
    217222            <!--{if $arrProduct.price01_max > 0}--> 
    … …  
    276281                <input type="hidden" name="product_id" value="<!--{$tpl_product_id}-->" /> 
    277282                <input type="hidden" name="favorite_product_id" value="" /> 
    278                  
     283 
    279284                <!--{if $tpl_stock_find}--> 
    280285                    <dl> 
    … …  
    295300                            <!--▲規格1--> 
    296301                        <!--{/if}--> 
    297      
     302 
    298303                        <!--{if $tpl_classcat_find2}--> 
    299304                            <!--▼規格2--> 
    … …  
    321326                    </dl> 
    322327                <!--{/if}--> 
    323                  
     328 
    324329                <div class="btn"> 
    325330                    <!--{if $smarty.const.OPTION_FAVOFITE_PRODUCT == 1 && $tpl_login === true}--> 
    … …  
    338343                        </div> 
    339344                    <!--{/if}--> 
    340                      
     345 
    341346                    <!--{if $tpl_stock_find}--> 
    342347                        <div id="cartbtn_default"> 
    … …  
    373378                <h3><!--★サブタイトル★--><!--{$arrProduct[$key]|escape}--></h3> 
    374379                <!--{assign var=ckey value="sub_comment`$smarty.section.cnt.index+1`"}--> 
    375                  
     380 
    376381                <div class="subtext"><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br_html}--></div> 
    377                  
     382 
    378383                <!--▼サブ画像--> 
    379384                <!--{assign var=key value="sub_image`$smarty.section.cnt.index+1`"}--> 
    … …  
    463468                <!-- 左列 --> 
    464469                <div class="whoboughtleft"> 
    465                      
     470 
    466471                    <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->"> 
    467472                        <img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$arrRecommend[cnt].main_list_image|sfNoImageMainList|escape}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /></a> 
    … …  
    488493                <!-- 右列 --> 
    489494                <div class="whoboughtright"> 
    490                      
     495 
    491496                    <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id|escape:url}-->"> 
    492497                        <img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$arrRecommend[cnt].main_list_image|sfNoImageMainList|escape}-->&amp;width=65&amp;height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /></a> 
    493                      
     498 
    494499                    <!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}--> 
    495500                    <!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}--> 
    … …  
    516521    <!--{/if}--> 
    517522    <!--▲関連商品--> 
    518      
     523 
    519524</div> 
    520525<!--▲CONTENTS--> 
  • branches/version-2_5-dev/data/Smarty/templates/default/mobile/shopping/confirm.tpl

    r18700 r18777  
    8383<input type="hidden" name="deliv_date" value="<!--{$arrData.deliv_date}-->"> 
    8484<input type="hidden" name="deliv_time_id" value="<!--{$arrData.deliv_time_id}-->"> 
     85<!--{if $cartdown != 2}--> 
     86<input type="hidden" name="mode" value="deliv_date"> 
     87<!--{/if}--> 
    8588<center><input type="submit" value="戻る"></center> 
    8689</form> 
  • branches/version-2_5-dev/data/Smarty/templates/default/mypage/history.tpl

    r18700 r18777  
    5151                <th>商品コード</th> 
    5252                <th>商品名</th> 
     53                <th>配送商品/ダウンロード</th> 
    5354                <th>単価</th> 
    5455                <th>数量</th> 
    … …  
    5960                    <td><!--{$orderDetail.product_code|escape}--></td> 
    6061                    <td><a<!--{if $orderDetail.enable}--> href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$orderDetail.product_id|escape:url}-->"<!--{/if}-->><!--{$orderDetail.product_name|escape}--></a></td> 
     62                    <td> 
     63                    <!--{ if $orderDetail.down == "2"}--> 
     64                        <!--{ if $orderDetail.price == "0" || ( $orderDetail.status >= "5" && $orderDetail.effective == "1" )}--> 
     65                            <a target="_self" href="<!--{$smarty.const.URL_DIR}-->mypage/download.php?order_id=<!--{$arrDisp.order_id}-->&product_id=<!--{$orderDetail.product_id}-->">ダウンロード</a> 
     66                        <!--{ elseif $orderDetail.status != "5"}--> 
     67                            ダウンロード商品<BR />(入金確認中) 
     68                        <!--{ elseif $orderDetail.effective != "1"}--> 
     69                            ダウンロード商品<BR />(期限切れ) 
     70                        <!--{ /if }--> 
     71                    <!--{ else }--> 
     72                            配送商品 
     73                    <!--{ /if }--> 
     74                    </td> 
    6175                    <!--{assign var=price value=`$orderDetail.price`}--> 
    6276                    <!--{assign var=quantity value=`$orderDetail.quantity`}--> 
  • branches/version-2_5-dev/data/Smarty/templates/default/shopping/payment.tpl

    r18700 r18777  
    6363            </div> 
    6464 
     65            <!--{if $cartdown != 2}--> 
    6566            <div class="payarea02"> 
    6667                <h3><img src="<!--{$TPL_DIR}-->img/shopping/subtitle02.gif" width="670" height="33" alt="お届け時間の指定" /></h3> 
    … …  
    8990                 </div> 
    9091            </div> 
     92            <!--{/if}--> 
    9193 
    9294            <div class="payarea02"> 
Note: See TracChangeset for help on using the changeset viewer.