2021-04-28 20:10:26 +02:00

98 lines
3.4 KiB
Smarty

{*************************************
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
* SPDX-License-Identifier: AGPL-3.0-only
************************************}
{literal}
<script type="text/javascript">
function modulemanager_update_validate(form) {
if(form.module_zipfile.value == '') {
alert("Please select the zip file before proceeding.");
return false;
}
return true;
}
</script>
{/literal}
<div id="vtlib_modulemanager_update" style="display:block;position:absolute;width:500px;"></div>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <!-- crmv@30683 -->
<tr>
<td valign="top"></td>
<td class="showPanelBg" style="padding: 5px;" valign="top" width="100%"> <!-- crmv@30683 -->
<div align=center>
{include file='SetMenu.tpl'}
{include file='Buttons_List.tpl'} {* crmv@30683 *}
<table class="settingsSelUITopLine" border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td rowspan="2" valign="top" width="50"><img src="{'vtlib_modmng.gif'|resourcever}" alt="{$MOD.LBL_USERS}" title="{$MOD.LBL_USERS}" border="0" height="48" width="48"></td>
<td class="heading2" valign="bottom"><b> {$MOD.LBL_SETTINGS} &gt; {$MOD.VTLIB_LBL_MODULE_MANAGER} &gt; {$MOD.LBL_UPGRADE} </b></td> <!-- crmv@30683 -->
</tr>
<tr>
<td class="small" valign="top">{$MOD.VTLIB_LBL_MODULE_MANAGER_DESCRIPTION}</td>
</tr>
</table>
<br>
<table border="0" cellpadding="10" cellspacing="0" width="100%">
<tr>
<td>
<div id="vtlib_modulemanager_update_div">
<form method="POST" action="index.php" enctype="multipart/form-data">
<input type="hidden" name="__csrf_token" value="{$CSRF_TOKEN}"> {* crmv@171581 *}
<table class='tableHeading' cellpadding=5 cellspacing=0 border=0 width=100%>
<tr>
<td class='big' colspan=2><b>{$MOD.VTLIB_LBL_SELECT_PACKAGE_FILE}</b></td>
</tr>
</table>
<table cellpadding=5 cellspacing=0 border=0 width=100%>
<tr valign=top>
<td class='cellLabel small'>
<font color=red>*</font> <b>{$MOD.VTLIB_LBL_FILE_LOCATION}</b>
</td>
<td class='cellText small'>
<input type="file" class="small" name="module_zipfile" size=50>
<p>
{$MOD.VTLIB_LBL_PACKAGE_FILE_HELP}
</p>
</td>
</tr>
</table>
<table class='tableHeading' cellpadding=5 cellspacing=0 border=0 width=100%>
<tr valign=top>
<td class='cellText small' colspan=2 align=right>
<input type="hidden" name="module" value="Settings">
<input type="hidden" name="action" value="ModuleManager">
<input type="hidden" name="module_update" value="Step2">
<input type="hidden" name="parenttab" value="Settings">
<input type="hidden" name="target_modulename" value="{$smarty.request.src_module|@vtlib_purify}">
<input type="submit" class="crmbutton small edit" value="{$MOD.LBL_UPGRADE}" onclick="return modulemanager_update_validate(this.form)">
<input type="submit" class="crmbutton small delete" value="{$APP.LBL_CANCEL_BUTTON_LABEL}"
onclick="this.form.module_update.value='';">
</td>
</tr>
</table>
</form>
</div>
</td>
</tr>
</table>
<!-- End of Display -->
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
<td valign="top"></td>
</tr>
</table>
<br>