AnonSec Shell
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_fish/views/foodprograms/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_apps/leo/application/plugins/module_fish/views/foodprograms/add.tpl
<div class="wrapper wrapper-content">
    <input id="_client_view" type="hidden" value="{if isset($client)}{'client/'}{/if}">

    <form id="form-food-program" class="form-horizontal" method="post" action="">

        <div class="row">

            <div class="col-md-12">

                <div class="ibox float-e-margins">

                    <div class="ibox-title">
                        <h5>{$title}</h5>
                        <a href="{$_url}{if isset($client)}{'client/'}{/if}module_fish/foodprograms/listFoodPrograms"
                           class="btn btn-xs btn-primary btn-rounded pull-right">
                            <i class="fa fa-bars"></i> {$_L['Food_List_Fish']}
                        </a>
                    </div>

                    <div class="ibox-content" id="ibox_form">
                        <div class="alert alert-danger" id="emsg">
                           <span id="emsgbody"></span>
                        </div>
                        {if !isset($client)}
                            <div class="row">

                                <div class="col-md-12 col-sm-12 col-xs-12">
                                    <label class="control-label" for="title">
                                        {$_L['Associated']} <small class="red">*</small>
                                    </label>
                                    <select name="crm_accounts_id" id="crm_accounts_id" class="form-control associated_select" required>
                                        {if $account}
                                            {$account}
                                        {/if}
                                    </select>
                                </div>

                            </div>
                        {else if}
                            <input type="hidden" name="crm_accounts_id" id="crm_accounts_id" value="{$client->id}">
                        {/if}
                        
                        <div class="row">
                            <div class="col-md-12 col-sm-12 col-xs-12">
                                <label class="control-label" for="title">{$_L['Food_Name']} {$_L['*']}</label>
                                <input name="name" id="name" class="form-control" value="{$food->name}" required>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-3 col-sm-3 col-xs-12">
                                <label class="control-label" for="title">{$_L['Module_Fish Initial amount of fish']} <small class="red">*</small></label>
                                <div class="input-group">
                                    <input type="text" name="initial_amount_fish" id="initial_amount_fish" class="form-control number"  value="{if not empty($food->initial_amount_fish)}{$food->initial_amount_fish}{/if}" required>
                                    <span class="input-group-addon  after">{$_L['Un']}</span>
                                </div>
                            </div>
                        </div>
                        <hr/>
                        <div class='row'>
                            <div style="overflow-x:auto">
                                <table class="table" id="food_itens">
                                    <thead>
                                    <tr class="h6 text-dark">
                                        <th  class="text-semibold col-xs-2" style="min-width:90px">{$_L['Period']} {$_L['Module_Fish in day']}</th>
                                        <th  class="text-semibold col-xs-2" style="min-width:90px">{$_L['Period']} {$_L['Total']}</th>
                                        <th  class=" text-semibold col-xs-2" style="min-width:150px" >{$_L['Module_Fish Ration']}</th>
                                        <th  class=" text-semibold col-xs-2" style="min-width:90px">{$_L['Module_Fish N°. of deals']}</th>
                                        <th  class=" text-semibold col-xs-2" style="min-width:90px">{$_L['Module_Fish Weight of']} (g)</th>
                                        <th  class=" text-semibold col-xs-2" style="min-width:90px">{$_L['Module_Fish Weight Up']} (g)</th>
                                        <th  class=" text-semibold col-xs-2" style="min-width:90px">{$_L['Module_Fish Mortality Rate']} (%)</th>
                                        <th  class=" text-semibold col-xs-2" style="min-width:90px">{$_L['Module_Fish Biomass']} (kg)</th>
                                        <th  class=" text-semibold col-xs-2" style="min-width:90px">%PV</th>
                                        <th  class=" text-semibold col-xs-2" style="min-width:90px">GDP (g)</th>
                                        <th  class=" text-semibold col-xs-2" style="min-width:90px">{$_L['Module_Fish Feed intake per day']} (kg)</th>
                                        <th  class=" text-semibold col-xs-2" style="min-width:90px">TCA</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                        {assign var='rowNum' value='0'}
                                        {if $periods}
                                  
                                       {foreach $periods as $item}
                                        <tr>
                                            <td class="middle">
                                                <input type="text" data-row="{$rowNum}" class="form-control verifyValues period"  value="{$item->period}" name="period[]" id="period_{$rowNum}">
                                            </td>
                                            <td class="middle">
                                                <input id="period_total_{$rowNum}" value="{$item->period_total}" name="period_total[]" type="hidden">
                                                <span id="label_period_total_{$rowNum}">{$item->period_total}</span>
                                            </td> 
                                            <td class="middle">
                                                <select data-row="{$rowNum}"  id="sys_item_id_{$rowNum}" name="sys_item_id[]"  class="form-control sys_item_id" style="width:100%">
                                                    <option value='{$item->sys_item_id}'>({$item->sys_item_id}) {$item->description}</option>    
                                                </select>
                                            </td>  
                                            <td class="middle">
                                                <input type="text" data-row="{$rowNum}"  class="form-control verifyValues"  value="{$item->number_deals}" name="number_deals[]" id="number_deals_{$rowNum}">
                                            </td> 
                                            <td class="middle">
                                                 <input type="text" class="form-control verifyValues weight_of" data-row="{$rowNum}"  value="{if not empty($item->weight_of)}{$item->weight_of*1000}{/if}" name="weight_of[]" id="weight_of_{$rowNum}">
                                            </td> 
                                            <td class="middle">
                                                <input type="text" class="form-control verifyValues weight_up" data-row="{$rowNum}"  value="{if not empty($item->weight_up)}{$item->weight_up*1000}{/if}" name="weight_up[]" id="weight_up_{$rowNum}">
                                            </td> 
                                            <td class="middle">
                                                <input type="text" class="form-control verifyValues mortality_rate"  value="{$item->mortality_rate}" name="mortality_rate[]" id="mortality_rate_{$rowNum}">
                                            </td> 
                                            <td class="middle">
                                                <span id="label_biomass_{$rowNum}">{number_format($item->biomass,2,$_c['dec_point'],$_c['thousands_sep'])}</span>
                                                 <input type="hidden" class="form-control"  value="{number_format($item->biomass,2,$_c['dec_point'],$_c['thousands_sep'])}" name="biomass[]" id="biomass_{$rowNum}">
                                            </td> 
                                            <td class="middle">
                                                <input type="text" class="form-control verifyValues pv"  value="{$item->pv}" name="pv[]" id="pv_{$rowNum}">
                                            </td> 
                                            <td class="middle">
                                                <span id="label_gpd_{$rowNum}"></span>
                                                 <input type="hidden" class="form-control"  value="{if not empty($item->gpd)}{$item->gpd*1000}{/if}" name="gpd[]" id="gpd_{$rowNum}">
                                            </td> 
                                            <td class="middle">
                                                <span id="label_consumption_day_{$rowNum}">{number_format($item->consumption_day,2,$_c['dec_point'],$_c['thousands_sep'])}</span>
                                                 <input type="hidden" class="form-control"  value="{number_format($item->consumption_day,2,$_c['dec_point'],$_c['thousands_sep'])}" name="consumption_day[]" id="consumption_day_{$rowNum}">
                                            </td> 
                                            <td class="middle">
                                                <span id="label_tca_{$rowNum}">{number_format($item->tca,2,$_c['dec_point'],$_c['thousands_sep'])}</span>
                                                 <input type="hidden" class="form-control"  value="{number_format($item->tca,2,$_c['dec_point'],$_c['thousands_sep'])}" name="tca[]" id="tca_{$rowNum}">
                                            </td> 
                                            <td class="middle col-xs-1">  </span> <span class="btn btn-danger btn-xs delete_item" data-row="{$rowNum++}" ><i class="fa fa-trash"></i> </span></td>
                                        </tr>
                                    {/foreach}
                                    {/if}
                    
                                    </tbody>
                                </table>
                                    <input type="hidden" id='rowNum' value='{$rowNum}'>
                                <button type="button" class="btn btn-primary" id="item-add"><i class="fa fa-plus"></i> {$_L['Add']}
                                </button>
                            </div>
                        </div>



{*                        <div class="row">

                            <div class="col-md-12 col-sm-12 col-xs-12">
                                {$account = ''}
                                {if (!empty($tank->crm_accounts_id))}
                                    {$account = $tank->crm_accounts_id}
                                {/if}
                                <label class="control-label" for="title">
                                    {$_L['Payers']} <small class="red">*</small>
                                </label>
                                <select name="crm_accounts_id" id="crm_accounts_id" class="form-control accounts_select" required>
                                    {foreach $accounts as $acc}
                                        <option value="{$acc->id}"
                                                {if $acc->id == $account}selected{/if}>{$acc->accounts}</option>
                                    {/foreach}
                                </select>
                            </div>

                        </div>



                        <div class="row">

                            <div class="col-md-12 col-sm-12 col-xs-12">
                                {$form = ''}
                                {if (!empty($tank->form_tank))}
                                    {$form = $tank->form_tank}
                                {/if}
                                <label class="control-label" for="form_tank">
                                    {$_L['Tank_Form']} <small class="red">*</small>
                                </label>
                                <select name="form_tank" id="form_tank" class="form-control" required>
                                    <option value="">-- Escolha --</option>
                                    <option value="quadrado" {if $form == "quadrado"}selected{/if}>Quadrado</option>
                                    <option value="circular" {if $form == "circular"}selected{/if}>Circular</option>
                                    <option value="retangular" {if $form == "retangular"}selected{/if}>Retangular</option>
                                </select>
                            </div>

                        </div>

                        <div class="row">

                            <div class="col-md-12 col-sm-12 col-xs-12">
                                {$area = ''}
                                {if (!empty($tank->area_tank))}
                                    {$area = $tank->area_tank}
                                {/if}
                                <label class="control-label" for="title">{$_L['Tank_Area']}</label>
                                <input name="area_tank" id="area_tank" class="form-control" value="{$area}" required>
                            </div>

                        </div>

                        <div class="row">

                            <div class="col-md-12 col-sm-12 col-xs-12">
                                {$depth = ''}
                                {if (!empty($tank->depth_tank))}
                                    {$depth = $tank->depth_tank}
                                {/if}
                                <label class="control-label" for="title">{$_L['Tank_Depth']}</label>
                                <input name="depth_tank" id="depth_tank" class="form-control" value="{$depth}" required>
                            </div>

                        </div>

                        <div class="row">

                            <div class="col-md-12 col-sm-12 col-xs-12">
                                {$type = ''}
                                {if (!empty($tank->type_tank))}
                                    {$type = $tank->type_tank}
                                {/if}
                                <label class="control-label" for="type_tank">
                                    {$_L['Type']} <small class="red">*</small>
                                </label>
                                <select name="type_tank" id="type_tank" class="form-control" required>
                                    <option value="">-- Escolha --</option>
                                    <option value="tanque" {if $form == "tanque"}selected{/if}>Tanque</option>
                                    <option value="viveiro" {if $form == "viveiro"}selected{/if}>Viveiro</option>
                                </select>
                            </div>

                        </div>
*}
                        <div class="row" style="margin-top:20px">
                            <div class=" col-md-12 form-group">
                                <div class="col-lg-10">
                                    
                                    <input type="hidden" id="id" name="id" value="{$food->id}">
                                    <button class="md-btn md-btn-primary waves-effect waves-light" type="submit" id="submit">
                                        <i class="fa fa-check"></i> {$_L['Submit']}
                                    </button>
                                    | <a href="{$_url}{if isset($client)}{'client/'}{/if}module_fish/foodprograms/listFoodPrograms">{$_L['Or Cancel']}</a>
                                </div>
                            </div>
                        </div>

                    </div>

                </div>

            </div>

        </div>

    </form>

</div>

Anon7 - 2022
AnonSec Team