| 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 : |
{include file="sections/header.tpl"}
<div class="wrapper wrapper-content">
<div class="row">
<div class="col-md-12">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>{$_L['Add Contact']}</h5>
<a href="{$_url}contacts/import_csv/" class="btn btn-xs btn-primary btn-rounded pull-right"><i class="fa fa-bars"></i> Import Contacts</a>
</div>
<div class="ibox-content" id="ibox_form">
<div class="alert alert-danger" id="emsg">
<span id="emsgbody"></span>
</div>
<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 type="text" id="account" name="account" class="form-control" placeholder="{$_L['Full Name or Business Name']}" maxlength="100">
</div>
<div class=" pj col-md-3 col-sm-12 col-xs-12">
<label class="control-label">{$_L['Name Fantasy']}</label>
<input type="text" id="company" name="company" class="form-control" maxlength="100">
</div>
<div class="col-md-3 col-sm-12 col-xs-12">
<label class="control-label" >{$_L['Code']}</label>
<input type="text" id="code" name="code" class="form-control" placeholder="{$_L['Optional']}" maxlength="100"/>
</div>
</div>
<div class="row">
<div class="col-md-3 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">{$_L['Legal Person']}</option>
<option value="PF">{$_L['Physical Person']}</option>
<option value="E">{$_L['Foreigner']}</option>
</select>
</div>
<div id="div_cpf" class="pf col-md-3 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}'">
<label class="control-label" >{$_L['CPF']}</label>
<input type="text" id="cpf" name="cpf" class="cpf form-control"/>
</div>
<div id="div_cnpj" class="pj col-md-3 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
<label class="control-label" >{$_L['CNPJ']}</label>
<input 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-3 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
<label class="control-label" >{$_L['RG']}</label>
<input type="text" id="rg" name="rg" class="form-control" maxlength="30"/>
</div>
<div id="div_doc_ident" class="pe col-md-3 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
<label class="control-label" >{$_L['Identification Document']}</label>
<input type="text" id="foreign_doc_identification" name="foreign_doc_identification" class="form-control" maxlength="30"/>
</div>
<div class="col-md-3 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
<label class="control-label" >{$_L['Taxpayer']}</label>
<select name="taxpayer" id="contribuinte" class="form-control">
<option value="0">{$_L['Not Telling']}</option>
<option value="1">{$_L['Taxpayer ICMS']}</option>
<option value="2">{$_L['Taxpayer exempt from registration in the register of ICMS Taxpayers']}</option>
<option value="9">{$_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-3 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
<label class="control-label" >{$_L['State Registration']}</label>
<input type="text" id="ie" name="ie" class="form-control" maxlength="30"/>
</div>
<div id="div_im" class="pj col-md-3 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
<label class="control-label" >{$_L['Municipal Registration']}</label>
<input 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%">
</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">
</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-4 col-sm-12 col-xs-12">
<label class="control-label" for="password">{$_L['Password']}</label>
<input type="password" id="password" name="password" class="form-control" maxlength="100"/>
</div>
<div class="col-md-4 col-sm-12 col-xs-12">
<label class=" control-label" for="cpassword">{$_L['Confirm Password']}</label>
<input type="password" id="cpassword" name="cpassword" 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" for="send_client_signup_email">{$_L['Welcome Email']}</label>
<input type="checkbox" checked data-toggle="toggle" data-size="small" data-on="{$_L['Yes']}" data-off="{$_L['No']}" id="send_client_signup_email" name="send_client_signup_email" value="Yes">
<span class="help-block">{$_L['Send Client Signup Email']}</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 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}
<option value="{$s['id']}">{$s['state_name']}</option>
{/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">{$_L['Address']}</label>
<input 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 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 type="text" id="number" name="number" class="form-control" maxlength="100"/>
</div>
<div class="col-md-3 col-sm-12 col-xs-12">
<label class="control-label" >{$_L['Complement']}</label>
<input type="text" id="complement" name="complement" class="form-control" maxlength="100"/>
</div>
<div class="col-md-3 col-sm-12 col-xs-12">
<label class="control-label" >{$_L['Reference']}</label>
<input type="text" id="reference" name="reference" 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">
<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 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}
<option value="{$e['id']}">{$e['state_name']}</option>
{/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 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 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 type="text" id="number_c" name="number_c" class="form-control" maxlength="100"/>
</div>
<div class="col-md-3 col-sm-12 col-xs-12">
<label class="control-label" for="complemento">{$_L['Complement']}</label>
<input type="text" id="complement_c" name="complement_c" class="form-control" maxlength="100"/>
</div>
<div class="col-md-3 col-sm-12 col-xs-12">
<label class="control-label" >{$_L['Reference']}</label>
<input type="text" id="reference_c" name="reference_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 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 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 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 type="text" id="web_site" name="web_site" class="form-control" maxlength="100"/>
</div>
<div class="col-md-3 col-sm-12 col-xs-12">
<label class="control-label" >{$_L['Email']}</label>
<input type="text" id="email" name="email" class="form-control" maxlength="100"/>
</div>
<div class="col-md-3 col-sm-12 col-xs-12 {if $plugin_module_helpdesk}hide{/if}">
<label class="control-label" >{$_L['E-mail for sending NFe']}</label>
<input 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>
</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-3 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="">{$_L['Select'] }</option>
<option value="Married">{$_L['Married']}</option>
<option value="Not married">{$_L['Not married']}</option>
<option value="Widower">{$_L['Widower']}</option>
<option value="Separate">{$_L['Separate']}</option>
<option value="Disturbed">{$_L['Disturbed']}</option>
</select>
</div>
<div class=" col-md-3 col-sm-12 col-xs-12">
<label class="control-label">{$_L['Job Title']} </label>
<input type="text" id="jobtitle" name="jobtitle" class="form-control" maxlength="100"/>
</div>
<div class="col-md-3 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=" ">{$_L['Select'] }</option>
<option value="f">{$_L['Female']}</option>
<option value="m">{$_L['Male']}</option>
</select>
</select>
</div>
</div>
<div class="pf row {if $plugin_module_helpdesk}hide{/if}">
<div class="col-md-3 col-sm-12 col-xs-12">
<label class="control-label" >{$_L['Date of birth']}</label>
<input 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-3 col-sm-12 col-xs-12">
<label class="control-label">{$_L['Naturalness']}</label>
<input 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 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 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" 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 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-3 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" >{$_L['Simple National']}</option>
<option value="2" >{$_L['Simple National, excess']}</option>
<option value="3" >{$_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 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" >{$_L['Customer']}</option>
<option value="Inactive" >{$_L['Inactive']}</option>
<option value="Lead" >{$_L['Lead']}</option>
<option value="Prospect" >{$_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" id="autocompleteSalesman" name="autocompleteSalesman" maxlength="200" class="form-control">
<div id="suggesstion-box-salesman">
</div>
<input type="hidden" 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 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%">
</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']}">{$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 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">
{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">
{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}">{$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"></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"></textarea>
</div>
</div>
</div>
</div>
<div class="row" style="margin-top:20px">
<div class=" col-md-12 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/list/">{$_L['Or Cancel']}</a>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<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_parent_segment_name" id="_msg_parent_segment_name" value="{$_L['Parent Segment Name']}">
<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']}">
{include file="sections/footer.tpl"}