Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changing default page to all sites roster. #592.
- Loading branch information
padams
committed
Jan 28, 2012
1 parent
d3f6cb8
commit 9bf4acc
Showing
7 changed files
with
110 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div id="<?php echo $dom_id;?>" class="owa_reportContainer"> | ||
|
||
<div class="reportSectionContainer"> | ||
<div id="owa_timePeriodControl" class="owa_reportPeriod" style="float:right;"></div> | ||
<div id="liveViewSwitch" style="width:auto;float:right; padding-right:30px;"></div> | ||
<div class="owa_reportTitle"><?php echo $title;?><span class="titleSuffix"><?php echo $this->get('titleSuffix');?></span></div> | ||
|
||
<div class="clear"></div> | ||
<?php echo $subview;?> | ||
|
||
</div> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,71 @@ | ||
<DIV class="panel_headline"><?php echo $headline;?></DIV> | ||
<DIV id="panel"> | ||
<P>Below is the list of Web Sites that can be tracked. A site must appear in this list | ||
if it is to be tracked/reported separately.</P> | ||
|
||
<fieldset> | ||
<legend>Tracked Web Sites <span class="legend_link">(<a href="<?php echo $this->makeLink(array('do' => 'base.sitesProfile'));?>">Add a Site</a>)<span></legend> | ||
<P>Below is the list of Web Sites that can be tracked. A site must appear in this list if it is to be tracked/reported separately.</P> | ||
|
||
|
||
<TABLE width="100%" border="0" class="management"> | ||
<thead> | ||
<TR> | ||
<TH>Name & Description</TH> | ||
|
||
<TH>Options</TH> | ||
</TR> | ||
</thead> | ||
<tbody> | ||
<?php if ($tracked_sites): ?> | ||
<?php foreach ($tracked_sites as $site):?> | ||
<TR> | ||
<TD> | ||
<span style="font-size:14px; font-weight:bold;"> | ||
<a href="<?php echo $this->makeLink( array('do' => 'base.reportDashboard', 'siteId' => $site->get('site_id') ), false );?>"><?php $this->out( $site->get('name') );?></a> | ||
</span><BR> | ||
<?php if ($site->get('description') != ''):?> | ||
<span class="info_text"><?php $this->out( $site->get('description') );?></span><BR> | ||
<?php endif;?> | ||
<span class="info_text"><?php $this->out( $site->get('domain') );?></span><BR> | ||
</TD> | ||
|
||
<TD> | ||
<a href="<?php echo $this->makeLink( array('do' => 'base.sitesProfile', 'siteId' => $site->get('site_id'), 'edit' => true ) );?>">Edit</a> | | ||
<a href="<?php echo $this->makeLink( array('do' => 'base.sitesDelete', 'siteId' => $site->get('site_id') ), false, false, false, true );?>">Delete</a> | | ||
<a href="<?php echo $this->makeLink( array('do' => 'base.sitesInvocation', 'siteId' => $site->get('site_id') ) );?>">Get Tracking Code</a> | | ||
<a href="<?php echo $this->makeLink( array('do' => 'base.optionsGoals', 'siteId' => $site->get('site_id') ) );?>">Goals</a> | ||
</TD> | ||
|
||
</TR> | ||
<?php endforeach;?> | ||
<?php else: ?> | ||
<TR> | ||
<TD>There are no tracked sites. <a href="<?php echo $this->makeLink(array('do' => 'base.sitesProfile'));?>">Add a site</a>.</TD> | ||
</TR> | ||
<?php endif;?> | ||
</tbody> | ||
</TABLE> | ||
<p class="legend_link">(<a href="<?php echo $this->makeLink(array('do' => 'base.sitesProfile'));?>">Add a Site</a>)</p> | ||
|
||
</fieldset> | ||
<?php if ($tracked_sites): ?> | ||
<?php foreach ($tracked_sites as $site):?> | ||
<div class="owa_reportSectionContent" style="min-width:500px;"> | ||
<TABLE width="" border="0" class="management"> | ||
<thead></thead> | ||
<tbody> | ||
<TR> | ||
|
||
<td style="width:150px;" valign=""> | ||
<?php $this->getSiteThumbnail( $site->get( 'domain' ), 150 );?> | ||
</td> | ||
|
||
<td valign=""> | ||
<span style="font-size:14px; font-weight:bold;"> | ||
<a href="<?php echo $this->makeLink( array('do' => 'base.reportDashboard', 'siteId' => $site->get('site_id') ), false );?>"><?php $this->out( $site->get('name') );?></a> | ||
</span><BR> | ||
<?php if ($site->get('description') != ''):?> | ||
<span class="info_text"><?php $this->out( $site->get('description') );?></span><BR> | ||
<?php endif;?> | ||
<span class="externalUrl"><?php $this->out( $site->get('domain') );?></span><BR><BR> | ||
<div> | ||
<a href="<?php echo $this->makeLink( array('do' => 'base.reportDashboard', 'siteId' => $site->get('site_id') ), false );?>">View Reports</a> | | ||
<a href="<?php echo $this->makeLink( array('do' => 'base.sitesProfile', 'siteId' => $site->get('site_id'), 'edit' => true ) );?>">Edit Profile</a> | | ||
<a href="<?php echo $this->makeLink( array('do' => 'base.sitesInvocation', 'siteId' => $site->get('site_id') ) );?>">Get Tracking Code</a> | | ||
<a href="<?php echo $this->makeLink( array('do' => 'base.optionsGoals', 'siteId' => $site->get('site_id') ) );?>">Goals</a> | ||
| | ||
<a href="<?php echo $this->makeLink( array('do' => 'base.sitesDelete', 'siteId' => $site->get('site_id') ), false, false, false, true );?>">Delete</a> | ||
</div> | ||
</td> | ||
<td> | ||
<!-- stats --> | ||
<div id="trend-metrics-<?php echo $site->get('site_id'); ?>"></div> | ||
<script> | ||
var aurl = '<?php echo $this->makeApiLink(array( | ||
'do' => 'getResultSet', | ||
'metrics' => 'visits,pageViews,bounceRate', | ||
'dimensions' => 'date', | ||
'sort' => 'date', | ||
'format' => 'json', | ||
'period' => 'last_thirty_days', | ||
'constraints' => urlencode('siteId=='.$site->get('site_id')) | ||
), true); ?>'; | ||
var rsh = new OWA.resultSetExplorer('site-trend'); | ||
//rsh.asyncQueue.push(['makeAreaChart', [{x: 'date', y: 'visits'}], 'trend-chart']); | ||
rsh.options.metricBoxes.width = '150px'; | ||
rsh.asyncQueue.push(['makeMetricBoxes' , 'trend-metrics-<?php echo $site->get('site_id'); ?>']); | ||
rsh.load(aurl); | ||
</script> | ||
|
||
|
||
|
||
</td> | ||
</TR> | ||
</tbody> | ||
</TABLE> | ||
</div> | ||
<?php endforeach;?> | ||
<?php else: ?> | ||
|
||
There are no tracked sites. <a href="<?php echo $this->makeLink(array('do' => 'base.sitesProfile'));?>">Add a site</a>.</TD> | ||
|
||
<?php endif;?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters