PageRenderTime 53ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/market-place/var/cache/templates/backend/d9bd5ee495274cb043160a4e2a756b0badfa021d.tygh.pages_search_form.tpl.php

https://bitbucket.org/behram_b/cs-card-market-place
PHP | 201 lines | 179 code | 22 blank | 0 comment | 38 complexity | e046ccffe2124b1ce430615059b4cf0d MD5 | raw file
Possible License(s): LGPL-2.0, GPL-3.0, Apache-2.0, BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause, LGPL-2.1, MIT
  1. <?php /* Smarty version Smarty-3.1.21, created on 2018-06-03 22:16:07
  2. compiled from "/Applications/XAMPP/xamppfiles/htdocs/E/market-place/design/backend/templates/views/pages/components/pages_search_form.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:7793216395b143e77d92189-59039143%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. 'd9bd5ee495274cb043160a4e2a756b0badfa021d' =>
  8. array (
  9. 0 => '/Applications/XAMPP/xamppfiles/htdocs/E/market-place/design/backend/templates/views/pages/components/pages_search_form.tpl',
  10. 1 => 1525682414,
  11. 2 => 'tygh',
  12. ),
  13. ),
  14. 'nocache_hash' => '7793216395b143e77d92189-59039143',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'in_popup' => 0,
  21. 'form_meta' => 0,
  22. 'put_request_vars' => 0,
  23. 'extra' => 0,
  24. 'search' => 0,
  25. 'page_types' => 0,
  26. 't' => 0,
  27. 'p' => 0,
  28. 'is_exclusive_page_type' => 0,
  29. 'parent_pages' => 0,
  30. 'random_value' => 0,
  31. 'dispatch' => 0,
  32. 'view_type' => 0,
  33. ),
  34. 'has_nocache_code' => false,
  35. 'version' => 'Smarty-3.1.21',
  36. 'unifunc' => 'content_5b143e77df4b63_15134568',
  37. ),false); /*/%%SmartyHeaderCode%%*/?>
  38. <?php if ($_valid && !is_callable('content_5b143e77df4b63_15134568')) {function content_5b143e77df4b63_15134568($_smarty_tpl) {?><?php if (!is_callable('smarty_function_array_to_fields')) include '/Applications/XAMPP/xamppfiles/htdocs/E/market-place/app/functions/smarty_plugins/function.array_to_fields.php';
  39. if (!is_callable('smarty_modifier_truncate')) include '/Applications/XAMPP/xamppfiles/htdocs/E/market-place/app/functions/smarty_plugins/modifier.truncate.php';
  40. if (!is_callable('smarty_function_math')) include '/Applications/XAMPP/xamppfiles/htdocs/E/market-place/app/lib/vendor/smarty/smarty/libs/plugins/function.math.php';
  41. if (!is_callable('smarty_block_hook')) include '/Applications/XAMPP/xamppfiles/htdocs/E/market-place/app/functions/smarty_plugins/block.hook.php';
  42. ?><?php
  43. fn_preload_lang_vars(array('search','find_results_with','type','parent_page','all_pages','all_pages','search_in','page_name','description','subpages','status','active','hidden','disabled'));
  44. ?>
  45. <?php if ($_smarty_tpl->tpl_vars['in_popup']->value) {?>
  46. <div class="adv-search">
  47. <div class="group">
  48. <?php } else { ?>
  49. <div class="sidebar-row">
  50. <h6><?php echo $_smarty_tpl->__("search");?>
  51. </h6>
  52. <?php }?>
  53. <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');?>
  54. " name="pages_search_form" method="get" class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['form_meta']->value, ENT_QUOTES, 'UTF-8');?>
  55. ">
  56. <input type="hidden" name="get_tree" value="" />
  57. <?php if ($_smarty_tpl->tpl_vars['put_request_vars']->value) {?>
  58. <?php echo smarty_function_array_to_fields(array('data'=>$_REQUEST,'skip'=>array("callback")),$_smarty_tpl);?>
  59. <?php }?>
  60. <?php $_smarty_tpl->_capture_stack[0][] = array("simple_search", null, null); ob_start(); ?>
  61. <?php echo $_smarty_tpl->tpl_vars['extra']->value;?>
  62. <div class="sidebar-field">
  63. <label><?php echo $_smarty_tpl->__("find_results_with");?>
  64. </label>
  65. <input type="text" name="q" size="20" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['q'], ENT_QUOTES, 'UTF-8');?>
  66. " />
  67. </div>
  68. <?php if (sizeof($_smarty_tpl->tpl_vars['page_types']->value)>1) {?>
  69. <div class="sidebar-field">
  70. <label><?php echo $_smarty_tpl->__("type");?>
  71. </label>
  72. <select class="small" name="page_type">
  73. <option value="">--</option>
  74. <?php $_smarty_tpl->tpl_vars["p"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["p"]->_loop = false;
  75. $_smarty_tpl->tpl_vars["t"] = new Smarty_Variable;
  76. $_from = $_smarty_tpl->tpl_vars['page_types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  77. foreach ($_from as $_smarty_tpl->tpl_vars["p"]->key => $_smarty_tpl->tpl_vars["p"]->value) {
  78. $_smarty_tpl->tpl_vars["p"]->_loop = true;
  79. $_smarty_tpl->tpl_vars["t"]->value = $_smarty_tpl->tpl_vars["p"]->key;
  80. ?>
  81. <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['t']->value, ENT_QUOTES, 'UTF-8');?>
  82. " <?php if ($_smarty_tpl->tpl_vars['search']->value['page_type']==$_smarty_tpl->tpl_vars['t']->value) {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->__($_smarty_tpl->tpl_vars['p']->value['name']);?>
  83. </option>
  84. <?php } ?>
  85. </select>
  86. </div>
  87. <?php } else { ?>
  88. <?php $_smarty_tpl->tpl_vars["p"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["p"]->_loop = false;
  89. $_smarty_tpl->tpl_vars["t"] = new Smarty_Variable;
  90. $_from = $_smarty_tpl->tpl_vars['page_types']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  91. foreach ($_from as $_smarty_tpl->tpl_vars["p"]->key => $_smarty_tpl->tpl_vars["p"]->value) {
  92. $_smarty_tpl->tpl_vars["p"]->_loop = true;
  93. $_smarty_tpl->tpl_vars["t"]->value = $_smarty_tpl->tpl_vars["p"]->key;
  94. ?>
  95. <input type="hidden" name="page_type" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['t']->value, ENT_QUOTES, 'UTF-8');?>
  96. " />
  97. <?php } ?>
  98. <?php }?>
  99. <div class="sidebar-field">
  100. <label><?php echo $_smarty_tpl->__("parent_page");?>
  101. </label>
  102. <?php if (fn_show_picker("pages",@constant('PAGE_THRESHOLD'))) {?>
  103. <?php if ($_smarty_tpl->tpl_vars['is_exclusive_page_type']->value) {?>
  104. <?php $_smarty_tpl->tpl_vars['extra_url'] = new Smarty_variable("&page_type=".((string)$_smarty_tpl->tpl_vars['search']->value['page_type']), null, 0);?>
  105. <?php }?>
  106. <?php echo $_smarty_tpl->getSubTemplate ("pickers/pages/picker.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('data_id'=>"location_page",'input_name'=>"parent_id",'item_ids'=>$_smarty_tpl->tpl_vars['search']->value['parent_id'],'hide_link'=>true,'hide_delete_button'=>true,'default_name'=>$_smarty_tpl->__("all_pages"),'extra'=>'','no_container'=>true,'prepend'=>true), 0);?>
  107. <?php } else { ?>
  108. <select name="parent_id">
  109. <option value="">- <?php echo $_smarty_tpl->__("all_pages");?>
  110. -</option>
  111. <?php $_smarty_tpl->tpl_vars["p"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["p"]->_loop = false;
  112. $_from = $_smarty_tpl->tpl_vars['parent_pages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  113. foreach ($_from as $_smarty_tpl->tpl_vars["p"]->key => $_smarty_tpl->tpl_vars["p"]->value) {
  114. $_smarty_tpl->tpl_vars["p"]->_loop = true;
  115. ?>
  116. <option value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['p']->value['page_id'], ENT_QUOTES, 'UTF-8');?>
  117. " <?php if ($_smarty_tpl->tpl_vars['search']->value['parent_id']==$_smarty_tpl->tpl_vars['p']->value['page_id']) {?>selected="selected"<?php }?>><?php echo preg_replace('!^!m',str_repeat("&#166;&nbsp;&nbsp;&nbsp;&nbsp;",$_smarty_tpl->tpl_vars['p']->value['level']),smarty_modifier_truncate(htmlspecialchars($_smarty_tpl->tpl_vars['p']->value['page'], ENT_QUOTES, 'UTF-8', true),35,"...",true));?>
  118. </option>
  119. <?php } ?>
  120. </select>
  121. <?php }?>
  122. </div>
  123. <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
  124. if (!empty($_capture_buffer)) {
  125. if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
  126. if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
  127. Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
  128. } else $_smarty_tpl->capture_error();?>
  129. <?php $_smarty_tpl->_capture_stack[0][] = array("advanced_search", null, null); ob_start(); ?>
  130. <div class="group">
  131. <label><?php echo $_smarty_tpl->__("search_in");?>
  132. </label>
  133. <table width="100%">
  134. <tr>
  135. <td class="select-field"><label for="pname" class="checkbox"><input type="checkbox" value="Y" <?php if ($_smarty_tpl->tpl_vars['search']->value['pname']=="Y") {?>checked="checked"<?php }?> name="pname" id="pname"/><?php echo $_smarty_tpl->__("page_name");?>
  136. </label></td>
  137. <td>&nbsp;&nbsp;&nbsp;</td>
  138. <td class="select-field"><label class="checkbox" for="pdescr"><input type="checkbox" value="Y" <?php if ($_smarty_tpl->tpl_vars['search']->value['pdescr']=="Y") {?>checked="checked"<?php }?> name="pdescr" id="pdescr" /><?php echo $_smarty_tpl->__("description");?>
  139. </label></td>
  140. <td>&nbsp;&nbsp;&nbsp;</td>
  141. <td class="select-field"><label class="checkbox" for="subpages"><input type="checkbox" value="Y" <?php if ($_smarty_tpl->tpl_vars['search']->value['subpages']=="Y") {?>checked="checked"<?php }?> name="subpages" id="subpages" /><?php echo $_smarty_tpl->__("subpages");?>
  142. </label></td>
  143. </tr>
  144. </table>
  145. </div>
  146. <div class="group form-horizontal">
  147. <div class="control-group">
  148. <label class="control-label"><?php echo $_smarty_tpl->__("status");?>
  149. </label>
  150. <div class="controls">
  151. <select name="status">
  152. <option value="">--</option>
  153. <option value="A" <?php if ($_smarty_tpl->tpl_vars['search']->value['status']=="A") {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->__("active");?>
  154. </option>
  155. <option value="H" <?php if ($_smarty_tpl->tpl_vars['search']->value['status']=="H") {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->__("hidden");?>
  156. </option>
  157. <option value="D" <?php if ($_smarty_tpl->tpl_vars['search']->value['status']=="D") {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->__("disabled");?>
  158. </option>
  159. </select>
  160. </div>
  161. </div>
  162. <?php echo smarty_function_math(array('equation'=>"rand()",'assign'=>"random_value"),$_smarty_tpl);?>
  163. <?php echo $_smarty_tpl->getSubTemplate ("common/select_vendor.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id'=>"company_id_".((string)$_smarty_tpl->tpl_vars['random_value']->value)), 0);?>
  164. <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name'=>"pages:search_form")); $_block_repeat=true; echo smarty_block_hook(array('name'=>"pages:search_form"), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
  165. <?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_hook(array('name'=>"pages:search_form"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
  166. </div>
  167. <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
  168. if (!empty($_capture_buffer)) {
  169. if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
  170. if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
  171. Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
  172. } else $_smarty_tpl->capture_error();?>
  173. <?php echo $_smarty_tpl->getSubTemplate ("common/advanced_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('simple_search'=>Smarty::$_smarty_vars['capture']['simple_search'],'advanced_search'=>Smarty::$_smarty_vars['capture']['advanced_search'],'dispatch'=>$_smarty_tpl->tpl_vars['dispatch']->value,'view_type'=>$_smarty_tpl->tpl_vars['view_type']->value,'in_popup'=>$_smarty_tpl->tpl_vars['in_popup']->value), 0);?>
  174. </form>
  175. <?php if ($_smarty_tpl->tpl_vars['in_popup']->value) {?>
  176. </div></div>
  177. <?php } else { ?>
  178. </div><hr>
  179. <?php }?><?php }} ?>