Converted all templates and code to new CPHP advanced parser

feature/node-rewrite
Sven Slootweg 13 years ago
parent cb24748048
commit e3bca7524b

@ -33,7 +33,7 @@ button-reinstall; Herinstalleren
notfound; De gezochte VPS is niet gevonden.
footer; CPHP is een gratis en open-source VPS-beheerpaneel. <a href="http://cvm.cryto.net/trac/wiki/Contribute">Help mee!</a>
userbox-loggedin; Je bent ingelogd als <strong><%?username></strong>.
userbox-loggedin; Je bent ingelogd als <strong>{%?username}</strong>.
userbox-account; Accountinstellingen
userbox-list; Mijn VPSen
userbox-logout; Uitloggen

@ -51,7 +51,7 @@ button-admin-vps-terminate; Terminate container
notfound; The specified VPS was not found.
footer; CPHP is a free and open source VPS control panel. <a href="http://cvm.cryto.net/trac/wiki/Contribute">Want to contribute?</a>
userbox-loggedin; You are logged in as <strong><%?username></strong>.
userbox-loggedin; You are logged in as <strong>{%?username}</strong>.
userbox-account; Account settings
userbox-list; My VPSes
userbox-logout; Log out

@ -33,7 +33,7 @@ button-reinstall; Reinstalare
notfound; VPS-ul specificat nu a putut fi gasit
footer; CPHP este un panou de control pentru VPS-uri, gratuit si open source. <a href="http://cvm.cryto.net/trac/wiki/Contribute">Vrei sa contribui?</a>
userbox-loggedin; Esti logat ca <strong><%?username></strong>.
userbox-loggedin; Esti logat ca <strong>{%?username}</strong>.
userbox-account; Setari cont
userbox-list; VPS-urile mele
userbox-logout; Iesire (logout)

@ -41,7 +41,7 @@ try
$sSuspended = ($sContainer->sStatus == CVM_STATUS_SUSPENDED) ? true : false;
$sPageContents = Templater::InlineRender("admin.container.suspend", $locale->strings, array(
$sPageContents = Templater::AdvancedParse("admin.container.suspend", $locale->strings, array(
'id' => $sContainer->sId,
'suspended' => $sSuspended
));

@ -37,6 +37,6 @@ if($result = mysql_query_cached("SELECT * FROM containers"))
}
}
$sPageContents = Templater::InlineRender("admin.containers", $locale->strings, array(
$sPageContents = Templater::AdvancedParse("admin.containers", $locale->strings, array(
'containers' => $sContainerList
));

@ -13,4 +13,4 @@
if(!isset($_CVM)) { die("Unauthorized."); }
$sPageContents = Templater::InlineRender("admin.overview", $locale->strings, array());
$sPageContents = Templater::AdvancedParse("admin.overview", $locale->strings, array());

@ -40,7 +40,7 @@ try
$router->RouteRequest();
$sMainContents .= Templater::InlineRender("main.admin", $locale->strings, array(
$sMainContents .= Templater::AdvancedParse("main.admin", $locale->strings, array(
'contents' => $sPageContents
));
}

@ -41,7 +41,7 @@ try
}
}
$sPageContents = Templater::InlineRender("admin.user", $locale->strings, array(
$sPageContents = Templater::AdvancedParse("admin.user", $locale->strings, array(
'id' => $sUserEntry->sId,
'username' => $sUserEntry->sUsername,
'email' => $sUserEntry->sEmailAddress,

@ -28,6 +28,6 @@ foreach($result->data as $row)
);
}
$sPageContents = Templater::InlineRender("admin.users", $locale->strings, array(
$sPageContents = Templater::AdvancedParse("admin.users", $locale->strings, array(
'users' => $sUserList
));

@ -37,7 +37,7 @@ if($sLoggedIn === true)
);
}
$sMainContents = Templater::InlineRender("list", $locale->strings, array(
$sMainContents = Templater::AdvancedParse("list", $locale->strings, array(
'containers' => $sContainerList
));
}

@ -50,7 +50,7 @@ if(isset($_POST['submit']))
}
}
$sMainContents = Templater::InlineRender("login", $locale->strings, array(
$sMainContents = Templater::AdvancedParse("login", $locale->strings, array(
'error' => $sError,
'field-username' => $sFieldUsername
));

@ -13,6 +13,6 @@
if(!isset($_CVM)) { die("Unauthorized."); }
$sPageContents .= Templater::InlineRender("vps.console", $locale->strings, array(
$sPageContents .= Templater::AdvancedParse("vps.console", $locale->strings, array(
'host' => htmlspecialchars($_SERVER['SERVER_NAME'])
));

@ -84,4 +84,4 @@ catch (SshExitException $e)
}
$sPageContents = Templater::InlineRender("vps.overview", $locale->strings, $sVariables);
$sPageContents = Templater::AdvancedParse("vps.overview", $locale->strings, $sVariables);

@ -62,7 +62,7 @@ if($display_form === true)
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_WARNING, "Security warning", "Configuring your root password through this panel may expose it to the VPS provider. Only use this feature in an emergency situation, and always change your password again afterwards, from within your container.");
$sPageContents .= $err->Render();
$sPageContents .= Templater::InlineRender("vps.password", $locale->strings, array(
$sPageContents .= Templater::AdvancedParse("vps.password", $locale->strings, array(
'id' => $sContainer->sId
));
}

@ -60,7 +60,7 @@ try
$sMainContents .= $err->Render();
}
$sMainContents .= Templater::InlineRender("main.vps", $locale->strings, array(
$sMainContents .= Templater::AdvancedParse("main.vps", $locale->strings, array(
'error' => $sError,
'contents' => $sPageContents,
'id' => $sContainer->sId
@ -68,5 +68,5 @@ try
}
catch(NotFoundException $e)
{
$sMainContents = Templater::InlineRender("error.vps.notfound");
$sMainContents = Templater::AdvancedParse("error.vps.notfound");
}

@ -95,7 +95,7 @@ if($display_form === true)
);
}
$sPageContents .= Templater::InlineRender("vps.reinstall", $locale->strings, array(
$sPageContents .= Templater::AdvancedParse("vps.reinstall", $locale->strings, array(
'templates' => $sTemplateList
));
}

@ -75,4 +75,4 @@ $sTemplateParameters = array_merge($sTemplateParameters, array(
'main-class' => $sMainClass
));
echo(Templater::InlineRender("main", $locale->strings, $sTemplateParameters));
echo(Templater::AdvancedParse("main", $locale->strings, $sTemplateParameters));

@ -1,14 +1,14 @@
<form method="post" action="/admin/container/<%?id>/suspend/">
<%if suspended == false>
<h2><%!title-admin-vps-suspend></h2>
<p><%!vps-admin-suspend-text></p>
<form method="post" action="/admin/container/{%?id}/suspend/">
{%if suspended == false}
<h2>{%!title-admin-vps-suspend}</h2>
<p>{%!vps-admin-suspend-text}</p>
<input type="hidden" name="action" value="suspend">
<button type="submit" name="submit" class="padded"><%!button-admin-vps-suspend></button>
<%/if><%if suspended == true>
<h2><%!title-admin-vps-unsuspend></h2>
<p><%!vps-admin-unsuspend-text></p>
<button type="submit" name="submit" class="padded">{%!button-admin-vps-suspend}</button>
{%/if}{%if suspended == true}
<h2>{%!title-admin-vps-unsuspend}</h2>
<p>{%!vps-admin-unsuspend-text}</p>
<input type="hidden" name="action" value="unsuspend">
<button type="submit" name="submit" class="padded"><%!button-admin-vps-unsuspend></button>
<%/if>
<button type="submit" name="submit" class="padded">{%!button-admin-vps-unsuspend}</button>
{%/if}
</form>

@ -1,52 +1,52 @@
<h2><%!title-admin-containerlist></h2>
<h2>{%!title-admin-containerlist}</h2>
<table class="vpslist">
<tr>
<th></th>
<th><%!list-column-hostname></th>
<th><%!list-column-platform></th>
<th><%!list-column-disk></th>
<th><%!list-column-ram></th>
<th><%!list-column-template></th>
<th>{%!list-column-hostname}</th>
<th>{%!list-column-platform}</th>
<th>{%!list-column-disk}</th>
<th>{%!list-column-ram}</th>
<th>{%!list-column-template}</th>
</tr>
<%foreach container in containers>
<tr class="clickable" data-url="/<%?container[id]>/">
{%foreach container in containers}
<tr class="clickable" data-url="/{%?container[id]}/">
<td class="container-status">
<%if container[status] == running>
<img src="/images/icon_online.png" alt="<%!list-status-running>">
<%/if><%if container[status] == stopped>
<img src="/images/icon_offline.png" alt="<%!list-status-stopped>">
<%/if><%if container[status] == suspended>
<img src="/images/icon_suspended.png" alt="<%!list-status-suspended>">
<%/if>
{%if container[status] == running}
<img src="/images/icon_online.png" alt="{%!list-status-running}">
{%/if}{%if container[status] == stopped}
<img src="/images/icon_offline.png" alt="{%!list-status-stopped}">
{%/if}{%if container[status] == suspended}
<img src="/images/icon_suspended.png" alt="{%!list-status-suspended}">
{%/if}
</td>
<td>
<a href="/<%?container[id]>/">
<%?container[hostname]>
<a href="/{%?container[id]}/">
{%?container[hostname]}
</a>
</td>
<td>
<a href="/<%?container[id]>/">
<%if container[virtualization-type] == 1>
<a href="/{%?container[id]}/">
{%if container[virtualization-type] == 1}
OpenVZ
<%/if><%if container[virtualization-type] == 2>
{%/if}{%if container[virtualization-type] == 2}
Xen PV
<%/if><%if container[virtualization-type] == 3>
{%/if}{%if container[virtualization-type] == 3}
Xen HVM
<%/if><%if container[virtualization-type] == 4>
{%/if}{%if container[virtualization-type] == 4}
KVM
<%/if>
{%/if}
</a>
</td>
<td>
<%?container[diskspace]>
<span class="unit"><%?container[diskspace-unit]></span>
{%?container[diskspace]}
<span class="unit">{%?container[diskspace-unit]}</span>
</td>
<td>
<%?container[guaranteed-ram]>
<span class="unit"><%?container[guaranteed-ram-unit]></span>
{%?container[guaranteed-ram]}
<span class="unit">{%?container[guaranteed-ram-unit]}</span>
</td>
<td><%?container[template]></td>
<td>{%?container[template]}</td>
</tr>
<%/foreach>
{%/foreach}
</table>

@ -1,3 +1,3 @@
<h2><%!title-admin-overview></h2>
<h2>{%!title-admin-overview}</h2>
<p><%!admin-overview-message></p>
<p>{%!admin-overview-message}</p>

@ -1,86 +1,86 @@
<h2><%!title-admin-userinfo></h2>
<h2>{%!title-admin-userinfo}</h2>
<table class="userinfo vertical">
<tr>
<th><%!admin-title-id></th>
<td><%?id></td>
<th>{%!admin-title-id}</th>
<td>{%?id}</td>
</tr>
<tr>
<th><%!admin-title-username></th>
<td><%?username></td>
<th>{%!admin-title-username}</th>
<td>{%?username}</td>
</tr>
<tr>
<th><%!admin-title-email></th>
<td><%?email></td>
<th>{%!admin-title-email}</th>
<td>{%?email}</td>
</tr>
<tr>
<th><%!admin-title-accesslevel></th>
<th>{%!admin-title-accesslevel}</th>
<td>
<%if accesslevel == 1>
<%!admin-level-enduser>
<%/if><%if accesslevel == 10>
<%!admin-level-reseller>
<%/if><%if accesslevel == 20>
<%!admin-level-nodeadmin>
<%/if><%if accesslevel == 30>
<%!admin-level-masteradmin>
<%/if>
{%if accesslevel == 1}
{%!admin-level-enduser}
{%/if}{%if accesslevel == 10}
{%!admin-level-reseller}
{%/if}{%if accesslevel == 20}
{%!admin-level-nodeadmin}
{%/if}{%if accesslevel == 30}
{%!admin-level-masteradmin}
{%/if}
</td>
</tr>
<tr>
<th><%!admin-title-containers></th>
<td><%?containercount></td>
<th>{%!admin-title-containers}</th>
<td>{%?containercount}</td>
</tr>
</table>
<h3><%!header-admin-user-containers></h3>
<h3>{%!header-admin-user-containers}</h3>
<table class="vpslist">
<tr>
<th></th>
<th><%!list-column-hostname></th>
<th><%!list-column-platform></th>
<th><%!list-column-disk></th>
<th><%!list-column-ram></th>
<th><%!list-column-template></th>
<th>{%!list-column-hostname}</th>
<th>{%!list-column-platform}</th>
<th>{%!list-column-disk}</th>
<th>{%!list-column-ram}</th>
<th>{%!list-column-template}</th>
</tr>
<%foreach container in containers>
<tr class="clickable" data-url="/<%?container[id]>/">
{%foreach container in containers}
<tr class="clickable" data-url="/{%?container[id]}/">
<td class="container-status">
<%if container[status] == running>
<img src="/images/icon_online.png" alt="<%!list-status-running>">
<%/if><%if container[status] == stopped>
<img src="/images/icon_offline.png" alt="<%!list-status-stopped>">
<%/if><%if container[status] == suspended>
<img src="/images/icon_suspended.png" alt="<%!list-status-suspended>">
<%/if>
{%if container[status] == running}
<img src="/images/icon_online.png" alt="{%!list-status-running}">
{%/if}{%if container[status] == stopped}
<img src="/images/icon_offline.png" alt="{%!list-status-stopped}">
{%/if}{%if container[status] == suspended}
<img src="/images/icon_suspended.png" alt="{%!list-status-suspended}">
{%/if}
</td>
<td>
<a href="/<%?container[id]>/">
<%?container[hostname]>
<a href="/{%?container[id]}/">
{%?container[hostname]}
</a>
</td>
<td>
<a href="/<%?container[id]>/">
<%if container[virtualization-type] == 1>
<a href="/{%?container[id]}/">
{%if container[virtualization-type] == 1}
OpenVZ
<%/if><%if container[virtualization-type] == 2>
{%/if}{%if container[virtualization-type] == 2}
Xen PV
<%/if><%if container[virtualization-type] == 3>
{%/if}{%if container[virtualization-type] == 3}
Xen HVM
<%/if><%if container[virtualization-type] == 4>
{%/if}{%if container[virtualization-type] == 4}
KVM
<%/if>
{%/if}
</a>
</td>
<td>
<%?container[diskspace]>
<span class="unit"><%?container[diskspace-unit]></span>
{%?container[diskspace]}
<span class="unit">{%?container[diskspace-unit]}</span>
</td>
<td>
<%?container[guaranteed-ram]>
<span class="unit"><%?container[guaranteed-ram-unit]></span>
{%?container[guaranteed-ram]}
<span class="unit">{%?container[guaranteed-ram-unit]}</span>
</td>
<td><%?container[template]></td>
<td>{%?container[template]}</td>
</tr>
<%/foreach>
{%/foreach}
</table>

@ -1,26 +1,26 @@
<h2><%!title-admin-userlist></h2>
<h2>{%!title-admin-userlist}</h2>
<table class="userlist">
<tr>
<th><%!admin-title-username></th>
<th><%!admin-title-email></th>
<th><%!admin-title-accesslevel></th>
<th>{%!admin-title-username}</th>
<th>{%!admin-title-email}</th>
<th>{%!admin-title-accesslevel}</th>
</tr>
<%foreach user in users>
<tr class="clickable" data-url="/admin/user/<%?user[id]>/">
<td><%?user[username]></td>
<td><%?user[email]></td>
{%foreach user in users}
<tr class="clickable" data-url="/admin/user/{%?user[id]}/">
<td>{%?user[username]}</td>
<td>{%?user[email]}</td>
<td>
<%if user[accesslevel] == 1>
<%!admin-level-enduser>
<%/if><%if user[accesslevel] == 10>
<%!admin-level-reseller>
<%/if><%if user[accesslevel] == 20>
<%!admin-level-nodeadmin>
<%/if><%if user[accesslevel] == 30>
<%!admin-level-masteradmin>
<%/if>
{%if user[accesslevel] == 1}
{%!admin-level-enduser}
{%/if}{%if user[accesslevel] == 10}
{%!admin-level-reseller}
{%/if}{%if user[accesslevel] == 20}
{%!admin-level-nodeadmin}
{%/if}{%if user[accesslevel] == 30}
{%!admin-level-masteradmin}
{%/if}
</td>
</tr>
<%/foreach>
{%/foreach}
</table>

@ -1,4 +1,4 @@
<div class="errorhandler error-error">
<div class="error-title"><%?title></div>
<div class="error-message"><%?message></div>
<div class="error-title">{%?title}</div>
<div class="error-message">{%?message}</div>
</div>

@ -1,4 +1,4 @@
<div class="errorhandler error-info">
<div class="error-title"><%?title></div>
<div class="error-message"><%?message></div>
<div class="error-title">{%?title}</div>
<div class="error-message">{%?message}</div>
</div>

@ -1,4 +1,4 @@
<div class="errorhandler error-success">
<div class="error-title"><%?title></div>
<div class="error-message"><%?message></div>
<div class="error-title">{%?title}</div>
<div class="error-message">{%?message}</div>
</div>

@ -1,4 +1,4 @@
<div class="errorhandler error-warning">
<div class="error-title"><%?title></div>
<div class="error-message"><%?message></div>
<div class="error-title">{%?title}</div>
<div class="error-message">{%?message}</div>
</div>

@ -1,57 +1,57 @@
<table class="vpslist">
<tr>
<th></th>
<th><%!list-column-hostname></th>
<th><%!list-column-platform></th>
<th><%!list-column-node></th>
<th><%!list-column-disk></th>
<th><%!list-column-ram></th>
<th><%!list-column-template></th>
<th>{%!list-column-hostname}</th>
<th>{%!list-column-platform}</th>
<th>{%!list-column-node}</th>
<th>{%!list-column-disk}</th>
<th>{%!list-column-ram}</th>
<th>{%!list-column-template}</th>
</tr>
<%foreach container in containers>
<tr class="clickable" data-url="/<%?container[id]>/">
{%foreach container in containers}
<tr class="clickable" data-url="/{%?container[id]}/">
<td class="container-status">
<%if container[status] == running>
<img src="/images/icon_online.png" alt="<%!list-status-running>">
<%/if><%if container[status] == stopped>
<img src="/images/icon_offline.png" alt="<%!list-status-stopped>">
<%/if><%if container[status] == suspended>
<img src="/images/icon_suspended.png" alt="<%!list-status-suspended>">
<%/if>
{%if container[status] == running}
<img src="/images/icon_online.png" alt="{%!list-status-running}">
{%/if}{%if container[status] == stopped}
<img src="/images/icon_offline.png" alt="{%!list-status-stopped}">
{%/if}{%if container[status] == suspended}
<img src="/images/icon_suspended.png" alt="{%!list-status-suspended}">
{%/if}
</td>
<td>
<a href="/<%?container[id]>/">
<%?container[hostname]>
<a href="/{%?container[id]}/">
{%?container[hostname]}
</a>
</td>
<td>
<a href="/<%?container[id]>/">
<%if container[virtualization-type] == 1>
<a href="/{%?container[id]}/">
{%if container[virtualization-type] == 1}
OpenVZ
<%/if><%if container[virtualization-type] == 2>
{%/if}{%if container[virtualization-type] == 2}
Xen PV
<%/if><%if container[virtualization-type] == 3>
{%/if}{%if container[virtualization-type] == 3}
Xen HVM
<%/if><%if container[virtualization-type] == 4>
{%/if}{%if container[virtualization-type] == 4}
KVM
<%/if>
{%/if}
</a>
</td>
<td>
<a href="/<%?container[id]>/">
<span class="nodename"><%?container[node]></span>
<span class="hostname">(<%?container[node-hostname]>)</span>
<a href="/{%?container[id]}/">
<span class="nodename">{%?container[node]}</span>
<span class="hostname">({%?container[node-hostname]})</span>
</a>
</td>
<td>
<%?container[diskspace]>
<span class="unit"><%?container[diskspace-unit]></span>
{%?container[diskspace]}
<span class="unit">{%?container[diskspace-unit]}</span>
</td>
<td>
<%?container[guaranteed-ram]>
<span class="unit"><%?container[guaranteed-ram-unit]></span>
{%?container[guaranteed-ram]}
<span class="unit">{%?container[guaranteed-ram-unit]}</span>
</td>
<td><%?container[template]></td>
<td>{%?container[template]}</td>
</tr>
<%/foreach>
{%/foreach}
</table>

@ -1,18 +1,18 @@
<h1><%!title-login></h1>
<h1>{%!title-login}</h1>
<%?error>
{%?error}
<form method="post" action="/login/" class="col_12">
<div class="col_3"></div>
<label class="col_2" for="field_username"><%!login-username></label>
<label class="col_2" for="field_username">{%!login-username}</label>
<input class="col_4" type="text" name="username" id="field_username" value="">
<div class="clear"></div>
<div class="col_3"></div>
<label class="col_2" for="field_password"><%!login-password></label>
<label class="col_2" for="field_password">{%!login-password}</label>
<input class="col_4" type="password" name="password" id="field_password">
<div class="clear"></div>
<div class="col_7"></div>
<button class="col_2" type="submit" name="submit"><%!button-login></button>
<button class="col_2" type="submit" name="submit">{%!button-login}</button>
</form>

@ -1,7 +1,7 @@
<div class="sidebar">
<a class="sidebutton" href="/admin/"><%!menu-admin-overview></a>
<a class="sidebutton" href="/admin/users/"><%!menu-admin-users></a>
<a class="sidebutton" href="/admin/containers/"><%!menu-admin-containers></a>
<a class="sidebutton" href="/admin/">{%!menu-admin-overview}</a>
<a class="sidebutton" href="/admin/users/">{%!menu-admin-users}</a>
<a class="sidebutton" href="/admin/containers/">{%!menu-admin-containers}</a>
</div>
<%?contents>
{%?contents}

@ -14,20 +14,20 @@
<div class="wrapper">
<div class="header">
<img src="/images/logo.png">
<%if logged-in == true>
{%if logged-in == true}
<div class="userbox">
<div><%!userbox-loggedin></div>
<a href="/account/"><%!userbox-account></a>
<a href="/"><%!userbox-list></a>
<a href="/logout/"><%!userbox-logout></a>
<div>{%!userbox-loggedin}</div>
<a href="/account/">{%!userbox-account}</a>
<a href="/">{%!userbox-list}</a>
<a href="/logout/">{%!userbox-logout}</a>
</div>
<%/if>
{%/if}
</div>
<div class="main <%?main-class>">
<%?main>
<div class="main {%?main-class}">
{%?main}
</div>
<div class="footer">
<%!footer>
{%!footer}
</div>
</div>
<img class="preload" src="images/loading.gif">

@ -1,15 +1,15 @@
<div class="sidebar">
<a class="sidebutton" id="button_overview" href="/<%?id>/"><%!menu-overview></a>
<!-- <a class="sidebutton" id="button_statistics" href="/<%?id>/statistics/"><%!menu-statistics></a> -->
<a class="sidebutton" id="button_reinstall" href="/<%?id>/reinstall/"><%!menu-reinstall></a>
<!-- <a class="sidebutton" id="button_backup" href="/<%?id>/backup/"><%!menu-backups></a> -->
<a class="sidebutton" id="button_webshell" href="/<%?id>/console/"><%!menu-console></a>
<a class="sidebutton" id="button_password" href="/<%?id>/password/"><%!menu-password></a>
<a class="sidebutton" id="button_ip" href="/<%?id>/ip/"><%!menu-ip></a>
<!-- <a class="sidebutton" id="button_alerts" href="/<%?id>/alerts/"><%!menu-alerts></a>
<a class="sidebutton" id="button_api" href="/<%?id>/api/"><%!menu-api></a> -->
<a class="sidebutton" id="button_overview" href="/{%?id}/">{%!menu-overview}</a>
<!-- <a class="sidebutton" id="button_statistics" href="/{%?id}/statistics/">{%!menu-statistics}</a> -->
<a class="sidebutton" id="button_reinstall" href="/{%?id}/reinstall/">{%!menu-reinstall}</a>
<!-- <a class="sidebutton" id="button_backup" href="/{%?id}/backup/">{%!menu-backups}</a> -->
<a class="sidebutton" id="button_webshell" href="/{%?id}/console/">{%!menu-console}</a>
<a class="sidebutton" id="button_password" href="/{%?id}/password/">{%!menu-password}</a>
<a class="sidebutton" id="button_ip" href="/{%?id}/ip/">{%!menu-ip}</a>
<!-- <a class="sidebutton" id="button_alerts" href="/{%?id}/alerts/">{%!menu-alerts}</a>
<a class="sidebutton" id="button_api" href="/{%?id}/api/">{%!menu-api}</a> -->
</div>
<%?error>
{%?error}
<%?contents>
{%?contents}

@ -1,26 +1,26 @@
<h2><%!title-console></h2>
<h2>{%!title-console}</h2>
<p><%!console-introduction></p>
<p>{%!console-introduction}</p>
<p><%!console-step1></p>
<p>{%!console-step1}</p>
<table class="console vertical">
<tr>
<th><%!console-title-hostname></th>
<td><%?host></td>
<th>{%!console-title-hostname}</th>
<td>{%?host}</td>
</tr>
<tr>
<th><%!console-title-port></th>
<th>{%!console-title-port}</th>
<td>22</td>
</tr>
<tr>
<th><%!console-title-username></th>
<th>{%!console-title-username}</th>
<td>vz</td>
</tr>
<tr>
<th><%!console-title-password></th>
<th>{%!console-title-password}</th>
<td>vz</td>
</tr>
</table>
<p><%!console-step2></p>
<p>{%!console-step2}</p>

@ -1,106 +1,106 @@
<h1><%!title-overview></h1>
<h1>{%!title-overview}</h1>
<div class="quota">
<div class="quota-item">
<h3><%!overview-quota-title-disk></h3>
<h3>{%!overview-quota-title-disk}</h3>
<div class="quota-bar">
<div class="quota-bar-inner" style="width: <%?disk-percentage>%;"></div>
<div class="quota-bar-label"><%?disk-used>/<%?disk-total><%?disk-unit></div>
<div class="quota-bar-inner" style="width: {%?disk-percentage}%;"></div>
<div class="quota-bar-label">{%?disk-used}/{%?disk-total}{%?disk-unit}</div>
</div>
</div>
<div class="quota-item">
<h3><%!overview-quota-title-ram></h3>
<h3>{%!overview-quota-title-ram}</h3>
<div class="quota-bar">
<div class="quota-bar-inner" style="width: <%?ram-percentage>%;"></div>
<div class="quota-bar-label"><%?ram-used>/<%?ram-total><%?ram-unit></div>
<div class="quota-bar-inner" style="width: {%?ram-percentage}%;"></div>
<div class="quota-bar-label">{%?ram-used}/{%?ram-total}{%?ram-unit}</div>
</div>
</div>
<div class="quota-item last">
<h3><%!overview-quota-title-traffic></h3>
<h3>{%!overview-quota-title-traffic}</h3>
<div class="quota-bar">
<div class="quota-bar-inner" style="width: <%?traffic-percentage>%;"></div>
<div class="quota-bar-label"><%?traffic-used>/<%?traffic-total><%?traffic-unit></div>
<div class="quota-bar-inner" style="width: {%?traffic-percentage}%;"></div>
<div class="quota-bar-label">{%?traffic-used}/{%?traffic-total}{%?traffic-unit}</div>
</div>
</div>
<div class="clear"></div>
</div>
<div class="controlbox">
<a class="controlbutton button-loader" href="/<%?id>/start/">
<a class="controlbutton button-loader" href="/{%?id}/start/">
<img src="/images/button_start.png" class="button-icon">
<%!overview-button-start>
{%!overview-button-start}
</a>
<a class="controlbutton button-loader" href="/<%?id>/restart/">
<a class="controlbutton button-loader" href="/{%?id}/restart/">
<img src="/images/button_restart.png" class="button-icon">
<%!overview-button-restart>
{%!overview-button-restart}
</a>
<a class="controlbutton button-loader last" href="/<%?id>/stop/">
<a class="controlbutton button-loader last" href="/{%?id}/stop/">
<img src="/images/button_stop.png" class="button-icon">
<%!overview-button-stop>
{%!overview-button-stop}
</a>
<div class="clear"></div>
</div>
<h2><%!overview-title-configuration></h2>
<h2>{%!overview-title-configuration}</h2>
<table class="vpsinfo vertical">
<tr>
<th><%!overview-title-status></th>
<th>{%!overview-title-status}</th>
<td>
<%if status == running>
<span class="online"><%!overview-status-running></span>
<%/if><%if status == stopped>
<span class="offline"><%!overview-status-stopped></span>
<%/if><%if status == suspended>
<span class="suspended"><%!overview-status-suspended></span>
<%/if><%if status == unknown>
<span class="unknown"><%!overview-status-unknown></span>
<%/if>
{%if status == running}
<span class="online">{%!overview-status-running}</span>
{%/if}{%if status == stopped}
<span class="offline">{%!overview-status-stopped}</span>
{%/if}{%if status == suspended}
<span class="suspended">{%!overview-status-suspended}</span>
{%/if}{%if status == unknown}
<span class="unknown">{%!overview-status-unknown}</span>
{%/if}
</td>
</tr>
<tr>
<th><%!overview-title-location></th>
<td><%?server-location></td>
<th>{%!overview-title-location}</th>
<td>{%?server-location}</td>
</tr>
<tr>
<th><%!overview-title-os></th>
<td><%?operating-system></td>
<th>{%!overview-title-os}</th>
<td>{%?operating-system}</td>
</tr>
<tr>
<th><%!overview-title-ipv4></th>
<th>{%!overview-title-ipv4}</th>
<td></td>
</tr>
<tr>
<th><%!overview-title-ipv6></th>
<th>{%!overview-title-ipv6}</th>
<td></td>
</tr>
<tr>
<th><%!overview-title-guaranteed></th>
<td><%?guaranteed-ram></td>
<th>{%!overview-title-guaranteed}</th>
<td>{%?guaranteed-ram}</td>
</tr>
<tr>
<th><%!overview-title-burstable></th>
<td><%?burstable-ram></td>
<th>{%!overview-title-burstable}</th>
<td>{%?burstable-ram}</td>
</tr>
<tr>
<th><%!overview-title-disk></th>
<td><%?disk-space></td>
<th>{%!overview-title-disk}</th>
<td>{%?disk-space}</td>
</tr>
<tr>
<th><%!overview-title-traffic></th>
<td><%?total-traffic-limit></td>
<th>{%!overview-title-traffic}</th>
<td>{%?total-traffic-limit}</td>
</tr>
<tr>
<th><%!overview-title-bandwidth></th>
<td><%?bandwidth-limit></td>
<th>{%!overview-title-bandwidth}</th>
<td>{%?bandwidth-limit}</td>
</tr>
</table>
<%if accesslevel >= 20>
<h3><%!header-vps-admin></h3>
{%if accesslevel }= 20>
<h3>{%!header-vps-admin}</h3>
<div class="vps-admin">
<a href="/admin/container/<%?id>/suspend/"><%!vps-admin-suspend></a>
<a href="/admin/container/<%?id>/transfer/"><%!vps-admin-transfer></a>
<a href="/admin/container/<%?id>/terminate/"><%!vps-admin-terminate></a>
<a href="/admin/container/{%?id}/suspend/">{%!vps-admin-suspend}</a>
<a href="/admin/container/{%?id}/transfer/">{%!vps-admin-transfer}</a>
<a href="/admin/container/{%?id}/terminate/">{%!vps-admin-terminate}</a>
</div>
<div class="clear"></div>
<%/if>
{%/if}

@ -1,14 +1,14 @@
<h1><%!title-password></h1>
<h1>{%!title-password}</h1>
<form method="post" action="/<%?id>/password/">
<label class="col_4" for="field_password"><%!password-field-password></label>
<form method="post" action="/{%?id}/password/">
<label class="col_4" for="field_password">{%!password-field-password}</label>
<input class="col_4" type="password" id="field_password" name="password">
<div class="clear"></div>
<label class="col_4" for="field_confirm"><%!password-field-confirm></label>
<label class="col_4" for="field_confirm">{%!password-field-confirm}</label>
<input class="col_4" type="password" id="field_confirm" name="confirm">
<div class="clear"></div>
<div class="col_4"></div>
<button class="col_4" type="submit" name="submit"><%!button-password></button>
<button class="col_4" type="submit" name="submit">{%!button-password}</button>
</form>

@ -1,23 +1,23 @@
<h1><%!title-reinstall></h1>
<h1>{%!title-reinstall}</h1>
<form method="post" action="../reinstall/">
<%foreach template in templates>
{%foreach template in templates}
<div class="template-option">
<div class="template-name">
<input type="radio" id="tpl_<%?template[id]>" name="template" value="<%?template[id]>">
<label for="tpl_<%?template[id]>"><%?template[name]></label>
<input type="radio" id="tpl_{%?template[id]}" name="template" value="{%?template[id]}">
<label for="tpl_{%?template[id]}">{%?template[name]}</label>
</div>
<div class="template-description"><%?template[description]></div>
<div class="template-description">{%?template[description]}</div>
</div>
<%/foreach>
{%/foreach}
<div class="confirm">
<input type="checkbox" name="confirm" value="true" id="confirm_reinstall">
<label for="confirm_reinstall" class="confirm-text"><%!reinstall-warning></label>
<label for="confirm_reinstall" class="confirm-text">{%!reinstall-warning}</label>
</div>
<div class="centered">
<button type="submit" name="submit" value="submit" class="padded spaced"><%!button-reinstall></button>
&nbsp;<%!reinstall-patience>
<button type="submit" name="submit" value="submit" class="padded spaced">{%!button-reinstall}</button>
&nbsp;{%!reinstall-patience}
</div>
</form>

Loading…
Cancel
Save