本文整理汇总了PHP中ZEND_JSON类的典型用法代码示例。如果您正苦于以下问题:PHP ZEND_JSON类的具体用法?PHP ZEND_JSON怎么用?PHP ZEND_JSON使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ZEND_JSON类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
<?php if ($_valid && !is_callable('content_56081de7b2b9a')) {function content_56081de7b2b9a($_smarty_tpl) {?>
<?php $_smarty_tpl->tpl_vars["MODULE_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'), null, 0);?><input id="recordId" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();?>
" /><div class="detailViewContainer"><div class="detailViewTitle" id="prefPageHeader"><div class="row-fluid"><div class="span8"><span class="row-fluid marginLeftZero"><span class="logo span1"><?php $_smarty_tpl->tpl_vars['IMAGE_INFO'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['IMAGE_INFO']->_loop = false;
$_smarty_tpl->tpl_vars['ITER'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['RECORD']->value->getImageDetails(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['IMAGE_INFO']->key => $_smarty_tpl->tpl_vars['IMAGE_INFO']->value){
$_smarty_tpl->tpl_vars['IMAGE_INFO']->_loop = true;
$_smarty_tpl->tpl_vars['ITER']->value = $_smarty_tpl->tpl_vars['IMAGE_INFO']->key;
?><?php if (!empty($_smarty_tpl->tpl_vars['IMAGE_INFO']->value['path'])&&!empty($_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'])){?><img src="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['path'];?>
_<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];?>
" data-image-id="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['id'];?>
"><?php }?><?php } ?></span><span class="span9"><span id="myPrefHeading" class="row-fluid"><h3><?php echo vtranslate('LBL_MY_PREFERENCES',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</h3></span><span class="row-fluid"><?php echo vtranslate('LBL_USERDETAIL_INFO',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
"<b><?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getName();?>
</b>"</span></span></span></div><div class="span4"><div class="row-fluid pull-right detailViewButtoncontainer"><div class="btn-toolbar pull-right"><?php $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWPREFERENCE']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value){
$_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = true;
?><div class="btn-group"><button class="btn"<?php if ($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->isPageLoadLink()){?>onclick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();?>
'"<?php }else{ ?>onclick=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();?>
<?php }?>><strong><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong></button></div><?php } ?></div></div></div></div></div><div class="detailViewInfo userPreferences row-fluid"><div class="details span12"><form id="detailView" data-name-fields='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields());?>
' method="POST"><div class="contents"><?php }} ?>
开发者ID:jeremyevans6,项目名称:kulturedTiger-,代码行数:25,代码来源:62e9c2927aeef88d0fde6223f145516650577fd7.file.PreferenceDetailViewHeader.tpl.php
示例2: if
<?php if ($_valid && !is_callable('content_56059e760aa14')) {function content_56059e760aa14($_smarty_tpl) {?>
<?php $_smarty_tpl->tpl_vars["dateFormat"] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('date_format'), null, 0);?>
<?php $_smarty_tpl->tpl_vars["currentDate"] = new Smarty_variable(Vtiger_Date_UIType::getDisplayDateValue(''), null, 0);?>
<?php $_smarty_tpl->tpl_vars["time"] = new Smarty_variable(Vtiger_Time_UIType::getDisplayTimeValue(null), null, 0);?>
<?php $_smarty_tpl->tpl_vars["currentTimeInVtigerFormat"] = new Smarty_variable(Vtiger_Time_UIType::getTimeValueInAMorPM($_smarty_tpl->tpl_vars['time']->value), null, 0);?>
<?php if ($_smarty_tpl->tpl_vars['COUNTER']->value==2){?>
</tr><tr class="<?php if (!($_smarty_tpl->tpl_vars['SHOW_FOLLOW_UP']->value)){?>hide <?php }?>followUpContainer massEditActiveField">
<?php $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(1, null, 0);?>
<?php }else{ ?>
<?php $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable($_smarty_tpl->tpl_vars['COUNTER']->value+1, null, 0);?>
<?php }?>
<?php ob_start();?><?php echo vtranslate('LBL_HOLD_FOLLOWUP_ON',$_smarty_tpl->tpl_vars['MODULE']->value);?>
<?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars['FOLLOW_UP_LABEL'] = new Smarty_variable($_tmp1, null, 0);?>
<td class="fieldLabel">
<label class="muted pull-right marginRight10px">
<input name="followup" type="checkbox" class="alignTop" <?php if ($_smarty_tpl->tpl_vars['FOLLOW_UP_STATUS']->value){?> checked<?php }?>/>
<?php echo $_smarty_tpl->tpl_vars['FOLLOW_UP_LABEL']->value;?>
</label>
</td>
<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['FOLLOW_UP_LABEL']->value;?>
<?php $_tmp2=ob_get_clean();?><?php $_smarty_tpl->createLocalArrayVariable('FIELD_INFO', null, 0);
$_smarty_tpl->tpl_vars['FIELD_INFO']->value['label'] = $_tmp2;?>
<td class="fieldValue">
<div>
<div class="input-append row-fluid">
<div class="span10 row-fluid date">
<input name="followup_date_start" type="text" class="span9 dateField" data-date-format="<?php echo $_smarty_tpl->tpl_vars['dateFormat']->value;?>
" type="text" data-fieldinfo= '<?php echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value));?>
'
value="<?php if (!empty($_smarty_tpl->tpl_vars['FOLLOW_UP_DATE']->value)){?><?php echo $_smarty_tpl->tpl_vars['FOLLOW_UP_DATE']->value;?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['currentDate']->value;?>
<?php }?>" data-validation-engine="validate[funcCall[Vtiger_greaterThanDependentField_Validator_Js.invokeValidation]]" />
<span class="add-on"><i class="icon-calendar"></i></span>
</div>
</div>
</div>
<div>
<div class="input-append time">
<input type="text" name="followup_time_start" class="timepicker-default input-small"
value="<?php if (!empty($_smarty_tpl->tpl_vars['FOLLOW_UP_TIME']->value)){?><?php echo $_smarty_tpl->tpl_vars['FOLLOW_UP_TIME']->value;?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['currentTimeInVtigerFormat']->value;?>
<?php }?>" />
<span class="add-on cursorPointer">
<i class="icon-time"></i>
</span>
</div>
</div>
</td>
<td></td><td></td><?php }} ?>
开发者ID:jeremyevans6,项目名称:kulturedTiger-,代码行数:50,代码来源:049059a7f7cc56add07f33ccecce5661b1f7109b.file.FollowUp.tpl.php
示例3: getDetailViewLinks
/**
* Function to get the detail view links (links and widgets)
* @param <array> $linkParams - parameters which will be used to calicaulate the params
* @return <array> - array of link models in the format as below
* array('linktype'=>list of link models);
*/
public function getDetailViewLinks($linkParams)
{
$currentUserModel = Users_Privileges_Model::getCurrentUserPrivilegesModel();
$linkModelList = parent::getDetailViewLinks($linkParams);
$recordModel = $this->getRecord();
if ($recordModel->get('filestatus') && $recordModel->get('filename') && $recordModel->get('filelocationtype') === 'I') {
$basicActionLink = array('linktype' => 'DETAILVIEW', 'linklabel' => 'LBL_DOWNLOAD_FILE', 'linkurl' => $recordModel->getDownloadFileURL(), 'linkicon' => 'glyphicon glyphicon-download-alt');
$linkModelList['DETAILVIEW'][] = Vtiger_Link_Model::getInstanceFromValues($basicActionLink);
}
$basicActionLink = array('linktype' => 'DETAILVIEW', 'linklabel' => 'LBL_CHECK_FILE_INTEGRITY', 'linkurl' => $recordModel->checkFileIntegrityURL(), 'linkicon' => ' glyphicon glyphicon-file');
$linkModelList['DETAILVIEW'][] = Vtiger_Link_Model::getInstanceFromValues($basicActionLink);
if ($recordModel->get('filestatus') && $recordModel->get('filename') && $recordModel->get('filelocationtype') === 'I') {
$emailModuleModel = Vtiger_Module_Model::getInstance('Emails');
if ($currentUserModel->hasModulePermission($emailModuleModel->getId())) {
$basicActionLink = array('linktype' => 'DETAILVIEW', 'linklabel' => vtranslate('LBL_EMAIL_FILE_AS_ATTACHMENT', 'Documents'), 'linkurl' => "javascript:Documents_Detail_Js.triggerSendEmail('" . ZEND_JSON::encode(array($recordModel->getId())) . "')", 'linkicon' => 'glyphicon glyphicon-envelope');
$linkModelList['DETAILVIEW'][] = Vtiger_Link_Model::getInstanceFromValues($basicActionLink);
}
}
return $linkModelList;
}
示例4: content_5678d7d1207f7
function content_5678d7d1207f7($_smarty_tpl)
{
?>
<?php
if ($_smarty_tpl->tpl_vars['display_widget_header']->value == 'true') {
?>
<script type="text/javascript" src="layouts/vlayout/modules/ITS4YouReports/resources/Getreports.js"></script>
<script type="text/javascript">
//Vtiger_Barchat_Widget_Js('Vtiger_Getreports_Widget_Js',{},{});
Vtiger_Getreports_Widget_Js('Vtiger_Getreports_Widget_Js',{},{});
</script>
<div class="dashboardWidgetHeader">
<?php
echo $_smarty_tpl->getSubTemplate(vtemplate_path("dashboards/WidgetHeader.tpl", $_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
</div>
<?php
}
?>
<div style="height:5px;"></div>
<input class="widgetData" type='hidden' value='<?php
echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['DATA']->value));
?>
' /><input id="widgetReports4YouId" type='hidden' value='<?php
echo $_smarty_tpl->tpl_vars['recordid']->value;
?>
' /><div id="reports4you_widget_<?php
echo $_smarty_tpl->tpl_vars['recordid']->value;
?>
" style="height:83%;width:95%;margin:auto;" ></div><?php
echo $_smarty_tpl->tpl_vars['DATA']->value;
?>
<?php
}
开发者ID:cin-system,项目名称:cinrepo,代码行数:40,代码来源:e5beb0579a87b5a98d7a962a84a3a7797d536d1f.file.DashBoardWidgetContents.tpl.php
示例5: if
<?php if ($_valid && !is_callable('content_56087a25a3819')) {function content_56087a25a3819($_smarty_tpl) {?>
<input type="hidden" id="supportedImageFormats" value='<?php echo ZEND_JSON::encode(Settings_Vtiger_CompanyDetails_Model::$logoSupportedFormats);?>
' /><div class="padding-left1per"><div class="row-fluid widget_header"><div class="span8"><h3><?php echo vtranslate('LBL_COMPANY_DETAILS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</h3><?php if ($_smarty_tpl->tpl_vars['DESCRIPTION']->value){?><span style="font-size:12px;color: black;"> - <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['DESCRIPTION']->value;?>
<?php $_tmp1=ob_get_clean();?><?php echo vtranslate($_tmp1,$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span><?php }?></div><div class="span4"><button id="updateCompanyDetails" class="btn pull-right"><?php echo vtranslate('LBL_EDIT',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</button></div></div><hr><?php $_smarty_tpl->tpl_vars['WIDTHTYPE'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->get('rowheight'), null, 0);?><div id="CompanyDetailsContainer" class="<?php if (!empty($_smarty_tpl->tpl_vars['ERROR_MESSAGE']->value)){?>hide<?php }?>"><div class="row-fluid"><table class="table table-bordered"><thead><tr class="blockHeader"><th colspan="2" class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?>
"><strong><?php echo vtranslate('LBL_COMPANY_LOGO',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</strong></th></tr></thead><tbody><tr><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?>
"><div class="companyLogo"><img src="<?php echo $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getLogoPath();?>
" class="alignMiddle" /></div></td></tr></tbody></table><br><table class="table table-bordered"><thead><tr class="blockHeader"><th colspan="2" class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?>
"><strong><?php echo vtranslate('LBL_COMPANY_INFORMATION',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</strong></th></tr></thead><tbody><?php $_smarty_tpl->tpl_vars['FIELD_TYPE'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['FIELD_TYPE']->_loop = false;
$_smarty_tpl->tpl_vars['FIELD'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getFields(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_TYPE']->key => $_smarty_tpl->tpl_vars['FIELD_TYPE']->value){
$_smarty_tpl->tpl_vars['FIELD_TYPE']->_loop = true;
$_smarty_tpl->tpl_vars['FIELD']->value = $_smarty_tpl->tpl_vars['FIELD_TYPE']->key;
?><?php if ($_smarty_tpl->tpl_vars['FIELD']->value!='logoname'&&$_smarty_tpl->tpl_vars['FIELD']->value!='logo'){?><tr><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?>
" style="width:25%"><label class="pull-right"><?php echo vtranslate($_smarty_tpl->tpl_vars['FIELD']->value,$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</label></td><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?>
"><?php if ($_smarty_tpl->tpl_vars['FIELD']->value=='address'){?> <?php echo nl2br($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get($_smarty_tpl->tpl_vars['FIELD']->value));?>
<?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get($_smarty_tpl->tpl_vars['FIELD']->value);?>
<?php }?></td></tr><?php }?><?php } ?></tbody></table></div></div><form class="form-horizontal <?php if (empty($_smarty_tpl->tpl_vars['ERROR_MESSAGE']->value)){?>hide<?php }?>" id="updateCompanyDetailsForm" method="post" action="index.php" enctype="multipart/form-data"><input type="hidden" name="module" value="Vtiger" /><input type="hidden" name="parent" value="Settings" /><input type="hidden" name="action" value="CompanyDetailsSave" /><div class="control-group"><div class="control-label"><?php echo vtranslate('LBL_COMPANY_LOGO',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</div><div class="controls"><div class="companyLogo"><img src="<?php echo $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getLogoPath();?>
" class="alignMiddle" /></div><input type="file" name="logo" id="logoFile" /> <span class="alert alert-info"><?php echo vtranslate('LBL_LOGO_RECOMMENDED_MESSAGE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</span><?php if (!empty($_smarty_tpl->tpl_vars['ERROR_MESSAGE']->value)){?><br><br><div class="marginLeftZero span9 alert alert-error"><?php echo vtranslate($_smarty_tpl->tpl_vars['ERROR_MESSAGE']->value,$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</div><?php }?></div></div><?php $_smarty_tpl->tpl_vars['FIELD_TYPE'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['FIELD_TYPE']->_loop = false;
$_smarty_tpl->tpl_vars['FIELD'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getFields(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_TYPE']->key => $_smarty_tpl->tpl_vars['FIELD_TYPE']->value){
$_smarty_tpl->tpl_vars['FIELD_TYPE']->_loop = true;
$_smarty_tpl->tpl_vars['FIELD']->value = $_smarty_tpl->tpl_vars['FIELD_TYPE']->key;
?><?php if ($_smarty_tpl->tpl_vars['FIELD']->value!='logoname'&&$_smarty_tpl->tpl_vars['FIELD']->value!='logo'){?><div class="control-group"><div class="control-label"><?php echo vtranslate($_smarty_tpl->tpl_vars['FIELD']->value,$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
<?php if ($_smarty_tpl->tpl_vars['FIELD']->value=='organizationname'){?><span class="redColor">*</span><?php }?></div><div class="controls"><?php if ($_smarty_tpl->tpl_vars['FIELD']->value=='address'){?><textarea name="<?php echo $_smarty_tpl->tpl_vars['FIELD']->value;?>
" style="width: 40%"><?php echo $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get($_smarty_tpl->tpl_vars['FIELD']->value);?>
</textarea><?php }else{ ?><input type="text" <?php if ($_smarty_tpl->tpl_vars['FIELD']->value=='organizationname'){?> data-validation-engine="validate[required]" <?php }?> class="input-xlarge" name="<?php echo $_smarty_tpl->tpl_vars['FIELD']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get($_smarty_tpl->tpl_vars['FIELD']->value);?>
"/><?php }?></div></div><?php }?><?php } ?><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("ModalFooter.tpl",$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</form><?php }} ?>
开发者ID:jeremyevans6,项目名称:kulturedTiger-,代码行数:40,代码来源:134afc23962ff849e859b70ba422fdd4a4e65826.file.CompanyDetails.tpl.php
示例6: content_5695cb7f67773
function content_5695cb7f67773($_smarty_tpl)
{
if (count($_smarty_tpl->tpl_vars['DATA']->value) > 0) {
?>
<input class="widgetData" type=hidden value='<?php
echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['DATA']->value));
?>
' /><div class="widgetChartContainer" style="height:250px;width:85%"></div><?php
} else {
?>
<span class="noDataMsg"><?php
echo vtranslate('LBL_EQ_ZERO');
?>
<?php
echo vtranslate($_smarty_tpl->tpl_vars['MODULE_NAME']->value, $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
?>
<?php
echo vtranslate('LBL_MATCHED_THIS_CRITERIA');
?>
</span><?php
}
}
开发者ID:cin-system,项目名称:vtigercrm-cin,代码行数:22,代码来源:83df732a9d211a92d1e59bc6b63677bc955d09ac.file.DashBoardWidgetContents.tpl.php
示例7: if
<?php if ($_valid && !is_callable('content_56059e763da83')) {function content_56059e763da83($_smarty_tpl) {?>
<?php $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), null, 0);?><?php $_smarty_tpl->tpl_vars["REFERENCE_LIST"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getReferenceList(), null, 0);?><?php $_smarty_tpl->tpl_vars["REFERENCE_LIST_COUNT"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['REFERENCE_LIST']->value), null, 0);?><?php $_smarty_tpl->tpl_vars["FIELD_INFO"] = new Smarty_variable(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo()), null, 0);?><?php $_smarty_tpl->tpl_vars["SPECIAL_VALIDATOR"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getValidator(), null, 0);?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['REFERENCE_LIST_COUNT']->value;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==1){?><input name="popupReferenceModule" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['REFERENCE_LIST']->value[0];?>
" /><?php }?><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['REFERENCE_LIST_COUNT']->value;?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2>1){?><?php $_smarty_tpl->tpl_vars["DISPLAYID"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), null, 0);?><?php $_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);?><?php if (!empty($_smarty_tpl->tpl_vars['REFERENCED_MODULE_STRUCT']->value)){?><?php $_smarty_tpl->tpl_vars["REFERENCED_MODULE_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['REFERENCED_MODULE_STRUCT']->value->get('name'), null, 0);?><?php }?><?php 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 }?><?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 }?>><?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><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 ($_REQUEST['view']=='Edit'){?> span7 <?php }else{ ?> span8 <?php }?> marginLeftZero autoComplete" <?php if (!empty($_smarty_tpl->tpl_vars['displayId']->value)){?>readonly="true"<?php }?>value="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getEditViewDisplayValue($_smarty_tpl->tpl_vars['displayId']->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;?>
' placeholder="<?php echo vtranslate('LBL_TYPE_SEARCH',$_smarty_tpl->tpl_vars['MODULE']->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 }?>/><span class="add-on relatedPopup cursorPointer"><i class="icon-search relatedPopup" title="<?php echo vtranslate('LBL_SELECT',$_smarty_tpl->tpl_vars['MODULE']->value);?>
" ></i></span><!-- Show the add button only if it is edit view --><?php if ($_REQUEST['view']=='Edit'){?><span class="add-on cursorPointer createReferenceRecord"><i class='icon-plus' title="<?php echo vtranslate('LBL_CREATE',$_smarty_tpl->tpl_vars['MODULE']->value);?>
"></i></span><?php }?><input type="hidden" name="relatedContactInfo" data-value='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['RELATED_CONTACTS']->value);?>
' /></div>
<?php }} ?>
开发者ID:jeremyevans6,项目名称:kulturedTiger-,代码行数:23,代码来源:fad40f52a7721ece4428a810c0b80a306250ad14.file.Multireference.tpl.php
示例8: if
<?php if ($_valid && !is_callable('content_56081d0d8cd7f')) {function content_56081d0d8cd7f($_smarty_tpl) {?>
<?php $_smarty_tpl->tpl_vars["MODULE_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'), null, 0);?><input id="recordId" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();?>
" /><div class="detailViewContainer"><div class="detailViewTitle" id="userPageHeader"><div class="row-fluid"><div class="span8"><span class="row-fluid marginLeftZero"><span class="logo span2"><?php $_smarty_tpl->tpl_vars['IMAGE_INFO'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['IMAGE_INFO']->_loop = false;
$_smarty_tpl->tpl_vars['ITER'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['RECORD']->value->getImageDetails(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['IMAGE_INFO']->key => $_smarty_tpl->tpl_vars['IMAGE_INFO']->value){
$_smarty_tpl->tpl_vars['IMAGE_INFO']->_loop = true;
$_smarty_tpl->tpl_vars['ITER']->value = $_smarty_tpl->tpl_vars['IMAGE_INFO']->key;
?><?php if (!empty($_smarty_tpl->tpl_vars['IMAGE_INFO']->value['path'])&&!empty($_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'])){?><img src="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['path'];?>
_<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];?>
" data-image-id="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['id'];?>
"><?php }?><?php } ?></span><span class="span9"><span id="userHeading" class="row-fluid"><h3><?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getName();?>
</h3></span></span></span></div><div class="span4"><div class="row-fluid pull-right detailViewButtoncontainer"><div class="btn-toolbar pull-right"><?php $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value){
$_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = true;
?><div class="btn-group"><button class="btn"<?php if ($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->isPageLoadLink()){?>onclick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();?>
'"<?php }else{ ?>onclick=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();?>
<?php }?>><strong><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong></button></div><?php } ?><?php if (count($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEW'])>0){?><span class="btn-group"><button class="btn dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);"><strong><?php echo vtranslate('LBL_MORE',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong> <i class="caret"></i></button><ul class="dropdown-menu pull-right"><?php $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value){
$_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->_loop = true;
?><?php if ($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel()=='Delete'){?><?php if ($_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->isAdminUser()&&$_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->getId()!=$_smarty_tpl->tpl_vars['RECORD']->value->getId()){?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
_detailView_moreAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel());?>
"><a href=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getUrl();?>
><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a></li><?php }?><?php }else{ ?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
_detailView_moreAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel());?>
"><a href=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getUrl();?>
><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a></li><?php }?><?php } ?></ul></span><?php }?></div></div></div></div></div><div class="detailViewInfo userPreferences row-fluid"><div class="details span12"><form id="detailView" data-name-fields='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields());?>
'><div class="contents"><?php }} ?>
开发者ID:jeremyevans6,项目名称:kulturedTiger-,代码行数:36,代码来源:d530ef594a91e00a639e33ea0e1c91ecc04482eb.file.UserViewHeader.tpl.php
示例9: if
<?php if ($_valid && !is_callable('content_56059e5cb0268')) {function content_56059e5cb0268($_smarty_tpl) {?>
<?php $_smarty_tpl->tpl_vars["MODULE_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'), null, 0);?><input id="recordId" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();?>
" /><div class="detailViewContainer"><div class="row-fluid detailViewTitle"><div class="<?php if ($_smarty_tpl->tpl_vars['NO_PAGINATION']->value){?> span12 <?php }else{ ?> span10 <?php }?>"><div class="row-fluid"><div class="span5"><div class="row-fluid"><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("DetailViewHeaderTitle.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</div></div><div class="span7"><div class="pull-right detailViewButtoncontainer"><div class="btn-toolbar"><?php $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value){
$_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = true;
?><span class="btn-group"><button class="btn" id="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
_detailView_basicAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getLabel());?>
"<?php if ($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->isPageLoadLink()){?>onclick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();?>
'"<?php }else{ ?>onclick=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();?>
<?php }?>><strong><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong></button></span><?php } ?><?php if (count($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEW'])>0){?><span class="btn-group"><button class="btn dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);"><strong><?php echo vtranslate('LBL_MORE',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong> <i class="caret"></i></button><ul class="dropdown-menu pull-right"><?php $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value){
$_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->_loop = true;
?><?php if ($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel()==''){?><li class="divider"></li><?php }else{ ?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
_detailView_moreAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel());?>
"><a href=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getUrl();?>
><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a></li><?php }?><?php } ?></ul></span><?php }?><?php if (count($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWSETTING'])>0){?><span class="btn-group"><button class="btn dropdown-toggle" href="#" data-toggle="dropdown"><i class="icon-wrench" alt="<?php echo vtranslate('LBL_SETTINGS',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
" title="<?php echo vtranslate('LBL_SETTINGS',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
"></i> <i class="caret"></i></button><ul class="listViewSetting dropdown-menu"><?php $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWSETTING']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->key => $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->value){
$_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->_loop = true;
?><li><a href=<?php echo $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->value->getUrl();?>
><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a></li><?php } ?></ul></span><?php }?></div></div></div></div></div><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['NO_PAGINATION']->value;?>
<?php $_tmp1=ob_get_clean();?><?php if (!$_tmp1){?><div class="span2 detailViewPagingButton"><span class="btn-group pull-right"><button class="btn" id="detailViewPreviousRecordButton" <?php if (empty($_smarty_tpl->tpl_vars['PREVIOUS_RECORD_URL']->value)){?> disabled="disabled" <?php }else{ ?> onclick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['PREVIOUS_RECORD_URL']->value;?>
'" <?php }?>><i class="icon-chevron-left"></i></button><button class="btn" id="detailViewNextRecordButton" <?php if (empty($_smarty_tpl->tpl_vars['NEXT_RECORD_URL']->value)){?> disabled="disabled" <?php }else{ ?> onclick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['NEXT_RECORD_URL']->value;?>
'" <?php }?>><i class="icon-chevron-right"></i></button></span></div><?php }?></div><div class="detailViewInfo row-fluid"><div class="<?php if ($_smarty_tpl->tpl_vars['NO_PAGINATION']->value){?> span12 <?php }else{ ?> span10 <?php }?> <?php if (!empty($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWTAB'])||!empty($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWRELATED'])){?> details <?php }?>"><form id="detailView" data-name-fields='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields());?>
' method="POST"><?php if (!empty($_smarty_tpl->tpl_vars['PICKLIST_DEPENDENCY_DATASOURCE']->value)){?><input type="hidden" name="picklistDependency" value="<?php echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_DEPENDENCY_DATASOURCE']->value);?>
"><?php }?><div class="contents">
<?php }} ?>
开发者ID:jeremyevans6,项目名称:kulturedTiger-,代码行数:36,代码来源:e33d7d390663b9fd6eb1778948113f3c41046894.file.DetailViewHeader.tpl.php
示例10: content_5685e55bec89a
function content_5685e55bec89a($_smarty_tpl)
{
?>
<form class="form-horizontal recordEditView" id="report_step2" method="post" action="index.php"><input type="hidden" name="module" value="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
" /><input type="hidden" name="view" value="Edit" /><input type="hidden" name="mode" value="step3" /><input type="hidden" name="record" value="<?php
echo $_smarty_tpl->tpl_vars['RECORD_ID']->value;
?>
" /><input type="hidden" name="reportname" value="<?php
echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('reportname');
?>
" /><input type="hidden" name="folderid" value="<?php
echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('folderid');
?>
" /><input type="hidden" name="description" value="<?php
echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('description');
?>
" /><input type="hidden" name="primary_module" value="<?php
echo $_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value;
?>
" /><input type="hidden" name="secondary_modules" value=<?php
echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['SECONDARY_MODULES']->value);
?>
/><input type="hidden" name="selected_fields" id="seleted_fields" value='<?php
echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['SELECTED_FIELDS']->value);
?>
' /><input type="hidden" name="selected_sort_fields" id="selected_sort_fields" value="" /><input type="hidden" name="calculation_fields" id="calculation_fields" value="" /><input type="hidden" name="isDuplicate" value="<?php
echo $_smarty_tpl->tpl_vars['IS_DUPLICATE']->value;
?>
" /><input type="hidden" name="enable_schedule" value="<?php
echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('enable_schedule');
?>
"><input type="hidden" name="schtime" value="<?php
echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('schtime');
?>
"><input type="hidden" name="schdate" value="<?php
echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('schdate');
?>
"><input type="hidden" name="schdayoftheweek" value=<?php
echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('schdayoftheweek'));
?>
><input type="hidden" name="schdayofthemonth" value=<?php
echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('schdayofthemonth'));
?>
><input type="hidden" name="schannualdates" value=<?php
echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('schannualdates'));
?>
><input type="hidden" name="recipients" value=<?php
echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('recipients'));
?>
><input type="hidden" name="specificemails" value=<?php
echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('specificemails'));
?>
><input type="hidden" name="schtypeid" value="<?php
echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('schtypeid');
?>
"><input type="hidden" class="step" value="2" /><div class="well padding1per contentsBackground"><div class="row-fluid block padding1per"><div class="row-fluid padding1per"><strong><?php
echo vtranslate('LBL_SELECT_COLUMNS', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
(<?php
echo vtranslate('LBL_MAX', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
25)</strong></div><div class="row-fluid padding1per"><select data-placeholder="<?php
echo vtranslate('LBL_ADD_MORE_COLUMNS', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
" id="reportsColumnsList" class="select2-container span11 columns" multiple=""><?php
$_smarty_tpl->tpl_vars['PRIMARY_MODULE'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['PRIMARY_MODULE']->_loop = false;
$_smarty_tpl->tpl_vars['PRIMARY_MODULE_NAME'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['PRIMARY_MODULE_FIELDS']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['PRIMARY_MODULE']->key => $_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value) {
$_smarty_tpl->tpl_vars['PRIMARY_MODULE']->_loop = true;
$_smarty_tpl->tpl_vars['PRIMARY_MODULE_NAME']->value = $_smarty_tpl->tpl_vars['PRIMARY_MODULE']->key;
$_smarty_tpl->tpl_vars['BLOCK'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['BLOCK']->_loop = false;
$_smarty_tpl->tpl_vars['BLOCK_LABEL'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['BLOCK']->key => $_smarty_tpl->tpl_vars['BLOCK']->value) {
$_smarty_tpl->tpl_vars['BLOCK']->_loop = true;
$_smarty_tpl->tpl_vars['BLOCK_LABEL']->value = $_smarty_tpl->tpl_vars['BLOCK']->key;
?>
<optgroup label='<?php
echo vtranslate($_smarty_tpl->tpl_vars['PRIMARY_MODULE_NAME']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
?>
-<?php
echo vtranslate($_smarty_tpl->tpl_vars['BLOCK_LABEL']->value, $_smarty_tpl->tpl_vars['PRIMARY_MODULE_NAME']->value);
?>
'><?php
$_smarty_tpl->tpl_vars['FIELD_LABEL'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['FIELD_LABEL']->_loop = false;
$_smarty_tpl->tpl_vars['FIELD_KEY'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['BLOCK']->value;
if (!is_array($_from) && !is_object($_from)) {
//.........这里部分代码省略.........
开发者ID:thanhphi0127,项目名称:vtiger,代码行数:101,代码来源:7f698d495ce3e9ca1ddcaa327506f30407b14e70.file.step2.tpl.php
示例11: content_5674f1d67ee41
//.........这里部分代码省略.........
echo vimage_path($_smarty_tpl->tpl_vars['SORT_IMAGE']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
?>
"><?php
} else {
?>
<img class="hide sortingImage" src="<?php
echo vimage_path('downArrowSmall.png', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
"><?php
}
?>
</a></th><?php
}
?>
</tr></thead><?php
$_smarty_tpl->tpl_vars['LISTVIEW_ENTRY'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_ENTRIES']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['popupListView']['index'] = -1;
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->key => $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value) {
$_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->_loop = true;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['popupListView']['index']++;
?>
<tr class="listViewEntries" data-id="<?php
echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->getId();
?>
" data-name='<?php
echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->getName();
?>
' data-info='<?php
echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->getRawData());
?>
'<?php
if ($_smarty_tpl->tpl_vars['GETURL']->value != '') {
?>
data-url='<?php
$_tmp1 = $_smarty_tpl->tpl_vars['GETURL']->value;
echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->{$_tmp1}();
?>
' <?php
}
?>
id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_popUpListView_row_<?php
echo $_smarty_tpl->getVariable('smarty')->value['foreach']['popupListView']['index'] + 1;
?>
"><?php
if ($_smarty_tpl->tpl_vars['MULTI_SELECT']->value) {
?>
<td class="<?php
echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;
?>
"><input class="entryCheckBox" type="checkbox" /></td><?php
}
$_smarty_tpl->tpl_vars['LISTVIEW_HEADER'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_HEADERS']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->key => $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value) {
开发者ID:wsLapshin,项目名称:charter_crm,代码行数:67,代码来源:b18535d0144ec5b80c524017e528f7b6505924b7.file.PopupContents.tpl.php
示例12: content_5675406fa57e7
function content_5675406fa57e7($_smarty_tpl)
{
?>
<div class='modelContainer'><div class="modal-header"><button data-dismiss="modal" class="close" title="<?php
echo vtranslate('LBL_CLOSE');
?>
">x</button><h3><?php
echo vtranslate('LBL_RENAME_PICKLIST_ITEM', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
</h3></div><form id="renameItemForm" class="form-horizontal" method="post" action="index.php"><input type="hidden" name="module" value="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
" /><input type="hidden" name="parent" value="Settings" /><input type="hidden" name="source_module" value="<?php
echo $_smarty_tpl->tpl_vars['SOURCE_MODULE']->value;
?>
" /><input type="hidden" name="action" value="SaveAjax" /><input type="hidden" name="mode" value="rename" /><input type="hidden" name="picklistName" value="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name');
?>
" /><input type="hidden" name="pickListValues" value='<?php
echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['SELECTED_PICKLISTFIELD_EDITABLE_VALUES']->value));
?>
' /><div class="modal-body tabbable"><div class="control-group"><div class="control-label"><?php
echo vtranslate('LBL_ITEM_TO_RENAME', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
</div><div class="controls"><?php
$_smarty_tpl->tpl_vars['PICKLIST_VALUES'] = new Smarty_variable($_smarty_tpl->tpl_vars['SELECTED_PICKLISTFIELD_EDITABLE_VALUES']->value, null, 0);
?>
<select class="chzn-select" name="oldValue"><optgroup><?php
$_smarty_tpl->tpl_vars['PICKLIST_VALUE'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = false;
$_smarty_tpl->tpl_vars['PICKLIST_VALUE_KEY'] = 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_VALUE_KEY']->value = $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->key;
?>
<option <?php
if ($_smarty_tpl->tpl_vars['FIELD_VALUE']->value == $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value) {
?>
selected="" <?php
}
?>
value="<?php
echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value);
?>
" data-id=<?php
echo $_smarty_tpl->tpl_vars['PICKLIST_VALUE_KEY']->value;
?>
><?php
echo vtranslate($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value, $_smarty_tpl->tpl_vars['SOURCE_MODULE']->value);
?>
</option><?php
}
?>
</optgroup></select></div><br><div class="control-label"><span class="redColor">*</span><?php
echo vtranslate('LBL_ENTER_NEW_NAME', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
</div><div class="controls"><input type="text" data-validation-engine="validate[required, funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" data-validator=<?php
echo Zend_Json::encode(array(array('name' => 'FieldLabel')));
?>
name="newValue"></div><?php
if ($_smarty_tpl->tpl_vars['SELECTED_PICKLISTFIELD_NON_EDITABLE_VALUES']->value) {
?>
<br><div class="control-label"><?php
echo vtranslate('LBL_NON_EDITABLE_PICKLIST_VALUES', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
</div><div class="controls nonEditableValuesDiv"><ul class="nonEditablePicklistValues" style="list-style-type: none;"><?php
$_smarty_tpl->tpl_vars['NON_EDITABLE_VALUE'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['NON_EDITABLE_VALUE']->_loop = false;
$_smarty_tpl->tpl_vars['NON_EDITABLE_VALUE_KEY'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['SELECTED_PICKLISTFIELD_NON_EDITABLE_VALUES']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['NON_EDITABLE_VALUE']->key => $_smarty_tpl->tpl_vars['NON_EDITABLE_VALUE']->value) {
$_smarty_tpl->tpl_vars['NON_EDITABLE_VALUE']->_loop = true;
$_smarty_tpl->tpl_vars['NON_EDITABLE_VALUE_KEY']->value = $_smarty_tpl->tpl_vars['NON_EDITABLE_VALUE']->key;
?>
<li><?php
echo vtranslate($_smarty_tpl->tpl_vars['NON_EDITABLE_VALUE']->value, $_smarty_tpl->tpl_vars['SOURCE_MODULE']->value);
?>
</li><?php
}
?>
</ul></div><?php
}
?>
</div></div><?php
echo $_smarty_tpl->getSubTemplate(vtemplate_path('ModalFooter.tpl', $_smarty_tpl->tpl_vars['qualifiedName']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
</form></div><?php
}
开发者ID:wsLapshin,项目名称:charter_crm,代码行数:95,代码来源:78ce87597387c17017f35ce02512c11943ebbd2f.file.EditView.tpl.php
示例13: content_5685e626873ab
function content_5685e626873ab($_smarty_tpl)
{
?>
<form class="form-horizontal recordEditView" id="chart_report_step2" method="post" action="index.php"><input type="hidden" name="module" value="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
" ><input type="hidden" name="view" value="ChartEdit" ><input type="hidden" name="record" value="<?php
echo $_smarty_tpl->tpl_vars['RECORD_ID']->value;
?>
" ><input type="hidden" name="reportname" value="<?php
echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('reportname');
?>
" ><input type="hidden" name="folderid" value="<?php
echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('folderid');
?>
" ><input type="hidden" name="reports_description" value="<?php
echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('description');
?>
" ><input type="hidden" name="primary_module" value="<?php
echo $_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value;
?>
" ><input type="hidden" name="secondary_modules" value=<?php
echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['SECONDARY_MODULES']->value);
?>
><input type="hidden" name="isDuplicate" value="<?php
echo $_smarty_tpl->tpl_vars['IS_DUPLICATE']->value;
?>
" ><input type="hidden" class="step" value="2" ><input type="hidden" name="mode" value="step3" ><input type="hidden" name="advanced_filter" id="advanced_filter" value="" ><?php
$_smarty_tpl->tpl_vars['RECORD_STRUCTURE'] = new Smarty_variable(array(), null, 0);
$_smarty_tpl->tpl_vars['PRIMARY_MODULE_LABEL'] = new Smarty_variable(vtranslate($_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value, $_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value), null, 0);
$_smarty_tpl->tpl_vars['BLOCK_FIELDS'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['BLOCK_FIELDS']->_loop = false;
$_smarty_tpl->tpl_vars['BLOCK_LABEL'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['PRIMARY_MODULE_RECORD_STRUCTURE']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['BLOCK_FIELDS']->key => $_smarty_tpl->tpl_vars['BLOCK_FIELDS']->value) {
$_smarty_tpl->tpl_vars['BLOCK_FIELDS']->_loop = true;
$_smarty_tpl->tpl_vars['BLOCK_LABEL']->value = $_smarty_tpl->tpl_vars['BLOCK_FIELDS']->key;
$_smarty_tpl->tpl_vars['PRIMARY_MODULE_BLOCK_LABEL'] = new Smarty_variable(vtranslate($_smarty_tpl->tpl_vars['BLOCK_LABEL']->value, $_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value), null, 0);
$_smarty_tpl->tpl_vars['key'] = new Smarty_variable($_smarty_tpl->tpl_vars['PRIMARY_MODULE_LABEL']->value . " " . $_smarty_tpl->tpl_vars['PRIMARY_MODULE_BLOCK_LABEL']->value, null, 0);
if ($_smarty_tpl->tpl_vars['LINEITEM_FIELD_IN_CALCULATION']->value == false && $_smarty_tpl->tpl_vars['BLOCK_LABEL']->value == 'LBL_ITEM_DETAILS') {
} else {
$_smarty_tpl->createLocalArrayVariable('RECORD_STRUCTURE', null, 0);
$_smarty_tpl->tpl_vars['RECORD_STRUCTURE']->value[$_smarty_tpl->tpl_vars['key']->value] = $_smarty_tpl->tpl_vars['BLOCK_FIELDS']->value;
}
}
$_smarty_tpl->tpl_vars['SECONDARY_MODULE_RECORD_STRUCTURE'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['SECONDARY_MODULE_RECORD_STRUCTURE']->_loop = false;
$_smarty_tpl->tpl_vars['MODULE_LABEL'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['SECONDARY_MODULE_RECORD_STRUCTURES']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['SECONDARY_MODULE_RECORD_STRUCTURE']->key => $_smarty_tpl->tpl_vars['SECONDARY_MODULE_RECORD_STRUCTURE']->value) {
$_smarty_tpl->tpl_vars['SECONDARY_MODULE_RECORD_STRUCTURE']->_loop = true;
$_smarty_tpl->tpl_vars['MODULE_LABEL']->value = $_smarty_tpl->tpl_vars['SECONDARY_MODULE_RECORD_STRUCTURE']->key;
$_smarty_tpl->tpl_vars['SECONDARY_MODULE_LABEL'] = new Smarty_variable(vtranslate($_smarty_tpl->tpl_vars['MODULE_LABEL']->value, $_smarty_tpl->tpl_vars['MODULE_LABEL']->value), null, 0);
$_smarty_tpl->tpl_vars['BLOCK_FIELDS'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['BLOCK_FIELDS']->_loop = false;
$_smarty_tpl->tpl_vars['BLOCK_LABEL'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['SECONDARY_MODULE_RECORD_STRUCTURE']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['BLOCK_FIELDS']->key => $_smarty_tpl->tpl_vars['BLOCK_FIELDS']->value) {
$_smarty_tpl->tpl_vars['BLOCK_FIELDS']->_loop = true;
$_smarty_tpl->tpl_vars['BLOCK_LABEL']->value = $_smarty_tpl->tpl_vars['BLOCK_FIELDS']->key;
$_smarty_tpl->tpl_vars['SECONDARY_MODULE_BLOCK_LABEL'] = new Smarty_variable(vtranslate($_smarty_tpl->tpl_vars['BLOCK_LABEL']->value, $_smarty_tpl->tpl_vars['MODULE_LABEL']->value), null, 0);
$_smarty_tpl->tpl_vars['key'] = new Smarty_variable($_smarty_tpl->tpl_vars['SECONDARY_MODULE_LABEL']->value . " " . $_smarty_tpl->tpl_vars['SECONDARY_MODULE_BLOCK_LABEL']->value, null, 0);
$_smarty_tpl->createLocalArrayVariable('RECORD_STRUCTURE', null, 0);
$_smarty_tpl->tpl_vars['RECORD_STRUCTURE']->value[$_smarty_tpl->tpl_vars['key']->value] = $_smarty_tpl->tpl_vars['BLOCK_FIELDS']->value;
}
}
?>
<div class="padding1per border1px"><div class="row-fluid"><h4><strong><?php
echo vtranslate('LBL_CHOOSE_FILTER_CONDITIONS', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</strong></h4><br><span class="span10 well contentsBackground"><?php
echo $_smarty_tpl->getSubTemplate(vtemplate_path('AdvanceFilter.tpl'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('RECORD_STRUCTURE' => $_smarty_tpl->tpl_vars['RECORD_STRUCTURE']->value, 'ADVANCE_CRITERIA' => $_smarty_tpl->tpl_vars['SELECTED_ADVANCED_FILTER_FIELDS']->value, 'COLUMNNAME_API' => 'getReportFilterColumnName'), 0);
?>
</span></div></div><br><div class="pull-right block"><button type="button" class="btn btn-danger backStep"><strong><?php
echo vtranslate('LBL_BACK', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</strong></button> <button type="submit" class="btn btn-success nextStep"><strong><?php
echo vtranslate('LBL_NEXT', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</strong></button> <a class="cancelLink" onclick="window.history.back()"><?php
echo vtranslate('LBL_CANCEL', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a> </div><br><br></form><?php
}
开发者ID:thanhphi0127,项目名称:vtiger,代码行数:93,代码来源:fda277520e2abb0154e841e14444112ed56b123f.file.ChartEditStep2.tpl.php
示例14: content_567e0a2660d1f
function content_567e0a2660d1f($_smarty_tpl)
{
?>
<div class="row-fluid"><div class="span2"><strong><?php
echo vtranslate('LBL_SET_FIELD_VALUES', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
</strong></div></div><br><div><button type="button" class="btn" id="addFieldBtn"><?php
echo vtranslate('LBL_ADD_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
</button></div><br><div class="row-fluid conditionsContainer" id="save_fieldvaluemapping"><?php
$_smarty_tpl->tpl_vars['FIELD_VALUE_MAPPING'] = new Smarty_variable(ZEND_JSON::decode($_smarty_tpl->tpl_vars['TASK_OBJECT']->value->field_value_mapping), null, 0);
?>
<input type="hidden" id="fieldValueMapping" name="field_value_mapping" value='<?php
echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['TASK_OBJECT']->value->field_value_mapping);
?>
' /><?php
$_smarty_tpl->tpl_vars['FIELD_MAP'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['FIELD_MAP']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['FIELD_VALUE_MAPPING']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_MAP']->key => $_smarty_tpl->tpl_vars['FIELD_MAP']->value) {
$_smarty_tpl->tpl_vars['FIELD_MAP']->_loop = true;
?>
<div class="row-fluid conditionRow padding-bottom1per"><span class="span4"><select name="fieldname" class="chzn-select" style="min-width: 250px" data-placeholder="<?php
echo vtranslate('LBL_SELECT_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
"><option></option><?php
$_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getFields();
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_MODEL']->key => $_smarty_tpl->tpl_vars['FIELD_MODEL']->value) {
$_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = true;
if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isEditable() || $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == 'reference' || $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name') == "Documents" && in_array($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), $_smarty_tpl->tpl_vars['RESTRICTFIELDS']->value)) {
continue 1;
}
$_smarty_tpl->tpl_vars['FIELD_INFO'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo(), null, 0);
$_smarty_tpl->tpl_vars['MODULE_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getModule(), null, 0);
?>
<option value="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name');
?>
" <?php
if ($_smarty_tpl->tpl_vars['FIELD_MAP']->value['fieldname'] == $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name')) {
?>
selected=""<?php
}
?>
data-fieldtype="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldType();
?>
" data-field-name="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name');
?>
" data-fieldinfo='<?php
echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value);
?>
' ><?php
if ($_smarty_tpl->tpl_vars['SOURCE_MODULE']->value != $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name')) {
?>
(<?php
echo vtranslate($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'), $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'));
?>
) <?php
echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'));
} else {
echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['SOURCE_MODULE']->value);
}
?>
</option><?php
}
?>
</select></span><span class="fieldUiHolder span4 marginLeftZero"><input type="text" class="getPopupUi row-fluid" readonly="" name="fieldValue" value="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MAP']->value['value'];
?>
" /><input type="hidden" name="valuetype" value="<?php
echo $_smarty_tpl->tpl_vars['FIELD_MAP']->value['valuetype'];
?>
" /></span><span class="cursorPointer span"><i class="alignMiddle deleteCondition icon-trash"></i></span></div><?php
}
echo $_smarty_tpl->getSubTemplate(vtemplate_path("FieldExpressions.tpl", $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);
?>
</div><br><div class="row-fluid basicAddFieldContainer hide padding-bottom1per"><span class="span4"><select name="fieldname" data-placeholder="<?php
echo vtranslate('LBL_SELECT_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
" style="min-width: 250px"><option></option><?php
$_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getFields();
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_MODEL']->key => $_smarty_tpl->tpl_vars['FIELD_MODEL']->value) {
$_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = true;
if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isEditable() || $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == 'reference' || $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name') == "Documents" && in_array($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), $_smarty_tpl->tpl_vars['RESTRICTFIELDS']->value)) {
continue 1;
//.........这里部分代码省略.........
开发者ID:wsLapshin,项目名称:charter_crm,代码行数:101,代码来源:796ba1781201d68f7c944e4e70597e927436b674.file.VTUpdateFieldsTask.tpl.php
示例15: content_54d256dd68477
function content_54d256dd68477($_smarty_tpl)
{
?>
<div class="container-fluid" id="menuEditorContainer"><div class="widget_header row-fluid"><div class="span8"><h3><?php
echo vtranslate('LBL_MENU_EDITOR', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
</h3></div></div><hr><div class="contents"><form name="menuEditor" action="index.php" method="post" class="form-horizontal" id="menuEditor"><input type="hidden" name="module" value="<?php
echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;
?>
" /><input type="hidden" name="action" value="Save" /><input type="hidden" name="parent" value="Settings" /><div class="row-fluid paddingTop20"><?php
$_smarty_tpl->tpl_vars['SELECTED_MODULE_IDS'] = new Smarty_variable(array(), null, 0);
?>
<select data-placeholder="<?php
echo vtranslate('LBL_ADD_MENU_ITEM', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
" id="menuListSelectElement" class="select2 span12" multiple="" data-validation-engine="validate[required]" ><?php
$_smarty_tpl->tpl_vars['MODULE_MODEL'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['MODULE_MODEL']->_loop = false;
$_smarty_tpl->tpl_vars['SELECTED_MODULE'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['SELECTED_MODULES']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['MODULE_MODEL']->key => $_smarty_tpl->tpl_vars['MODULE_MODEL']->value) {
$_smarty_tpl->tpl_vars['MODULE_MODEL']->_loop = true;
$_smarty_tpl->tpl_vars['SELECTED_MODULE']->value = $_smarty_tpl->tpl_vars['MODULE_MODEL']->key;
echo array_push($_smarty_tpl->tpl_vars['SELECTED_MODULE_IDS']->value, $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getId());
}
$_smarty_tpl->tpl_vars['MODULES_LIST'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['MODULES_LIST']->_loop = false;
$_smarty_tpl->tpl_vars['PARENT_NAME'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['ALL_MODULES']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['MODULES_LIST']->key => $_smarty_tpl->tpl_vars['MODULES_LIST']->value) {
$_smarty_tpl->tpl_vars['MODULES_LIST']->_loop = true;
$_smarty_tpl->tpl_vars['PARENT_NAME']->value = $_smarty_tpl->tpl_vars['MODULES_LIST']->key;
?>
<optgroup label='<?php
echo vtranslate("LBL_" . $_smarty_tpl->tpl_vars['PARENT_NAME']->value, $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
'><?php
$_smarty_tpl->tpl_vars['MODULE_MODEL'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['MODULE_MODEL']->_loop = false;
$_smarty_tpl->tpl_vars['MODULE_NAME'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['MODULES_LIST']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['MODULE_MODEL']->key => $_smarty_tpl->tpl_vars['MODULE_MODEL']->value) {
$_smarty_tpl->tpl_vars['MODULE_MODEL']->_loop = true;
$_smarty_tpl->tpl_vars['MODULE_NAME']->value = $_smarty_tpl->tpl_vars['MODULE_MODEL']->key;
$_smarty_tpl->tpl_vars['TABID'] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getId(), null, 0);
?>
<option value="<?php
echo $_smarty_tpl->tpl_vars['TABID']->value;
?>
" <?php
if (in_array($_smarty_tpl->tpl_vars['TABID']->value, $_smarty_tpl->tpl_vars['SELECTED_MODULE_IDS']->value)) {
?>
selected <?php
}
?>
><?php
echo vtranslate($_smarty_tpl->tpl_vars['MODULE_NAME']->value, $_smarty_tpl->tpl_vars['MODULE_NAME']->value);
?>
</option><?php
}
?>
</optgroup><?php
}
?>
</select></div><div class="row-fluid paddingTop20"><div class=" span6"><button class="btn btn-success hide pull-right" type="submit" name="saveMenusList"><strong><?php
echo vtranslate('LBL_SAVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);
?>
</strong></button></div></div><input type="hidden" name="selectedModulesList" value='' /><input type="hidden" name="topMenuIdsList" value='<?php
echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['SELECTED_MODULE_IDS']->value);
?>
' /></form></div></div><?php
}
开发者ID:jmangarret,项目名称:vtigercrm,代码行数:81,代码来源:d9965018555dcc5580ea3794909802506ea3b59a.file.Index.tpl.php