PageRenderTime 31ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/cache/smarty/templates_c/%%3B^3BA^3BABD3B3%%EditView.tpl.php

https://github.com/joshbhamilton/sugar
PHP | 106 lines | 69 code | 3 blank | 34 comment | 13 complexity | d359bf41767e81d24a0ef72674bc728c MD5 | raw file
  1. <?php /* Smarty version 2.6.11, created on 2011-09-01 14:19:20
  2. compiled from include/SugarFields/Fields/Relate/EditView.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'sugarvar', 'include/SugarFields/Fields/Relate/EditView.tpl', 38, false),)), $this); ?>
  5. {*
  6. /*********************************************************************************
  7. * SugarCRM Community Edition is a customer relationship management program developed by
  8. * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
  9. *
  10. * This program is free software; you can redistribute it and/or modify it under
  11. * the terms of the GNU Affero General Public License version 3 as published by the
  12. * Free Software Foundation with the addition of the following permission added
  13. * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
  14. * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
  15. * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
  16. *
  17. * This program is distributed in the hope that it will be useful, but WITHOUT
  18. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  19. * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
  20. * details.
  21. *
  22. * You should have received a copy of the GNU Affero General Public License along with
  23. * this program; if not, see http://www.gnu.org/licenses or write to the Free
  24. * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  25. * 02110-1301 USA.
  26. *
  27. * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
  28. * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
  29. *
  30. * The interactive user interfaces in modified source and object code versions
  31. * of this program must display Appropriate Legal Notices, as required under
  32. * Section 5 of the GNU Affero General Public License version 3.
  33. *
  34. * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
  35. * these Appropriate Legal Notices must retain the display of the "Powered by
  36. * SugarCRM" logo. If the display of the logo is not reasonably feasible for
  37. * technical reasons, the Appropriate Legal Notices must display the words
  38. * "Powered by SugarCRM".
  39. ********************************************************************************/
  40. *}
  41. <?php ob_start(); echo smarty_function_sugarvar(array('key' => 'name'), $this); $this->_smarty_vars['capture']['idname'] = ob_get_contents(); $this->assign('idname', ob_get_contents());ob_end_clean(); if (! empty ( $this->_tpl_vars['displayParams']['idName'] )): ?>
  42. <?php $this->assign('idname', $this->_tpl_vars['displayParams']['idName']); endif; ?>
  43. <input type="text" name="<?php echo $this->_tpl_vars['idname']; ?>
  44. " class=<?php if (empty ( $this->_tpl_vars['displayParams']['class'] )): ?>"sqsEnabled"<?php else: ?> "<?php echo $this->_tpl_vars['displayParams']['class']; ?>
  45. " <?php endif; ?> tabindex="<?php echo $this->_tpl_vars['tabindex']; ?>
  46. " id="<?php echo $this->_tpl_vars['idname']; ?>
  47. " size="<?php echo $this->_tpl_vars['displayParams']['size']; ?>
  48. " value="<?php echo smarty_function_sugarvar(array('key' => 'value'), $this);?>
  49. " title='<?php echo $this->_tpl_vars['vardef']['help']; ?>
  50. ' autocomplete="off" <?php echo $this->_tpl_vars['displayParams']['readOnly']; ?>
  51. <?php echo $this->_tpl_vars['displayParams']['field']; ?>
  52. >
  53. <input type="hidden" name="<?php if (! empty ( $this->_tpl_vars['displayParams']['idName'] )): echo $this->_tpl_vars['idname']; ?>
  54. _<?php endif; echo smarty_function_sugarvar(array('key' => 'id_name'), $this);?>
  55. "
  56. id="<?php if (! empty ( $this->_tpl_vars['displayParams']['idName'] )): echo $this->_tpl_vars['idname']; ?>
  57. _<?php endif; echo smarty_function_sugarvar(array('key' => 'id_name'), $this);?>
  58. "
  59. <?php if (! empty ( $this->_tpl_vars['vardef']['id_name'] )): ?>value="<?php echo smarty_function_sugarvar(array('memberName' => 'vardef.id_name','key' => 'value'), $this);?>
  60. "<?php endif; ?>>
  61. <?php if (empty ( $this->_tpl_vars['displayParams']['hideButtons'] )): ?>
  62. <span class="id-ff multiple">
  63. <button type="button" name="btn_<?php echo $this->_tpl_vars['idname']; ?>
  64. " id="btn_<?php echo $this->_tpl_vars['idname']; ?>
  65. " tabindex="<?php echo $this->_tpl_vars['tabindex']; ?>
  66. " title="{$APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{$APP.LBL_SELECT_BUTTON_KEY}" class="button firstChild" value="{$APP.LBL_SELECT_BUTTON_LABEL}"
  67. onclick='open_popup(
  68. "<?php echo smarty_function_sugarvar(array('key' => 'module'), $this);?>
  69. ",
  70. 600,
  71. 400,
  72. "<?php echo $this->_tpl_vars['displayParams']['initial_filter']; ?>
  73. ",
  74. true,
  75. false,
  76. <?php echo $this->_tpl_vars['displayParams']['popupData']; ?>
  77. ,
  78. "single",
  79. true
  80. );' <?php if (isset ( $this->_tpl_vars['displayParams']['javascript']['btn'] )): echo $this->_tpl_vars['displayParams']['javascript']['btn']; endif; ?>><img src="{sugar_getimagepath file="id-ff-select.png"}"></button><?php if (empty ( $this->_tpl_vars['displayParams']['selectOnly'] )): ?><button type="button" name="btn_clr_<?php echo $this->_tpl_vars['idname']; ?>
  81. " id="btn_clr_<?php echo $this->_tpl_vars['idname']; ?>
  82. " tabindex="<?php echo $this->_tpl_vars['tabindex']; ?>
  83. " title="{$APP.LBL_CLEAR_BUTTON_TITLE}" accessKey="{$APP.LBL_CLEAR_BUTTON_KEY}" class="button lastChild"
  84. onclick="this.form.<?php echo $this->_tpl_vars['idname']; ?>
  85. .value = ''; this.form.<?php if (! empty ( $this->_tpl_vars['displayParams']['idName'] )): echo $this->_tpl_vars['displayParams']['idName']; ?>
  86. _<?php endif; echo smarty_function_sugarvar(array('key' => 'id_name'), $this);?>
  87. .value = '';"
  88. value="{$APP.LBL_CLEAR_BUTTON_LABEL}" <?php if (isset ( $this->_tpl_vars['displayParams']['javascript']['btn_clear'] )): echo $this->_tpl_vars['displayParams']['javascript']['btn_clear']; endif; ?>><img src="{sugar_getimagepath file="id-ff-clear.png"}"></button>
  89. <?php endif; ?>
  90. </span>
  91. <?php endif; if (! empty ( $this->_tpl_vars['displayParams']['allowNewValue'] )): ?>
  92. <input type="hidden" name="<?php echo $this->_tpl_vars['idname']; ?>
  93. _allow_new_value" id="<?php echo $this->_tpl_vars['idname']; ?>
  94. _allow_new_value" value="true">
  95. <?php endif; ?>
  96. <script type="text/javascript">
  97. <!--
  98. if(typeof QSProcessedFieldsArray != 'undefined')
  99. QSProcessedFieldsArray["{$form_name}_<?php echo $this->_tpl_vars['idname']; ?>
  100. "] = false;
  101. enableQS(false);
  102. -->
  103. </script>