PageRenderTime 28ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/prestashop/_/cache/smarty/compile/82/8f/1f/828f1fbf18cf566c64d169e200329fa0391b2142.file.modal.tpl.php

https://gitlab.com/A.Julien/sendstockbymail-module-prestashop
PHP | 99 lines | 99 code | 0 blank | 0 comment | 6 complexity | 6188a343e4877da08e52e7fc9f98730b MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:06:36
  2. compiled from "C:\xampp\htdocs\prestashop\prestashop\_\admin\themes\default\template\controllers\customer_threads\helpers\view\modal.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:255957c495cc1e0a67-50873136%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '828f1fbf18cf566c64d169e200329fa0391b2142' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\admin\\themes\\default\\template\\controllers\\customer_threads\\helpers\\view\\modal.tpl',
  10. 1 => 1472500720,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '255957c495cc1e0a67-50873136',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'link' => 0,
  21. 'id_customer_thread' => 0,
  22. 'employees' => 0,
  23. 'employee' => 0,
  24. ),
  25. 'has_nocache_code' => false,
  26. 'version' => 'Smarty-3.1.19',
  27. 'unifunc' => 'content_57c495cc2c5882_02856769',
  28. ),false); /*/%%SmartyHeaderCode%%*/?>
  29. <?php if ($_valid && !is_callable('content_57c495cc2c5882_02856769')) {function content_57c495cc2c5882_02856769($_smarty_tpl) {?>
  30. <form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminCustomerThreads'), ENT_QUOTES, 'UTF-8', true);?>
  31. &amp;viewcustomer_thread&amp;id_customer_thread=<?php echo intval($_smarty_tpl->tpl_vars['id_customer_thread']->value);?>
  32. " method="post" enctype="multipart/form-data" class="form-horizontal">
  33. <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-hidden="true">
  34. <div class="modal-dialog">
  35. <div class="modal-content">
  36. <div class="modal-header">
  37. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
  38. <h4 class="modal-title"><?php echo smartyTranslate(array('s'=>"Forward this discussion"),$_smarty_tpl);?>
  39. </h4>
  40. </div>
  41. <div class="modal-body">
  42. <div class="row row-margin-bottom">
  43. <label class="control-label col-lg-6"><?php echo smartyTranslate(array('s'=>'Forward this discussion to an employee:'),$_smarty_tpl);?>
  44. </label>
  45. <div class="col-lg-3">
  46. <select name="id_employee_forward">
  47. <option value="-1"><?php echo smartyTranslate(array('s'=>'-- Choose --'),$_smarty_tpl);?>
  48. </option>
  49. <?php $_smarty_tpl->tpl_vars['employee'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['employee']->_loop = false;
  50. $_from = $_smarty_tpl->tpl_vars['employees']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  51. foreach ($_from as $_smarty_tpl->tpl_vars['employee']->key => $_smarty_tpl->tpl_vars['employee']->value) {
  52. $_smarty_tpl->tpl_vars['employee']->_loop = true;
  53. ?>
  54. <option value="<?php echo $_smarty_tpl->tpl_vars['employee']->value['id_employee'];?>
  55. "> <?php echo Tools::substr($_smarty_tpl->tpl_vars['employee']->value['firstname'],0,1);?>
  56. . <?php echo $_smarty_tpl->tpl_vars['employee']->value['lastname'];?>
  57. </option>
  58. <?php } ?>
  59. <option value="0"><?php echo smartyTranslate(array('s'=>'Someone else'),$_smarty_tpl);?>
  60. </option>
  61. </select>
  62. </div>
  63. </div>
  64. <div id="message_forward_email" class="row row-margin-bottom" style="display:none">
  65. <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Email'),$_smarty_tpl);?>
  66. </label>
  67. <div class="col-lg-3">
  68. <input type="email" name="email" />
  69. </div>
  70. </div>
  71. <div id="message_forward" style="display:none;">
  72. <div class="row row-margin-bottom">
  73. <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Comment:'),$_smarty_tpl);?>
  74. </label>
  75. <div class="col-lg-7">
  76. <textarea name="message_forward" rows="6"><?php echo smartyTranslate(array('s'=>'You can add a comment here.'),$_smarty_tpl);?>
  77. </textarea>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="modal-footer">
  83. <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo smartyTranslate(array('s'=>"Close"),$_smarty_tpl);?>
  84. </button>
  85. <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);?>
  86. </button>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </form>
  92. <script type="text/javascript">
  93. $("select[name='id_employee_forward']").on('change', function() {
  94. if ($(this).val() != '-1')
  95. $("button[name='submitForward']").prop('disabled', false);
  96. else
  97. $("button[name='submitForward']").prop('disabled', 'disabled');
  98. });
  99. </script><?php }} ?>