mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-27 16:48:47 +00:00
61 lines
1.3 KiB
Smarty
61 lines
1.3 KiB
Smarty
{*
|
|
/*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************/
|
|
*}
|
|
|
|
<p style="color:blue;"><b>Accounts edit view from SDK</b></p>
|
|
|
|
{literal}
|
|
<style type="text/css">
|
|
div {
|
|
background-color: #d0f0f0;
|
|
}
|
|
</style>
|
|
{/literal}
|
|
|
|
{include file="salesEditView.tpl"}
|
|
|
|
{literal}
|
|
<script type="text/javascript">
|
|
var healthblock = "Hospital Information";
|
|
|
|
function showExtraBlock() {
|
|
var bl = document.getElementsByName('block_'+healthblock);
|
|
if (bl) {
|
|
for (i=0; i<bl.length; ++i) {
|
|
bl[i].style.display = '';
|
|
}
|
|
}
|
|
}
|
|
|
|
function hideExtraBlock() {
|
|
var bl = document.getElementsByName('block_'+healthblock);
|
|
if (bl) {
|
|
for (i=0; i<bl.length; ++i) {
|
|
bl[i].style.display = 'none';
|
|
}
|
|
}
|
|
}
|
|
|
|
function onchangeIndustry() {
|
|
var ind = document.getElementById('txtbox_Settore');
|
|
if (ind && ind.tagName.toUpperCase() == 'SELECT') {
|
|
sel = ind.selectedIndex;
|
|
val = ind.options.item(sel);
|
|
if (val && val.value == 'Hospitality')
|
|
showExtraBlock();
|
|
else
|
|
hideExtraBlock();
|
|
}
|
|
}
|
|
|
|
//register onchange handler
|
|
var ind = document.getElementById('txtbox_Settore');
|
|
if (ind && ind.tagName.toUpperCase() == 'SELECT') {
|
|
ind.onchange = onchangeIndustry;
|
|
onchangeIndustry();
|
|
}
|
|
</script>
|
|
{/literal} |