Changeset 16409


Ignore:
Timestamp:
2007/10/14 22:22:40 (16 years ago)
Author:
adachi
Message:

通信処理をownersstore.jsへ移動

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/Smarty/templates/default/admin/app/index.tpl

    r16383 r16409  
    66 */ 
    77*}--> 
    8 <script type="text/javascript"><!-- 
    9 (function() { 
    10   var eccube = function() {} 
    11   var ownersstore = function() { 
    12     this.setup = function() { 
    13       var $j = jQuery.noConflict(); 
    14       $j("#loading").ajaxStart(function(){ 
    15           $j(this).show(); 
    16       }); 
    17       $j("#loading").ajaxStop(function(){ 
    18           $j(this).hide(); 
    19       }); 
    20     } 
    21   } 
    22   eccube.prototype = { 
    23     ownersstore: new ownersstore() 
    24   } 
    25   window.eccube = eccube; 
    26 })(); 
    27      
    28      
    29      
    308 
     9<!--{* 
     10オーナーズストア通信処理用のjsとcssを読み込む 
     11onclickなどで 
     12OwnersStore.download();やOwnersStore.products_list();を呼び出すことで 
     13配信サーバとの通信処理を行う 
    3114 
     15購入商品一覧はid="ownersstore_products_list"に出力される 
    3216 
    33 function loadList() { 
    34     var $j = jQuery.noConflict(); 
     17*}--> 
     18<link rel="stylesheet" href="<!--{$smarty.const.URL_DIR}-->user_data/templates/default/css/thickbox.css" type="text/css" media="screen" /> 
     19<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->user_data/templates/default/js/ownersstore.js"></script> 
    3520 
    36     $j("#ownerssore_loading").ajaxStart(function(){ 
    37         $j(this).html("<img src='<!--{$TPL_DIR}-->img/ajax/loading.gif'>").show(); 
    38     }); 
    39     $j("#ownerssore_loading").ajaxStop(function(){ 
    40         $j(this).hide(); 
    41     }); 
    42      
    43     $j.post( 
    44         '<!--{$smarty.const.URL_DIR}-->upgrade/index.php', 
    45         {mode: 'products_list'}, 
    46         function(resp) { 
    47             if (resp.body) { 
    48                 $j("#ownersstore_products_list").html(resp.body); 
    49             } else { 
    50                 $j("#ownersstore_products_list").load( 
    51                     "<!--{$smarty.const.URL_DIR}-->upgrade/api/error.html" 
    52                 ); 
    53             } 
    54         }, 
    55         'json' 
    56     ) 
    57 } 
    58  
    59 //--> 
    60 </script> 
    6121<!--★★メインコンテンツ★★--> 
    6222<table width="878" border="0" cellspacing="0" cellpadding="0" summary=" "> 
     
    10262                                    <tr> 
    10363                                        <td colspan="3" bgcolor="#ffffff" align="center"> 
    104                                             <input type="button" onclick="loadList();" value="オーナーズストア購入商品の一覧を取得"> 
    105                                         </td> 
    106                                     </tr> 
    107                                     <tr> 
    108                                         <td colspan="3" bgcolor="#ffffff" height="35" align="center"> 
    109                                             <div id="ownerssore_loading"></div> 
     64                                            <input type="button" onclick="OwnersStore.products_list();return false;" value="購入商品の一覧を取得"> 
    11065                                        </td> 
    11166                                    </tr> 
Note: See TracChangeset for help on using the changeset viewer.