* adjust for link xuanxuan.
This commit is contained in:
@@ -15,6 +15,13 @@ $lang->chat->chatPort = 'Chat Port';
|
||||
$lang->chat->uploadFileSize = 'File Size';
|
||||
$lang->chat->downloadPackage = 'Full Package';
|
||||
$lang->chat->downloadConfig = 'Only Config';
|
||||
$lang->chat->zentaoIntegrate = 'Zentao Integrated';
|
||||
|
||||
$lang->chat->createBug = 'Create Bug';
|
||||
$lang->chat->createDoc = 'Create Doc';
|
||||
$lang->chat->createStory = 'Create Story';
|
||||
$lang->chat->createTask = 'Create Task';
|
||||
$lang->chat->createTodo = 'Create Todo';
|
||||
|
||||
$lang->chat->statusList[1] = 'Enable';
|
||||
$lang->chat->statusList[0] = 'Disable';
|
||||
|
||||
@@ -12,10 +12,16 @@ $lang->chat->xxdServer = 'XXD服务器';
|
||||
$lang->chat->downloadXXD = '下载喧喧服务端';
|
||||
$lang->chat->listenIP = '监听IP';
|
||||
$lang->chat->chatPort = '客户端通讯端口';
|
||||
$lang->chat->chatPort = '客户端通讯端口';
|
||||
$lang->chat->uploadFileSize = '上传文件大小';
|
||||
$lang->chat->downloadPackage = '下载完整包';
|
||||
$lang->chat->downloadConfig = '只下载配置文件';
|
||||
$lang->chat->zentaoIntegrate = '禅道集成';
|
||||
|
||||
$lang->chat->createBug = '创建 Bug';
|
||||
$lang->chat->createDoc = '创建文档';
|
||||
$lang->chat->createStory = '创建需求';
|
||||
$lang->chat->createTask = '创建任务';
|
||||
$lang->chat->createTodo = '创建待办';
|
||||
|
||||
$lang->chat->statusList[1] = '启用';
|
||||
$lang->chat->statusList[0] = '不启用';
|
||||
|
||||
@@ -29,29 +29,38 @@ class xuanxuanChat extends chatModel
|
||||
$baseURL = commonModel::getSysURL();
|
||||
|
||||
$actions = new stdclass();
|
||||
$actions->createBug = array('title' => "创建 Bug", 'url' => $baseURL . helper::createLink('bug', 'create', 'product=1', 'xhtml'), 'height' => "600px", 'width' => "800px");
|
||||
$actions->createDoc = array('title' => "创建文档", 'url' => $baseURL . helper::createLink('doc', 'create', 'lib=1', 'xhtml'), 'height' => "600px", 'width' => "800px");
|
||||
$actions->createStory = array('title' => "创建需求", 'url' => $baseURL . helper::createLink('story', 'create', 'product=1', 'xhtml'), 'height' => "600px", 'width' => "800px");
|
||||
$actions->createTask = array('title' => "创建任务", 'url' => $baseURL . helper::createLink('task', 'create', 'project=1', 'xhtml'), 'height' => "600px", 'width' => "800px");
|
||||
$actions->createTodo = array('title' => "创建待办", 'url' => $baseURL . helper::createLink('todo', 'create', '', 'xhtml'), 'height' => "600px", 'width' => "800px");
|
||||
$actions->createBug = array('title' => $this->lang->chat->createBug, 'url' => $baseURL . helper::createLink('bug', 'create', 'product=1', 'xhtml'), 'height' => "600px", 'width' => "800px");
|
||||
$actions->createDoc = array('title' => $this->lang->chat->createDoc, 'url' => $baseURL . helper::createLink('doc', 'create', 'lib=1', 'xhtml'), 'height' => "600px", 'width' => "800px");
|
||||
$actions->createStory = array('title' => $this->lang->chat->createStory, 'url' => $baseURL . helper::createLink('story', 'create', 'product=1', 'xhtml'), 'height' => "600px", 'width' => "800px");
|
||||
$actions->createTask = array('title' => $this->lang->chat->createTask, 'url' => $baseURL . helper::createLink('task', 'create', 'project=1', 'xhtml'), 'height' => "600px", 'width' => "800px");
|
||||
$actions->createTodo = array('title' => $this->lang->chat->createTodo, 'url' => $baseURL . helper::createLink('todo', 'create', '', 'xhtml'), 'height' => "600px", 'width' => "800px");
|
||||
|
||||
$urls['/bug-view-'] = true;
|
||||
$urls['/task-view-'] = true;
|
||||
$urls['/doc-view-'] = true;
|
||||
$urls['/story-view-'] = true;
|
||||
$urls['/todo-view-'] = true;
|
||||
$urls = array();
|
||||
foreach(array('bug', 'task', 'doc', 'story', 'todo', 'testcase') as $moduleName)
|
||||
{
|
||||
$url = '/';
|
||||
if($this->config->requestType == 'GET')
|
||||
{
|
||||
$url .= "index.php?m={$moduleName}&f=view";
|
||||
}
|
||||
else
|
||||
{
|
||||
$url .= "{$moduleName}-view-";
|
||||
}
|
||||
$urls[$url] = true;
|
||||
}
|
||||
|
||||
$data = new stdClass();
|
||||
$data->entryID = 1;
|
||||
$data->name = 'zentao-integrated';
|
||||
$data->displayName = '禅道集成';
|
||||
$data->webViewUrl = $baseURL . $this->config->webRoot;
|
||||
$data->displayName = $this->lang->chat->zentaoIntegrate;
|
||||
$data->webViewUrl = trim($baseURL . $this->config->webRoot, '/');
|
||||
$data->download = $baseURL . $this->config->webRoot . 'data/xuanxuan/zentao-integrated.zip';
|
||||
$data->md5 = md5_file($this->app->getDataRoot() . 'xuanxuan/zentao-integrated.zip');
|
||||
|
||||
$data->data['actions'] = $actions;
|
||||
$data->data['urls'] = $urls;
|
||||
$data->data['entryUrl'] = $baseURL . $this->config->webRoot;
|
||||
$data->data['entryUrl'] = trim($baseURL . $this->config->webRoot, '/');
|
||||
|
||||
$entries[] = $data;
|
||||
return $entries;
|
||||
|
||||
@@ -29,7 +29,8 @@ class entry extends control
|
||||
$pathinfo = parse_url($location);
|
||||
if(!empty($pathinfo['query']))
|
||||
{
|
||||
$location = rtrim($location, '&') . "&$query";
|
||||
$location = substr($location, 0, strpos($location, '?'));
|
||||
$location = rtrim($location, '?') . "?{$query}&{$pathinfo['query']}";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user