Пример #1
0
    /**
     * Loads the nessecarry templates and invokes the html generating.
     */
    public function render()
    {
        $app = jpWotApp::getInstance();
        jpWotTemplate::render('main.navigation');
        ?>
		<div id="main" role="main">
			<?php 
        jpWotTemplate::render($app->getPageKey() . '.filterarea', $this->_controller->getRequestData($app->getPageKey()));
        if (!empty($this->_model)) {
            jpWotTemplate::render($app->getPageKey() . '.' . $this->_model->getApiCall(), array('result' => $this->_model->getData()));
        }
        ?>
		</div>
		<?php 
    }
Пример #2
0
					 title="World of Tanks"
					 style="max-width: 160px; display: inline-block;"/>
				<h1 style="display: inline-block;">SSE (Stats Search Engine)</h1>
			</div>
			<div class="row" id="contentbox">
				<div class="col-lg-12">
					<?php 
$app->invoke();
?>
				</div>
			</div>
			<div class="row">
				<div class="col-lg-12 small text-center">
					<span class="text-muted">
						&copy; <?php 
echo date('Y');
?>
 JPlace <a href="http://www.jplace.de" target="_blank">www.jplace.de</a>
					</span>
					<div class="pull-right">
						<?php 
echo jpWotTemplate::render('filter.lang');
?>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>
<?php 
jpWotSession::writeClose();
Пример #3
0
		<div id="filterarea">
			<form class="form-inline"
				  role="form"
				  action="index.php?page=<?php 
echo $data['page'];
?>
"
				  method="post">
				<div class="form-group">
					<?php 
jpWotTemplate::render('filter.search', array('last_value' => $search, 'label' => $language->get('FILTER_SEARCH_LABEL'), 'placeholder' => $language->get('FILTER_SEARCH_PLACEHOLDER')));
?>
				</div>
				<div class="form-group">
					<?php 
jpWotTemplate::render('filter.limit', array('last_value' => $limit, 'title' => $language->get('FILTER_LIMIT_TITLE')));
?>
				</div>
				<div class="form-group">
					<input type="submit"
						   class="btn btn-primary btn-sm"
						   value="<?php 
echo $language->get('FILTER_SUBMIT_BUTTON_TEXT');
?>
">
				</div>
			</form>
		</div>
	</div>
</div>