AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.114
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/mundotennis/application/plugins/module_events/views/procedure/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_apps/mundotennis/application/plugins/module_events/views/procedure/add.tpl
<div class="wrapper wrapper-content">

    {$action = 'create'}
    {$title_action = $_L['Procedure_Add_Module']}
    {if (!empty($procedure))}
        {$action = 'update'}
        {$title_action = $_L['Procedure_Edit_Module']}
    {/if}

    <form id='form-procedure' class="form-horizontal" method="post" action="{$_url}module_events/Procedure/{$action}">

        <div class="row">

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

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

                    <div class="ibox-title">
                        <h5>{$title_action}</h5>
                        <a href="{$_url}module_events/Procedure/listProcedure"
                           class="btn btn-xs btn-primary btn-rounded pull-right">
                            <i class="fa fa-bars"></i> {$_L['Procedure_List']}
                        </a>
                    </div>

                    <div class="ibox-content" id="ibox_form">
                        <div class="alert alert-danger" id="emsg">
                            <span id="emsgbody"></span>
                        </div>
                        
                        
                        <div class="row hidden" id="package_active">
                            <div class="col-md-12 col-sm-12 col-xs-12 top10">  
                                <label class="control-label" >{$_L['Active'] }?</label>
                                <input type="checkbox"  data-toggle="toggle" data-size="small" data-on="{$_L['Yes']}" data-off="{$_L['No']}" id="active" {if $procedure->status=='Active' } checked {/if} name="active" value="Y">     
                            </div>
                        </div>
                        <div class="row">
                        
                            <div class="col-md-12 col-sm-12 col-xs-12">
                               
                                <label class="control-label" for="title">
                                    {$_L['Events_Select_Event']} <small class="red">*</small>
                                </label>
                                <select name="diary[]" id="diary" class="form-control" required {if isset($event_id)} disabled {/if}>
                                    <option value="">{$_L['Select']}</option>
                                    {foreach $diarys as $di}
                                       <option value="{$di->id}" {if isset($event_id) && $event_id == $di->id} selected {/if}>{$di->diary}
                                       </option>
                                   {/foreach}
                               </select>
                                   {if isset($event_id)}<input type="hidden" name="diary" value="{$event_id}">{/if}
                            </div>
                               
                            <div class="col-md-12 col-sm-12 col-xs-12">
                               
                                <label class="control-label" for="title">
                                    {$_L['Events_Product_Type']}  <small class="red">*</small>
                                </label>
                                    <input type="hidden" id="event_type" value="{if isset($type)} {$type} {/if}">
                                    <select name="product_type" id="product_type" class="form-control" required {if isset($type)} disabled{/if}>
                                        <option value="">{$_L['Select']}</option>
                                        <option value="Ticket" {if isset($type) && $type == 'Ticket'} selected {/if}>
                                            Ticket
                                        </option>
                                        <option value="Hotel" {if isset($type) && $type == 'Hotel'} selected {/if}>
                                            Hotel
                                        </option>
                                        <option value="Package" {if isset($type) && $type == 'Package'} selected {/if}>
                                            Package
                                        </option>
                                        {*<option value="Transfer" {if isset($type) && $type == 'Transfer'} selected {/if}>
                                            Transfer
                                        </option>*}
                                    </select>
                                   {if isset($type)}<input type="hidden" name="product_type" value="{$type}">{/if}
                            </div>
                        </div>
                        <div class="row hidden">
                            <div class="col-md-12 col-sm-12 col-xs-12">
                                <label class="control-label" for="title">
                                    {$_L['Title']} <small class="red">*</small>
                                </label>
                                <input type="text" name="name" id="name"
                                       class="form-control" value="{$procedure->name}" >
                            </div>
                        </div>
                        
                        
                        <!-- PACKAGE -->
                        <div class="row content_product_type {if !isset($type) || $type != 'Package'} hidden{/if}" id="content_Package">
                            <div class="col-xs-12 div_form">  <h3>{$_L['Events_General_Data']}</h3> </div>
                            <div class="col-md-12 col-sm-12 col-xs-12">
                                <div class="col-md-4 col-sm-12 col-xs-12">
                                    <label for="" class="control-label">{$_L['Events_Data_Pack_Init']} </label>
                                    <input type="text" class="form-control date-picker" id="date_checkin" name="productParams_Package[date_checkin]" datepicker="" data-date-format="dd/mm/yyyy" data-auto-close="true" value="{if isset($package->params->date_checkin)}{implode('/', array_reverse(explode('-', $package->params->date_checkin)))}{/if}">
                                </div>
                                <div class="col-md-4 col-sm-12 col-xs-12">
                                    <label for="" class="control-label">{$_L['Events_Data_Pack_End']} </label>
                                    <input type="text" class="form-control date-picker" id="date_checkout" name="productParams_Package[date_checkout]" datepicker="" data-date-format="dd/mm/yyyy" data-auto-close="true" value="{if isset($package->params->date_checkout)}{implode('/', array_reverse(explode('-', $package->params->date_checkout)))}{/if}">
                                </div>

                                <div class="col-md-4 col-sm-12 col-xs-12">
                                    <label for="" class="control-label">Hotéis </label>
                                    <select id="package_hotels_ids" data-ids='{if isset($package->params->package_hotels_ids)}{$package->params->package_hotels_ids}{/if}' name=productParams_Package[package_hotels_ids][]">
                                        
                                    </select>
                                </div>
                            </div>
                            <div class="col-md-12 col-sm-12 col-xs-12">
                                <div class="col-md-4 col-sm-12 col-xs-12">
                                    <label for="" class="control-label">Quantidade de Tickets</label>
                                    <input type="text" class="form-control integer" id="qty_tickets" name="productParams_Package[qty_tickets]" value="{if isset($package->params->qty_tickets)}{$package->params->qty_tickets}{/if}">
                                    
                                </div>
                                <div class="col-md-4 col-sm-12 col-xs-12">
                                    <label for="" class="control-label">Tickets</label>
                                    <select id="package_tickets_ids" data-ids='{if isset($package->params->package_tickets_ids)}{$package->params->package_tickets_ids}{/if}' name="productParams_Package[package_tickets_ids][]">
                                    </select>
                                </div>
                            </div>
                            
                        </div>
                                
                        <div class="row content_product_type {if !isset($type) || $type != 'Ticket'} hidden{/if}" id="content_Ticket">
                            <div class='col-md-12 col-sm-12 col-xs-12' style="margin-top: 20px;">
                                <div class="table-responsive m-t">
                                    <table class="table " id="procedure_expenses">
                                        <tbody id="procedure_expenses_tbody">
                                            {$rowNumTicket = -1}
                                            {$date = null}
                                            {$hour = null}
                                            {if isset($tickets) && count($tickets) > 0}
                                                {foreach $tickets as $a}
                                                    {if $rowNumTicket == -1}
                                                        <tr>
                                                            <td class="col-md-1">Data</td>
                                                            <td class="col-md-1">Hora</td>
                                                            <td class="col-md-2">Sessão</td>
                                                            <td class="col-md-2">Rodada Fem</td>
                                                            <td class="col-md-2">Rodada Masc</td>
                                                            {foreach $tickets_type as $tt}
                                                                <td class="col-md-1">{$tt->title}</td>
                                                            {/foreach}
                                                        </tr>
                                                    {/if}
                                                        
                                                    {if $date != $a->date || $hour != $a->hour}
                                                        {$date = $a->date}
                                                        {$hour = $a->hour}
                                                        {if $rowNumTicket > 0}
                                                            </tr>
                                                        {/if}
                                                        {$rowNumTicket = $rowNumTicket + 1}
                                                        <tr class="itm_nm_ftura" data-ticket-id="{$a->sys_item_id}">
                                                            <input type="hidden" name="ticket_sys_item_id[]" value="{$a->sys_item_id}">
                                                            <td class="">
                                                                <input type="text" data-row="{$rowNumTicket}"  class="form-control date-picker" id="ticket_date_{$rowNumTicket}" name="ticket_date[]" data-date-format="dd/mm/yyyy" data-auto-close="true" value="{implode('/', array_reverse(explode('-', $a->date)))}">
                                                            </td>
                                                            <td class="">
                                                                <input type="text" data-row="{$rowNumTicket}"  class="form-control time" value="{$a->hour}" name="ticket_hour[]" maxlength="10" id="ticket_date_{$rowNumTicket}">
                                                            </td>
                                                            <td class="">
                                                                <input type="text" data-row="{$rowNumTicket}"  class="form-control" value="{$a->session}" name="ticket_session[]" maxlength="60" id="ticket_session_{$rowNumTicket}">
                                                            </td>
                                                            <td class="">
                                                                <input type="text" data-row="{$rowNumTicket}"  class="form-control" value="{$a->round_female}" name="ticket_round_fem[]" maxlength="60" id="ticket_round_fem_{$rowNumTicket}">
                                                            </td>
                                                            <td class="">
                                                                <input type="text" data-row="{$rowNumTicket}"  class="form-control" value="{$a->round_male}" name="ticket_round_masc[]" maxlength="60" id="ticket_round_masc_{$rowNumTicket}">
                                                            </td>
                                                            <td class="" data-sys-item-id="{$a->sys_item_id}">
                                                                    <input type="text" data-row="{$rowNumTicket}"  class="form-control amount" value="{$a->sales_price}" name="ticketValue_{$a->event_tickets_type_id}[]" maxlength="60" id="ticketValue_{$a->event_tickets_type_id}_{$rowNumTicket}">
                                                                    <input type="hidden" value="{$a->sys_item_id}" name="ticket_sys_item_id_{$a->event_tickets_type_id}[]">
                                                            </td>
                                                    {else}
                                                        <td class="" data-sys-item-id="{$a->sys_item_id}">
                                                                <input type="text" data-row="{$rowNumTicket}"  class="form-control amount" value="{$a->sales_price}" name="ticketValue_{$a->event_tickets_type_id}[]" maxlength="60" id="ticketValue_{$a->event_tickets_type_id}_{$rowNumTicket}">
                                                                <input type="hidden" value="{$a->sys_item_id}" name="ticket_sys_item_id_{$a->event_tickets_type_id}[]">
                                                        </td>
                                                    {/if}
                                                {/foreach}
                                                {$rowNumTicket = $rowNumTicket + 1}
                                            {/if}
                                        </tbody>

                                    </table>
                                    <input id="rowNumProcedureExpenses" type="hidden" value="{$rowNumTicket}">
                                    <div class="hidden" id="deleted_tickets">
                                    </div>
                                    <div class="hidden btn_add_procedure_expenses">
                                        <button type="button" class="btn btn-primary add_procedure_expenses" ><i class="fa fa-search"></i> Adicionar Ticket
                                        </button>
                                        <button type="button" class="btn btn-primary remove_procedure_expenses" ><i class="fa fa-trash"></i> Remover Ticket
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                                
                        
                        <div class="row content_product_type {if !isset($type) || $type != 'Hotel'} hidden{/if}" id="content_Hotel">
                            <div class='col-md-12 col-sm-12 col-xs-12' style="margin-top: 20px;">
                                <div class="table-responsive m-t">
                                    <table class="table " id="hotel_value">
                                        <tbody id="hotel_value_tbody">
                                            {$rowNumTicket = -1}
                                            {$date = null}
                                            {if isset($hotels) && count($hotels) > 0}
                                                {foreach $hotels as $a}
                                                    {if $rowNumTicket == -1}
                                                        <tr>
                                                            <td class="col-md-1">Data</td>
                                                            <td class="col-md-1">Acomodação</td>
                                                            {foreach $hotels_type as $tt}
                                                                <td class="col-md-1">{$tt->name}</td>
                                                            {/foreach}
                                                        </tr>
                                                    {/if}
                                                        
                                                    {if $date != $a->date}
                                                        {$date = $a->date}
                                                        {if $rowNumTicket >= 0}
                                                            </tr>
                                                        {/if}
                                                        {$rowNumTicket = $rowNumTicket + 1}
                                                        <tr class="itm_nm_ftura" data-ticket-id="{$a->sys_item_id}">
                                                            <input type="hidden" name="ticket_sys_item_id[]" value="{$a->sys_item_id}">
                                                            <td class="">
                                                                <input type="text" data-row="{$rowNumTicket}"  class="form-control date-picker" id="hotel_date_{$rowNumTicket}" name="hotel_date[]" data-date-format="dd/mm/yyyy" data-auto-close="true" value="{implode('/', array_reverse(explode('-', $a->date)))}">
                                                            </td>
                                                            <td class="">
                                                                <input type="text" data-row="{$rowNumTicket}"  class="form-control time" value="{$a->room_type}" name="hotel_accommodation[]" maxlength="255" id="hotel_accommodation_{$rowNumTicket}">
                                                            </td>
                                                            <td class="" data-sys-item-id="{$a->sys_item_id}">
                                                                    <input type="text" data-row="{$rowNumTicket}"  class="form-control amount" value="{$a->sales_price}" name="hotelValue_{$a->event_hotel_id}[]" maxlength="60" id="hotelValue_{$a->event_hotel_id}_{$rowNumTicket}">
                                                                    <input type="hidden" value="{$a->sys_item_id}" name="hotel_sys_item_id_{$a->event_hotel_id}[]">
                                                            </td>
                                                    {else}
                                                        <td class="" data-sys-item-id="{$a->sys_item_id}">
                                                                <input type="text" data-row="{$rowNumTicket}"  class="form-control amount" value="{$a->sales_price}" name="hotelValue_{$a->event_hotel_id}[]" maxlength="60" id="hotelValue_{$a->event_hotel_id}_{$rowNumTicket}">
                                                                <input type="hidden" value="{$a->sys_item_id}" name="hotel_sys_item_id_{$a->event_hotel_id}[]">
                                                        </td>
                                                    {/if}
                                                {/foreach}
                                                {$rowNumTicket = $rowNumTicket + 1}
                                            {/if}
                                        </tbody>

                                    </table>
                                    <input id="rowNumAccommodation" type="hidden" value="{$rowNumTicket}">
                                    <div class="hidden" id="deleted_hotels">
                                    </div>
                                    <div class="hidden btn_add_hotel_value">
                                        <button type="button" class="btn btn-primary add_hotel_value" ><i class="fa fa-search"></i> Adicionar Acomodação
                                        </button>
                                        <button type="button" class="btn btn-primary remove_hotel_value" ><i class="fa fa-trash"></i> Remover Acomodação
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    
                        
                                
                                
                                
                            <div class='row hidden' id='payment_type'>
                                <div class="col-xs-12 div_form">  <h2>{$_L['Scheduling Value Agreement']}</h2> </div>
                                <div class="col-xs-12">
                                    <table class="table table-bordered table-hover sys_table footable" >
                                        <thead>
                                            <tr>
                                                <th class="col-xs-1">{$_L['Active']}</th>
                                                <th>{$_L['Name']}</th>
                                                 <th>{$_L['Value']}
                                                </th> 
                                            </tr>
                                        </thead>
                                        <tbody>
                                        {if count($agreements) > 0}
                                            {foreach $agreements as $a}
                                                <tr>
                                                    <td><input type="checkbox" {if isset($listProcedureAgreement[$a->id])}checked{/if} class="form-control agreement_check" data-id='{$a->id}' data-name='{$a->agreement_company_name}' name="agreement_{$a->id}" value="Y"></td>
                                                    <td>{$a->agreement_company_name}</td>
                                                    <td> <input type="text" maxlength="20" value="{if isset($listProcedureAgreement[$a->id])}{$listProcedureAgreement[$a->id]['patient_value']}{/if}" {if !isset($listProcedureAgreement[$a->id])}disabled=""{/if} required="" maxlength="7"  name="patient_value_{$a->id}" id="patient_value_{$a->id}" class="form-control amount agreement_check_{$a->id}"></td>
                                                </tr>
                                            {/foreach}
                                        {else}
                                            <tr>
                                                <td colspan="3">
                                                    {$_L['No_Records_Found']}
                                                </td>
                                            </tr>
                                        {/if}
                                        </tbody>
                                    </table>
                                </div>
                        </div>       
                                 
                                

                        <div class="row">

                            <div class="col-md-12 col-sm-12 col-xs-12">
                                <label class="control-label" for="title">
                                    {$_L['Procedure_Preparation']} 
                                </label>
                                <textarea class="form-control" id="notes" name="notes"
                                  rows="3">{$procedure->notes}</textarea>

                            </div>

                        </div>

                        <div class="row" style="margin-top:20px">
                            <div class=" col-md-12 form-group">
                                <div class="col-lg-10">
                                    {if !empty($procedure->id)}
                                        <input type="hidden" id="procedureId" name="id" value="{$procedure->id}">
                                    {/if}
                                    <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}module_events/procedure/listProcedure">{$_L['Or Cancel']}</a>
                                </div>
                            </div>
                        </div>

                    </div>

                </div>

            </div>

        </div>

    </form>

</div>

Anon7 - 2022
AnonSec Team