Changeset 203516
- Timestamp:
- 02/09/2010 03:44:11 PM (14 years ago)
- Location:
- woopra/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
woopra/trunk/inc/render.php
r203254 r203516 68 68 69 69 /** 70 71 72 73 74 75 76 70 77 * PHP 4 Style constructor which calls the below PHP5 Style Constructor 71 78 * @since 1.4.1 … … 135 142 wp_die($xml_process->get_error_message()); 136 143 144 145 137 146 // Clear up memory! 138 147 unset($xml_data, $xml_data_append); … … 226 235 arsort($entries); // force arsort. 227 236 ?> 237 238 239 240 241 228 242 <table class="woopra-table" width="100%" cellpadding="0" cellspacing="0"> 229 243 <tr> … … 269 283 <td class="text-item"><?php echo $visitorsstring; ?></td> 270 284 <td class="text-item"><?php echo number_format($visitors); ?></td> 271 <td class="text-item highlight"><a href="#" onclick="return expandLineChart('<?php echo $this->api_page; ?>', '<?php echo $hashid; ?>', <?php echo $counter; ?>)"><?php echo number_format($pageviews); ?></a></td> 285 <td class="text-item highlight"> 286 <a class="woopra-chart-line-a" href="#" onclick="return expandLineChart('<?php echo $counter; ?>');"><?php echo number_format($pageviews); ?></a> 287 </td> 272 288 <td class="bar"><?php echo $this->woopra_bar($percent); ?></td> 273 289 </tr> -
woopra/trunk/js/jquery.analytics.js
r203254 r203516 159 159 } 160 160 161 161 162 selectedSubTabs[superid] = id; 162 163 … … 238 239 239 240 /** 240 * Expand Line Chart for Rendering the Flash Chart241 * @param {Object} key242 * @param {Object} hashid243 * @param {Object} id244 */245 function expandLineChart(key, hashid, id) {246 247 if ( jQuery('#woopra-chart-line-tr-' + hashid + '-' + id).attr('class') == 'loaded' )248 {249 // Hide the 'tr'250 jQuery('#woopra-chart-line-tr-' + hashid + '-' + id).attr("style", "display: none;").removeAttr("class");251 // Clear the flash element. So it can be reloaded at a future time.252 jQuery('#woopra-chart-line-td-' + hashid + '-' + id).html();253 // Return False254 return false;255 }256 257 // Show Chart Line 'tr'258 jQuery('#woopra-chart-line-tr-' + hashid + '-' + id).attr("style", "display: table-row;").addClass("loaded");259 260 var phpfile = woopraL10n.siteurl + '/wp-admin/admin-ajax.php?action=woopra&datatype=flash&apikey=' + woopradefaultL10n.apikey + '&id=' + index + '&wkey=' + key + '&date_format=' + date_format + '&from=' + date_from + '&to=' + date_to;261 262 // Flash jQuery Code263 jQuery('#woopra-chart-line-td-' + hashid + '-' + id).flash({264 src: woopraL10n.siteurl + '/flash/open-flash-chart.swf',265 data-file: escape(phpfile),266 width: 968,267 height: 110,268 quality: 'best',269 bgcolor: '#FFFFFF',270 allowFullScreen: 'false',271 menu: 'false',272 allowScriptAccess: 'sameDomain',273 wmode: 'transparent',274 expressInstall: true275 }, {276 version: 10277 },278 function(htmlOptions){279 jQuery(this).html(jQuery.fn.flash.transform(htmlOptions));280 });281 282 return false;283 }284 285 /**286 241 * Debug 287 242 * @param {Object} message … … 333 288 setSubView(currentSuperView, selectedSubTabs[currentSuperView]); 334 289 } 290 291 292 293 294 335 295 336 296 // Set the 'from' and 'to' date. … … 338 298 jQuery("#woopra-to").attr('value', jQuery(this).dateprev(0) ).datepicker({ dateFormat: 'yy-mm-dd' }); 339 299 340 // Set the link for the date-range selector <a> 341 function refreshDateLinkText() { 342 jQuery("#woopra-daterange").html('<strong>' + woopraL10n.from + '</strong>: ' + jQuery("#woopra-from").val() + ' - <strong>' + woopraL10n.to + '</strong>: ' + jQuery("#woopra-to").val()); 343 } 344 refreshDateLinkText(); // Run! 345 300 // Run! 301 refreshDateLinkText(); 302 346 303 // Create Super Tabs 347 304 addSuperTab( woopraL10n.visitors, 'visitors'); … … 391 348 setCurrentSuperTab('visitors'); 392 349 393 394 350 }); 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404
Note: See TracChangeset
for help on using the changeset viewer.