%PDF- %PDF-
Direktori : /var/www/crm/cache/modules/TSI_Scadenziario/ |
Current File : /var/www/crm/cache/modules/TSI_Scadenziario/DetailView.tpl |
<script language="javascript"> {literal} SUGAR.util.doWhen(function(){ return $("#contentTable").length == 0; }, SUGAR.themes.actionMenu); {/literal} </script> <table cellpadding="0" cellspacing="0" border="0" width="100%" id=""> <tr> <td class="buttons" align="left" NOWRAP width="80%"> <div class="actionsContainer"> <form action="index.php" method="post" name="DetailView" id="formDetailView"> <input type="hidden" name="module" value="{$module}"> <input type="hidden" name="record" value="{$fields.id.value}"> <input type="hidden" name="return_action"> <input type="hidden" name="return_module"> <input type="hidden" name="return_id"> <input type="hidden" name="module_tab"> <input type="hidden" name="isDuplicate" value="false"> <input type="hidden" name="offset" value="{$offset}"> <input type="hidden" name="action" value="EditView"> <input type="hidden" name="sugar_body_only"> </form> <ul id="detail_header_action_menu" class="clickMenu fancymenu" name ><li class="sugar_action_button" >{if $bean->aclAccess("edit")}<input title="{$APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{$APP.LBL_EDIT_BUTTON_KEY}" class="button primary" onclick="var _form = document.getElementById('formDetailView'); _form.return_module.value='TSI_Scadenziario'; _form.return_action.value='DetailView'; _form.return_id.value='{$id}'; _form.action.value='EditView';SUGAR.ajaxUI.submitForm(_form);" type="button" name="Edit" id="edit_button" value="{$APP.LBL_EDIT_BUTTON_LABEL}">{/if} <ul id class="subnav" ><li>{if $bean->aclAccess("edit")}<input title="{$APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{$APP.LBL_DUPLICATE_BUTTON_KEY}" class="button" onclick="var _form = document.getElementById('formDetailView'); _form.return_module.value='TSI_Scadenziario'; _form.return_action.value='DetailView'; _form.isDuplicate.value=true; _form.action.value='EditView'; _form.return_id.value='{$id}';SUGAR.ajaxUI.submitForm(_form);" type="button" name="Duplicate" value="{$APP.LBL_DUPLICATE_BUTTON_LABEL}" id="duplicate_button">{/if} </li><li>{if $bean->aclAccess("delete")}<input title="{$APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{$APP.LBL_DELETE_BUTTON_KEY}" class="button" onclick="var _form = document.getElementById('formDetailView'); _form.return_module.value='TSI_Scadenziario'; _form.return_action.value='ListView'; _form.action.value='Delete'; if(confirm('{$APP.NTC_DELETE_CONFIRMATION}')) SUGAR.ajaxUI.submitForm(_form);" type="submit" name="Delete" value="{$APP.LBL_DELETE_BUTTON_LABEL}" id="delete_button">{/if} </li><li>{if $bean->aclAccess("edit") && $bean->aclAccess("delete")}<input title="{$APP.LBL_DUP_MERGE}" class="button" onclick="var _form = document.getElementById('formDetailView'); _form.return_module.value='TSI_Scadenziario'; _form.return_action.value='DetailView'; _form.return_id.value='{$id}'; _form.action.value='Step1'; _form.module.value='MergeRecords';SUGAR.ajaxUI.submitForm(_form);" type="button" name="Merge" value="{$APP.LBL_DUP_MERGE}" id="merge_duplicate_button">{/if} </li><li>{if $bean->aclAccess("detail")}{if !empty($fields.id.value) && $isAuditEnabled}<input id="btn_view_change_log" title="{$APP.LNK_VIEW_CHANGE_LOG}" class="button" onclick='open_popup("Audit", "600", "400", "&record={$fields.id.value}&module_name=TSI_Scadenziario", true, false, {ldelim} "call_back_function":"set_return","form_name":"EditView","field_to_name_array":[] {rdelim} ); return false;' type="button" value="{$APP.LNK_VIEW_CHANGE_LOG}">{/if}{/if}</li></ul></li></ul> </div> </td> <td align="right" width="20%">{$ADMIN_EDIT} {$PAGINATION} </td> </tr> </table>{sugar_include include=$includes} <div id="TSI_Scadenziario_detailview_tabs" > <div > <div id='detailpanel_1' class='detail view detail508 '> {counter name="panelFieldCount" start=0 print=false assign="panelFieldCount"} <table id='DEFAULT' class="panelContainer" cellspacing='{$gridline}'> {counter name="fieldsUsed" start=0 print=false assign="fieldsUsed"} {counter name="fieldsHidden" start=0 print=false assign="fieldsHidden"} {capture name="tr" assign="tableRow"} <tr> {counter name="fieldsUsed"} <td width='12.5%' scope="col"> {if !$fields.name.hidden} {capture name="label" assign="label"}{sugar_translate label='LBL_NAME' module='TSI_Scadenziario'}{/capture} {$label|strip_semicolon}: {/if} </td> <td width='37.5%' > {if !$fields.name.hidden} {counter name="panelFieldCount"} {if strlen($fields.name.value) <= 0} {assign var="value" value=$fields.name.default_value } {else} {assign var="value" value=$fields.name.value } {/if} <span class="sugar_field" id="{$fields.name.name}">{$fields.name.value}</span> {/if} </td> {counter name="fieldsUsed"} <td width='12.5%' scope="col"> {if !$fields.assigned_user_name.hidden} {capture name="label" assign="label"}{sugar_translate label='LBL_ASSIGNED_TO_NAME' module='TSI_Scadenziario'}{/capture} {$label|strip_semicolon}: {/if} </td> <td width='37.5%' > {if !$fields.assigned_user_name.hidden} {counter name="panelFieldCount"} <span id="assigned_user_id" class="sugar_field" data-id-value="{$fields.assigned_user_id.value}">{$fields.assigned_user_name.value}</span> {/if} </td> </tr> {/capture} {if $fieldsUsed > 0 && $fieldsUsed != $fieldsHidden} {$tableRow} {/if} {counter name="fieldsUsed" start=0 print=false assign="fieldsUsed"} {counter name="fieldsHidden" start=0 print=false assign="fieldsHidden"} {capture name="tr" assign="tableRow"} <tr> {counter name="fieldsUsed"} <td width='12.5%' scope="col"> {if !$fields.tsi_scadenziario_tsi_prescrizionilegali_name.hidden} {capture name="label" assign="label"}{sugar_translate label='LBL_TSI_SCADENZIARIO_TSI_PRESCRIZIONILEGALI_FROM_TSI_PRESCRIZIONILEGALI_TITLE' module='TSI_Scadenziario'}{/capture} {$label|strip_semicolon}: {/if} </td> <td width='37.5%' > {if !$fields.tsi_scadenziario_tsi_prescrizionilegali_name.hidden} {counter name="panelFieldCount"} {if !empty($fields.tsi_scaden82bbilegali_ida.value)} {capture assign="detail_url"}index.php?module=TSI_prescrizioniLegali&action=DetailView&record={$fields.tsi_scaden82bbilegali_ida.value}{/capture} <a href="{sugar_ajax_url url=$detail_url}">{/if} <span id="tsi_scaden82bbilegali_ida" class="sugar_field" data-id-value="{$fields.tsi_scaden82bbilegali_ida.value}">{$fields.tsi_scadenziario_tsi_prescrizionilegali_name.value}</span> {if !empty($fields.tsi_scaden82bbilegali_ida.value)}</a>{/if} {/if} </td> {counter name="fieldsUsed"} <td width='12.5%' scope="col"> {if !$fields.data_scadenza.hidden} {capture name="label" assign="label"}{sugar_translate label='LBL_DATA_SCADENZA' module='TSI_Scadenziario'}{/capture} {$label|strip_semicolon}: {/if} </td> <td width='37.5%' > {if !$fields.data_scadenza.hidden} {counter name="panelFieldCount"} {if strlen($fields.data_scadenza.value) <= 0} {assign var="value" value=$fields.data_scadenza.default_value } {else} {assign var="value" value=$fields.data_scadenza.value } {/if} <span class="sugar_field" id="{$fields.data_scadenza.name}">{$value}</span> {/if} </td> </tr> {/capture} {if $fieldsUsed > 0 && $fieldsUsed != $fieldsHidden} {$tableRow} {/if} {counter name="fieldsUsed" start=0 print=false assign="fieldsUsed"} {counter name="fieldsHidden" start=0 print=false assign="fieldsHidden"} {capture name="tr" assign="tableRow"} <tr> {counter name="fieldsUsed"} <td width='12.5%' scope="col"> {if !$fields.tsi_scadenziario_accounts_name.hidden} {capture name="label" assign="label"}{sugar_translate label='LBL_TSI_SCADENZIARIO_ACCOUNTS_FROM_ACCOUNTS_TITLE' module='TSI_Scadenziario'}{/capture} {$label|strip_semicolon}: {/if} </td> <td width='37.5%' > {if !$fields.tsi_scadenziario_accounts_name.hidden} {counter name="panelFieldCount"} {if !empty($fields.tsi_scadenziario_accountsaccounts_ida.value)} {capture assign="detail_url"}index.php?module=Accounts&action=DetailView&record={$fields.tsi_scadenziario_accountsaccounts_ida.value}{/capture} <a href="{sugar_ajax_url url=$detail_url}">{/if} <span id="tsi_scadenziario_accountsaccounts_ida" class="sugar_field" data-id-value="{$fields.tsi_scadenziario_accountsaccounts_ida.value}">{$fields.tsi_scadenziario_accounts_name.value}</span> {if !empty($fields.tsi_scadenziario_accountsaccounts_ida.value)}</a>{/if} {/if} </td> {counter name="fieldsUsed"} <td width='12.5%' scope="col"> {if !$fields.tsi_scadenziario_contacts_name.hidden} {capture name="label" assign="label"}{sugar_translate label='LBL_TSI_SCADENZIARIO_CONTACTS_FROM_CONTACTS_TITLE' module='TSI_Scadenziario'}{/capture} {$label|strip_semicolon}: {/if} </td> <td width='37.5%' > {if !$fields.tsi_scadenziario_contacts_name.hidden} {counter name="panelFieldCount"} {if !empty($fields.tsi_scadenziario_contactscontacts_ida.value)} {capture assign="detail_url"}index.php?module=Contacts&action=DetailView&record={$fields.tsi_scadenziario_contactscontacts_ida.value}{/capture} <a href="{sugar_ajax_url url=$detail_url}">{/if} <span id="tsi_scadenziario_contactscontacts_ida" class="sugar_field" data-id-value="{$fields.tsi_scadenziario_contactscontacts_ida.value}">{$fields.tsi_scadenziario_contacts_name.value}</span> {if !empty($fields.tsi_scadenziario_contactscontacts_ida.value)}</a>{/if} {/if} </td> </tr> {/capture} {if $fieldsUsed > 0 && $fieldsUsed != $fieldsHidden} {$tableRow} {/if} {counter name="fieldsUsed" start=0 print=false assign="fieldsUsed"} {counter name="fieldsHidden" start=0 print=false assign="fieldsHidden"} {capture name="tr" assign="tableRow"} <tr> {counter name="fieldsUsed"} <td width='12.5%' scope="col"> {if !$fields.conformita_c.hidden} {capture name="label" assign="label"}{sugar_translate label='LBL_CONFORMITA' module='TSI_Scadenziario'}{/capture} {$label|strip_semicolon}: {/if} </td> <td width='37.5%' > {if !$fields.conformita_c.hidden} {counter name="panelFieldCount"} {if is_string($fields.conformita_c.options)} <input type="hidden" class="sugar_field" id="{$fields.conformita_c.name}" value="{ $fields.conformita_c.options }"> { $fields.conformita_c.options } {else} <input type="hidden" class="sugar_field" id="{$fields.conformita_c.name}" value="{ $fields.conformita_c.value }"> { $fields.conformita_c.options[$fields.conformita_c.value]} {/if} {/if} </td> {counter name="fieldsUsed"} <td width='12.5%' scope="col"> </td> <td width='37.5%' > </td> </tr> {/capture} {if $fieldsUsed > 0 && $fieldsUsed != $fieldsHidden} {$tableRow} {/if} </table> </div> {if $panelFieldCount == 0} <script>document.getElementById("DEFAULT").style.display='none';</script> {/if} <div id='detailpanel_2' class='detail view detail508 '> {counter name="panelFieldCount" start=0 print=false assign="panelFieldCount"} <h4> <a href="javascript:void(0)" class="collapseLink" onclick="collapsePanel(2);"> <img border="0" id="detailpanel_2_img_hide" src="{sugar_getimagepath file="basic_search.gif"}"></a> <a href="javascript:void(0)" class="expandLink" onclick="expandPanel(2);"> <img border="0" id="detailpanel_2_img_show" src="{sugar_getimagepath file="advanced_search.gif"}"></a> {sugar_translate label='LBL_EDITVIEW_PANEL1' module='TSI_Scadenziario'} <script> document.getElementById('detailpanel_2').className += ' expanded'; </script> </h4> <table id='LBL_EDITVIEW_PANEL1' class="panelContainer" cellspacing='{$gridline}'> {counter name="fieldsUsed" start=0 print=false assign="fieldsUsed"} {counter name="fieldsHidden" start=0 print=false assign="fieldsHidden"} {capture name="tr" assign="tableRow"} <tr> {counter name="fieldsUsed"} <td width='12.5%' scope="col"> {if !$fields.datalavoro_c.hidden} {capture name="label" assign="label"}{sugar_translate label='LBL_DATALAVORO' module='TSI_Scadenziario'}{/capture} {$label|strip_semicolon}: {/if} </td> <td width='37.5%' colspan='3' > {if !$fields.datalavoro_c.hidden} {counter name="panelFieldCount"} {if strlen($fields.datalavoro_c.value) <= 0} {assign var="value" value=$fields.datalavoro_c.default_value } {else} {assign var="value" value=$fields.datalavoro_c.value } {/if} <span class="sugar_field" id="{$fields.datalavoro_c.name}">{$value}</span> {/if} </td> </tr> {/capture} {if $fieldsUsed > 0 && $fieldsUsed != $fieldsHidden} {$tableRow} {/if} {counter name="fieldsUsed" start=0 print=false assign="fieldsUsed"} {counter name="fieldsHidden" start=0 print=false assign="fieldsHidden"} {capture name="tr" assign="tableRow"} <tr> {counter name="fieldsUsed"} <td width='12.5%' scope="col"> {if !$fields.note_c.hidden} {capture name="label" assign="label"}{sugar_translate label='LBL_NOTE' module='TSI_Scadenziario'}{/capture} {$label|strip_semicolon}: {/if} </td> <td width='37.5%' colspan='3' > {if !$fields.note_c.hidden} {counter name="panelFieldCount"} <span class="sugar_field" id="{$fields.note_c.name|escape:'html'|url2html|nl2br}">{$fields.note_c.value|escape:'htmlentitydecode'|escape:'html'|url2html|nl2br}</span> {/if} </td> {counter name="fieldsUsed"} <td width='12.5%' scope="col"> </td> <td width='37.5%' > </td> </tr> {/capture} {if $fieldsUsed > 0 && $fieldsUsed != $fieldsHidden} {$tableRow} {/if} </table> <script type="text/javascript">SUGAR.util.doWhen("typeof initPanel == 'function'", function() {ldelim} initPanel(2, 'expanded'); {rdelim}); </script> </div> {if $panelFieldCount == 0} <script>document.getElementById("LBL_EDITVIEW_PANEL1").style.display='none';</script> {/if} </div> </div> </form> <script>SUGAR.util.doWhen("document.getElementById('form') != null", function(){ldelim}SUGAR.util.buildAccessKeyLabels();{rdelim}); </script>