Removed direct references to $_REQUEST and $_POST
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
<form class="form-inline" method="POST">
|
||||
<div class="dl-horizontal">
|
||||
<dt>View Traffic for</dt>
|
||||
<dd><?php echo Form::select('month',array_merge(array(''),$o->get_traffic_months()),(isset($_POST['month']) ? $_POST['month'] : ''),array('class'=>'input-small','nocg'=>TRUE)); ?>
|
||||
<dd><?php echo Form::select('month',array_merge(array(''),$o->get_traffic_months()),Arr::get($_POST,'month',''),array('class'=>'input-small','nocg'=>TRUE)); ?>
|
||||
<button type="submit" class="btn btn-mini">Submit</button></dd>
|
||||
</div> <!-- dl-horizontal -->
|
||||
</form>
|
||||
@@ -66,11 +66,11 @@
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="tab1">
|
||||
<?php echo $o->traffic_graph(isset($_POST['month']) ? $_POST['month'] : ''); ?>
|
||||
<?php echo $o->traffic_graph(Arr::get($_POST,'month','')); ?>
|
||||
</div> <!-- /tab-pane -->
|
||||
|
||||
<div class="tab-pane" id="tab2">
|
||||
<?php echo $o->traffic_table(isset($_POST['month']) ? $_POST['month'] : ''); ?>
|
||||
<?php echo $o->traffic_table(Arr::get($_POST,'month','')); ?>
|
||||
</div> <!-- /tab-pane -->
|
||||
|
||||
</div> <!-- /tab-content -->
|
||||
|
Reference in New Issue
Block a user