本文整理汇总了PHP中getPurifiedSmartyParameters函数的典型用法代码示例。如果您正苦于以下问题:PHP getPurifiedSmartyParameters函数的具体用法?PHP getPurifiedSmartyParameters怎么用?PHP getPurifiedSmartyParameters使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getPurifiedSmartyParameters函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: content_5682050b8e025
function content_5682050b8e025($_smarty_tpl)
{
?>
<div id="popupPageContainer" class="contentsDiv"><div class="paddingLeftRight10px"><?php
echo $_smarty_tpl->getSubTemplate(vtemplate_path('PopupSearch.tpl', $_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
</div><div id="popupContents" class="paddingLeftRight10px"><?php
echo $_smarty_tpl->getSubTemplate(vtemplate_path('PopupContents.tpl', $_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
</div><input type="hidden" class="triggerEventName" value="<?php
echo getPurifiedSmartyParameters('triggerEventName');
?>
"/></div></div><?php
}
开发者ID:thanhphi0127,项目名称:VtigerCRM,代码行数:14,代码来源:d5c7b333d77942a8f461cece3a090e5b2408544d.file.Popup.tpl.php
示例2: content_567d66718d976
function content_567d66718d976($_smarty_tpl)
{
?>
<input type="hidden" id="currentView" value="<?php
echo getPurifiedSmartyParameters('view');
?>
" /><input type="hidden" id="activity_view" value="<?php
echo $_smarty_tpl->tpl_vars['CURRENT_USER']->value->get('activity_view');
?>
" /><input type="hidden" id="time_format" value="<?php
echo $_smarty_tpl->tpl_vars['CURRENT_USER']->value->get('hour_format');
?>
" /><input type="hidden" id="start_hour" value="<?php
echo $_smarty_tpl->tpl_vars['CURRENT_USER']->value->get('start_hour');
?>
" /><input type="hidden" id="date_format" value="<?php
echo $_smarty_tpl->tpl_vars['CURRENT_USER']->value->get('date_format');
?>
" /><div class="container-fluid"><div class="row-fluid"><div class="span12"><p><!-- Divider --></p><div id="calendarview"></div></div></div></div><?php
}
开发者ID:thanhphi0127,项目名称:VtigerCRM,代码行数:20,代码来源:9ece26000fe96d51e492885bde63a35a7dc0b960.file.CalendarView.tpl.php
示例3: content_568ddffff3f03
function content_568ddffff3f03($_smarty_tpl)
{
?>
<ul><?php
$_smarty_tpl->tpl_vars['CHILD_ROLE'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['CHILD_ROLE']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['ROLE']->value->getChildren();
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['CHILD_ROLE']->key => $_smarty_tpl->tpl_vars['CHILD_ROLE']->value) {
$_smarty_tpl->tpl_vars['CHILD_ROLE']->_loop = true;
?>
<li data-role="<?php
echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getParentRoleString();
?>
" data-roleid="<?php
echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getId();
?>
"><?php
ob_start();
echo getPurifiedSmartyParameters('view');
$_tmp1 = ob_get_clean();
$_smarty_tpl->tpl_vars['VIEW_NAME'] = new Smarty_variable($_tmp1, null, 0);
ob_start();
echo getPurifiedSmartyParameters('type');
$_tmp2 = ob_get_clean();
$_smarty_tpl->tpl_vars['VIEW_TYPE'] = new Smarty_variable($_tmp2, null, 0);
?>
<div <?php
if ($_smarty_tpl->tpl_vars['VIEW_NAME']->value != 'Popup') {
?>
class="toolbar-handle"<?php
}
?>
><?php
if ($_smarty_tpl->tpl_vars['VIEW_TYPE']->value == 'Transfer') {
$_smarty_tpl->tpl_vars["SOURCE_ROLE_SUBPATTERN"] = new Smarty_variable('::' . $_smarty_tpl->tpl_vars['SOURCE_ROLE']->value->getId(), null, 0);
if (strpos($_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getParentRoleString(), $_smarty_tpl->tpl_vars['SOURCE_ROLE_SUBPATTERN']->value) !== false) {
echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getName();
} else {
?>
<a href="<?php
echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getEditViewUrl();
?>
" data-url="<?php
echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getEditViewUrl();
?>
" class="btn roleEle" rel="tooltip" ><?php
echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getName();
?>
</a><?php
}
} else {
?>
<a href="<?php
echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getEditViewUrl();
?>
" data-url="<?php
echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getEditViewUrl();
?>
" class="btn draggable droppable" rel="tooltip" title="<?php
echo vtranslate('LBL_CLICK_TO_EDIT_OR_DRAG_TO_MOVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
"><?php
echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getName();
?>
</a><?php
}
if ($_smarty_tpl->tpl_vars['VIEW_NAME']->value != 'Popup') {
?>
<div class="toolbar"> <a href="<?php
echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getCreateChildUrl();
?>
" data-url="<?php
echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getCreateChildUrl();
?>
" title="<?php
echo vtranslate('LBL_ADD_RECORD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
"><span class="icon-plus-sign"></span></a> <a data-id="<?php
echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getId();
?>
" href="javascript:;" data-url="<?php
echo $_smarty_tpl->tpl_vars['CHILD_ROLE']->value->getDeleteActionUrl();
?>
" data-action="modal" title="<?php
echo vtranslate('LBL_DELETE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
"><span class="icon-trash"></span></a></div><?php
}
?>
</div><?php
$_smarty_tpl->tpl_vars["ROLE"] = new Smarty_variable($_smarty_tpl->tpl_vars['CHILD_ROLE']->value, null, 0);
echo $_smarty_tpl->getSubTemplate(vtemplate_path("RoleTree.tpl", "Settings:Roles"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
</li><?php
}
?>
</ul><?php
//.........这里部分代码省略.........
开发者ID:yunter,项目名称:crm,代码行数:101,代码来源:1b47f10560c73cee7a33ca211a121a304fbee0b5.file.RoleTree.tpl.php
示例4: content_567d644a1d2e5
function content_567d644a1d2e5($_smarty_tpl)
{
$_smarty_tpl->tpl_vars["FIELD_INFO"] = new Smarty_variable(Vtiger_Util_Helper::toSafeHTML(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo())), null, 0);
$_smarty_tpl->tpl_vars["SPECIAL_VALIDATOR"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getValidator(), null, 0);
$_smarty_tpl->tpl_vars["FIELD_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), null, 0);
if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '71') {
?>
<div class="input-prepend"><span class="add-on"><?php
echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_symbol');
?>
</span><input id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_editView_fieldName_<?php
echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
?>
" type="text" class="input-medium currencyField" data-validation-engine="validate[<?php
if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
?>
required,<?php
}
?>
funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" name="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldName();
?>
"data-fieldinfo='<?php
echo $_smarty_tpl->tpl_vars['FIELD_INFO']->value;
?>
' value="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getEditViewDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'));
?>
" <?php
if (!empty($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value)) {
?>
data-validator='<?php
echo Zend_Json::encode($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value);
?>
'<?php
}
?>
data-decimal-seperator='<?php
echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_decimal_separator');
?>
' data-group-seperator='<?php
echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_grouping_separator');
?>
' data-number-of-decimal-places='<?php
echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('no_of_currency_decimals');
?>
'/></div><?php
} elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '72' && $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getName() == 'unit_price') {
?>
<div class="input-prepend"><div class="row-fluid"><span class="span1"><span class="add-on row-fluid"><?php
echo $_smarty_tpl->tpl_vars['BASE_CURRENCY_SYMBOL']->value;
?>
</span></span><span class="span10 row-fluid"><input id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
-editview-fieldname-<?php
echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
?>
" type="text" class="span6 unitPrice currencyField" name="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldName();
?>
" data-validation-engine="validate[<?php
if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
?>
required,<?php
}
?>
funcCall[Vtiger_Base_Validator_Js.invokeValidation]]"data-fieldinfo='<?php
echo $_smarty_tpl->tpl_vars['FIELD_INFO']->value;
?>
' value="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'));
?>
" <?php
if (!empty($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value)) {
?>
data-validator='<?php
echo Zend_Json::encode($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value);
?>
'<?php
}
?>
data-decimal-seperator='<?php
echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_decimal_separator');
?>
' data-group-seperator='<?php
echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_grouping_separator');
?>
' data-number-of-decimal-places='<?php
echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('no_of_currency_decimals');
?>
'/><?php
ob_start();
echo getPurifiedSmartyParameters('view');
$_tmp1 = ob_get_clean();
$_smarty_tpl->tpl_vars['VIEW_NAME'] = new Smarty_variable($_tmp1, null, 0);
if ($_smarty_tpl->tpl_vars['VIEW_NAME']->value == 'Edit') {
//.........这里部分代码省略.........
开发者ID:thanhphi0127,项目名称:VtigerCRM,代码行数:101,代码来源:bc4c465b7dc625fede594d963e591417c8c38557.file.Currency.tpl.php
示例5: content_566fa76d8086c
function content_566fa76d8086c($_smarty_tpl)
{
$_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), null, 0);
$_smarty_tpl->tpl_vars["REFERENCE_LIST"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getReferenceList(), null, 0);
$_smarty_tpl->tpl_vars["REFERENCE_LIST_COUNT"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['REFERENCE_LIST']->value), null, 0);
$_smarty_tpl->tpl_vars["FIELD_INFO"] = new Smarty_variable(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo()), null, 0);
$_smarty_tpl->tpl_vars["SPECIAL_VALIDATOR"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getValidator(), null, 0);
ob_start();
echo $_smarty_tpl->tpl_vars['REFERENCE_LIST_COUNT']->value;
$_tmp1 = ob_get_clean();
if ($_tmp1 == 1) {
?>
<input name="popupReferenceModule" type="hidden" value="<?php
echo $_smarty_tpl->tpl_vars['REFERENCE_LIST']->value[0];
?>
" /><?php
}
ob_start();
echo $_smarty_tpl->tpl_vars['REFERENCE_LIST_COUNT']->value;
$_tmp2 = ob_get_clean();
if ($_tmp2 > 1) {
$_smarty_tpl->tpl_vars["DISPLAYID"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), null, 0);
$_smarty_tpl->tpl_vars["REFERENCED_MODULE_STRUCT"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getUITypeModel()->getReferenceModule($_smarty_tpl->tpl_vars['DISPLAYID']->value), null, 0);
if (!empty($_smarty_tpl->tpl_vars['REFERENCED_MODULE_STRUCT']->value)) {
$_smarty_tpl->tpl_vars["REFERENCED_MODULE_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['REFERENCED_MODULE_STRUCT']->value->get('name'), null, 0);
}
if (in_array($_smarty_tpl->tpl_vars['REFERENCED_MODULE_NAME']->value, $_smarty_tpl->tpl_vars['REFERENCE_LIST']->value)) {
?>
<input name="popupReferenceModule" type="hidden" value="<?php
echo $_smarty_tpl->tpl_vars['REFERENCED_MODULE_NAME']->value;
?>
" /><?php
} else {
?>
<input name="popupReferenceModule" type="hidden" value="<?php
echo $_smarty_tpl->tpl_vars['REFERENCE_LIST']->value[0];
?>
" /><?php
}
}
?>
<input name="<?php
echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
?>
" type="hidden" value="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue');
?>
" class="sourceField" data-displayvalue='<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getEditViewDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'));
?>
' data-fieldinfo='<?php
echo $_smarty_tpl->tpl_vars['FIELD_INFO']->value;
?>
' data-multiple='true' data-validation-engine="validate[<?php
if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
?>
required,<?php
}
?>
funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php
if (!empty($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value)) {
?>
data-validator=<?php
echo Zend_Json::encode($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value);
}
?>
><?php
$_smarty_tpl->tpl_vars["displayId"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), null, 0);
?>
<div class="row-fluid input-prepend input-append"><span class="add-on clearReferenceSelection cursorPointer"><i class='icon-remove-sign' title="<?php
echo vtranslate('LBL_CLEAR', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
"></i></span><?php
ob_start();
echo getPurifiedSmartyParameters('view');
$_tmp3 = ob_get_clean();
$_smarty_tpl->tpl_vars['VIEW_NAME'] = new Smarty_variable($_tmp3, null, 0);
?>
<input id="<?php
echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
?>
_display" name="<?php
echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
?>
_display" type="text" class="<?php
if ($_smarty_tpl->tpl_vars['VIEW_NAME']->value == 'Edit') {
?>
span7 <?php
} else {
?>
span8 <?php
}
?>
marginLeftZero autoComplete" <?php
if (!empty($_smarty_tpl->tpl_vars['displayId']->value)) {
?>
readonly="true"<?php
}
?>
value="<?php
//.........这里部分代码省略.........
开发者ID:cannking,项目名称:vtigercrm-debug,代码行数:101,代码来源:20f46782398389c8f977c9120fb0596e3b2ea6e7.file.Multireference.tpl.php
示例6: content_5674f23b5217a
function content_5674f23b5217a($_smarty_tpl)
{
$_smarty_tpl->tpl_vars["FIELD_INFO"] = new Smarty_variable(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo()), null, 0);
$_smarty_tpl->tpl_vars["SPECIAL_VALIDATOR"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getValidator(), null, 0);
$_smarty_tpl->tpl_vars["FIELD_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldName(), null, 0);
if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '19' || $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '20') {
?>
<textarea class="row-fluid <?php
if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isNameField()) {
?>
nameField<?php
}
?>
" name="<?php
echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
?>
" <?php
if ($_smarty_tpl->tpl_vars['FIELD_NAME']->value == "notecontent") {
?>
id="<?php
echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
?>
"<?php
}
?>
data-validation-engine="validate[<?php
if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
?>
required,<?php
}
?>
funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" data-fieldinfo='<?php
echo $_smarty_tpl->tpl_vars['FIELD_INFO']->value;
?>
' <?php
if (!empty($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value)) {
?>
data-validator=<?php
echo Zend_Json::encode($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value);
}
?>
><?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue');
?>
</textarea><?php
} else {
?>
<textarea class="row-fluid <?php
if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isNameField()) {
?>
nameField<?php
}
?>
" name="<?php
echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value;
?>
" data-validation-engine="validate[<?php
if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
?>
required,<?php
}
?>
funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" data-fieldinfo='<?php
echo $_smarty_tpl->tpl_vars['FIELD_INFO']->value;
?>
' <?php
if (!empty($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value)) {
?>
data-validator=<?php
echo Zend_Json::encode($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value);
}
?>
><?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue');
?>
</textarea><?php
ob_start();
echo getPurifiedSmartyParameters('view');
$_tmp1 = ob_get_clean();
$_smarty_tpl->tpl_vars['VIEW_NAME'] = new Smarty_variable($_tmp1, null, 0);
if ($_smarty_tpl->tpl_vars['MODULE_NAME']->value != 'Webforms' && $_smarty_tpl->tpl_vars['VIEW_NAME']->value != 'Detail') {
if ($_smarty_tpl->tpl_vars['FIELD_NAME']->value == "bill_street") {
?>
<div><a class="cursorPointer" name="copyAddress" data-target="shipping"><?php
echo vtranslate('LBL_COPY_SHIPPING_ADDRESS', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a></div><?php
} elseif ($_smarty_tpl->tpl_vars['FIELD_NAME']->value == "ship_street") {
?>
<div><a class="cursorPointer" name="copyAddress" data-target="billing"><?php
echo vtranslate('LBL_COPY_BILLING_ADDRESS', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a></div><?php
}
}
}
}
开发者ID:wsLapshin,项目名称:charter_crm,代码行数:97,代码来源:af054d4a4446775943a5d43526d061a7fa31bc9f.file.Text.tpl.php
示例7: content_5672314ff2e05
//.........这里部分代码省略.........
?>
<?php
echo $_smarty_tpl->tpl_vars['ACTIVITY']->value->getDisplayValue('contact_id');
}
?>
</div>
<?php
$_smarty_tpl->tpl_vars['START_DATE'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('date_start'), null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['START_TIME'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('time_start'), null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['DUE_DATE'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('due_date'), null, 0);
?>
<?php
$_smarty_tpl->tpl_vars['DUE_TIME'] = new Smarty_variable($_smarty_tpl->tpl_vars['ACTIVITY']->value->get('time_end'), null, 0);
?>
<p class='pull-right muted' style='margin-top:5px;padding-right:5px;'><small title="<?php
echo Vtiger_Util_Helper::formatDateTimeIntoDayString($_smarty_tpl->tpl_vars['START_DATE']->value . " " . $_smarty_tpl->tpl_vars['START_TIME']->value);
?>
<?php
echo vtranslate('LBL_TO');
?>
<?php
echo Vtiger_Util_Helper::formatDateTimeIntoDayString($_smarty_tpl->tpl_vars['DUE_DATE']->value . " " . $_smarty_tpl->tpl_vars['DUE_TIME']->value);
?>
"><?php
echo Vtiger_Util_Helper::formatDateDiffInStrings($_smarty_tpl->tpl_vars['START_DATE']->value . " " . $_smarty_tpl->tpl_vars['START_TIME']->value);
?>
</small></p>
<div class='clearfix'></div>
</div>
<div class='clearfix'></div>
</div>
<?php
}
if (!$_smarty_tpl->tpl_vars['ACTIVITY']->_loop) {
?>
<span class="noDataMsg">
<?php
ob_start();
echo getPurifiedSmartyParameters('name');
$_tmp1 = ob_get_clean();
$_smarty_tpl->tpl_vars['REQUEST_NAME'] = new Smarty_variable($_tmp1, null, 0);
?>
<?php
if ($_smarty_tpl->tpl_vars['REQUEST_NAME']->value == 'OverdueActivities') {
?>
<?php
echo vtranslate('LBL_NO_OVERDUE_ACTIVITIES', $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
?>
<?php
} else {
?>
<?php
echo vtranslate('LBL_NO_SCHEDULED_ACTIVITIES', $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
?>
<?php
}
?>
</span>
<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['PAGING']->value->get('nextPageExists') == 'true') {
?>
<div class='pull-right' style='margin-top:5px;padding-right:5px;'>
<a href="javascript:;" name="history_more" data-url="<?php
echo $_smarty_tpl->tpl_vars['WIDGET']->value->getUrl();
?>
&page=<?php
echo $_smarty_tpl->tpl_vars['PAGING']->value->getNextPage();
?>
"><?php
echo vtranslate('LBL_MORE');
?>
...</a>
<br />
<br />
<br />
<br />
</div>
<?php
} else {
?>
<br />
<br />
<br />
<br />
<?php
}
?>
</div><?php
}
开发者ID:cannking,项目名称:vtigercrm-debug,代码行数:101,代码来源:9ffefda868610ba902f555bbc7f038111ff96855.file.CalendarActivitiesContents.tpl.php
示例8: content_56880405add39
function content_56880405add39($_smarty_tpl)
{
$_smarty_tpl->tpl_vars["FIELD_INFO"] = new Smarty_variable(Vtiger_Util_Helper::toSafeHTML(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo())), null, 0);
$_smarty_tpl->tpl_vars['PICKLIST_VALUES'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPicklistValues(), null, 0);
$_smarty_tpl->tpl_vars["SPECIAL_VALIDATOR"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getValidator(), null, 0);
$_smarty_tpl->tpl_vars["FIELD_VALUE_LIST"] = new Smarty_variable(explode(' |##| ', $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue')), null, 0);
?>
<input type="hidden" name="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldName();
?>
" value="" /><?php
ob_start();
echo getPurifiedSmartyParameters('view');
$_tmp1 = ob_get_clean();
$_smarty_tpl->tpl_vars['VIEW_NAME'] = new Smarty_variable($_tmp1, null, 0);
?>
<select id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_<?php
echo $_smarty_tpl->tpl_vars['VIEW_NAME']->value;
?>
_fieldName_<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name');
?>
" multiple class="select2" name="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldName();
?>
[]" data-fieldinfo='<?php
echo $_smarty_tpl->tpl_vars['FIELD_INFO']->value;
?>
' <?php
if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) {
?>
data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php
if (!empty($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value)) {
?>
data-validator='<?php
echo Zend_Json::encode($_smarty_tpl->tpl_vars['SPECIAL_VALIDATOR']->value);
?>
'<?php
}
?>
<?php
}
?>
style="width: 60%"><?php
$_smarty_tpl->tpl_vars['PICKLIST_VALUE'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = false;
$_smarty_tpl->tpl_vars['PICKLIST_NAME'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['PICKLIST_VALUES']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->key => $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value) {
$_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = true;
$_smarty_tpl->tpl_vars['PICKLIST_NAME']->value = $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->key;
?>
<option value="<?php
echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_NAME']->value);
?>
" <?php
if (in_array(Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_NAME']->value), $_smarty_tpl->tpl_vars['FIELD_VALUE_LIST']->value)) {
?>
selected <?php
}
?>
><?php
echo $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value;
?>
</option><?php
}
?>
</select>
<?php
}
开发者ID:thanhphi0127,项目名称:vtiger,代码行数:76,代码来源:0b7cf18c5d779bf33ffcd2e3e5c202eae952fcab.file.MultiPicklist.tpl.php
示例9: content_568552caeb3e0
//.........这里部分代码省略.........
echo $_smarty_tpl->tpl_vars['isReferenceField']->value;
$_tmp1 = ob_get_clean();
if ($_tmp1 == "reference") {
if ($_smarty_tpl->tpl_vars['refrenceListCount']->value > 1) {
?>
<select style="width: 150px;" class="chzn-select referenceModulesList" id="referenceModulesList"><optgroup><?php
$_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['value']->_loop = false;
$_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['refrenceList']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->_loop = true;
$_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['value']->key;
?>
<option value="<?php
echo $_smarty_tpl->tpl_vars['value']->value;
?>
"><?php
echo vtranslate($_smarty_tpl->tpl_vars['value']->value, $_smarty_tpl->tpl_vars['value']->value);
?>
</option><?php
}
?>
</optgroup></select><?php
} else {
echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['MODULE']->value);
}
echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['MODULE']->value);
} else {
echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['MODULE']->value);
}
?>
</td><td class="fieldValue" <?php
if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == '19') {
?>
colspan="3" <?php
$_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable($_smarty_tpl->tpl_vars['COUNTER']->value + 1, null, 0);
?>
<?php
}
?>
><?php
echo $_smarty_tpl->getSubTemplate(vtemplate_path($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getUITypeModel()->getTemplateName(), $_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
</td><?php
if ($_smarty_tpl->tpl_vars['MODULE_NAME']->value == 'Events' && $_smarty_tpl->getVariable('smarty')->value['foreach']['blockfields']['last']) {
echo $_smarty_tpl->getSubTemplate(vtemplate_path('uitypes/FollowUp.tpl', $_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('MODULE' => $_smarty_tpl->tpl_vars['MODULE_NAME']->value), 0);
}
}
?>
</tr><?php
ob_start();
echo getPurifiedSmartyParameters('parent_id');
$_tmp2 = ob_get_clean();
$_smarty_tpl->tpl_vars['PARENT_ID'] = new Smarty_variable($_tmp2, null, 0);
ob_start();
echo getPurifiedSmartyParameters('contact_id');
$_tmp3 = ob_get_clean();
$_smarty_tpl->tpl_vars['CONTACT_ID'] = new Smarty_variable($_tmp3, null, 0);
if ($_smarty_tpl->tpl_vars['PARENT_ID']->value != '') {
?>
<input type="hidden" name="parent_id" value="<?php
echo $_smarty_tpl->tpl_vars['PARENT_ID']->value;
?>
" /><?php
} elseif ($_smarty_tpl->tpl_vars['CONTACT_ID']->value != '') {
?>
<input type="hidden" name="contact_id" value="<?php
echo $_smarty_tpl->tpl_vars['CONTACT_ID']->value;
?>
" /><?php
}
?>
</table></div></div><div class="modal-footer quickCreateActions"><?php
if ($_smarty_tpl->tpl_vars['MODULE_NAME']->value == 'Calendar') {
$_smarty_tpl->tpl_vars["EDIT_VIEW_URL"] = new Smarty_variable($_smarty_tpl->tpl_vars['CALENDAR_MODULE_MODEL']->value->getCreateTaskRecordUrl(), null, 0);
} else {
$_smarty_tpl->tpl_vars["EDIT_VIEW_URL"] = new Smarty_variable($_smarty_tpl->tpl_vars['CALENDAR_MODULE_MODEL']->value->getCreateEventRecordUrl(), null, 0);
}
?>
<a class="cancelLink cancelLinkContainer pull-right" type="reset" data-dismiss="modal"><?php
echo vtranslate('LBL_CANCEL', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a><button class="btn btn-success" type="submit"><strong><?php
echo vtranslate('LBL_SAVE', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</strong></button><button class="btn" id="goToFullForm" type="button" data-edit-view-url="<?php
echo $_smarty_tpl->tpl_vars['EDIT_VIEW_URL']->value;
?>
"><strong><?php
echo vtranslate('LBL_GO_TO_FULL_FORM', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</strong></button></div></div><?php
}
?>
</div></div></form></div><?php
}
开发者ID:thanhphi0127,项目名称:vtiger,代码行数:101,代码来源:7f9b73da77d5defacd73265936619d47a34abf01.file.QuickCreate.tpl.php
注:本文中的getPurifiedSmartyParameters函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论