当前位置: 首页>>代码示例>>PHP>>正文


PHP smarty_function_sugarvar函数代码示例

本文整理汇总了PHP中smarty_function_sugarvar函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_function_sugarvar函数的具体用法?PHP smarty_function_sugarvar怎么用?PHP smarty_function_sugarvar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了smarty_function_sugarvar函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: smarty_function_sugarvar

 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along with
 * this program; if not, see http://www.gnu.org/licenses or write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 *
 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
 *
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 *
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not
 * reasonably feasible for  technical reasons, the Appropriate Legal Notices must
 * display the words  "Powered by SugarCRM" and "Supercharged by SuiteCRM".
 ********************************************************************************/

*}
<?php 
echo smarty_function_sugarvar(array('key' => 'value'), $this);
开发者ID:BMLP,项目名称:memoryhole-ansible,代码行数:30,代码来源:%%4F^4FB^4FB70805%%EditViewFunction.tpl.php

示例2: smarty_function_sugarvar

    echo smarty_function_sugarvar(array('key' => 'name'), $this);
    ?>
" id="btn_clr_<?php 
    echo smarty_function_sugarvar(array('key' => 'name'), $this);
    ?>
" tabindex="<?php 
    echo $this->_tpl_vars['tabindex'];
    ?>
" title="{sugar_translate label="<?php 
    echo $this->_tpl_vars['displayParams']['accessKeyClearTitle'];
    ?>
"}" class="button lastChild" onclick="this.form.<?php 
    echo smarty_function_sugarvar(array('key' => 'name'), $this);
    ?>
.value = ''; this.form.<?php 
    echo smarty_function_sugarvar(array('memberName' => 'vardef.id_name', 'key' => 'name'), $this);
    ?>
.value = '';" value="{sugar_translate label="<?php 
    echo $this->_tpl_vars['displayParams']['accessKeyClearLabel'];
    ?>
"}" <?php 
    if (isset($this->_tpl_vars['displayParams']['javascript']['btn_clear'])) {
        echo $this->_tpl_vars['displayParams']['javascript']['btn_clear'];
    }
    ?>
><img src="{sugar_getimagepath file="id-ff-clear.png"}"></button>
</span>
<?php 
}
?>
开发者ID:kulaginds,项目名称:SugarCRMTest,代码行数:30,代码来源:%%1E^1E2^1E23106B%%EditView.tpl.php

示例3: strlen

   <?php 
    $this->assign('idname', $this->_tpl_vars['displayParams']['idName']);
}
?>

{if strlen(<?php 
echo smarty_function_sugarvar(array('key' => 'value', 'string' => true), $this);
?>
) <= 0}
{assign var="value" value=<?php 
echo smarty_function_sugarvar(array('key' => 'default_value', 'string' => true), $this);
?>
 }
{else}
{assign var="value" value=<?php 
echo smarty_function_sugarvar(array('key' => 'value', 'string' => true), $this);
?>
 }
{/if}  

<input type='text' name='<?php 
echo $this->_tpl_vars['idname'];
?>
' id='<?php 
echo $this->_tpl_vars['idname'];
?>
' size='<?php 
echo is_array($_tmp = @$this->_tpl_vars['displayParams']['size']) ? $this->_run_mod_handler('default', true, $_tmp, 30) : smarty_modifier_default($_tmp, 30);
?>
' <?php 
if (isset($this->_tpl_vars['displayParams']['maxlength'])) {
开发者ID:stevenwck,项目名称:demo-sugarcrm,代码行数:31,代码来源:%%DE^DE0^DE03A2E7%%EditView.tpl.php

示例4: smarty_function_sugarvar

echo $this->_tpl_vars['idname'];
?>
" name="<?php 
echo $this->_tpl_vars['idname'];
?>
" value="{$fields[<?php 
echo smarty_function_sugarvar(array('key' => 'name', 'stringFormat' => true), $this);
?>
].value}">
<script type="text/javascript" src="{sugar_getjspath file="include/SugarFields/Fields/Datetimecombo/Datetimecombo.js"}"></script>
<script type="text/javascript">
var combo_<?php 
echo $this->_tpl_vars['idname'];
?>
 = new Datetimecombo("{$fields[<?php 
echo smarty_function_sugarvar(array('key' => 'name', 'stringFormat' => true), $this);
?>
].value}", "<?php 
echo $this->_tpl_vars['idname'];
?>
", "{$TIME_FORMAT}", "<?php 
echo $this->_tpl_vars['tabindex'];
?>
", '<?php 
echo $this->_tpl_vars['displayParams']['showNoneCheckbox'];
?>
', false, true);
//Render the remaining widget fields
text = combo_<?php 
echo $this->_tpl_vars['idname'];
?>
开发者ID:augustosoto1991,项目名称:SuiteCRMGlamour,代码行数:31,代码来源:%%73^733^73365934%%EditView.tpl.php

示例5: strval

{if strval(<?php 
echo smarty_function_sugarvar(array('key' => 'value', 'stringFormat' => 'false'), $this);
?>
) == "1" || strval(<?php 
echo smarty_function_sugarvar(array('key' => 'value', 'stringFormat' => 'false'), $this);
?>
) == "yes" || strval(<?php 
echo smarty_function_sugarvar(array('key' => 'value', 'stringFormat' => 'false'), $this);
?>
) == "on"} 
{assign var="checked" value="CHECKED"}
{else}
{assign var="checked" value=""}
{/if}
<input type="checkbox" class="checkbox" name="<?php 
echo smarty_function_sugarvar(array('key' => 'name'), $this);
?>
" id="<?php 
echo smarty_function_sugarvar(array('key' => 'name'), $this);
?>
" value="<?php 
echo smarty_function_sugarvar(array('key' => 'value', 'stringFormat' => 'false'), $this);
?>
" disabled="true" {$checked}>
<?php 
if (!empty($this->_tpl_vars['displayParams']['enableConnectors'])) {
    echo smarty_function_sugarvar_connector(array('view' => 'DetailView'), $this);
    ?>
 
<?php 
}
开发者ID:vsanth,项目名称:dynamic-crm,代码行数:31,代码来源:%%0E^0EA^0EAB2E44%%DetailView.tpl.php

示例6: smarty_function_sugarvar

        echo $this->_tpl_vars['tabindex'];
        ?>
" title="{sugar_translate label="<?php 
        echo $this->_tpl_vars['displayParams']['accessKeyClearTitle'];
        ?>
"}"  class="button lastChild"
onclick="SUGAR.clearRelateField(this.form, '<?php 
        echo $this->_tpl_vars['idname'];
        ?>
', '<?php 
        if (!empty($this->_tpl_vars['displayParams']['idName'])) {
            echo $this->_tpl_vars['displayParams']['idName'];
            ?>
_<?php 
        }
        echo smarty_function_sugarvar(array('key' => 'id_name'), $this);
        ?>
');"  value="{sugar_translate label="<?php 
        echo $this->_tpl_vars['displayParams']['accessKeyClearLabel'];
        ?>
"}" <?php 
        if (isset($this->_tpl_vars['displayParams']['javascript']['btn_clear'])) {
            echo $this->_tpl_vars['displayParams']['javascript']['btn_clear'];
        }
        ?>
><img src="{sugar_getimagepath file="id-ff-clear.png"}"></button>
<?php 
    }
    ?>
</span>
<?php 
开发者ID:rahimulhaq,项目名称:Rolustech,代码行数:31,代码来源:%%3B^3BA^3BABD3B3%%EditView.tpl.php


注:本文中的smarty_function_sugarvar函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。