PageRenderTime 26ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/smarty/compile/34a8cbaa7ed539cf4d7b5a75164294c741936e56.file.contact-form.tpl.php

http://marocmall.googlecode.com/
PHP | 169 lines | 168 code | 1 blank | 0 comment | 25 complexity | def579343ed4ba65e2147dab93136732 MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php /* Smarty version Smarty-3.0.7, created on 2011-12-27 16:35:40
  2. compiled from "C:\D\prestashoplf\prestashop/themes/ling/contact-form.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:184624ef9f3dca28073-70998277%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '34a8cbaa7ed539cf4d7b5a75164294c741936e56' =>
  8. array (
  9. 0 => 'C:\\D\\prestashoplf\\prestashop/themes/ling/contact-form.tpl',
  10. 1 => 1302537486,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '184624ef9f3dca28073-70998277',
  15. 'function' =>
  16. array (
  17. ),
  18. 'has_nocache_code' => false,
  19. )); /*/%%SmartyHeaderCode%%*/?>
  20. <?php if (!is_callable('smarty_modifier_escape')) include 'C:\D\prestashoplf\prestashop\tools\smarty\plugins\modifier.escape.php';
  21. ?><?php ob_start(); ?><?php echo smartyTranslate(array('s'=>'Contact'),$_smarty_tpl);?>
  22. <?php Smarty::$_smarty_vars['capture']['path']=ob_get_clean();?>
  23. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./breadcrumb.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  24. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  25. <h1><?php echo smartyTranslate(array('s'=>'Customer Service'),$_smarty_tpl);?>
  26. - <?php if (isset($_smarty_tpl->getVariable('customerThread',null,true,false)->value)&&$_smarty_tpl->getVariable('customerThread')->value){?><?php echo smartyTranslate(array('s'=>'Your reply'),$_smarty_tpl);?>
  27. <?php }else{ ?><?php echo smartyTranslate(array('s'=>'Contact us'),$_smarty_tpl);?>
  28. <?php }?></h1>
  29. <?php if (isset($_smarty_tpl->getVariable('confirmation',null,true,false)->value)){?>
  30. <p><?php echo smartyTranslate(array('s'=>'Your message has been successfully sent to our team.'),$_smarty_tpl);?>
  31. </p>
  32. <ul class="footer_links">
  33. <li><a href="<?php echo $_smarty_tpl->getVariable('base_dir')->value;?>
  34. "><img class="icon" alt="" src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
  35. icon/home.png"/></a><a href="<?php echo $_smarty_tpl->getVariable('base_dir')->value;?>
  36. "><?php echo smartyTranslate(array('s'=>'Home'),$_smarty_tpl);?>
  37. </a></li>
  38. </ul>
  39. <?php }elseif(isset($_smarty_tpl->getVariable('alreadySent',null,true,false)->value)){?>
  40. <p><?php echo smartyTranslate(array('s'=>'Your message has already been sent.'),$_smarty_tpl);?>
  41. </p>
  42. <ul class="footer_links">
  43. <li><a href="<?php echo $_smarty_tpl->getVariable('base_dir')->value;?>
  44. "><img class="icon" alt="" src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
  45. icon/home.png"/></a><a href="<?php echo $_smarty_tpl->getVariable('base_dir')->value;?>
  46. "><?php echo smartyTranslate(array('s'=>'Home'),$_smarty_tpl);?>
  47. </a></li>
  48. </ul>
  49. <?php }else{ ?>
  50. <p class="bold"><?php echo smartyTranslate(array('s'=>'For questions about an order or for more information about our products'),$_smarty_tpl);?>
  51. .</p>
  52. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./errors.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  53. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  54. <form action="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('request_uri')->value,'htmlall','UTF-8');?>
  55. " method="post" class="std" enctype="multipart/form-data">
  56. <fieldset>
  57. <h3><?php echo smartyTranslate(array('s'=>'Send a message'),$_smarty_tpl);?>
  58. </h3>
  59. <p class="select">
  60. <label for="id_contact"><?php echo smartyTranslate(array('s'=>'Subject Heading'),$_smarty_tpl);?>
  61. </label>
  62. <?php if (isset($_smarty_tpl->getVariable('customerThread',null,true,false)->value['id_contact'])){?>
  63. <?php $_smarty_tpl->tpl_vars['contact'] = new Smarty_Variable;
  64. $_from = $_smarty_tpl->getVariable('contacts')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  65. if ($_smarty_tpl->_count($_from) > 0){
  66. foreach ($_from as $_smarty_tpl->tpl_vars['contact']->key => $_smarty_tpl->tpl_vars['contact']->value){
  67. ?>
  68. <?php if ($_smarty_tpl->tpl_vars['contact']->value['id_contact']==$_smarty_tpl->getVariable('customerThread')->value['id_contact']){?>
  69. <input type="text" id="contact_name" name="contact_name" value="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['contact']->value['name'],'htmlall','UTF-8');?>
  70. " readonly="readonly" />
  71. <input type="hidden" name="id_contact" value="<?php echo $_smarty_tpl->tpl_vars['contact']->value['id_contact'];?>
  72. " />
  73. <?php }?>
  74. <?php }} ?>
  75. </p>
  76. <?php }else{ ?>
  77. <select id="id_contact" name="id_contact" onchange="showElemFromSelect('id_contact', 'desc_contact')">
  78. <option value="0"><?php echo smartyTranslate(array('s'=>'-- Choose --'),$_smarty_tpl);?>
  79. </option>
  80. <?php $_smarty_tpl->tpl_vars['contact'] = new Smarty_Variable;
  81. $_from = $_smarty_tpl->getVariable('contacts')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  82. if ($_smarty_tpl->_count($_from) > 0){
  83. foreach ($_from as $_smarty_tpl->tpl_vars['contact']->key => $_smarty_tpl->tpl_vars['contact']->value){
  84. ?>
  85. <option value="<?php echo intval($_smarty_tpl->tpl_vars['contact']->value['id_contact']);?>
  86. " <?php if (isset($_POST['id_contact'])&&$_POST['id_contact']==$_smarty_tpl->tpl_vars['contact']->value['id_contact']){?>selected="selected"<?php }?>><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['contact']->value['name'],'htmlall','UTF-8');?>
  87. </option>
  88. <?php }} ?>
  89. </select>
  90. </p>
  91. <p id="desc_contact0" class="desc_contact">&nbsp;</p>
  92. <?php $_smarty_tpl->tpl_vars['contact'] = new Smarty_Variable;
  93. $_from = $_smarty_tpl->getVariable('contacts')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  94. if ($_smarty_tpl->_count($_from) > 0){
  95. foreach ($_from as $_smarty_tpl->tpl_vars['contact']->key => $_smarty_tpl->tpl_vars['contact']->value){
  96. ?>
  97. <p id="desc_contact<?php echo intval($_smarty_tpl->tpl_vars['contact']->value['id_contact']);?>
  98. " class="desc_contact" style="display:none;">
  99. <?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['contact']->value['description'],'htmlall','UTF-8');?>
  100. </p>
  101. <?php }} ?>
  102. <?php }?>
  103. <p class="text">
  104. <label for="email"><?php echo smartyTranslate(array('s'=>'E-mail address'),$_smarty_tpl);?>
  105. </label>
  106. <?php if (isset($_smarty_tpl->getVariable('customerThread',null,true,false)->value['email'])){?>
  107. <input type="text" id="email" name="from" value="<?php echo $_smarty_tpl->getVariable('customerThread')->value['email'];?>
  108. " readonly="readonly" />
  109. <?php }else{ ?>
  110. <input type="text" id="email" name="from" value="<?php echo $_smarty_tpl->getVariable('email')->value;?>
  111. " />
  112. <?php }?>
  113. </p>
  114. <?php if (!$_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?>
  115. <?php if ((!isset($_smarty_tpl->getVariable('customerThread',null,true,false)->value['id_order'])||$_smarty_tpl->getVariable('customerThread')->value['id_order']>0)){?>
  116. <p class="text">
  117. <label for="id_order"><?php echo smartyTranslate(array('s'=>'Order ID'),$_smarty_tpl);?>
  118. </label>
  119. <?php if (!isset($_smarty_tpl->getVariable('customerThread',null,true,false)->value['id_order'])&&isset($_smarty_tpl->getVariable('isLogged',null,true,false)->value)&&$_smarty_tpl->getVariable('isLogged')->value==1){?>
  120. <select name="id_order" ><option value="0"><?php echo smartyTranslate(array('s'=>'-- Choose --'),$_smarty_tpl);?>
  121. </option><?php echo $_smarty_tpl->getVariable('orderList')->value;?>
  122. </select>
  123. <?php }elseif(!isset($_smarty_tpl->getVariable('customerThread',null,true,false)->value['id_order'])&&!isset($_smarty_tpl->getVariable('isLogged',null,true,false)->value)){?>
  124. <input type="text" name="id_order" id="id_order" value="<?php if (isset($_smarty_tpl->getVariable('customerThread',null,true,false)->value['id_order'])&&$_smarty_tpl->getVariable('customerThread')->value['id_order']>0){?><?php echo intval($_smarty_tpl->getVariable('customerThread')->value['id_order']);?>
  125. <?php }else{ ?><?php if (isset($_POST['id_order'])){?><?php echo intval($_POST['id_order']);?>
  126. <?php }?><?php }?>" />
  127. <?php }elseif($_smarty_tpl->getVariable('customerThread')->value['id_order']>0){?>
  128. <input type="text" name="id_order" id="id_order" value="<?php echo intval($_smarty_tpl->getVariable('customerThread')->value['id_order']);?>
  129. " readonly="readonly" />
  130. <?php }?>
  131. </p>
  132. <?php }?>
  133. <?php if (isset($_smarty_tpl->getVariable('isLogged',null,true,false)->value)&&$_smarty_tpl->getVariable('isLogged')->value){?>
  134. <p class="text">
  135. <label for="id_product"><?php echo smartyTranslate(array('s'=>'Product'),$_smarty_tpl);?>
  136. </label>
  137. <?php if (!isset($_smarty_tpl->getVariable('customerThread',null,true,false)->value['id_product'])){?>
  138. <select name="id_product"><option value="0"><?php echo smartyTranslate(array('s'=>'-- Choose --'),$_smarty_tpl);?>
  139. </option><?php echo $_smarty_tpl->getVariable('orderedProductList')->value;?>
  140. </select>
  141. <?php }elseif($_smarty_tpl->getVariable('customerThread')->value['id_product']>0){?>
  142. <input type="text" name="id_product" id="id_product" value="<?php echo intval($_smarty_tpl->getVariable('customerThread')->value['id_product']);?>
  143. " readonly="readonly" />
  144. <?php }?>
  145. </p>
  146. <?php }?>
  147. <?php }?>
  148. <?php if ($_smarty_tpl->getVariable('fileupload')->value==1){?>
  149. <p class="text file_input">
  150. <label for="fileUpload"><?php echo smartyTranslate(array('s'=>'Attach File'),$_smarty_tpl);?>
  151. </label>
  152. <input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
  153. <input type="file" name="fileUpload" id="fileUpload" />
  154. </p>
  155. <?php }?>
  156. <p class="textarea">
  157. <label for="message"><?php echo smartyTranslate(array('s'=>'Message'),$_smarty_tpl);?>
  158. </label>
  159. <textarea id="message" name="message" rows="15" cols="20"><?php if (isset($_smarty_tpl->getVariable('message',null,true,false)->value)){?><?php echo stripslashes(smarty_modifier_escape($_smarty_tpl->getVariable('message')->value,'htmlall','UTF-8'));?>
  160. <?php }?></textarea>
  161. </p>
  162. <p class="submit">
  163. <input type="submit" name="submitMessage" id="submitMessage" value="<?php echo smartyTranslate(array('s'=>'Send'),$_smarty_tpl);?>
  164. " class="button_large" />
  165. </p>
  166. </fieldset>
  167. </form>
  168. <?php }?>