* change for webapp.
This commit is contained in:
@@ -248,7 +248,9 @@ $lang->report->menu->staff = array('link' => 'Company|report|workload');
|
||||
/* Resource menu. */
|
||||
$lang->webapp = new stdclass();
|
||||
$lang->webapp->menu = new stdclass();
|
||||
$lang->webapp->menu->obtain = array('link' => 'App Store|webapp|obtain');
|
||||
$lang->webapp->menu->obtain = array('link' => '<span class="icon-webapp-obtain"> </span>App Store|webapp|obtain', 'float' => 'right');
|
||||
$lang->webapp->menu->manageTree = array('link' => "<span class='icon-webapp-manage'> </span>Manage|tree|browse|rootID=0&view=webapp", 'float' => 'right');
|
||||
$lang->webapp->menu->create = array('link' => "<span class='icon-webapp-create'> </span>Create|webapp|create", 'float' => 'right');
|
||||
|
||||
/* Company menu. */
|
||||
$lang->company = new stdclass();
|
||||
|
||||
@@ -248,7 +248,9 @@ $lang->report->menu->staff = array('link' => '组织|report|workload');
|
||||
/* 资源视图菜单设置。*/
|
||||
$lang->webapp = new stdclass();
|
||||
$lang->webapp->menu = new stdclass();
|
||||
$lang->webapp->menu->obtain = array('link' => '<span class="icon-webapp-obtain"> </span>应用商店|webapp|obtain', 'float' => 'right');
|
||||
$lang->webapp->menu->obtain = array('link' => '<span class="icon-webapp-obtain"> </span>应用商店|webapp|obtain', 'float' => 'right');
|
||||
$lang->webapp->menu->manageTree = array('link' => "<span class='icon-webapp-manage'> </span>维护分类|tree|browse|rootID=0&view=webapp", 'float' => 'right');
|
||||
$lang->webapp->menu->create = array('link' => "<span class='icon-webapp-create'> </span>创建应用|webapp|create", 'float' => 'right');
|
||||
|
||||
/* 组织结构视图菜单设置。*/
|
||||
$lang->company = new stdclass();
|
||||
|
||||
@@ -662,20 +662,20 @@ $lang->convert->methodOrder[45] = 'execute';
|
||||
$lang->convert->methodOrder[50] = 'convertBugFree';
|
||||
$lang->convert->methodOrder[55] = 'convertRedmine';
|
||||
|
||||
//$lang->resource->webapp = new stdclass();
|
||||
//$lang->resource->webapp->index = 'index';
|
||||
//$lang->resource->webapp->obtain = 'obtain';
|
||||
//$lang->resource->webapp->create = 'create';
|
||||
//$lang->resource->webapp->edit = 'edit';
|
||||
//$lang->resource->webapp->install = 'install';
|
||||
//$lang->resource->webapp->uninstall = 'uninstall';
|
||||
$lang->resource->webapp = new stdclass();
|
||||
$lang->resource->webapp->index = 'index';
|
||||
$lang->resource->webapp->obtain = 'obtain';
|
||||
$lang->resource->webapp->create = 'create';
|
||||
$lang->resource->webapp->edit = 'edit';
|
||||
$lang->resource->webapp->install = 'install';
|
||||
$lang->resource->webapp->uninstall = 'uninstall';
|
||||
|
||||
//$lang->webapp->methodOrder[5] = 'index';
|
||||
//$lang->webapp->methodOrder[10] = 'obtain';
|
||||
//$lang->webapp->methodOrder[15] = 'create';
|
||||
//$lang->webapp->methodOrder[20] = 'edit';
|
||||
//$lang->webapp->methodOrder[25] = 'install';
|
||||
//$lang->webapp->methodOrder[30] = 'uninstall';
|
||||
$lang->webapp->methodOrder[5] = 'index';
|
||||
$lang->webapp->methodOrder[10] = 'obtain';
|
||||
$lang->webapp->methodOrder[15] = 'create';
|
||||
$lang->webapp->methodOrder[20] = 'edit';
|
||||
$lang->webapp->methodOrder[25] = 'install';
|
||||
$lang->webapp->methodOrder[30] = 'uninstall';
|
||||
|
||||
/* Others. */
|
||||
$lang->resource->api = new stdclass();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$config->webapp = new stdClass();
|
||||
$config->webapp->url = 'http://www.zentao.com';
|
||||
$config->webapp->url = 'http://www.zentao.net';
|
||||
$config->webapp->apiRoot = $config->webapp->url . '/webapp-';
|
||||
|
||||
$config->webapp->create = new stdClass();
|
||||
|
||||
@@ -87,11 +87,7 @@ class webapp extends control
|
||||
{
|
||||
$this->webapp->update($webappID);
|
||||
if(dao::isError())die(js::error(dao::getError()));
|
||||
echo "<script type='text/javascript'>";
|
||||
echo "var href = parent.parent.location.href;\n";
|
||||
echo "parent.parent.location.href = href.indexOf('#') < 0 ? href : href.substring(0, href.indexOf('#'));";
|
||||
echo "</script>";
|
||||
die();
|
||||
die(js::reload('parent.parent'));
|
||||
}
|
||||
|
||||
$this->view->modules = $this->webapp->getModules();
|
||||
|
||||
@@ -16,7 +16,7 @@ function toggleShowapp(webappID, webappName)
|
||||
height = document.documentElement.clientHeight - 110;
|
||||
if(url[webappID] == undefined) url[webappID] = $('#useapp' + webappID).attr('href');
|
||||
$('#useapp' + webappID).attr('href', '#iframe' + webappID);
|
||||
var html = "<tr id='iframe" + webappID + "'><td><p>" + webappName + "<span class='f-right'><button class='button-c' onclick='toggleShowapp(" + webappID + ", \" " + webappName + "\")'>" + packup + "</button></sapn></p><iframe src='" + url[webappID] + "' height='" + height + "' width='100%'></iframe></td></tr>";
|
||||
var html = "<tr id='iframe" + webappID + "'><td><p>" + webappName + "<span class='f-right'><button class='button-c' onclick='toggleShowapp(" + webappID + ", \" " + webappName + "\")'>" + packup + "</button></sapn></p><iframe src='" + url[webappID] + "' height='" + height + "' width='100%' style='border:1px solid #999;'></iframe></td></tr>";
|
||||
$('#webapps').parent().parent().after(html);
|
||||
show[webappID] = true;
|
||||
}
|
||||
|
||||
@@ -62,8 +62,6 @@ class webappModel extends model
|
||||
$module = trim($module, '/');
|
||||
$this->lang->webapp->menu->$moduleID = array('link' => "$module|webapp|index|module=$moduleID");
|
||||
}
|
||||
$this->lang->webapp->menu->manageTree = array('link' => "<span class='icon-webapp-manage'> </span>{$this->lang->webapp->manageTree}|tree|browse|rootID=0&view=webapp", 'float' => 'right');
|
||||
$this->lang->webapp->menu->create = array('link' => "<span class='icon-webapp-create'> </span>{$this->lang->webapp->create}|webapp|create", 'float' => 'right');
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
$uninstallCode = html::a(inlink('uninstall', "webapp=$webapp->id"), $lang->webapp->uninstall, 'hiddenwin', "class='button-c'");
|
||||
$url = $webapp->addType == 'custom' ? $webapp->url : $config->webapp->url . "/webapp-showapp-{$webapp->appid}.html";
|
||||
$method = '';
|
||||
$popup = '';
|
||||
@@ -43,9 +42,9 @@
|
||||
$method = "popup($width, $height);";
|
||||
$popup = 'popup';
|
||||
}
|
||||
$useAppCode = html::a($url, $lang->webapp->useapp, $target, "id='useapp$webapp->id' class='button-c $popup' onclick='addView($webapp->id);$method'");
|
||||
$editAppCode = html::a(inlink('edit', "webappID=$webapp->id"), $lang->edit, '', "class='button-c webapp'");
|
||||
echo $useAppCode . $editAppCode . $uninstallCode;
|
||||
echo html::a($url, $lang->webapp->useapp, $target, "id='useapp$webapp->id' class='button-c $popup' onclick='addView($webapp->id);$method'");
|
||||
common::printLink('webapp', 'edit', "webappID=$webapp->id", $lang->edit, '', "class='button-c webapp'");
|
||||
common::printLink('webapp', 'uninstall', "webapp=$webapp->id", $lang->webapp->uninstall, 'hiddenwin', "class='button-c'");
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user