Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: create views for statitcs output header
- Loading branch information
LouisGac
committed
Dec 18, 2015
1 parent
2112b7c
commit 703f0b5
Showing
4 changed files
with
270 additions
and
18 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,35 @@ | ||
<? | ||
/** | ||
* This view display the header of the generated statistics | ||
* It is called from statistics_helper::generate_html_chartjs_statistics() | ||
* | ||
* @var $results | ||
* @var $total | ||
* @var $percent | ||
* @var $browse | ||
* @var $surveyid | ||
* @var $sql | ||
*/ | ||
?> | ||
|
||
<!-- Message Box --> | ||
<div style="clear: both; margin-bottom: 10px;"></div><div class="jumbotron message-box"> | ||
<h2><?php eT("Results"); ?></h2> | ||
<p><?php eT("Number of records in this query:")?> <?php echo $results;?></p> | ||
<p><?php eT("Total records in survey:"); ?> <?php echo $total; ?></p> | ||
|
||
<?php if($total): ?> | ||
<p><?php eT("Percentage of total:"); ?> <?php echo $percent; ?>%</p> | ||
<?php endif;?> | ||
|
||
<?php if($browse): ?> | ||
<?php echo CHtml::form(array("admin/responses/sa/browse/surveyid/{$surveyid}"), 'post',array('target'=>'_blank'))."\n" ;?> | ||
<p> | ||
<input type='submit' class='btn btn-default' value='<?php eT("Browse");?>' /> | ||
<input type='hidden' name='sid' value='<?php echo $surveyid; ?>'/> | ||
<input type='hidden' name='sql' value="<?php echo $sql; ?>"/> | ||
<input type='hidden' name='subaction' value='all'/> | ||
</p> | ||
</form> | ||
<?php endif;?> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -882,9 +882,5 @@ | |
|
||
} //end switch -> check question types and create filter forms | ||
?> | ||
|
||
|
||
|
||
|
||
</div> | ||
<?php endif; ?> |