<?php /* Smarty version 2.6.18, created on 2010-11-25 18:42:43
         compiled from manageStats.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'smartyTabIndex', 'manageStats.tpl', 18, false),array('modifier', 'date_format', 'manageStats.tpl', 72, false),)), $this); ?>
<div id="selStats" class="clsStats">
	<?php if ($this->_tpl_vars['myobj']->getFormField('mode') == 'audio'): ?>
	<h2 class="clsForumTitle"><?php echo $this->_tpl_vars['LANG']['audio_statistics']; ?>
</h2>
	<?php else: ?>
	<h2 class="clsForumTitle"><?php echo $this->_tpl_vars['LANG']['video_statistics']; ?>
</h2>
	<?php endif; ?>
<?php if ($this->_tpl_vars['myobj']->isShowPageBlock('form_search')): ?>
	<div id="selShowSearchGroup">
		<?php if ($this->_tpl_vars['myobj']->getFormField('mode') == 'audio'): ?>
		<form name="form_search" id="form_search" method="post" action="<?php echo $this->_tpl_vars['CFG']['site']['relative_url']; ?>
manageStats.php?mode=audio" autocomplete="off">
		<?php else: ?>
		<form name="form_search" id="form_search" method="post" action="<?php echo $this->_tpl_vars['CFG']['site']['relative_url']; ?>
manageStats.php" autocomplete="off">
		<?php endif; ?>
			<table border="0" cellspacing="0" summary="<?php echo $this->_tpl_vars['LANG']['statssearch_tbl_summary']; ?>
">
				<tr>
					<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('srch_stats_cnt'); ?>
"><label for="srch_stats_cnt"><?php echo $this->_tpl_vars['LANG']['stats_views']; ?>
</label></td>
					<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('srch_stats_cnt'); ?>
">
						<select name="stats_condition" id="stats_condition" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" >
							<?php echo $this->_tpl_vars['myobj']->generalPopulateArray($this->_tpl_vars['myobj']->populateConditionOperators_arr,$this->_tpl_vars['myobj']->getFormField('stats_condition')); ?>

						</select>
						<input type="text" class="clsTextBox clsMediumTextBox" name="srch_stats_cnt" id="srch_stats_cnt" value="<?php echo $this->_tpl_vars['myobj']->getFormField('srch_stats_cnt'); ?>
" tabindex="<?php echo smartyTabIndex(array(), $this);?>
"/><?php echo $this->_tpl_vars['myobj']->getFormFieldElementErrorTip('srch_stats_cnt'); ?>

					</td>
				</tr>
				<tr class="clsStatsRow">
				  	<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('srch_date_added_from'); ?>
">
						<label for="srch_date_added_from"><?php echo $this->_tpl_vars['LANG']['stats_search_date_from']; ?>
</label><?php echo $this->_tpl_vars['myobj']->ShowHelpTip('stats_search_date_from','srch_date_added_from'); ?>

				 	</td>
				 	<td>
				 		<input type="text" class="clsTextBox" name="srch_date_added_from" id="srch_date_added_from" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" value="<?php echo $this->_tpl_vars['myobj']->getFormField('srch_date_added_from'); ?>
"  readonly />
						<button class="clsSubmitButton" type="reset" id="f_trigger_start_date">...</button>
						<?php echo $this->_tpl_vars['myobj']->populateCalendar('srch_date_added_from','f_trigger_start_date',true); ?>
<?php echo $this->_tpl_vars['myobj']->getFormFieldElementErrorTip('srch_date_added_from'); ?>

				 	</td>
				</tr>
				<tr class="clsStatsRow">
				  	<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('srch_date_added_to'); ?>
">
						<label for="srch_date_added_to"><?php echo $this->_tpl_vars['LANG']['stats_search_date_to']; ?>
</label><?php echo $this->_tpl_vars['myobj']->ShowHelpTip('stats_search_date_to','srch_date_added_to'); ?>

				  	</td>
				  	<td>
				 		<input type="text"  class="clsTextBox" name="srch_date_added_to" id="srch_date_added_to" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" value="<?php echo $this->_tpl_vars['myobj']->getFormField('srch_date_added_to'); ?>
" readonly />
                 		<button class="clsSubmitButton" type="reset" id="f_trigger_end_date">...</button><?php echo $this->_tpl_vars['myobj']->populateCalendar('srch_date_added_to','f_trigger_end_date',true); ?>
<?php echo $this->_tpl_vars['myobj']->getFormFieldElementErrorTip('srch_date_added_to'); ?>

				 	</td>
			    </tr>
				<tr>
					<td></td>
					<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('stats_search'); ?>
">
						<input type="submit" class="clsSubmitButton" value="<?php echo $this->_tpl_vars['LANG']['search']; ?>
" id="stats_search" name="stats_search" tabindex="<?php echo smartyTabIndex(array(), $this);?>
"/>
						<input type="submit" class="clsSubmitButton" value="<?php echo $this->_tpl_vars['LANG']['common_reset']; ?>
" id="stats_reset" name="stats_reset" tabindex="<?php echo smartyTabIndex(array(), $this);?>
"/>
					</td>
				</tr>
			</table>
			<?php echo $this->_tpl_vars['myobj']->populateHiddenFormFields($this->_tpl_vars['myobj']->form_search['hidden_arr']); ?>

		</form>
	</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['myobj']->isShowPageBlock('form_default_stats')): ?>
	<?php if ($this->_tpl_vars['myobj']->getFormField('mode') == 'audio'): ?>
		<h2><?php echo $this->_tpl_vars['LANG']['overall_audio_stats']; ?>
</h2>
	<?php else: ?>
		<h2><?php echo $this->_tpl_vars['LANG']['overall_video_stats']; ?>
</h2>
	<?php endif; ?>
	<table border="1" cellspacing="0" summary="<?php echo $this->_tpl_vars['LANG']['stats_tbl_summary']; ?>
"  class="clsForumTbl clsStatTbl">
		<tr>
		   <td><h3><?php if ($this->_tpl_vars['myobj']->getFormField('mode') == 'audio'): ?><?php echo $this->_tpl_vars['LANG']['number_of_audios_in_last_seven_days']; ?>
<?php else: ?><?php echo $this->_tpl_vars['LANG']['number_of_videos_in_last_seven_days']; ?>
<?php endif; ?></h3></td>
		   <td><span class="clsStatCount"><?php if ($this->_tpl_vars['myobj']->getFormField('mode') == 'audio'): ?><?php echo $this->_tpl_vars['audios_for_seven_days']; ?>
<?php else: ?><?php echo $this->_tpl_vars['videos_for_seven_days']; ?>
<?php endif; ?></span></td>
		</tr>
		<tr>
			<td><h3><?php if ($this->_tpl_vars['myobj']->getFormField('mode') == 'audio'): ?><?php echo $this->_tpl_vars['LANG']['number_of_times_audios_viewed_in_last_seven_days']; ?>
<?php else: ?><?php echo $this->_tpl_vars['LANG']['number_of_times_videos_viewed_in_last_seven_days']; ?>
<?php endif; ?> </h3></td>
			<td><span class="clsStatCount"><?php if ($this->_tpl_vars['myobj']->getFormField('mode') == 'audio'): ?><?php if ($this->_tpl_vars['audio_views_for_seven_days'] == ''): ?>0 <?php else: ?><?php echo $this->_tpl_vars['audio_views_for_seven_days']; ?>
<?php endif; ?><?php else: ?><?php if ($this->_tpl_vars['video_views_for_seven_days'] == ''): ?>0<?php else: ?> <?php echo $this->_tpl_vars['video_views_for_seven_days']; ?>
<?php endif; ?><?php endif; ?></span></td>
		</tr>
		<tr>
			<td><h3><?php if ($this->_tpl_vars['myobj']->getFormField('mode') == 'audio'): ?><?php echo $this->_tpl_vars['LANG']['number_of_audios_added_from']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['since_date_audio'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp)); ?>
  <?php echo $this->_tpl_vars['LANG']['to']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['date_audio_to'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp)); ?>
<?php else: ?><?php echo $this->_tpl_vars['LANG']['number_of_videos_added_from']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['since_date_video'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp)); ?>
 <?php echo $this->_tpl_vars['LANG']['to']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['date_video_to'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp)); ?>
<?php endif; ?></h3></td>
			<td><span class="clsStatCount"><?php if ($this->_tpl_vars['myobj']->getFormField('mode') == 'audio'): ?><?php if ($this->_tpl_vars['total_audios'] == ''): ?> 0 <?php else: ?><?php echo $this->_tpl_vars['total_audios']; ?>
<?php endif; ?><?php else: ?><?php if ($this->_tpl_vars['total_videos'] == ''): ?> 0 <?php else: ?><?php echo $this->_tpl_vars['total_videos']; ?>
<?php endif; ?><?php endif; ?></span></td>
		</tr>
		<tr>
			<td><h3><?php if ($this->_tpl_vars['myobj']->getFormField('mode') == 'audio'): ?><?php echo $this->_tpl_vars['LANG']['number_of_times_audio_heard_from']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['since_date_audio'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp)); ?>
 <?php echo $this->_tpl_vars['LANG']['to']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['date_audio_to'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp)); ?>
 <?php else: ?><?php echo $this->_tpl_vars['LANG']['number_of_times_video_viewed_from']; ?>
  <?php echo ((is_array($_tmp=$this->_tpl_vars['since_date_video'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp)); ?>
 <?php echo $this->_tpl_vars['LANG']['to']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['date_video_to'])) ? $this->_run_mod_handler('date_format', true, $_tmp) : smarty_modifier_date_format($_tmp)); ?>
<?php endif; ?></h3></td>
			<td><span class="clsStatCount"><?php if ($this->_tpl_vars['myobj']->getFormField('mode') == 'audio'): ?><?php if ($this->_tpl_vars['total_audio_views'] == ''): ?>0 <?php else: ?><?php echo $this->_tpl_vars['total_audio_views']; ?>
<?php endif; ?><?php else: ?><?php if ($this->_tpl_vars['total_video_views'] == ''): ?>0 <?php else: ?><?php echo $this->_tpl_vars['total_video_views']; ?>
<?php endif; ?><?php endif; ?></span></td>
		</tr>
	</table>
<?php endif; ?>

<?php if ($this->_tpl_vars['myobj']->isShowPageBlock('form_show_stats')): ?>
	<div id="selShowVideoStats">
		<?php if ($this->_tpl_vars['myobj']->getFormField('mode') == 'audio'): ?>
			<h2><?php echo $this->_tpl_vars['LANG']['audio_content_stats']; ?>
</h2>
		<?php else: ?>
			<h2><?php echo $this->_tpl_vars['LANG']['video_content_stats']; ?>
</h2>
		<?php endif; ?>
	 	<?php if ($this->_tpl_vars['myobj']->isResultsFound()): ?>
			<?php if ($this->_tpl_vars['CFG']['admin']['navigation']['top']): ?>
				<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'pagination.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
			<?php endif; ?>
	 		<form name="selStats" id="selStats">
				<table border="1" cellspacing="0" summary="<?php echo $this->_tpl_vars['LANG']['stats_tbl_summary']; ?>
"  class="clsForumTbl">
					<tr>
						<th><?php echo $this->_tpl_vars['LANG']['content_for']; ?>
</th>
						<th><?php echo $this->_tpl_vars['LANG']['content']; ?>
</th>
						<th><?php echo $this->_tpl_vars['LANG']['stats_views']; ?>
</th>
						<th><?php echo $this->_tpl_vars['LANG']['preview']; ?>
</th>
					</tr>
					<?php $_from = $this->_tpl_vars['myobj']->form_show_stats['video_stats']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['fssKey'] => $this->_tpl_vars['fssValue']):
?>
					 	<tr>
							<td><?php echo $this->_tpl_vars['fssValue']['record']['content_for']; ?>
</td>
							<td><?php if ($this->_tpl_vars['fssValue']['record']['content_for'] == 'Question'): ?><a href="<?php echo $this->_tpl_vars['CFG']['site']['url']; ?>
admin/<?php echo $this->_tpl_vars['CFG']['admin']['index']['anova_module']; ?>
/viewAnswers.php?qid=<?php echo $this->_tpl_vars['fssValue']['video_details']['ques_id']; ?>
"><?php echo $this->_tpl_vars['fssValue']['video_details']['question']; ?>
</a><?php else: ?><a href="<?php echo $this->_tpl_vars['CFG']['site']['url']; ?>
admin/<?php echo $this->_tpl_vars['CFG']['admin']['index']['anova_module']; ?>
/viewAnswers.php?qid=<?php echo $this->_tpl_vars['fssValue']['video_details']['ques_id']; ?>
#<?php echo $this->_tpl_vars['fssValue']['video_details']['ans_id']; ?>
"><?php echo $this->_tpl_vars['fssValue']['video_details']['answer']; ?>
<?php endif; ?></a></td>
							<td><?php echo $this->_tpl_vars['fssValue']['record']['total_views']; ?>
 </td>
							<?php if ($this->_tpl_vars['myobj']->getFormField('mode') == 'audio'): ?>
								<td><?php if ($this->_tpl_vars['fssValue']['record']['content_for'] == 'Question'): ?><span><a id="<?php echo $this->_tpl_vars['fssValue']['video_details']['stats_video_id']; ?>
" href="<?php echo $this->_tpl_vars['CFG']['site']['url']; ?>
<?php echo $this->_tpl_vars['CFG']['admin']['index']['anova_module']; ?>
/ansViewAudio.php?pg=Question_<?php echo $this->_tpl_vars['fssValue']['video_details']['stats_video_id']; ?>
" onClick="<?php echo $this->_tpl_vars['myobj']->getBrowser($this->_tpl_vars['fssValue']['video_details']['stats_video_id']); ?>
"><img src="<?php echo $this->_tpl_vars['CFG']['site']['url']; ?>
design/templates/<?php echo $this->_tpl_vars['CFG']['html']['template']['default']; ?>
/images/popular_audio.jpg" alt="<?php echo $this->_tpl_vars['LANG']['click_here']; ?>
" /></a></span><?php else: ?><span><a id="<?php echo $this->_tpl_vars['fssValue']['video_details']['audio_id']; ?>
" href="<?php echo $this->_tpl_vars['CFG']['site']['url']; ?>
<?php echo $this->_tpl_vars['CFG']['admin']['index']['anova_module']; ?>
/ansViewAudio.php?pg=Answer_<?php echo $this->_tpl_vars['fssValue']['video_details']['stats_video_id']; ?>
" onClick="<?php echo $this->_tpl_vars['myobj']->getBrowser($this->_tpl_vars['fssValue']['video_details']['stats_video_id']); ?>
"><img src="<?php echo $this->_tpl_vars['CFG']['site']['url']; ?>
design/templates/<?php echo $this->_tpl_vars['CFG']['html']['template']['default']; ?>
/images/popular_audio.jpg" alt="<?php echo $this->_tpl_vars['LANG']['click_here']; ?>
" /></a></span><?php endif; ?></td>
							<?php else: ?>
								<td><?php if ($this->_tpl_vars['fssValue']['record']['content_for'] == 'Question'): ?><span><a id="<?php echo $this->_tpl_vars['fssValue']['video_details']['stats_video_id']; ?>
" href="<?php echo $this->_tpl_vars['CFG']['site']['url']; ?>
<?php echo $this->_tpl_vars['CFG']['admin']['index']['anova_module']; ?>
/ansViewVideo.php?pg=Question_<?php echo $this->_tpl_vars['fssValue']['video_details']['stats_video_id']; ?>
" onClick="<?php echo $this->_tpl_vars['myobj']->getBrowser($this->_tpl_vars['fssValue']['video_details']['stats_video_id']); ?>
"><img src="<?php echo $this->_tpl_vars['fssValue']['video_details']['imgSrc']; ?>
" alt="<?php echo $this->_tpl_vars['LANG']['click_here']; ?>
" /></a></span><?php else: ?><span><a id="<?php echo $this->_tpl_vars['fssValue']['video_details']['video_id']; ?>
" href="<?php echo $this->_tpl_vars['CFG']['site']['url']; ?>
<?php echo $this->_tpl_vars['CFG']['admin']['index']['anova_module']; ?>
/ansViewVideo.php?pg=Answer_<?php echo $this->_tpl_vars['fssValue']['video_details']['video_id']; ?>
" onClick="<?php echo $this->_tpl_vars['myobj']->getBrowser($this->_tpl_vars['fssValue']['video_details']['video_id']); ?>
"><img src="<?php echo $this->_tpl_vars['fssValue']['video_details']['imgSrc']; ?>
" alt="<?php echo $this->_tpl_vars['LANG']['click_here']; ?>
" /></a></span><?php endif; ?></td>
							<?php endif; ?>
					 	</tr>
					<?php endforeach; endif; unset($_from); ?>
				</table>
				<?php if ($this->_tpl_vars['CFG']['admin']['navigation']['bottom']): ?>
					<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'pagination.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
				<?php endif; ?>
			</form>
		<?php else: ?>
			<div id="selMsgAlert">
				<p><?php echo $this->_tpl_vars['LANG']['common_no_records_found']; ?>
</p>
			</div>
		<?php endif; ?>
	</div>
<?php endif; ?>