Fix for APS instance overview, fixes #111
Thanks to philnate Signed-off-by: Andreas Burchert (scarya) <scarya@froxlor.org>
This commit is contained in:
@@ -167,202 +167,83 @@ class ApsParser
|
|||||||
$Question = true;
|
$Question = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//create table with contents based on instance status
|
//create table with contents based on instance status
|
||||||
|
|
||||||
if($Question != true)
|
if($Question != true)
|
||||||
{
|
{
|
||||||
//INSTALL
|
global $settings;
|
||||||
|
$Instances = '';
|
||||||
$InstancesInstall = '';
|
|
||||||
|
|
||||||
if((int)$this->userinfo['customers_see_all'] == 1)
|
if((int)$this->userinfo['customers_see_all'] == 1)
|
||||||
{
|
{
|
||||||
$Result = $this->db->query('SELECT `p`.`Name`, `p`.`Version`, `p`.`Release`, `i`.`PackageID` FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_APS_PACKAGES . '` AS `p` ON `i`.`PackageID` = `p`.`ID` WHERE `i`.`Status` = ' . INSTANCE_INSTALL . ' GROUP BY `Version`, `Release`');
|
$Result = $this->db->query('SELECT `p`.`Name`, `p`.`Version`, `p`.`Release`, `i`.`Status`, `i`.`PackageID`, `i`.`ID`, `i`.`CustomerID`, `c`.`name`, `c`.`firstname`, `c`.`company`, `c`.`loginname` FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_APS_PACKAGES . '` AS `p` ON `i`.`PackageID` = `p`.`ID` INNER JOIN `' . TABLE_PANEL_CUSTOMERS . '` AS `c` ON `i`.`CustomerID` = `c`.`customerid` ORDER BY i.`Status`, p.`Version`, p.`Release`, i.`CustomerID`');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$Result = $this->db->query('SELECT `p`.`Name`, `p`.`Version`, `p`.`Release`, `i`.`PackageID` FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_APS_PACKAGES . '` AS `p` ON `i`.`PackageID` = `p`.`ID` INNER JOIN `' . TABLE_PANEL_CUSTOMERS . '` AS `c` ON `i`.`CustomerID` = `c`.`customerid` WHERE `i`.`Status` = ' . INSTANCE_INSTALL . ' AND `c`.`adminid` = ' . (int)$this->userinfo['adminid'] . ' GROUP BY `Version`, `Release`');
|
$Result = $this->db->query('SELECT `p`.`Name`, `p`.`Version`, `p`.`Release`, `i`.`Status`, `i`.`PackageID`, `i`.`ID`, `i`.`CustomerID` FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_APS_PACKAGES . '` AS `p` ON `i`.`PackageID` = `p`.`ID` INNER JOIN `' . TABLE_PANEL_CUSTOMERS . '` AS `c` ON `i`.`CustomerID` = `c`.`customerid` WHERE `c`.`adminid` = ' . (int)$this->userinfo['adminid'] . ' ORDER BY i.`Status`, p.`Version`, p.`Release`, i.`CustomerID`');
|
||||||
}
|
}
|
||||||
|
$lastState = 0;
|
||||||
|
$lastPackage = 0;
|
||||||
|
|
||||||
while($Row = $this->db->fetch_array($Result))
|
while($Row = $this->db->fetch_array($Result))
|
||||||
{
|
{
|
||||||
eval("\$InstancesInstall.=\"" . getTemplate("aps/manage_instances_package") . "\";");
|
if ($lastState != $Row['Status'])
|
||||||
|
|
||||||
//get instances
|
|
||||||
|
|
||||||
if((int)$this->userinfo['customers_see_all'] == 1)
|
|
||||||
{
|
{
|
||||||
$Result2 = $this->db->query('SELECT * FROM `' . TABLE_APS_INSTANCES . '` WHERE `Status` = ' . INSTANCE_INSTALL . ' AND `PackageID` = ' . $Row['PackageID']);
|
switch ($Row['Status'])
|
||||||
}
|
{
|
||||||
else
|
case INSTANCE_INSTALL:
|
||||||
{
|
$Caption = $lng['aps']['instance_install'];
|
||||||
$Result2 = $this->db->query('SELECT * FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_PANEL_CUSTOMERS . '` AS `c` ON `i`.`CustomerID` = `c`.`customerid` WHERE `i`.`Status` = ' . INSTANCE_INSTALL . ' AND `i`.`PackageID` = ' . $Row['PackageID'] . ' AND `c`.`adminid` = ' . (int)$this->userinfo['adminid']);
|
break;
|
||||||
|
case INSTANCE_TASK_ACTIVE:
|
||||||
|
$Caption = $lng['aps']['instance_task_active'];
|
||||||
|
break;
|
||||||
|
case INSTANCE_SUCCESS:
|
||||||
|
$Caption = $lng['aps']['instance_success'];
|
||||||
|
break;
|
||||||
|
case INSTANCE_ERROR:
|
||||||
|
$Caption = $lng['aps']['instance_error'];
|
||||||
|
break;
|
||||||
|
case INSTANCE_UNINSTALL:
|
||||||
|
$Caption = $lng['aps']['instance_uninstall'];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
eval("\$Instances.=\"" . getTemplate("aps/manage_instances_status") . "\";");
|
||||||
|
$lastState = $Row['Status'];
|
||||||
|
//we need to print the package header for the new State as well it can be that the last Package is the first in this section, so we would it ignore it otherwise
|
||||||
|
$lastPackage = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
while($Row2 = $this->db->fetch_array($Result2))
|
if (strcmp($lastPackage, $Row['Name'].$Row['Version']. '(Release ' . $Row['Release'] . ')'))
|
||||||
{
|
{
|
||||||
//get customer name
|
$lastPackage = $Row['Name'].$Row['Version']. '(Release ' . $Row['Release'] . ')';
|
||||||
|
eval("\$Instances.=\"" . getTemplate("aps/manage_instances_package") . "\";");
|
||||||
$Result3 = $this->db->query('SELECT * FROM `' . TABLE_PANEL_CUSTOMERS . '` WHERE `customerid` = ' . $Row2['CustomerID']);
|
|
||||||
$Row3 = $this->db->fetch_array($Result3);
|
|
||||||
$Stop = makecheckbox('stop' . $Row2['ID'], '', '1');
|
|
||||||
eval("\$InstancesInstall.=\"" . getTemplate("aps/manage_instances_install") . "\";");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//TASK ACTIVE
|
|
||||||
|
|
||||||
$InstancesTaskActive = '';
|
|
||||||
|
|
||||||
if((int)$this->userinfo['customers_see_all'] == 1)
|
|
||||||
{
|
|
||||||
$Result = $this->db->query('SELECT `p`.`Name`, `p`.`Version`, `p`.`Release`, `i`.`PackageID` FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_APS_PACKAGES . '` AS `p` ON `i`.`PackageID` = `p`.`ID` WHERE `i`.`Status` = ' . INSTANCE_TASK_ACTIVE . ' GROUP BY `Version`, `Release`');
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$Result = $this->db->query('SELECT `p`.`Name`, `p`.`Version`, `p`.`Release`, `i`.`PackageID` FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_APS_PACKAGES . '` AS `p` ON `i`.`PackageID` = `p`.`ID` INNER JOIN `' . TABLE_PANEL_CUSTOMERS . '` AS `c` ON `i`.`CustomerID` = `c`.`customerid` WHERE `i`.`Status` = ' . INSTANCE_TASK_ACTIVE . ' AND `c`.`adminid` = ' . (int)$this->userinfo['adminid'] . ' GROUP BY `Version`, `Release`');
|
|
||||||
}
|
|
||||||
|
|
||||||
while($Row = $this->db->fetch_array($Result))
|
|
||||||
{
|
|
||||||
eval("\$InstancesTaskActive.=\"" . getTemplate("aps/manage_instances_package") . "\";");
|
|
||||||
|
|
||||||
//get instances
|
|
||||||
|
|
||||||
if((int)$this->userinfo['customers_see_all'] == 1)
|
|
||||||
{
|
|
||||||
$Result2 = $this->db->query('SELECT * FROM `' . TABLE_APS_INSTANCES . '` WHERE `Status` = ' . INSTANCE_TASK_ACTIVE . ' AND `PackageID` = ' . $Row['PackageID']);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$Result2 = $this->db->query('SELECT * FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_PANEL_CUSTOMERS . '` AS `c` ON `i`.`CustomerID` = `c`.`customerid` WHERE `i`.`Status` = ' . INSTANCE_TASK_ACTIVE . ' AND `i`.`PackageID` = ' . $Row['PackageID'] . ' AND `c`.`adminid` = ' . (int)$this->userinfo['adminid']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
while($Row2 = $this->db->fetch_array($Result2))
|
$main_domain = $this->GetSettingValue($Row['ID'], 'main_domain');
|
||||||
|
$main_location = $this->GetSettingValue($Row['ID'], 'main_location');
|
||||||
|
$Result2 = $this->db->query('SELECT `domain` FROM `' . TABLE_PANEL_DOMAINS . '` WHERE `id` = ' . $this->db->escape($main_domain));
|
||||||
|
$Row2 = $this->db->fetch_array($Result2);
|
||||||
|
|
||||||
|
$main_domain = $Row2['domain'] . '/' . $main_location;
|
||||||
|
|
||||||
|
$database = $settings['customer']['accountprefix'] . $Row['CustomerID'] . 'aps' . $Row['ID'];
|
||||||
|
|
||||||
|
switch ($Row['Status'])
|
||||||
{
|
{
|
||||||
//get customer name
|
case INSTANCE_INSTALL:
|
||||||
|
$Stop = makecheckbox('stop' . $Row['ID'], '', '1');
|
||||||
$Result3 = $this->db->query('SELECT * FROM `' . TABLE_PANEL_CUSTOMERS . '` WHERE `customerid` = ' . $Row2['CustomerID']);
|
break;
|
||||||
$Row3 = $this->db->fetch_array($Result3);
|
case INSTANCE_TASK_ACTIVE:
|
||||||
eval("\$InstancesTaskActive.=\"" . getTemplate("aps/manage_instances_taskactive") . "\";");
|
break;
|
||||||
}
|
case INSTANCE_SUCCESS:
|
||||||
}
|
$Remove = makecheckbox('remove' . $Row['ID'], '', '1');
|
||||||
|
break;
|
||||||
//SUCCESS
|
case INSTANCE_ERROR:
|
||||||
|
$Remove = makecheckbox('remove' . $Row['ID'], '', '1');
|
||||||
$InstancesSuccess = '';
|
break;
|
||||||
|
case INSTANCE_UNINSTALL:
|
||||||
if((int)$this->userinfo['customers_see_all'] == 1)
|
break;
|
||||||
{
|
|
||||||
$Result = $this->db->query('SELECT `p`.`Name`, `p`.`Version`, `p`.`Release`, `i`.`PackageID` FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_APS_PACKAGES . '` AS `p` ON `i`.`PackageID` = `p`.`ID` WHERE `i`.`Status` = ' . INSTANCE_SUCCESS . ' GROUP BY `Version`, `Release`');
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$Result = $this->db->query('SELECT `p`.`Name`, `p`.`Version`, `p`.`Release`, `i`.`PackageID` FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_APS_PACKAGES . '` AS `p` ON `i`.`PackageID` = `p`.`ID` INNER JOIN `' . TABLE_PANEL_CUSTOMERS . '` AS `c` ON `i`.`CustomerID` = `c`.`customerid` WHERE `i`.`Status` = ' . INSTANCE_SUCCESS . ' AND `c`.`adminid` = ' . (int)$this->userinfo['adminid'] . ' GROUP BY `Version`, `Release`');
|
|
||||||
}
|
|
||||||
|
|
||||||
while($Row = $this->db->fetch_array($Result))
|
|
||||||
{
|
|
||||||
eval("\$InstancesSuccess.=\"" . getTemplate("aps/manage_instances_package") . "\";");
|
|
||||||
|
|
||||||
//get instances
|
|
||||||
|
|
||||||
if((int)$this->userinfo['customers_see_all'] == 1)
|
|
||||||
{
|
|
||||||
$Result2 = $this->db->query('SELECT * FROM `' . TABLE_APS_INSTANCES . '` WHERE `Status` = ' . INSTANCE_SUCCESS . ' AND `PackageID` = ' . $Row['PackageID']);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$Result2 = $this->db->query('SELECT * FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_PANEL_CUSTOMERS . '` AS `c` ON `i`.`CustomerID` = `c`.`customerid` WHERE `i`.`Status` = ' . INSTANCE_SUCCESS . ' AND `i`.`PackageID` = ' . $Row['PackageID'] . ' AND `c`.`adminid` = ' . (int)$this->userinfo['adminid']);
|
|
||||||
}
|
|
||||||
|
|
||||||
while($Row2 = $this->db->fetch_array($Result2))
|
|
||||||
{
|
|
||||||
//get customer name
|
|
||||||
|
|
||||||
$Result3 = $this->db->query('SELECT * FROM `' . TABLE_PANEL_CUSTOMERS . '` WHERE `customerid` = ' . $Row2['CustomerID']);
|
|
||||||
$Row3 = $this->db->fetch_array($Result3);
|
|
||||||
$Remove = makecheckbox('remove' . $Row2['ID'], '', '1');
|
|
||||||
eval("\$InstancesSuccess.=\"" . getTemplate("aps/manage_instances_success") . "\";");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//ERROR
|
|
||||||
|
|
||||||
$InstancesError = '';
|
|
||||||
|
|
||||||
if((int)$this->userinfo['customers_see_all'] == 1)
|
|
||||||
{
|
|
||||||
$Result = $this->db->query('SELECT `p`.`Name`, `p`.`Version`, `p`.`Release`, `i`.`PackageID` FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_APS_PACKAGES . '` AS `p` ON `i`.`PackageID` = `p`.`ID` WHERE `i`.`Status` = ' . INSTANCE_ERROR . ' GROUP BY `Version`, `Release`');
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$Result = $this->db->query('SELECT `p`.`Name`, `p`.`Version`, `p`.`Release`, `i`.`PackageID` FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_APS_PACKAGES . '` AS `p` ON `i`.`PackageID` = `p`.`ID` INNER JOIN `' . TABLE_PANEL_CUSTOMERS . '` AS `c` ON `i`.`CustomerID` = `c`.`customerid` WHERE `i`.`Status` = ' . INSTANCE_ERROR . ' AND `c`.`adminid` = ' . (int)$this->userinfo['adminid'] . ' GROUP BY `Version`, `Release`');
|
|
||||||
}
|
|
||||||
|
|
||||||
while($Row = $this->db->fetch_array($Result))
|
|
||||||
{
|
|
||||||
eval("\$InstancesError.=\"" . getTemplate("aps/manage_instances_package") . "\";");
|
|
||||||
|
|
||||||
//get instances
|
|
||||||
|
|
||||||
if((int)$this->userinfo['customers_see_all'] == 1)
|
|
||||||
{
|
|
||||||
$Result2 = $this->db->query('SELECT * FROM `' . TABLE_APS_INSTANCES . '` WHERE `Status` = ' . INSTANCE_ERROR . ' AND `PackageID` = ' . $Row['PackageID']);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$Result2 = $this->db->query('SELECT * FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_PANEL_CUSTOMERS . '` AS `c` ON `i`.`CustomerID` = `c`.`customerid` WHERE `i`.`Status` = ' . INSTANCE_ERROR . ' AND `i`.`PackageID` = ' . $Row['PackageID'] . ' AND `c`.`adminid` = ' . (int)$this->userinfo['adminid']);
|
|
||||||
}
|
|
||||||
|
|
||||||
while($Row2 = $this->db->fetch_array($Result2))
|
|
||||||
{
|
|
||||||
//get customer name
|
|
||||||
|
|
||||||
$Result3 = $this->db->query('SELECT * FROM `' . TABLE_PANEL_CUSTOMERS . '` WHERE `customerid` = ' . $Row2['CustomerID']);
|
|
||||||
$Row3 = $this->db->fetch_array($Result3);
|
|
||||||
$Remove = makecheckbox('remove' . $Row2['ID'], '', '1');
|
|
||||||
eval("\$InstancesError.=\"" . getTemplate("aps/manage_instances_error") . "\";");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//UNINSTALL
|
|
||||||
|
|
||||||
$InstancesUninstall = '';
|
|
||||||
|
|
||||||
if((int)$this->userinfo['customers_see_all'] == 1)
|
|
||||||
{
|
|
||||||
$Result = $this->db->query('SELECT `p`.`Name`, `p`.`Version`, `p`.`Release`, `i`.`PackageID` FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_APS_PACKAGES . '` AS `p` ON `i`.`PackageID` = `p`.`ID` WHERE `i`.`Status` = ' . INSTANCE_UNINSTALL . ' GROUP BY `Version`, `Release`');
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$Result = $this->db->query('SELECT `p`.`Name`, `p`.`Version`, `p`.`Release`, `i`.`PackageID` FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_APS_PACKAGES . '` AS `p` ON `i`.`PackageID` = `p`.`ID` INNER JOIN `' . TABLE_PANEL_CUSTOMERS . '` AS `c` ON `i`.`CustomerID` = `c`.`customerid` WHERE `i`.`Status` = ' . INSTANCE_UNINSTALL . ' AND `c`.`adminid` = ' . (int)$this->userinfo['adminid'] . ' GROUP BY `Version`, `Release`');
|
|
||||||
}
|
|
||||||
|
|
||||||
while($Row = $this->db->fetch_array($Result))
|
|
||||||
{
|
|
||||||
eval("\$InstancesUninstall.=\"" . getTemplate("aps/manage_instances_package") . "\";");
|
|
||||||
|
|
||||||
//get instances
|
|
||||||
|
|
||||||
if((int)$this->userinfo['customers_see_all'] == 1)
|
|
||||||
{
|
|
||||||
$Result2 = $this->db->query('SELECT * FROM `' . TABLE_APS_INSTANCES . '` WHERE `Status` = ' . INSTANCE_UNINSTALL . ' AND `PackageID` = ' . $Row['PackageID']);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$Result2 = $this->db->query('SELECT * FROM `' . TABLE_APS_INSTANCES . '` AS `i` INNER JOIN `' . TABLE_PANEL_CUSTOMERS . '` AS `c` ON `i`.`CustomerID` = `c`.`customerid` WHERE `i`.`Status` = ' . INSTANCE_UNINSTALL . ' AND `i`.`PackageID` = ' . $Row['PackageID'] . ' AND `c`.`adminid` = ' . (int)$this->userinfo['adminid']);
|
|
||||||
}
|
|
||||||
|
|
||||||
while($Row2 = $this->db->fetch_array($Result2))
|
|
||||||
{
|
|
||||||
//get customer name
|
|
||||||
|
|
||||||
$Result3 = $this->db->query('SELECT * FROM `' . TABLE_PANEL_CUSTOMERS . '` WHERE `customerid` = ' . $Row2['CustomerID']);
|
|
||||||
$Row3 = $this->db->fetch_array($Result3);
|
|
||||||
eval("\$InstancesUninstall.=\"" . getTemplate("aps/manage_instances_uninstall") . "\";");
|
|
||||||
}
|
}
|
||||||
|
eval("\$Instances.=\"" . getTemplate("aps/manage_instances_detail") . "\";");
|
||||||
}
|
}
|
||||||
|
|
||||||
//create some statistics
|
//create some statistics
|
||||||
@@ -2481,7 +2362,29 @@ class ApsParser
|
|||||||
return $Row['Value'];
|
return $Row['Value'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* return setting value for a given Instance
|
||||||
|
*
|
||||||
|
* @param instanceid id of APS Instance from database
|
||||||
|
* @param name name of field to read
|
||||||
|
* @return success value of field from database / error false
|
||||||
|
*/
|
||||||
|
|
||||||
|
private function GetSettingValue($InstanceId, $Name)
|
||||||
|
{
|
||||||
|
$result = $this->db->query('SELECT * FROM `' . TABLE_APS_SETTINGS . '` WHERE `InstanceID` = ' . $this->db->escape($InstanceId) . ' AND `Name` = "' . $this->db->escape($Name) . '"');
|
||||||
|
|
||||||
|
if($this->db->num_rows($result) == 0)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$Row = $this->db->fetch_array($result);
|
||||||
|
return $Row['Value'];
|
||||||
|
}
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* fix a path given by the customer
|
* fix a path given by the customer
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -22,27 +22,7 @@
|
|||||||
<td class="field_display" width="7%">{$lng['aps']['stopinstall']}</td>
|
<td class="field_display" width="7%">{$lng['aps']['stopinstall']}</td>
|
||||||
<td class="field_display" width="7%">{$lng['aps']['uninstall']}</td>
|
<td class="field_display" width="7%">{$lng['aps']['uninstall']}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
{$Instances}
|
||||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_install']}</strong></td>
|
|
||||||
</tr>
|
|
||||||
$InstancesInstall
|
|
||||||
<tr>
|
|
||||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_task_active']}</strong></td>
|
|
||||||
</tr>
|
|
||||||
$InstancesTaskActive
|
|
||||||
<tr>
|
|
||||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_success']}</strong></td>
|
|
||||||
</tr>
|
|
||||||
$InstancesSuccess
|
|
||||||
<tr>
|
|
||||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_error']}</strong></td>
|
|
||||||
</tr>
|
|
||||||
$InstancesError
|
|
||||||
<tr>
|
|
||||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_uninstall']}</strong></td>
|
|
||||||
</tr>
|
|
||||||
$InstancesUninstall
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle_apply_right" colspan="3"><input class="bottom" type="reset" value="{$lng['panel']['reset']}"/> <input class="bottom" type="submit" name="save" value="{$lng['panel']['save']}"/></td>
|
<td class="maintitle_apply_right" colspan="3"><input class="bottom" type="reset" value="{$lng['panel']['reset']}"/> <input class="bottom" type="submit" name="save" value="{$lng['panel']['save']}"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
5
templates/Classic/admin/aps/manage_instances_detail.tpl
Normal file
5
templates/Classic/admin/aps/manage_instances_detail.tpl
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<tr>
|
||||||
|
<td class="field_name_border_left" style="padding-left: 2em;">{$Row['name']}, {$Row['firstname']} <if $Row['company'] != ''> | {$Row['company']}</if> ({$Row['loginname']}): {$database}; {$main_domain}</td>
|
||||||
|
<td class="field_name" style="text-align:center;"><if isset($Stop) == true>$Stop</if></td>
|
||||||
|
<td class="field_name" style="text-align:center;"><if isset($Remove) == true>$Remove</if></td>
|
||||||
|
</tr>
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
|
||||||
<td class="field_name" style="text-align:center;"></td>
|
|
||||||
<td class="field_name" style="text-align:center;">$Remove</td>
|
|
||||||
</tr>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
|
||||||
<td class="field_name" style="text-align:center;">$Stop</td>
|
|
||||||
<td class="field_name" style="text-align:center;"></td>
|
|
||||||
</tr>
|
|
||||||
3
templates/Classic/admin/aps/manage_instances_status.tpl
Normal file
3
templates/Classic/admin/aps/manage_instances_status.tpl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<tr>
|
||||||
|
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$Caption}</strong></td>
|
||||||
|
</tr>
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
|
||||||
<td class="field_name" style="text-align:center;"></td>
|
|
||||||
<td class="field_name" style="text-align:center;">$Remove</td>
|
|
||||||
</tr>
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td colspan="3" class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
|
||||||
</tr>
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td colspan="3" class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
|
||||||
</tr>
|
|
||||||
@@ -40,27 +40,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
{$Instances}
|
||||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_install']}</strong></td>
|
|
||||||
</tr>
|
|
||||||
$InstancesInstall
|
|
||||||
<tr>
|
|
||||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_task_active']}</strong></td>
|
|
||||||
</tr>
|
|
||||||
$InstancesTaskActive
|
|
||||||
<tr>
|
|
||||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_success']}</strong></td>
|
|
||||||
</tr>
|
|
||||||
$InstancesSuccess
|
|
||||||
<tr>
|
|
||||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_error']}</strong></td>
|
|
||||||
</tr>
|
|
||||||
$InstancesError
|
|
||||||
<tr>
|
|
||||||
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$lng['aps']['instance_uninstall']}</strong></td>
|
|
||||||
</tr>
|
|
||||||
$InstancesUninstall
|
|
||||||
<tr>
|
|
||||||
<td colspan="3"><input class="bottom" type="reset" value="{$lng['panel']['reset']}" /> <input type="submit" name="save" value="{$lng['panel']['save']}" /></td>
|
<td colspan="3"><input class="bottom" type="reset" value="{$lng['panel']['reset']}" /> <input type="submit" name="save" value="{$lng['panel']['save']}" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
5
templates/Froxlor/admin/aps/manage_instances_detail.tpl
Normal file
5
templates/Froxlor/admin/aps/manage_instances_detail.tpl
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<tr>
|
||||||
|
<td class="field_name_border_left" style="padding-left: 2em;">{$Row['name']}, {$Row['firstname']} <if $Row['company'] != ''> | {$Row['company']}</if> ({$Row['loginname']}): {$database}; {$main_domain}</td>
|
||||||
|
<td class="field_name" style="text-align:center;"><if isset($Stop) == true>$Stop</if></td>
|
||||||
|
<td class="field_name" style="text-align:center;"><if isset($Remove) == true>$Remove</if></td>
|
||||||
|
</tr>
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
|
||||||
<td class="field_name" style="text-align:center;"></td>
|
|
||||||
<td class="field_name" style="text-align:center;">$Remove</td>
|
|
||||||
</tr>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
|
||||||
<td class="field_name" style="text-align:center;">$Stop</td>
|
|
||||||
<td class="field_name" style="text-align:center;"></td>
|
|
||||||
</tr>
|
|
||||||
3
templates/Froxlor/admin/aps/manage_instances_status.tpl
Normal file
3
templates/Froxlor/admin/aps/manage_instances_status.tpl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<tr>
|
||||||
|
<td class="title" colspan="3" style="font-size: 1.1em;"><strong>{$Caption}</strong></td>
|
||||||
|
</tr>
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
|
||||||
<td class="field_name" style="text-align:center;"></td>
|
|
||||||
<td class="field_name" style="text-align:center;">$Remove</td>
|
|
||||||
</tr>
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td colspan="3" class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
|
||||||
</tr>
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td colspan="3" class="field_name_border_left" style="padding-left: 2em;">{$Row3['name']}, {$Row3['firstname']} <if $Row3['company'] != ''> | {$Row3['company']}</if> ({$Row3['loginname']})</td>
|
|
||||||
</tr>
|
|
||||||
Reference in New Issue
Block a user