| 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/regional/application/plugins/module_cms/views/poll/ |
Upload File : |
<div class="panel panel-default">
<div class="panel-body">
{$action = 'create'}
{if (!empty($poll))}
{$action = 'update'}
{/if}
<form class="form-horizontal" method="post" action="{$_url}module_cms/poll/{$action}/">
<div class="row">
<div class=" col-md-4 col-sm-12 col-xs-12">
{$title = ''}
{if (!empty($poll->title))}
{$title = $poll->title}
{/if}
<label class="control-label" for="title">{$_L['CMS_Article_Title']}<small class="red">*</small> </label>
<input type="text" id="title" value="{$title}" name="title" class="form-control" maxlength="255">
</div>
<div class=" col-md-2 col-sm-12 col-xs-12">
<label class="control-label" for="status">{$_L['Status']}</label>
{$checked = ''}
{if (!empty($poll->status))}
{$checked = 'checked'}
{/if}
<input class="form-control" type="checkbox" name="status" id="status" {$checked} data-toggle="toggle" data-size="small" data-on="{$_L['Active']}" data-off="{$_L['Inactive']}">
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-11 append-poll">
{$polls = ''}
{if (!empty($poll->polls))}
{$polls = json_decode($poll->polls, true)}
{/if}
<label class="control-label">{$_L['CMS_Poll_Polls']}</label>
{if (is_array($polls) && count($polls) > 0)}
{foreach $polls as $k => $p}
{$icon = 'fa-trash'}
{$style = "style=\"margin-top: 20px\""}
{$btnClass = 'md-btn-danger remove-poll'}
{$borderColor = '#e94033'}
{if $k == 0}
{$icon = 'fa-plus'}
{$style = ""}
{$btnClass = 'md-btn-success add-poll'}
{$borderColor = '#4ea69b'}
{/if}
<div class="input-group" {$style}>
<input type="text" value="{$p['poll']}" name="polls[][poll]" class="form-control polls">
<span class="input-group-addon after waves-dark {$btnClass}" style="border: 1px solid {$borderColor}"><i class="fa {$icon}"></i></span>
</div>
{/foreach}
{else}
<div class="input-group">
<input type="text" value="{$polls}" name="polls[][poll]" class="form-control polls">
<span class="input-group-addon after waves-dark md-btn-success add-poll" style="border: 1px solid #4ea69b"><i class="fa fa-plus"></i></span>
</div>
{/if}
</div>
</div>
<div class="row" style="margin-top:20px">
<div class=" col-md-12 form-group">
<div class="col-md-offset-2 col-lg-10">
{if !empty($poll->id)}
<input type="hidden" id="articleId" name="id" value="{$poll->id}">
{/if}
<button class="md-btn md-btn-primary waves-effect waves-light" type="submit" id="submit">
<i class="fa fa-check"></i> Save
</button>
</div>
</div>
</div>
</form>
</div>
</div>