Skip to content

Commit

Permalink
Dev: identations
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Mar 5, 2018
1 parent 30c9f23 commit 7cf628f
Showing 1 changed file with 7 additions and 15 deletions.
Expand Up @@ -30,30 +30,26 @@ public function run()
{

// Search
if (isset($_GET['Survey']['searched_value']))
{
if (isset($_GET['Survey']['searched_value'])){
$this->model->searched_value = $_GET['Survey']['searched_value'];
}

$this->model->active = null;
$this->model->gsid = null;

// Filter state
if (isset($_GET['active']) && !empty($_GET['active']))
{
if (isset($_GET['active']) && !empty($_GET['active'])){
$this->model->active = $_GET['active'];
}

// Filter survey group
if (isset($_GET['gsid']) && !empty($_GET['gsid']))
{
if (isset($_GET['gsid']) && !empty($_GET['gsid'])){
$this->model->gsid = $_GET['gsid'];
}


// Set number of page
if (isset($_GET['pageSize']))
{
if (isset($_GET['pageSize'])){
Yii::app()->user->setState('pageSize',(int)$_GET['pageSize']);
}

Expand All @@ -63,17 +59,13 @@ public function run()

$this->massiveAction = $this->render('massive_actions/_selector', array(), true, false);

if ($this->bRenderFooter)
{
if ($this->bRenderFooter){
$this->template = "{items}\n<div class=\"row-fluid\"><div class=\"col-sm-4\" id=\"massive-action-container\">$this->massiveAction</div><div class=\"col-sm-4 pager-container ls-ba \">{pager}</div><div class=\"col-sm-4 summary-container\">{summary}</div></div>";
}
else
{
}else{
$this->template = "{items}";
}

if ($this->bRenderSearchBox)
{
if ($this->bRenderSearchBox){
$this->render('searchBox');
}

Expand Down

0 comments on commit 7cf628f

Please sign in to comment.