* adjust flow.

This commit is contained in:
wangyidong
2013-01-10 07:13:51 +00:00
parent 0578c49150
commit a3860ca367
3 changed files with 3 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ class index extends control
if($_POST)
{
$this->loadModel('setting')->setItem('system', 'common', '', 'flow', $this->post->flow);
$this->loadModel('setting')->setItem('system', 'common', 'global', 'flow', $this->post->flow);
if($this->post->flow != 'full') die(js::locate($this->createLink('extension', 'install', "extension={$this->config->index->flow2Ext[$this->post->flow]}"), 'parent'));
die(js::reload( 'parent.parent'));
}

View File

@@ -14,4 +14,5 @@ $(function()
{
$(this).sparkline('html', {height:'25px'});
})
if(typeof(flow) != 'undefined' && flow) $.colorbox({href:createLink('index', 'index', 'type=flow'), open:true, width:800, height:400, iframe:true});
});

View File

@@ -37,12 +37,5 @@
<?php endif;?>
</tr>
</table>
<script type='text/javascript'>
<?php
if(!(isset($this->app->config->flow) or strpos($this->config->version, 'pro') !== false or strpos($this->app->company->admins, ",{$this->app->user->account},") === false))
{
echo "\$.colorbox({href:" . json_encode($this->createLink('index', 'index', 'type=flow')) . ", open:true, width:800, height:400, iframe:true});\n";
}
?>
</script>
<?php if(!(isset($config->global->flow) or strpos($this->config->version, 'pro') !== false or strpos($this->app->company->admins, ",{$this->app->user->account},") === false)) js::set('flow', 'true', 'number');?>
<?php include '../../common/view/footer.html.php';?>