unset($_smarty_tpl_vars);
?>
        <?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "CoreHome/templates/header_message.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
	    <?php 
echo smarty_function_ajaxRequestErrorDiv(array(), $this);
?>

    </div>
    
    <?php 
echo smarty_function_ajaxLoadingDiv(array(), $this);
?>

    
    <div id="content" class="home">
        <?php 
if ($this->_tpl_vars['content']) {
    echo $this->_tpl_vars['content'];
}
?>
    </div>
    <div class="clear"></div>
</div>
</div>

<br/><br/>
    ?>

		</td></tr>
	</table>
	<span style='margin-left:20px'>
		<input type="submit" class="submit" id='globalSettingsSubmit' value="<?php 
    echo is_array($_tmp = 'General_Save') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
    ?>
" />
	</span>
	<?php 
    echo smarty_function_ajaxErrorDiv(array('id' => 'ajaxErrorGlobalSettings'), $this);
    ?>

	<?php 
    echo smarty_function_ajaxLoadingDiv(array('id' => 'ajaxLoadingGlobalSettings'), $this);
    ?>

<?php 
}
if ($this->_tpl_vars['showAddSite']) {
    ?>
<script type="text/javascript"><?php 
    echo '
$(document).ready(function(){
    $(\'.addRowSite:first\').trigger(\'click\');
});
';
    ?>
</script>
<?php 
        }
        ?>
 />
				<label for="period_id_<?php 
        echo $this->_tpl_vars['label'];
        ?>
" ><?php 
        echo $this->_tpl_vars['thisPeriod']['singular'];
        ?>
</label><br />
			<?php 
    }
}
unset($_from);
?>
			</span>
			<input tabindex="3" type="submit" value="<?php 
echo is_array($_tmp = 'General_ApplyDateRange') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
" id="calendarRangeApply" />
			<?php 
echo smarty_function_ajaxLoadingDiv(array('id' => 'ajaxLoadingCalendar'), $this);
?>

		</div>
	</div>
	<div class="period-click-tooltip" style="display:none;"><?php 
echo is_array($_tmp = 'General_ClickToChangePeriod') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</div>
</div>
    }
    ?>
			</li>
		</ul>
	</div>
	<br/>
<?php 
}
?>

<?php 
echo smarty_function_ajaxErrorDiv(array(), $this);
?>

<?php 
echo smarty_function_ajaxLoadingDiv(array('id' => 'goalAjaxLoading'), $this);
?>

	
<div class="entityContainer">
	<?php 
if (!isset($this->_tpl_vars['onlyShowAddNewGoal'])) {
    ?>
		<?php 
    $_smarty_tpl_vars = $this->_tpl_vars;
    $this->_smarty_include(array('smarty_include_tpl_file' => "Goals/templates/list_goal_edit.tpl", 'smarty_include_vars' => array()));
    $this->_tpl_vars = $_smarty_tpl_vars;
    unset($_smarty_tpl_vars);
    ?>
	<?php 
}
        ?>
		<h3 class='form-description'><b><?php 
        echo is_array($_tmp = 'UsersManager_NoteNoAnonymousUserAccessSettingsWontBeUsed2') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
        ?>
</b></h3><br />
	<?php 
    } else {
        ?>
		<br />
		
		<?php 
        echo smarty_function_ajaxErrorDiv(array('id' => 'ajaxErrorAnonymousUserSettings'), $this);
        ?>

		<?php 
        echo smarty_function_ajaxLoadingDiv(array('id' => 'ajaxLoadingAnonymousUserSettings'), $this);
        ?>

	
		<table id='anonymousUserSettingsTable' class="adminTable" style='width:850px;'>
		<tr>
			<td style='width:400px'><?php 
        echo is_array($_tmp = 'UsersManager_WhenUsersAreNotLoggedInAndVisitPiwikTheyShouldAccess') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
        ?>
</td>
			<td>
			<fieldset>
				<label><input type="radio" value="Login" name="anonymousDefaultReport"<?php 
        if ($this->_tpl_vars['anonymousDefaultReport'] == $this->_tpl_vars['loginModule']) {
            ?>
 checked="checked"<?php 
						<br/>						
						<span class='form-description'><?php 
    echo is_array($_tmp = 'MobileMessaging_Settings_LetUsersManageAPICredential_Yes_Help') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
    ?>
</span>
					</label>

				</fieldset>
		</tr>
	</table>
<?php 
}
?>

<?php 
echo smarty_function_ajaxLoadingDiv(array('id' => 'ajaxLoadingMobileMessagingSettings'), $this);
?>


<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'CoreAdminHome/templates/footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>

<div class='ui-confirm' id='confirmDeleteAccount'>
	<h2><?php 
echo is_array($_tmp = 'MobileMessaging_Settings_DeleteAccountConfirm') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
</h2>
    ?>
</h2>
    <p><?php 
    echo is_array($_tmp = 'UsersManager_UsersManagementMainDescription') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
    ?>

        <?php 
    echo is_array($_tmp = 'UsersManager_ThereAreCurrentlyNRegisteredUsers') ? $this->_run_mod_handler('translate', true, $_tmp, "<b>" . $this->_tpl_vars['usersCount'] . "</b>") : smarty_modifier_translate($_tmp, "<b>" . $this->_tpl_vars['usersCount'] . "</b>");
    ?>
</p>
    <?php 
    echo smarty_function_ajaxErrorDiv(array('id' => 'ajaxErrorUsersManagement'), $this);
    ?>

    <?php 
    echo smarty_function_ajaxLoadingDiv(array('id' => 'ajaxLoadingUsersManagement'), $this);
    ?>

    <div class="entityContainer" style='margin-bottom:50px'>
        <table class="entityTable dataTable" id="users">
            <thead>
            <tr>
                <th><?php 
    echo is_array($_tmp = 'General_Username') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
    ?>
</th>
                <th><?php 
    echo is_array($_tmp = 'UsersManager_Password') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
    ?>
</th>
                <th><?php 
?>
 
		  <input type="text" id="seoUrl" size="15" value="<?php 
echo is_array($_tmp = $this->_tpl_vars['urlToRank']) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html');
?>
" class="textbox" />
		  <span style="padding-left:2px;"> 
		  <input type="submit" id="rankbutton" value="<?php 
echo is_array($_tmp = 'SEO_Rank') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
?>
" />
		  </span>
	  </div>
	
		<?php 
echo smarty_function_ajaxLoadingDiv(array('id' => 'ajaxLoadingSEO'), $this);
?>


	   <div id="rankStats" align="left" style='margin-top:10px'>
	   		<?php 
if (empty($this->_tpl_vars['ranks'])) {
    ?>
	   			<?php 
    echo is_array($_tmp = 'General_Error') ? $this->_run_mod_handler('translate', true, $_tmp) : smarty_modifier_translate($_tmp);
    ?>

	   		<?php 
} else {
    ob_start();
    ?>
            }
        }
        unset($_from);
        ?>
			</ul>
		</div>
	<?php 
    }
}
unset($_from);
?>
</div>

<div style='float: left;'>
	<?php 
echo smarty_function_ajaxLoadingDiv(array('id' => 'tableGoalsLoading'), $this);
?>

	
	<div id='tableGoalsByDimension'></div>
</div>
<div class="clear"></div>
<?php 
echo '
<script type="text/javascript">
$(document).ready( function() {
	var countLoaded = 0;
	/* 
	 * For each \'dimension\' in the list, a click will trigger an ajax request to load the datatable 
	 * showing Goals metrics (conversion, conv. rates, revenue) for this dimension
	 */