Changeset 5959 for extensions/AMetaData/admin
- Timestamp:
- Apr 25, 2010, 1:22:40 AM (15 years ago)
- Location:
- extensions/AMetaData/admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/admin/amd_help.tpl
r5191 r5959 1 1 {$statTabsheet} 2 2 3 <h 3>{'g003_metadata'|@translate} {$data.title}</h3>3 <h2>{'g003_metadata'|@translate} {$data.title}</h2> 4 4 5 5 <div id="helpBody"> -
extensions/AMetaData/admin/amd_metadata_database.tpl
r5935 r5959 1 1 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"} 2 {known_script id="jquery.ui.slider" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.slider.packed.js"}3 2 {known_script id="jquery.ui.dialog" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.dialog.packed.js"} 4 5 3 6 4 {literal} 7 5 <script type="text/javascript"> 6 var processAnalyze = { 7 step:0, 8 lists:new Array(), 9 timeStart:0, 10 timeEnd:0 11 } 8 12 9 13 function init() … … 45 49 function doAnalyze() 46 50 { 47 $("body").css("cursor", "wait");48 49 51 mode="all"; 50 52 modeLabel=""; … … 72 74 73 75 74 doAnalyze ="<br><form id='iDialogProgress' class='formtable'>"+76 doAnalyzeDialog="<br><form id='iDialogProgress' class='formtable'>"+ 75 77 "<div id='iprogressbar_contener' class='gcBorderInput'>"+ 76 78 "<span id='iprogressbar_bg' class='gcBgInput' style='width:0%;'> </span>"+ … … 92 94 title: '{/literal}{"g003_updating_metadata"|@translate}{literal} ('+modeLabel+')', 93 95 } 94 ).html(doAnalyze );96 ).html(doAnalyzeDialog); 95 97 96 98 NumberOfItemsPerRequest=$("#iamd_NumberOfItemsPerRequest").val(); … … 100 102 type: "POST", 101 103 url: "{/literal}{$datas.urlRequest}{literal}", 102 async: false,104 async: true, 103 105 data: { ajaxfct:"makeStatsGetList", selectMode:mode, numOfItems:NumberOfItemsPerRequest }, 104 106 success: function(msg) 105 107 { 106 doStep_getList(msg); 108 processAnalyze.step=0; 109 processAnalyze.lists=msg.split(";"); 110 processAnalyze.timeStart=new Date(); 111 doStep_processList(); 107 112 }, 108 113 error: function() … … 124 129 } 125 130 126 function doStep_getList(data) 127 { 128 timeStart = new Date(); 129 list=data.split(";"); 130 for(i=0;i<list.length-1;i++) 131 function doStep_processList() 132 { 133 if(processAnalyze.step < processAnalyze.lists.length) 131 134 { 132 135 tmp = $.ajax({ 133 136 type: "POST", 134 137 url: "{/literal}{$datas.urlRequest}{literal}", 135 async: false, 136 data: { ajaxfct:"makeStatsDoAnalyze", imagesList:list[i] } 137 }).responseText; 138 139 pct=100*(i+1)/list.length; 138 async: true, 139 data: { ajaxfct:"makeStatsDoAnalyze", imagesList:processAnalyze.lists[processAnalyze.step] }, 140 success: function(msg) 141 { 142 processAnalyze.step++; 143 doStep_processList(); 144 }, 145 }); 146 147 pct=100*(processAnalyze.step+1)/processAnalyze.lists.length; 140 148 $("#iprogressbar_bg").css("width", pct+"%"); 141 149 $("#iprogressbar_fg").html(Math.round(pct)+"%"); 142 150 } 143 144 tmp = $.ajax({ 145 type: "POST", 146 url: "{/literal}{$datas.urlRequest}{literal}", 147 async: false, 148 data: { ajaxfct:"makeStatsConsolidation" } 149 }).responseText; 150 151 152 timeEnd = new Date(); 153 timeElapsed=timeEnd.getTime()-timeStart.getTime(); 154 155 156 $("#dialog") 157 .dialog("destroy") 158 .html("") 159 .get(0).removeAttribute('style'); 160 161 $("#dialog") 162 .dialog( 163 { 164 resizable: false, 165 width:480, 166 height:120, 167 modal: true, 168 draggable:true, 169 dialogClass: 'gcBgTabSheet gcBorder', 170 title: '{/literal}{"g003_updating_metadata"|@translate}{literal}', 171 dialogClass: 'gcBgTabSheet gcBorder', 172 open: function(event, ui) 151 else 152 { 153 // list completely processed 154 155 tmp = $.ajax({ 156 type: "POST", 157 url: "{/literal}{$datas.urlRequest}{literal}", 158 async: false, 159 data: { ajaxfct:"makeStatsConsolidation" } 160 }).responseText; 161 162 163 processAnalyze.timeEnd = new Date(); 164 timeElapsed=processAnalyze.timeEnd.getTime()-processAnalyze.timeStart.getTime(); 165 166 167 $("#dialog") 168 .dialog("destroy") 169 .html("") 170 .get(0).removeAttribute('style'); 171 172 $("#dialog") 173 .dialog( 173 174 { 174 bH=$("div.ui-dialog-buttonpane").get(0).clientHeight; 175 $("#dialog").css('height', (this.clientHeight-bH)+"px"); 176 }, 177 buttons: 178 { 179 '{/literal}{"g003_ok"|@translate}{literal}': 180 function() 181 { 182 $(this).dialog('destroy').html("").get(0).removeAttribute('style'); 183 } 175 resizable: false, 176 width:480, 177 height:120, 178 modal: true, 179 draggable:true, 180 dialogClass: 'gcBgTabSheet gcBorder', 181 title: '{/literal}{"g003_updating_metadata"|@translate}{literal}', 182 dialogClass: 'gcBgTabSheet gcBorder', 183 open: function(event, ui) 184 { 185 bH=$("div.ui-dialog-buttonpane").get(0).clientHeight; 186 $("#dialog").css('height', (this.clientHeight-bH)+"px"); 187 }, 188 buttons: 189 { 190 '{/literal}{"g003_ok"|@translate}{literal}': 191 function() 192 { 193 $(this).dialog('destroy').html("").get(0).removeAttribute('style'); 194 } 195 } 184 196 } 185 } 186 ) 187 .html("<br>{/literal}{'g003_analyze_is_finished'|@translate}{literal} ("+displayTime(timeElapsed/1000)+")"); 188 189 getStatus(); 190 $("body").css("cursor", "default"); 197 ) 198 .html("<br>{/literal}{'g003_analyze_is_finished'|@translate}{literal} ("+displayTime(timeElapsed/1000)+")"); 199 200 getStatus(); 201 } 191 202 } 192 203 … … 196 207 {/literal} 197 208 198 <h 3>{'g003_status_of_database'|@translate}</h3>209 <h2>{'g003_status_of_database'|@translate}</h2> 199 210 200 211 <div id="dialog"></div> -
extensions/AMetaData/admin/amd_metadata_display.tpl
r5935 r5959 359 359 360 360 361 <h 3>{'g003_display_management'|@translate}</h3>361 <h2>{'g003_display_management'|@translate}</h2> 362 362 363 363 <div class="addGroup"> -
extensions/AMetaData/admin/amd_metadata_select.tpl
r5935 r5959 202 202 203 203 204 <h 3>{'g003_select_metadata'|@translate}</h3>204 <h2>{'g003_select_metadata'|@translate}</h2> 205 205 206 206 <form>
Note: See TracChangeset
for help on using the changeset viewer.