* Change die() to print().
This commit is contained in:
@@ -118,7 +118,7 @@ class zahost extends control
|
||||
{
|
||||
if($confirm == 'no')
|
||||
{
|
||||
die(js::confirm($this->lang->zahost->confirmDelete, inlink('delete', "assetID=$assetID&confirm=yes")));
|
||||
return print(js::confirm($this->lang->zahost->confirmDelete, inlink('delete', "assetID=$assetID&confirm=yes")));
|
||||
}
|
||||
|
||||
$this->dao->update(TABLE_ASSET)->set('deleted')->eq(1)->where('id')->eq($assetID)->exec();
|
||||
@@ -140,8 +140,8 @@ class zahost extends control
|
||||
$this->send($response);
|
||||
}
|
||||
|
||||
if(isonlybody())die(js::reload('parent.parent'));
|
||||
die(js::locate($this->createLink('zahost', 'browse'), 'parent'));
|
||||
if(isonlybody()) return print(js::reload('parent.parent'));
|
||||
return print(js::locate($this->createLink('zahost', 'browse'), 'parent'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -210,7 +210,7 @@ class zahost extends control
|
||||
{
|
||||
if($confirm == 'no')
|
||||
{
|
||||
die(js::confirm($this->lang->zahost->confirmDelete, inlink('deleteTemplate', "templateID=$templateID&confirm=yes")));
|
||||
return print(js::confirm($this->lang->zahost->confirmDeleteVMTemplate, inlink('deleteTemplate', "templateID=$templateID&confirm=yes")));
|
||||
}
|
||||
|
||||
$template = $this->zahost->getTemplateById($templateID);
|
||||
@@ -233,8 +233,8 @@ class zahost extends control
|
||||
$this->send($response);
|
||||
}
|
||||
|
||||
if(isonlybody())die(js::reload('parent.parent'));
|
||||
die(js::locate($this->createLink('zahost', 'browsetemplate', "hostID={$template->hostID}"), 'parent'));
|
||||
if(isonlybody()) return print(js::reload('parent.parent'));
|
||||
return print(js::locate($this->createLink('zahost', 'browsetemplate', "hostID={$template->hostID}"), 'parent'));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -70,7 +70,8 @@ $lang->zahost->unitList['TB'] = 'TB';
|
||||
$lang->zahost->zaHostType = 'Type';
|
||||
$lang->zahost->zaHostTypeList['physical'] = 'Physical';
|
||||
|
||||
$lang->zahost->confirmDelete = 'Do you want to delete this host?';
|
||||
$lang->zahost->confirmDelete = 'Do you want to delete this host?';
|
||||
$lang->zahost->confirmDeleteVMTemplate = 'Do you want to delete this VM template?';
|
||||
|
||||
$lang->zahost->versionList = array();
|
||||
$lang->zahost->versionList['winxp']['all'] = 'Windows XP';
|
||||
|
||||
@@ -70,7 +70,8 @@ $lang->zahost->unitList['TB'] = 'TB';
|
||||
$lang->zahost->zaHostType = 'Type';
|
||||
$lang->zahost->zaHostTypeList['physical'] = 'Physical';
|
||||
|
||||
$lang->zahost->confirmDelete = 'Do you want to delete this host?';
|
||||
$lang->zahost->confirmDelete = 'Do you want to delete this host?';
|
||||
$lang->zahost->confirmDeleteVMTemplate = 'Do you want to delete this VM template?';
|
||||
|
||||
$lang->zahost->versionList = array();
|
||||
$lang->zahost->versionList['winxp']['all'] = 'Windows XP';
|
||||
|
||||
@@ -70,7 +70,8 @@ $lang->zahost->unitList['TB'] = 'TB';
|
||||
$lang->zahost->zaHostType = 'Type Hôte';
|
||||
$lang->zahost->zaHostTypeList['physical'] = 'Physique';
|
||||
|
||||
$lang->zahost->confirmDelete = 'Voulez-vous supprimer cet hôte?';
|
||||
$lang->zahost->confirmDelete = 'Voulez-vous supprimer cet hôte?';
|
||||
$lang->zahost->confirmDeleteVMTemplate = 'Do you want to delete this VM template?';
|
||||
|
||||
$lang->zahost->versionList = array();
|
||||
$lang->zahost->versionList['winxp']['all'] = 'Windows XP';
|
||||
|
||||
@@ -70,7 +70,8 @@ $lang->zahost->unitList['TB'] = 'TB';
|
||||
$lang->zahost->zaHostType = 'Type';
|
||||
$lang->zahost->zaHostTypeList['physical'] = 'Physical';
|
||||
|
||||
$lang->zahost->confirmDelete = 'Do you want to delete this host?';
|
||||
$lang->zahost->confirmDelete = 'Do you want to delete this host?';
|
||||
$lang->zahost->confirmDeleteVMTemplate = 'Do you want to delete this VM template?';
|
||||
|
||||
$lang->zahost->versionList = array();
|
||||
$lang->zahost->versionList['winxp']['all'] = 'Windows XP';
|
||||
|
||||
@@ -70,7 +70,8 @@ $lang->zahost->unitList['TB'] = 'TB';
|
||||
$lang->zahost->zaHostType = '主机类型';
|
||||
$lang->zahost->zaHostTypeList['physical'] = '实体主机';
|
||||
|
||||
$lang->zahost->confirmDelete = '是否删除该主机记录?';
|
||||
$lang->zahost->confirmDelete = '是否删除该主机记录?';
|
||||
$lang->zahost->confirmDeleteVMTemplate = '是否删除该虚拟机模板?';
|
||||
|
||||
$lang->zahost->versionList = array();
|
||||
$lang->zahost->versionList['winxp']['all'] = 'Windows XP';
|
||||
|
||||
Reference in New Issue
Block a user