/prestashop/_/cache/smarty/compile/82/8f/1f/828f1fbf18cf566c64d169e200329fa0391b2142.file.modal.tpl.php
PHP | 99 lines | 99 code | 0 blank | 0 comment | 6 complexity | 6188a343e4877da08e52e7fc9f98730b MD5 | raw file
- <?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:06:36
- compiled from "C:\xampp\htdocs\prestashop\prestashop\_\admin\themes\default\template\controllers\customer_threads\helpers\view\modal.tpl" */ ?>
- <?php /*%%SmartyHeaderCode:255957c495cc1e0a67-50873136%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
- $_valid = $_smarty_tpl->decodeProperties(array (
- 'file_dependency' =>
- array (
- '828f1fbf18cf566c64d169e200329fa0391b2142' =>
- array (
- 0 => 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\admin\\themes\\default\\template\\controllers\\customer_threads\\helpers\\view\\modal.tpl',
- 1 => 1472500720,
- 2 => 'file',
- ),
- ),
- 'nocache_hash' => '255957c495cc1e0a67-50873136',
- 'function' =>
- array (
- ),
- 'variables' =>
- array (
- 'link' => 0,
- 'id_customer_thread' => 0,
- 'employees' => 0,
- 'employee' => 0,
- ),
- 'has_nocache_code' => false,
- 'version' => 'Smarty-3.1.19',
- 'unifunc' => 'content_57c495cc2c5882_02856769',
- ),false); /*/%%SmartyHeaderCode%%*/?>
- <?php if ($_valid && !is_callable('content_57c495cc2c5882_02856769')) {function content_57c495cc2c5882_02856769($_smarty_tpl) {?>
- <form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminCustomerThreads'), ENT_QUOTES, 'UTF-8', true);?>
- &viewcustomer_thread&id_customer_thread=<?php echo intval($_smarty_tpl->tpl_vars['id_customer_thread']->value);?>
- " method="post" enctype="multipart/form-data" class="form-horizontal">
- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
- <h4 class="modal-title"><?php echo smartyTranslate(array('s'=>"Forward this discussion"),$_smarty_tpl);?>
- </h4>
- </div>
- <div class="modal-body">
- <div class="row row-margin-bottom">
- <label class="control-label col-lg-6"><?php echo smartyTranslate(array('s'=>'Forward this discussion to an employee:'),$_smarty_tpl);?>
- </label>
- <div class="col-lg-3">
- <select name="id_employee_forward">
- <option value="-1"><?php echo smartyTranslate(array('s'=>'-- Choose --'),$_smarty_tpl);?>
- </option>
- <?php $_smarty_tpl->tpl_vars['employee'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['employee']->_loop = false;
- $_from = $_smarty_tpl->tpl_vars['employees']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
- foreach ($_from as $_smarty_tpl->tpl_vars['employee']->key => $_smarty_tpl->tpl_vars['employee']->value) {
- $_smarty_tpl->tpl_vars['employee']->_loop = true;
- ?>
- <option value="<?php echo $_smarty_tpl->tpl_vars['employee']->value['id_employee'];?>
- "> <?php echo Tools::substr($_smarty_tpl->tpl_vars['employee']->value['firstname'],0,1);?>
- . <?php echo $_smarty_tpl->tpl_vars['employee']->value['lastname'];?>
- </option>
- <?php } ?>
- <option value="0"><?php echo smartyTranslate(array('s'=>'Someone else'),$_smarty_tpl);?>
- </option>
- </select>
- </div>
- </div>
- <div id="message_forward_email" class="row row-margin-bottom" style="display:none">
- <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Email'),$_smarty_tpl);?>
- </label>
- <div class="col-lg-3">
- <input type="email" name="email" />
- </div>
- </div>
- <div id="message_forward" style="display:none;">
- <div class="row row-margin-bottom">
- <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Comment:'),$_smarty_tpl);?>
- </label>
- <div class="col-lg-7">
- <textarea name="message_forward" rows="6"><?php echo smartyTranslate(array('s'=>'You can add a comment here.'),$_smarty_tpl);?>
- </textarea>
- </div>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo smartyTranslate(array('s'=>"Close"),$_smarty_tpl);?>
- </button>
- <button type="submit" class="btn btn-primary" name="submitForward" disabled="disabled"><i class="icon-mail-forward"></i> <?php echo smartyTranslate(array('s'=>"Forward"),$_smarty_tpl);?>
- </button>
- </div>
- </div>
- </div>
- </div>
- </form>
- <script type="text/javascript">
- $("select[name='id_employee_forward']").on('change', function() {
- if ($(this).val() != '-1')
- $("button[name='submitForward']").prop('disabled', false);
- else
- $("button[name='submitForward']").prop('disabled', 'disabled');
- });
- </script><?php }} ?>