mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-27 08:38:46 +00:00
168 lines
6.7 KiB
Smarty
168 lines
6.7 KiB
Smarty
{*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************}
|
|
<div id="vtlib_modulemanager_import" 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} > {$MOD.VTLIB_LBL_MODULE_MANAGER} > {$APP.LBL_IMPORT}</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_import_div">
|
|
<form method="POST" action="index.php">
|
|
<input type="hidden" name="__csrf_token" value="{$CSRF_TOKEN}"> {* crmv@171581 *}
|
|
{if $MODULEIMPORT_FAILED neq ''}
|
|
<table class='tableHeading' cellpadding=5 cellspacing=0 border=0 width=100%>
|
|
<tr>
|
|
<td class='big' colspan=2><b>{$MOD.VTlIB_LBL_IMPORT_FAILURE}</b></td>
|
|
</tr>
|
|
</table>
|
|
<table cellpadding=5 cellspacing=0 border=0 width=80%>
|
|
<tr valign=top>
|
|
<td class='cellText small'>
|
|
{if $MODULEIMPORT_FILE_INVALID eq "true"}
|
|
<font color=red><b>{$MOD.VTLIB_LBL_INVALID_FILE}</b></font> {$MOD.VTLIB_LBL_INVALID_IMPORT_TRY_AGAIN}
|
|
{else}
|
|
<font color=red>{$MOD.VTLIB_LBL_UNABLE_TO_UPLOAD}</font> {$MOD.VTLIB_LBL_UNABLE_TO_UPLOAD2}
|
|
{/if}
|
|
</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="parenttab" value="Settings">
|
|
<input type="submit" class="crmbutton small edit" value="{$APP.LBL_FINISH}">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{else}
|
|
<table class='tableHeading' cellpadding=5 cellspacing=0 border=0 width=100%>
|
|
<tr>
|
|
<td class='big' colspan=2><b>{$MOD.VTLIB_LBL_VERIFY_IMPORT_DETAILS}</b></td>
|
|
</tr>
|
|
</table>
|
|
<table cellpadding=5 cellspacing=0 border=0 width=100%>
|
|
<tr valign=top>
|
|
<td class='cellLabel small' width=20%>
|
|
<b>{$MOD.VTLIB_LBL_MODULE_NAME}</b>
|
|
</td>
|
|
<td class='cellText small'>
|
|
{$MODULEIMPORT_NAME}
|
|
{if $MODULEIMPORT_EXISTS eq 'true'} <font color=red><b>{$MOD.VTLIB_LBL_EXISTS}</b></font> {/if}
|
|
</td>
|
|
</tr>
|
|
{if $MODULEIMPORT_DIR}
|
|
<tr valign=top>
|
|
<td class='cellLabel small' width=20%>
|
|
<b>{$MOD.VTLIB_LBL_MODULE_DIR}</b>
|
|
</td>
|
|
<td class='cellText small'>
|
|
{$MODULEIMPORT_DIR}
|
|
{if $MODULEIMPORT_DIR_EXISTS eq 'true'} <font color=red><b>{$MOD.VTLIB_LBL_EXISTS}</b></font>
|
|
{* -- Avoiding File Overwrite
|
|
<br> Overwrite existing files? <input type="checkbox" name="module_dir_overwrite" value="true">
|
|
-- *}
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
<tr valign=top>
|
|
<td class='cellLabel small' width=20%>
|
|
<b>{$MOD.VTLIB_LBL_REQ_VTE_VERSION}</b>
|
|
</td>
|
|
<td class='cellText small'>
|
|
{$MODULEIMPORT_DEP_VTVERSION}
|
|
</td>
|
|
</tr>
|
|
|
|
{assign var="need_license_agreement" value="false"}
|
|
|
|
{if $MODULEIMPORT_LICENSE}
|
|
{assign var="need_license_agreement" value="true"}
|
|
<tr valign=top>
|
|
<td class='cellLabel small' width=20%>
|
|
<b>{$MOD.VTLIB_LBL_LICENSE}</b>
|
|
</td>
|
|
<td class='cellText small'>
|
|
<textarea readonly class='small' style="background-color: #F5F5F5; border: 0; height: 150px; font: 10px 'Lucida Console', 'Courier New', Arial, sans-serif;">{$MODULEIMPORT_LICENSE}</textarea><br>
|
|
{literal}
|
|
<input type="checkbox" onclick="if(this.form.yesbutton){if(this.checked){this.form.yesbutton.disabled=false;}else{this.form.yesbutton.disabled=true;}}"> {/literal} {$MOD.VTLIB_LBL_LICENSE_ACCEPT_AGREEMENT}
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
</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="parenttab" value="Settings">
|
|
<input type="hidden" name="module_import_file" value="{$MODULEIMPORT_FILE}">
|
|
<input type="hidden" name="module_import_type" value="{$MODULEIMPORT_TYPE}">
|
|
<input type="hidden" name="module_import" value="Step3">
|
|
<input type="hidden" name="module_import_cancel" value="false">
|
|
|
|
{if $MODULEIMPORT_EXISTS eq 'true' || $MODULEIMPORT_DIR_EXISTS eq 'true'}
|
|
<input type="submit" class="crmbutton small delete" value="{$APP.LBL_CANCEL_BUTTON_LABEL}"
|
|
onclick="this.form.module_import.value=''; this.form.module_import_cancel.value='true';">
|
|
{else}
|
|
{* crmv@195213 *}
|
|
{if $MODULEIMPORT_ERROR neq ''}
|
|
<font color=red>{$MODULEIMPORT_ERROR}</font>
|
|
{$MOD.VTLIB_LBL_PROCEED_WITH_IMPORT_ANYWAY}
|
|
{else}
|
|
{$MOD.VTLIB_LBL_PROCEED_WITH_IMPORT}
|
|
{/if}
|
|
{* crmv@195213e *}
|
|
<input type="submit" class="crmbutton small edit" value="{$MOD.LBL_YES}"
|
|
{if $need_license_agreement eq 'true'} disabled=true {/if} name="yesbutton">
|
|
<input type="submit" class="crmbutton small delete" value="{$MOD.LBL_NO}"
|
|
onclick="this.form.module_import.value=''; this.form.module_import_cancel.value='true';">
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{/if}
|
|
</form>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- End of Display -->
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
</td>
|
|
<td valign="top"></td>
|
|
</tr>
|
|
</table>
|
|
<br> |