controller->user->user_id; $this->app->setConf('tabview.'.$_GET['app'].$_GET['ctl'].$_GET['act'].$this->object_name.'.'.$finder_aliasname,implode(',',(array) $_POST['tab_name'])); header('Content-Type:text/jcmd; charset=utf-8'); echo '{success:"'.app::get('desktop')->_('设置成功').'"}'; }else{ // 编辑 $tabview = $this->app->getConf('tabview.'.$_GET['app'].$_GET['ctl'].$_GET['act'].$this->object_name.'.'.$finder_aliasname.'.'.$this->controller->user->user_id); $in_use = explode(',', $tabview); foreach ($in_use as $key => $value) { if ($value === '') { unset($in_use[$key]); } } $all_tab = $this->get_views(); $domid = $this->ui->new_dom_id(); $html = '
'; $html .= '
'; $mv_handler = $this->ui->img(array('src'=>'bundle/grippy.gif', 'class'=>'move-handler','style'=>'cursor:default;')); $i=0; foreach($all_tab as $key=>$tab){ $i++; $html .= '
'; $html .= '
'.$mv_handler.'
'; $html .= '
'; } $finder_id=$_GET['_finder']['finder_id']; // $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= '
'; $html .= '
'; parse_str($_SERVER['QUERY_STRING'],$output); unset($output['action']); $url = 'index.php?' . http_build_query($output); $html.=<< (function(){ $('{$domid}').store('target',{onComplete:function(){ $('{$domid}').getParent('.dialog').retrieve('instance').close(); W.page('$url'); }}); })(); EOF; echo $html; } } }