AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.103
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/gasch/application/plugins/module_forms/views/forms/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/gasch/application/plugins/module_forms/views/forms/add.tpl
<div class="panel panel-default">

    {if isset($form) && !empty($form->id)}
        {assign var='action' value='update'}
    {else}
        {assign var='action' value='create'}
    {/if}

    <div class="panel-heading">
        <h4>{$_L['module_forms_new_form']}</h4>
    </div>

    <div class="panel-body">

        <ul class="nav nav-tabs">
            <li class="active">
                <a href="#forms-tab" data-toggle="tab">{$_L['module_form']}</a>
            </li>

            <li class="{if $action == 'create'}hide{/if}">
                <a href="#questions-tab" data-toggle="tab">{$_L['Question']}s</a>
            </li>
        </ul>

        <div class="tab-content" id="form-tabs">

            <div class="tab-pane fade in active" id="forms-tab" role="tabpanel">

                <br>
                <form class="form-horizontal" name="form-add" method="post" action="{$_url}module_forms/forms/{$action}">
					{if isset($form) && !empty($form->id)}
                        <input type="hidden" name="id" value="{$form->id}">
					{/if}

                    <div class="row">
                        <div class="col-md-6 col-sm-12 col-xs-12">
                            <label for="title" class="control-label">{$_L['Title']} <span class="red">*</span> </label>
                            <input type="text" id="title" name="title" class="form-control"
                                   value="{if isset($form) && !empty($form->title)}{$form->title}{/if}" required>
                        </div>

                        <div class="row">
                            <div class="col-md-6 col-sm-12 col-xs-12">
                                <label for="email_notify" class="control-label">{$_L['module_forms_email_notify']} </label>
                                <input type="email" id="email_notify" name="email_notify" class="form-control"
                                       value="{if isset($form) && !empty($form->email_notify)}{$form->email_notify}{/if}"
                                       placeholder="Ex: email1@test.com;email2@test.com">
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-6 col-sm-12">
                            <label for="description" class="control-label">{$_L['Description']} </label>
                            <textarea name="description" id="description" cols="30" rows="3" class="form-control">{if isset($form) && !empty($form->description)}{$form->description}{/if}</textarea>
                        </div>

                        <div class="row">
                            <div class="col-md-6 col-sm-12 col-xs-12">
                                <label for="confirmation_text" class="control-label">{$_L['module_forms_confirmation_text']} </label>
                                <textarea name="confirmation_text" id="confirmation_text" cols="30" rows="5" class="form-control">{if isset($form) && !empty($form->confirmation_text)}{$form->confirmation_text}{/if}</textarea>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-3 col-sm-6 col-xs-12">
                            <label for="status">Status </label>
                            <div class="radio">
                                <label>
                                    <input type="radio" id="status_a" name="status" value="ativo"
										   {if !isset($form->status) || $form->status == '1' || is_null($form->status)}checked="checked"{/if}> {$_L['Active']}
                                </label>
                                <label style="display: inline-block; margin-left: 30px;">
                                    <input type="radio" id="status_i" name="status" value="inativo" {if isset($form->status) && $form->status == 0}checked="checked"{/if}> {$_L['Inactive']}
                                </label>
                            </div>
                        </div>

                        <div class="col-md-3 col-sm-6">
                            <label for="api_yes">{$_L['module_forms_linked_to_api']}? </label>
                            <div class="radio">
                                <label>
                                    <input type="radio" id="api_yes" name="api" value="sim"
										   {if isset($form) && !is_null($form->webservice_id)}checked="checked"{/if}> {$_L['Yes']}
                                </label>
                                <label style="display: inline-block; margin-left: 30px;">
                                    <input type="radio" id="api_no" name="api" value="nao"
										   {if isset($form)}{if is_null($form->webservice_id) || !$form->webservice_id}checked="checked"{/if}{else}checked="checked"{/if}> {$_L['No']}
                                </label>
                            </div>
                        </div>

                        <div class="col-md-6 col-sm-12 hide">
                            <label class="control-label">Webservice <span class="red">*</span> </label>
                            <select name="webservice_id" id="webservice_id" class="form-control select2" style="width: 100%">
								{foreach $webservices as $item}
                                    <option value="{$item->id}" {if $item->id == $form->webservice_id}selected="selected"{/if}>{$item->title}</option>
								{/foreach}
                            </select>
                        </div>
                    </div>

                    <div class="row" style="margin-top: 20px;">
                        <div class="col-md-12 form-group">
                            <div class="col-md-offset-0 col-lg-10">
                                <button class="md-btn md-btn-primary" type="submit" id="submit">
                                    <i class="fa fa-check"></i> {$_L['Save']}
                                </button>

                                <a href="{$_url}module_forms/forms/listForms" class="btn btn-danger" style="margin-left: 10px;">
                                    <i class="fa fa-ban"></i> {$_L['Cancel']}
                                </a>
                            </div>
                        </div>
                    </div>
                </form>

            </div>

            <div class="tab-pane fade {if $action == 'create'}hide{/if}" id="questions-tab" role="tabpanel">
                <br>

                <div class="row">

                    <div class="col-md-2">
                        <div class="row">
                            {foreach $types as $type}
                                <div class="col-sm-12 col-md-12 question-type">
                                    <a class="btn-question-type" href="{$type['id']}">{$_L["{$type['name']}"]}</a>
                                </div>
                            {/foreach}
                        </div>
                    </div>

                    <div class="col-md-10">
                        <table id="table-questions" class="table table-striped table-hover">
                            <thead>
                                <tr>
                                    <td>#</td>
                                    <td>{$_L['Question']}</td>
                                    <td>{$_L['Manage']}</td>
                                </tr>
                            </thead>

                            <tbody class="sortable">
                                {foreach $questions as $idx => $item}
                                    <tr id="recordsArray_{$item->id}" class="level-1"
                                        data-question_id="{$item->id}"
                                        data-sorder="{$item->sorder}">

                                        <td class="col-md-1">{$item->sorder}</td>
                                        <td {if $item->has_child}colspan="2" {/if}>
                                            {$item->question}
                                            {if $item->type_id == 20}
                                                <table class="table table-condensed table-striped table-hover">
                                                    <tbody class="sortable">
                                                        <tr class="fixed">
                                                            <td colspan="3">
                                                                <i class="fa fa-arrows" style="margin-right: 10px;">
                                                                </i> {$_L['Drag questions to this area']}
                                                            </td>
                                                        </tr>
                                                        {foreach $child_questions as $child}
                                                            {if $item->id == $child->parent_id}
                                                                <tr id="recordsArray_{$child->id}" class="level-0"
                                                                    data-question_id="{$child->id}"
                                                                    data-sorder="{$child->sorder}">

                                                                    <td class="col-md-1">{$child->sorder}</td>
                                                                    <td>{$child->question}</td>
                                                                    <td class="col-md-3">
                                                                        <a class="btn btn-info btn-xs btn-jump-logic" data-question="{$child->id}"
                                                                           title="{$_L['module_forms_logic_jump']}" data-toggle="tooltip" href="#">
                                                                            <i class="fa fa-reply"></i>
                                                                        </a>
                                                                        <a class="btn btn-danger btn-xs btn-remove-question"
                                                                           title="{$_L['Remove']}" data-toggle="tooltip"
                                                                           href="{$_url}module_forms/questions/delete/{$child->id}">
                                                                            <i class="fa fa-trash"></i> {$_L['Remove']}
                                                                        </a>
                                                                    </td>
                                                                </tr>
															{/if}
                                                        {/foreach}
                                                    </tbody>
                                                </table>
                                            {/if}
                                        </td>
                                        <td class="col-md-2 {if $item->has_child}hide{/if}">
                                            <a class="btn btn-info btn-xs btn-logic-jump" title="{$_L['module_forms_logic_jump']}"
                                               data-question="{$item->id}" data-toggle="tooltip" href="#"> <i class="fa fa-reply"></i>
                                            </a>
                                            <a class="btn btn-danger btn-xs btn-remove-question" title="{$_L['Remove']}"
                                                data-toggle="tooltip" href="{$_url}module_forms/questions/delete/{$item->id}">
                                                <i class="fa fa-trash"></i> {$_L['Remove']}
                                            </a>
                                        </td>
                                    </tr>
                                {/foreach}
                            </tbody>
                        </table>
                    </div>

                </div>

            </div>

        </div>

    </div>
</div>

Anon7 - 2022
AnonSec Team