| Server IP : 162.214.74.102 / Your IP : 216.73.216.192 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/www/lrsys_apps/leo/application/plugins/module_pcp/views/p-plan/ |
Upload File : |
<div class="wrapper wrapper-content">
<div class="row">
<div class="col-lg-8">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>
{$_L['Pcp_plan menu_title']}
</h5>
<div class="ibox-tools">
<a href="{$url['list']}" class="btn btn-primary btn-xs">{$_L['Pcp_plan list_title']}</a>
</div>
</div>
<div class="ibox-content" id="ibox_form">
{if isset($plan['id'])}
<form class="form-horizontal" action="{$url['edit']}/{$plan['id']}" id="eform" method="POST">
{else}
<form class="form-horizontal" action="{$url['add']}" id="eform" method="POST">
{/if}
<div id="general_data" class="tab-pane fade in active">
<div class="row" style="margin-top:20px">
<div class="col-md-12 col-sm-6 col-xs-12">
<label class="control-label" for="name">{$_L['Name']}{$_L['*']}
</label>
{if isset($plan['name'])}
<input type="text" id="name" name="name" class="form-control" autocomplete="off" placeholder="" value="{$plan['name']}" required="">
{else}
<input type="text" id="name" name="name" class="form-control" autocomplete="off" placeholder="" value="" required="">
{/if}
</div>
<div class="col-md-8 col-sm-6 col-xs-12">
{if isset($plan['product_id'])}
<input type="hidden" id="selected-product" name="id_product" value="{$plan['product_id']}">
{/if}
<label class="control-label" for="products">{$_L['Product']}</label>
<select class="form-control select2 products" name="product_id" style="width:100%"></select>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<label class="control-label" for="qtd">{$_L['Pcp_plan qtd']}{$_L['*']}
</label>
{if isset($plan['production_qtd'])}
<input type="text" id="production_qtd" name="production_qtd" class="form-control" autocomplete="off" placeholder="" value="{$plan['production_qtd']}" required="">
{else}
<input type="text" id="production_qtd" name="production_qtd" class="form-control" autocomplete="off" placeholder="" value="" required="">
{/if}
</div>
<div class="col-md-12 col-sm-6 col-xs-12">
<label class="control-label" for="obs">{$_L['Pcp_plan obs']}{$_L['*']}
</label>
{if isset($plan['obs'])}
<input type="text" id="obs" name="obs" class="form-control" autocomplete="off" placeholder="" value="{$plan['obs']}" required="">
{else}
<input type="text" id="obs" name="obs" class="form-control" autocomplete="off" placeholder="" value="" required="">
{/if}
</div>
</div>
<div class="clearfix"></div>
</div> <!-- Fim dados gerais -->
<div class="row" style="margin-top:20px">
<div class=" col-md-12 form-grouxp">
<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['list']}">{$_L['Or Cancel']}</a>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
{if isset($plan['id'])}
<div class="col-lg-4">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>
{$_L['Pcp product_info']}
</h5>
{* <div class="ibox-tools">
<a href="{$url['list']}" class="btn btn-primary btn-xs">{$_L['Pcp_plan list_title']}</a>
</div> *}
</div>
<div class="ibox-content" id="ibox_form">
<h5>Estrutura do produto:</h5>
{if isset($struct)}
<ul>
{foreach from=$struct item=item}
<li>{$item['description']} ({$item['qty']})</li>
{/foreach}
</ul>
{/if}
<h5>Etapas de Produção:</h5>
{if isset($steps)}
<ul>
{foreach from=$steps item=item}
<li>{$item->name} ({$item->duration_time})</li>
{/foreach}
</ul>
{/if}
<h5>OPS Adicionais:</h5>
{if isset($subitems[0])}
{foreach from=$subitems item=item}
<h5><b>{$item['subitem']['description']}</b></h5>
<ul>
{foreach from=$item['struct'] item=struct}
<li>{$struct['description']} ({$struct['qty']})</li>
{/foreach}
</ul>
{/foreach}
{else}
<small>Este produto não possui item a serem criados.</small>
{/if}
</div>
<div class="ibox-footer">
</div>
</div>
</div>
{/if}
</div>
</div>