| 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/marisol/application/plugins/module_teammanagement/assets/js/ |
Upload File : |
<div class="wrapper wrapper-content">
{$title_action = $_L['module_teammanagement Add product']}
{if (!empty($product->id))}
{$title_action = $_L['module_teammanagement Edit product']}
{/if}
<form id="form-product" enctype="multipart/form-data" class="form-horizontal" method="post" >
<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_teammanagement/product/listall"
class="btn btn-xs btn-primary btn-rounded pull-right">
<i class="fa fa-bars"></i> {$_L['module_teammanagement list product']}
</a>
</div>
<div class="ibox-content" id="ibox_form">
<div class="alert alert-danger" id="emsg">
<span id="emsgbody"></span>
</div>
<div class="row top10">
<div class="col-md-12 col-sm-12 col-xs-12">
<label class="col-md-3 text-right col-sm-12 col-xs-12 control-label" for="store_id">
{$_L['Status']} <small class="red">*</small>
</label>
<div class='col-md-9 col-sm-12 col-xs-12'>
<select name="status" id="status" class="form-control " required>
<option value="1" {if $product->status==1}selected{/if}>{$_L['module_teammanagement Enable']}</option>
<option value="0" {if $product->status==0}selected{/if}>{$_L['module_teammanagement Disabled']}</option>
</select>
</div>
</div>
</div>
<div class="row top10">
<div class="col-md-12 col-sm-12 col-xs-12">
<label class="col-md-3 text-right col-sm-12 col-xs-12 control-label" for="">
{$_L['module_teammanagement Validate']} <small class="red">*</small>
</label>
<div class='col-md-9 col-sm-12 col-xs-12'>
<input type="text" name="date" id="date" class="form-control dt" required
value="{if $product->date_end!=null}{date($_c['df'], strtotime($product->date_end))}{/if}" datepicker data-date-format="{$_c['formatDate']}" data-auto-close="true">
</div>
</div>
</div>
<div class="row top10">
<div class="col-md-12 col-sm-12 col-xs-12">
<label class="col-md-3 text-right col-sm-12 col-xs-12 control-label" for="store_id">
{$_L['teammanagement branch']} <small class="red">*</small>
</label>
<div class='col-md-9 col-sm-12 col-xs-12'>
<select name="store_id" id="store_id" class="form-control " required>
<option value="{$product->store_id}">{$product->account_branch}</option>
</select>
</div>
</div>
</div>
<div class="row top10">
<div class="col-md-12 col-sm-12 col-xs-12">
<label class="col-md-3 text-right col-sm-12 col-xs-12 control-label" for="title">
{$_L['Title']} <small class="red">*</small>
</label>
<div class='col-md-9 col-sm-12 col-xs-12'>
<input type="text" name="title" id="title" class="form-control"
value="{$product->title}" required>
</div>
</div>
</div>
<div class="row top10">
<div class="col-md-12 col-sm-12 col-xs-12">
<label class="col-md-3 text-right col-sm-12 col-xs-12 control-label" for="title">
{$_L['Rules']}
</label>
<div class='col-md-9 col-sm-12 col-xs-12'>
<textarea rows="3" name="description" id="description" class="form-control">{$product->description}</textarea>
</div>
</div>
</div>
<div class="row top10">
<div class="col-md-12 col-sm-12 col-xs-12">
<label class="col-md-3 text-right col-sm-12 col-xs-12 control-label" for="title">
{$_L['module_teammanagement initial timing']} <small class="red">*</small>
</label>
<div class='col-md-9 col-sm-12 col-xs-12'>
<input type="text" name="value" id="value" class="form-control"
value="{$product->value}" required>
</div>
</div>
</div>
<div class="row top10">
<div class="col-md-12 col-sm-12 col-xs-12">
<label class="col-md-3 text-right col-sm-12 col-xs-12 control-label" for="title">
{$_L['Image']} <small class="red">*</small>
</label>
<div class='col-md-9 col-sm-12 col-xs-12'>
{if not empty ($product->image)}
<div class="row" id="rowImage">
<div class="col-md-8 col-xs-12">
<img class="img-responsive" src="{APP_URL}/application/plugins/module_teammanagement/uploads/product/{$product->id}/{$product->image}">
</div>
</div>
{/if}
<div id="croppic" class="{if not empty ($product->image)}hide{/if}"></div>
<input type="hidden" id="image" name="image" value="{$product->image}">
<button type="button" id="cropContainerHeaderButton" class="btn btn-info">{$_L['Upload Picture']}</button>
</div>
</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="{$product->id}">
<a class="md-btn md-btn-primary waves-effect waves-light" id="submit">
<i class="fa fa-check"></i> {$_L['Submit']}
</a>
| <a href="{$_url}module_teammanagement/product/listall">{$_L['Or Cancel']}</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>