Changeset 16409
- Timestamp:
- 2007/10/14 22:22:40 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/Smarty/templates/default/admin/app/index.tpl
r16383 r16409 6 6 */ 7 7 *}--> 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 30 8 9 <!--{* 10 オーナーズストア通信処理用のjsとcssを読み込む 11 onclickなどで 12 OwnersStore.download();やOwnersStore.products_list();を呼び出すことで 13 配信サーバとの通信処理を行う 31 14 15 購入商品一覧はid="ownersstore_products_list"に出力される 32 16 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> 35 20 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>61 21 <!--★★メインコンテンツ★★--> 62 22 <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" "> … … 102 62 <tr> 103 63 <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="購入商品の一覧を取得"> 110 65 </td> 111 66 </tr>
Note: See TracChangeset
for help on using the changeset viewer.