<?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 }} ?>
<?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 }} ?>
/** * 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; }
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 }
<?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 }} ?>
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 } }
<?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 }} ?>
<?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 }} ?>
<?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 }} ?>
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)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_LABEL']->key => $_smarty_tpl->tpl_vars['FIELD_LABEL']->value) { $_smarty_tpl->tpl_vars['FIELD_LABEL']->_loop = true; $_smarty_tpl->tpl_vars['FIELD_KEY']->value = $_smarty_tpl->tpl_vars['FIELD_LABEL']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['FIELD_KEY']->value; ?> " <?php if (!empty($_smarty_tpl->tpl_vars['SELECTED_FIELDS']->value) && in_array($_smarty_tpl->tpl_vars['FIELD_KEY']->value, array_map('decode_html', $_smarty_tpl->tpl_vars['SELECTED_FIELDS']->value))) { ?> selected=""<?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['FIELD_LABEL']->value, $_smarty_tpl->tpl_vars['PRIMARY_MODULE_NAME']->value); ?> </option><?php } ?> </optgroup><?php } } $_smarty_tpl->tpl_vars['SECONDARY_MODULE'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['SECONDARY_MODULE']->_loop = false; $_smarty_tpl->tpl_vars['SECONDARY_MODULE_NAME'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['SECONDARY_MODULE_FIELDS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['SECONDARY_MODULE']->key => $_smarty_tpl->tpl_vars['SECONDARY_MODULE']->value) { $_smarty_tpl->tpl_vars['SECONDARY_MODULE']->_loop = true; $_smarty_tpl->tpl_vars['SECONDARY_MODULE_NAME']->value = $_smarty_tpl->tpl_vars['SECONDARY_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['SECONDARY_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['SECONDARY_MODULE_NAME']->value, $_smarty_tpl->tpl_vars['MODULE']->value); ?> -<?php echo vtranslate($_smarty_tpl->tpl_vars['BLOCK_LABEL']->value, $_smarty_tpl->tpl_vars['SECONDARY_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)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_LABEL']->key => $_smarty_tpl->tpl_vars['FIELD_LABEL']->value) { $_smarty_tpl->tpl_vars['FIELD_LABEL']->_loop = true; $_smarty_tpl->tpl_vars['FIELD_KEY']->value = $_smarty_tpl->tpl_vars['FIELD_LABEL']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['FIELD_KEY']->value; ?> "<?php if (!empty($_smarty_tpl->tpl_vars['SELECTED_FIELDS']->value) && in_array($_smarty_tpl->tpl_vars['FIELD_KEY']->value, array_map('decode_html', $_smarty_tpl->tpl_vars['SELECTED_FIELDS']->value))) { ?> selected=""<?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['FIELD_LABEL']->value, $_smarty_tpl->tpl_vars['SECONDARY_MODULE_NAME']->value); ?> </option><?php } ?> </optgroup><?php } } ?> </select></div></div><div class="row-fluid block padding1per"><div class="row-fluid padding1per"><span class="span6"><strong><?php echo vtranslate('LBL_GROUP_BY', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></span><span class="span6"><strong><?php echo vtranslate('LBL_SORT_ORDER', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></span></div><?php $_smarty_tpl->tpl_vars['ROW_VAL'] = new Smarty_variable(1, null, 0); $_smarty_tpl->tpl_vars['SELECTED_SORT_FIELD_VALUE'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['SELECTED_SORT_FIELD_VALUE']->_loop = false; $_smarty_tpl->tpl_vars['SELECTED_SORT_FIELD_KEY'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['SELECTED_SORT_FIELDS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['SELECTED_SORT_FIELD_VALUE']->key => $_smarty_tpl->tpl_vars['SELECTED_SORT_FIELD_VALUE']->value) { $_smarty_tpl->tpl_vars['SELECTED_SORT_FIELD_VALUE']->_loop = true; $_smarty_tpl->tpl_vars['SELECTED_SORT_FIELD_KEY']->value = $_smarty_tpl->tpl_vars['SELECTED_SORT_FIELD_VALUE']->key; ?> <div class="row-fluid padding1per sortFieldRow"><?php echo $_smarty_tpl->getSubTemplate(vtemplate_path('RelatedFields.tpl', $_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('ROW_VAL' => $_smarty_tpl->tpl_vars['ROW_VAL']->value), 0); $_smarty_tpl->tpl_vars['ROW_VAL'] = new Smarty_variable($_smarty_tpl->tpl_vars['ROW_VAL']->value + 1, null, 0); ?> </div><?php } $_smarty_tpl->tpl_vars['SELECTED_SORT_FEILDS_ARRAY'] = new Smarty_variable($_smarty_tpl->tpl_vars['SELECTED_SORT_FIELDS']->value, null, 0); $_smarty_tpl->tpl_vars['SELECTED_SORT_FIELDS_COUNT'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['SELECTED_SORT_FEILDS_ARRAY']->value), null, 0); while ($_smarty_tpl->tpl_vars['SELECTED_SORT_FIELDS_COUNT']->value < 3) { ?> <div class="row-fluid padding1per sortFieldRow"><?php echo $_smarty_tpl->getSubTemplate(vtemplate_path('RelatedFields.tpl', $_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('ROW_VAL' => $_smarty_tpl->tpl_vars['ROW_VAL']->value), 0); $_smarty_tpl->tpl_vars['ROW_VAL'] = new Smarty_variable($_smarty_tpl->tpl_vars['ROW_VAL']->value + 1, null, 0); $_smarty_tpl->tpl_vars['SELECTED_SORT_FIELDS_COUNT'] = new Smarty_variable($_smarty_tpl->tpl_vars['SELECTED_SORT_FIELDS_COUNT']->value + 1, null, 0); ?> </div><?php } ?> </div><div class="row-fluid block padding1per"><div class="padding1per"><strong><?php echo vtranslate('LBL_CALCULATIONS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></div><div class="padding1per"><table class="table table-bordered CalculationFields" width="100%"><thead><tr class="calculationHeaders"><th><?php echo vtranslate('LBL_COLUMNS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </th><th><?php echo vtranslate('LBL_SUM_VALUE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </th><th><?php echo vtranslate('LBL_AVERAGE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </th><th><?php echo vtranslate('LBL_LOWEST_VALUE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </th><th><?php echo vtranslate('LBL_HIGHEST_VALUE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </th></tr></thead><?php $_smarty_tpl->tpl_vars['FIELD_OPERATION_VALUES'] = new Smarty_variable(explode(',', 'SUM:2,AVG:3,MIN:4,MAX:5'), null, 0); $_smarty_tpl->tpl_vars['CALCULATION_FIELDS_MODULE'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['CALCULATION_FIELDS_MODULE']->_loop = false; $_smarty_tpl->tpl_vars['CALCULATION_FIELDS_MODULE_LABEL'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['CALCULATION_FIELDS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['CALCULATION_FIELDS_MODULE']->key => $_smarty_tpl->tpl_vars['CALCULATION_FIELDS_MODULE']->value) { $_smarty_tpl->tpl_vars['CALCULATION_FIELDS_MODULE']->_loop = true; $_smarty_tpl->tpl_vars['CALCULATION_FIELDS_MODULE_LABEL']->value = $_smarty_tpl->tpl_vars['CALCULATION_FIELDS_MODULE']->key; $_smarty_tpl->tpl_vars['CALCULATION_FIELD'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->_loop = false; $_smarty_tpl->tpl_vars['CALCULATION_FIELD_KEY'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['CALCULATION_FIELDS_MODULE']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->key => $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->value) { $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->_loop = true; $_smarty_tpl->tpl_vars['CALCULATION_FIELD_KEY']->value = $_smarty_tpl->tpl_vars['CALCULATION_FIELD']->key; $_smarty_tpl->tpl_vars['FIELD_EXPLODE'] = new Smarty_variable(explode(':', $_smarty_tpl->tpl_vars['CALCULATION_FIELD_KEY']->value), null, 0); $_smarty_tpl->tpl_vars['tableName'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_EXPLODE']->value['0'], null, 0); $_smarty_tpl->tpl_vars['columnName'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_EXPLODE']->value['1'], null, 0); $_smarty_tpl->tpl_vars['FIELDNAME_EXPLODE'] = new Smarty_variable(explode('_', $_smarty_tpl->tpl_vars['FIELD_EXPLODE']->value['2']), null, 0); $_smarty_tpl->tpl_vars['fieldNameArray'] = new Smarty_variable(array_slice($_smarty_tpl->tpl_vars['FIELDNAME_EXPLODE']->value, 1), null, 0); $_smarty_tpl->tpl_vars['fieldName'] = new Smarty_variable(implode('_', $_smarty_tpl->tpl_vars['fieldNameArray']->value), null, 0); ?> <tr class="calculationFieldRow"><td><?php echo vtranslate($_smarty_tpl->tpl_vars['CALCULATION_FIELDS_MODULE_LABEL']->value, $_smarty_tpl->tpl_vars['MODULE']->value); ?> -<?php echo vtranslate($_smarty_tpl->tpl_vars['CALCULATION_FIELD']->value, $_smarty_tpl->tpl_vars['CALCULATION_FIELDS_MODULE_LABEL']->value); ?> </td><?php $_smarty_tpl->tpl_vars['FIELD_OPERATION_VALUE'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['FIELD_OPERATION_VALUE']->_loop = false; $_from = $_smarty_tpl->tpl_vars['FIELD_OPERATION_VALUES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['FIELD_OPERATION_VALUE']->key => $_smarty_tpl->tpl_vars['FIELD_OPERATION_VALUE']->value) { $_smarty_tpl->tpl_vars['FIELD_OPERATION_VALUE']->_loop = true; $_smarty_tpl->tpl_vars['FIELD_CALCULATION_VALUE'] = new Smarty_variable("cb:" . $_smarty_tpl->tpl_vars['tableName']->value . ":" . $_smarty_tpl->tpl_vars['columnName']->value . ":" . $_smarty_tpl->tpl_vars['fieldName']->value . '_' . $_smarty_tpl->tpl_vars['FIELD_OPERATION_VALUE']->value, null, 0); ?> <td width="15%"><input class="calculationType" type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['FIELD_CALCULATION_VALUE']->value; ?> " <?php if (!empty($_smarty_tpl->tpl_vars['SELECTED_CALCULATION_FIELDS']->value) && in_array($_smarty_tpl->tpl_vars['FIELD_CALCULATION_VALUE']->value, $_smarty_tpl->tpl_vars['SELECTED_CALCULATION_FIELDS']->value)) { ?> checked=""<?php } ?> /></td><?php } ?> </tr><?php } } ?> </table></div></div></div><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><br></div><br><br></form><?php }
function content_5674f1d67ee41($_smarty_tpl) { ?> <input type='hidden' id='pageNumber' value="<?php echo $_smarty_tpl->tpl_vars['PAGE_NUMBER']->value; ?> "><input type='hidden' id='pageLimit' value="<?php echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->getPageLimit(); ?> "><input type="hidden" id="noOfEntries" value="<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRIES_COUNT']->value; ?> "><input type="hidden" id="pageStartRange" value="<?php echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->getRecordStartRange(); ?> " /><input type="hidden" id="pageEndRange" value="<?php echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->getRecordEndRange(); ?> " /><input type="hidden" id="previousPageExist" value="<?php echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->isPrevPageExists(); ?> " /><input type="hidden" id="nextPageExist" value="<?php echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->isNextPageExists(); ?> " /><input type="hidden" id="totalCount" value="<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_COUNT']->value; ?> " /><div class="contents-topscroll"><div class="topscroll-div"> </div></div><div class="popupEntriesDiv relatedContents contents-bottomscroll"><input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['ORDER_BY']->value; ?> " id="orderBy"><input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['SORT_ORDER']->value; ?> " id="sortOrder"><?php if ($_smarty_tpl->tpl_vars['SOURCE_MODULE']->value == "Emails") { ?> <input type="hidden" value="Vtiger_EmailsRelatedModule_Popup_Js" id="popUpClassName"/><?php } $_smarty_tpl->tpl_vars['WIDTHTYPE'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->get('rowheight'), null, 0); ?> <div class="bottomscroll-div"><table class="table table-bordered listViewEntriesTable"><thead><tr class="listViewHeaders"><?php if ($_smarty_tpl->tpl_vars['MULTI_SELECT']->value) { ?> <th class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value; ?> "><input type="checkbox" class="selectAllInCurrentPage" /></th><?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) { $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = true; ?> <th class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value; ?> "><a href="javascript:void(0);" class="listViewHeaderValues <?php if ($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('name') == 'listprice') { ?> noSorting <?php } ?> " data-nextsortorderval="<?php if ($_smarty_tpl->tpl_vars['ORDER_BY']->value == $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('column')) { echo $_smarty_tpl->tpl_vars['NEXT_SORT_ORDER']->value; } else { ?> ASC<?php } ?> " data-columnname="<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('column'); ?> "><?php echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('label'), $_smarty_tpl->tpl_vars['MODULE']->value); if ($_smarty_tpl->tpl_vars['ORDER_BY']->value == $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('column')) { ?> <img class="sortImage" src="<?php 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) { $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = true; $_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('name'), null, 0); ?> <td class="listViewEntryValue <?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value; ?> "><?php if ($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->isNameField() == true || $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('uitype') == '4') { ?> <a><?php echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value); ?> </a><?php } elseif ($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('uitype') == '72') { ob_start(); echo $_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->get('currency_symbol_placement'); $_tmp2 = ob_get_clean(); $_smarty_tpl->tpl_vars['CURRENCY_SYMBOL_PLACEMENT'] = new Smarty_variable($_tmp2, null, 0); if ($_smarty_tpl->tpl_vars['CURRENCY_SYMBOL_PLACEMENT']->value == '1.0$') { echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value); echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get('currencySymbol'); } else { echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get('currencySymbol'); echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value); } } elseif ($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value == 'listprice') { echo CurrencyField::convertToUserFormat($_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value), null, true, true); } else { echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value); } ?> </td><?php } ?> </tr><?php } ?> </table></div><!--added this div for Temporarily --><?php if ($_smarty_tpl->tpl_vars['LISTVIEW_ENTRIES_COUNT']->value == '0') { ?> <div class="row-fluid"><div class="emptyRecordsDiv"><?php echo vtranslate('LBL_EQ_ZERO', $_smarty_tpl->tpl_vars['MODULE']->value); ?> <?php echo vtranslate($_smarty_tpl->tpl_vars['RELATED_MODULE']->value, $_smarty_tpl->tpl_vars['RELATED_MODULE']->value); ?> <?php echo vtranslate('LBL_FOUND', $_smarty_tpl->tpl_vars['MODULE']->value); ?> .</div></div><?php } ?> </div> <?php }
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 }
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 }
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; } $_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'); ?> " 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="row-fluid" readonly="" name="fieldValue" value="" /><input type="hidden" name="valuetype" value="rawtext" /></span><span class="cursorPointer span"><i class="alignMiddle deleteCondition icon-trash"></i></span></div><?php }
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 }
function content_5688adf88e3c3($_smarty_tpl) { $_smarty_tpl->tpl_vars['SELECTED_FIELDS'] = new Smarty_variable($_smarty_tpl->tpl_vars['CUSTOMVIEW_MODEL']->value->getSelectedFields(), null, 0); ?> <div class="container-fluid"><form class="form-inline" id="CustomView" name="CustomView" method="post" action="index.php"><input type=hidden name="record" id="record" value="<?php echo $_smarty_tpl->tpl_vars['RECORD_ID']->value; ?> " /><input type="hidden" name="module" value="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value; ?> " /><input type="hidden" name="action" value="Save" /><input type="hidden" name="source_module" value="<?php echo $_smarty_tpl->tpl_vars['SOURCE_MODULE']->value; ?> "/><input type="hidden" id="stdfilterlist" name="stdfilterlist" value=""/><input type="hidden" id="advfilterlist" name="advfilterlist" value=""/><input type="hidden" id="status" name="status" value="<?php echo $_smarty_tpl->tpl_vars['CV_PRIVATE_VALUE']->value; ?> "/><div class="CustomFilterViewTitle"><h3><?php echo vtranslate('LBL_CREATE_VIEW', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </h3></div><hr><input type="hidden" id="sourceModule" value="<?php echo $_smarty_tpl->tpl_vars['SOURCE_MODULE']->value; ?> "><input type="hidden" name="date_filters" data-value='<?php echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['DATE_FILTERS']->value)); ?> ' /><div class="filterBlocksAlignment"><br><div class="row-fluid"><h4 class="filterHeaders"><?php echo vtranslate('LBL_BASIC_DETAILS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> :</h4></div><br><div class="row-fluid"><label><span class="redColor">*</span> <?php echo vtranslate('LBL_VIEW_NAME', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </label><input type="text" id="viewname" data-validation-engine='validate[required]' name="viewname" value="<?php echo $_smarty_tpl->tpl_vars['CUSTOMVIEW_MODEL']->value->get('viewname'); ?> "> <label class="checkbox"><input id="setdefault" type="checkbox" name="setdefault" value="1" <?php if ($_smarty_tpl->tpl_vars['CUSTOMVIEW_MODEL']->value->isDefault()) { ?> checked="checked"<?php } ?> ><?php echo vtranslate('LBL_SET_AS_DEFAULT', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </label> <label class="checkbox"><input id="setmetrics" name="setmetrics" type="checkbox" value="1" <?php if ($_smarty_tpl->tpl_vars['CUSTOMVIEW_MODEL']->value->get('setmetrics') == '1') { ?> checked="checked"<?php } ?> ><?php echo vtranslate('LBL_LIST_IN_METRICS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </label> <label class="checkbox"><input id="status" name="status" type="checkbox" <?php if ($_smarty_tpl->tpl_vars['CUSTOMVIEW_MODEL']->value->isSetPublic()) { ?> value="<?php echo $_smarty_tpl->tpl_vars['CUSTOMVIEW_MODEL']->value->get('status'); ?> " checked="checked" <?php } else { ?> value="<?php echo $_smarty_tpl->tpl_vars['CV_PENDING_VALUE']->value; ?> " <?php } ?> ><?php echo vtranslate('LBL_SET_AS_PUBLIC', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </label></div><br><h4 class="filterHeaders"><?php echo vtranslate('LBL_CHOOSE_COLUMNS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> (<?php echo vtranslate('LBL_MAX_NUMBER_FILTER_COLUMNS'); ?> ) :</h4><br><div class="columnsSelectDiv"><?php $_smarty_tpl->tpl_vars['MANDATORY_FIELDS'] = new Smarty_variable(array(), null, 0); ?> <select data-placeholder="<?php echo vtranslate('LBL_ADD_MORE_COLUMNS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> " multiple class="select2-container columnsSelect" id="viewColumnsSelect"><?php $_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['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; ?> <optgroup label='<?php echo vtranslate($_smarty_tpl->tpl_vars['BLOCK_LABEL']->value, $_smarty_tpl->tpl_vars['SOURCE_MODULE']->value); ?> '><?php $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false; $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['BLOCK_FIELDS']->value; 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; $_smarty_tpl->tpl_vars['FIELD_NAME']->value = $_smarty_tpl->tpl_vars['FIELD_MODEL']->key; if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory()) { echo array_push($_smarty_tpl->tpl_vars['MANDATORY_FIELDS']->value, $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getCustomViewColumnName()); } ?> <option value="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getCustomViewColumnName(); ?> " data-field-name="<?php echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value; ?> "<?php if (in_array($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getCustomViewColumnName(), $_smarty_tpl->tpl_vars['SELECTED_FIELDS']->value)) { ?> selected<?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['SOURCE_MODULE']->value); if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) { ?> <span>*</span> <?php } ?> </option><?php } ?> </optgroup><?php } $_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['EVENT_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; ?> <optgroup label='<?php echo vtranslate($_smarty_tpl->tpl_vars['BLOCK_LABEL']->value, 'Events'); ?> '><?php $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false; $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['BLOCK_FIELDS']->value; 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; $_smarty_tpl->tpl_vars['FIELD_NAME']->value = $_smarty_tpl->tpl_vars['FIELD_MODEL']->key; if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory()) { echo array_push($_smarty_tpl->tpl_vars['MANDATORY_FIELDS']->value, $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getCustomViewColumnName()); } ?> <option value="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getCustomViewColumnName(); ?> " data-field-name="<?php echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value; ?> "<?php if (in_array($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getCustomViewColumnName(), $_smarty_tpl->tpl_vars['SELECTED_FIELDS']->value)) { ?> selected<?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['SOURCE_MODULE']->value); if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) { ?> <span>*</span> <?php } ?> </option><?php } ?> </optgroup><?php } ?> </select><input type="hidden" name="columnslist" value='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['SELECTED_FIELDS']->value); ?> ' /><input id="mandatoryFieldsList" type="hidden" value='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['MANDATORY_FIELDS']->value); ?> ' /></div><br><h4 class="filterHeaders"><?php echo vtranslate('LBL_CHOOSE_FILTER_CONDITIONS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> :</h4><br><div class="filterConditionsDiv"><div class="row-fluid"><span class="span12"><?php echo $_smarty_tpl->getSubTemplate(vtemplate_path('AdvanceFilter.tpl'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> </span></div></div></div><div class="filterActions"><a class="cancelLink pull-right" type="reset" onClick="window.location.reload()"><?php echo vtranslate('LBL_CANCEL', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </a><button class="btn btn-success pull-right" id="customViewSubmit" type="submit"><strong><?php echo vtranslate('LBL_SAVE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></button></div></form></div> <?php }
function content_54d7aae8aa333($_smarty_tpl) { ?> <div id="advanceSearchContainer"><div class="row-fluid padding1per"><div class="span"> </div><div class="span11 paddingTop10"><div class="row-fluid"><span class="span3"> </span><span class="span"><label class="highLight pushDown"><strong><?php echo vtranslate('LBL_SEARCH_IN', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></label></span><span class="span"><select class="chzn-select" id="searchModuleList" data-placeholder="<?php echo vtranslate('LBL_SELECT_MODULE'); ?> "><option></option><?php $_smarty_tpl->tpl_vars['fieldObject'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['fieldObject']->_loop = false; $_smarty_tpl->tpl_vars['MODULE_NAME'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['SEARCHABLE_MODULES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['fieldObject']->key => $_smarty_tpl->tpl_vars['fieldObject']->value) { $_smarty_tpl->tpl_vars['fieldObject']->_loop = true; $_smarty_tpl->tpl_vars['MODULE_NAME']->value = $_smarty_tpl->tpl_vars['fieldObject']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value; ?> " <?php if ($_smarty_tpl->tpl_vars['MODULE_NAME']->value == $_smarty_tpl->tpl_vars['SOURCE_MODULE']->value) { ?> selected="selected"<?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['MODULE_NAME']->value, $_smarty_tpl->tpl_vars['MODULE_NAME']->value); ?> </option><?php } ?> </select></span></div><div class="filterElements"><form name="advanceFilterForm"><?php if ($_smarty_tpl->tpl_vars['SOURCE_MODULE']->value == 'Home') { ?> <div class="textAlignCenter marginBottom10px well contentsBackground"><?php echo vtranslate('LBL_PLEASE_SELECT_MODULE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div><?php } else { ?> <input type="hidden" name="labelFields" data-value='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['SOURCE_MODULE_MODEL']->value->getNameFields()); ?> ' /><?php echo $_smarty_tpl->getSubTemplate(vtemplate_path('AdvanceFilter.tpl'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); } ?> </form><div class="row-fluid actions"><!-- TODO: should be done in better way to show right elements --><div class="span5"><?php if ($_smarty_tpl->tpl_vars['SAVE_FILTER_PERMITTED']->value) { ?> <div class="row-fluid"><span class="span4"> </span><span class="span7"><input class="zeroOpacity row-fluid" type="text" value="" name="viewname"/></span></div><?php } else { ?> <?php } ?> </div><div class="span7"><span class="btn-toolbar"><span class="btn-group"></span><span class="btn-group pull-right pushDown"><a class="cancelLink" type="reset" id="advanceSearchCancel" data-dismiss="modal"><?php echo vtranslate('LBL_CANCEL', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </a></span><span class="btn-group pull-right"><button class="btn" id="advanceSearchButton" <?php if ($_smarty_tpl->tpl_vars['SOURCE_MODULE']->value == 'Home') { ?> disabled="" <?php } ?> type="submit"><strong><?php echo vtranslate('LBL_SEARCH', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></button></span><?php if ($_smarty_tpl->tpl_vars['SAVE_FILTER_PERMITTED']->value) { ?> <span class="btn-group pull-right "><button class="btn hide" <?php if ($_smarty_tpl->tpl_vars['SOURCE_MODULE']->value == 'Home') { ?> disabled="" <?php } ?> id="advanceSave"><strong><?php echo vtranslate('LBL_SAVE_FILTER', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></button></span><span class="btn-group pull-right"><button class="btn" <?php if ($_smarty_tpl->tpl_vars['SOURCE_MODULE']->value == 'Home') { ?> disabled="" <?php } ?> id="advanceIntiateSave"><strong><?php echo vtranslate('LBL_SAVE_AS_FILTER', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></button></span><?php } ?> </span></div></div></div></div></div></div><?php }
function content_5681915e39ef9($_smarty_tpl) { $_smarty_tpl->tpl_vars['ALL_CONDITION_CRITERIA'] = new Smarty_variable($_smarty_tpl->tpl_vars['ADVANCE_CRITERIA']->value[1], null, 0); $_smarty_tpl->tpl_vars['ANY_CONDITION_CRITERIA'] = new Smarty_variable($_smarty_tpl->tpl_vars['ADVANCE_CRITERIA']->value[2], null, 0); if (empty($_smarty_tpl->tpl_vars['ALL_CONDITION_CRITERIA']->value)) { $_smarty_tpl->tpl_vars['ALL_CONDITION_CRITERIA'] = new Smarty_variable(array(), null, 0); } if (empty($_smarty_tpl->tpl_vars['ANY_CONDITION_CRITERIA']->value)) { $_smarty_tpl->tpl_vars['ANY_CONDITION_CRITERIA'] = new Smarty_variable(array(), null, 0); } ?> <div class="filterContainer"><input type="hidden" name="date_filters" data-value='<?php echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['DATE_FILTERS']->value)); ?> ' /><input type=hidden name="advanceFilterOpsByFieldType" data-value='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['ADVANCED_FILTER_OPTIONS_BY_TYPE']->value); ?> ' /><?php $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION']->_loop = false; $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION_KEY'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['ADVANCED_FILTER_OPTIONS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION']->key => $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION']->value) { $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION']->_loop = true; $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION_KEY']->value = $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION']->key; $_smarty_tpl->createLocalArrayVariable('ADVANCED_FILTER_OPTIONS', null, 0); $_smarty_tpl->tpl_vars['ADVANCED_FILTER_OPTIONS']->value[$_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION_KEY']->value] = vtranslate($_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION']->value, $_smarty_tpl->tpl_vars['MODULE']->value); } ?> <input type=hidden name="advanceFilterOptions" data-value='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['ADVANCED_FILTER_OPTIONS']->value); ?> ' /><div class="allConditionContainer conditionGroup contentsBackground well"><div class="header"><span><strong><?php echo vtranslate('LBL_ALL_CONDITIONS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></span> <span>(<?php echo vtranslate('LBL_ALL_CONDITIONS_DESC', $_smarty_tpl->tpl_vars['MODULE']->value); ?> )</span></div><div class="contents"><div class="conditionList"><?php $_smarty_tpl->tpl_vars['CONDITION_INFO'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['CONDITION_INFO']->_loop = false; $_from = $_smarty_tpl->tpl_vars['ALL_CONDITION_CRITERIA']->value['columns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['CONDITION_INFO']->key => $_smarty_tpl->tpl_vars['CONDITION_INFO']->value) { $_smarty_tpl->tpl_vars['CONDITION_INFO']->_loop = true; echo $_smarty_tpl->getSubTemplate(vtemplate_path('AdvanceFilterCondition.tpl', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('RECORD_STRUCTURE' => $_smarty_tpl->tpl_vars['RECORD_STRUCTURE']->value, 'CONDITION_INFO' => $_smarty_tpl->tpl_vars['CONDITION_INFO']->value, 'MODULE' => $_smarty_tpl->tpl_vars['MODULE']->value), 0); } if (count($_smarty_tpl->tpl_vars['ALL_CONDITION_CRITERIA']->value) == 0) { echo $_smarty_tpl->getSubTemplate(vtemplate_path('AdvanceFilterCondition.tpl', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('RECORD_STRUCTURE' => $_smarty_tpl->tpl_vars['RECORD_STRUCTURE']->value, 'MODULE' => $_smarty_tpl->tpl_vars['MODULE']->value, 'CONDITION_INFO' => array()), 0); } ?> </div><div class="hide basic"><?php echo $_smarty_tpl->getSubTemplate(vtemplate_path('AdvanceFilterCondition.tpl', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('RECORD_STRUCTURE' => $_smarty_tpl->tpl_vars['RECORD_STRUCTURE']->value, 'CONDITION_INFO' => array(), 'MODULE' => $_smarty_tpl->tpl_vars['MODULE']->value, 'NOCHOSEN' => true), 0); ?> </div><div class="addCondition"><button type="button" class="btn"><strong><?php echo vtranslate('LBL_ADD_CONDITION', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></button></div><div class="groupCondition"><?php $_smarty_tpl->tpl_vars['GROUP_CONDITION'] = new Smarty_variable($_smarty_tpl->tpl_vars['ALL_CONDITION_CRITERIA']->value['condition'], null, 0); if (empty($_smarty_tpl->tpl_vars['GROUP_CONDITION']->value)) { $_smarty_tpl->tpl_vars['GROUP_CONDITION'] = new Smarty_variable("and", null, 0); } ?> <input type="hidden" name="condition" value="<?php echo $_smarty_tpl->tpl_vars['GROUP_CONDITION']->value; ?> " /></div></div></div><div class="anyConditionContainer conditionGroup contentsBackground well"><div class="header"><span><strong><?php echo vtranslate('LBL_ANY_CONDITIONS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></span> <span>(<?php echo vtranslate('LBL_ANY_CONDITIONS_DESC', $_smarty_tpl->tpl_vars['MODULE']->value); ?> )</span></div><div class="contents"><div class="conditionList"><?php $_smarty_tpl->tpl_vars['CONDITION_INFO'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['CONDITION_INFO']->_loop = false; $_from = $_smarty_tpl->tpl_vars['ANY_CONDITION_CRITERIA']->value['columns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['CONDITION_INFO']->key => $_smarty_tpl->tpl_vars['CONDITION_INFO']->value) { $_smarty_tpl->tpl_vars['CONDITION_INFO']->_loop = true; echo $_smarty_tpl->getSubTemplate(vtemplate_path('AdvanceFilterCondition.tpl', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('RECORD_STRUCTURE' => $_smarty_tpl->tpl_vars['RECORD_STRUCTURE']->value, 'CONDITION_INFO' => $_smarty_tpl->tpl_vars['CONDITION_INFO']->value, 'MODULE' => $_smarty_tpl->tpl_vars['MODULE']->value, 'CONDITION' => "or"), 0); } if (count($_smarty_tpl->tpl_vars['ANY_CONDITION_CRITERIA']->value) == 0) { echo $_smarty_tpl->getSubTemplate(vtemplate_path('AdvanceFilterCondition.tpl', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('RECORD_STRUCTURE' => $_smarty_tpl->tpl_vars['RECORD_STRUCTURE']->value, 'MODULE' => $_smarty_tpl->tpl_vars['MODULE']->value, 'CONDITION_INFO' => array(), 'CONDITION' => "or"), 0); } ?> </div><div class="hide basic"><?php echo $_smarty_tpl->getSubTemplate(vtemplate_path('AdvanceFilterCondition.tpl', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('RECORD_STRUCTURE' => $_smarty_tpl->tpl_vars['RECORD_STRUCTURE']->value, 'MODULE' => $_smarty_tpl->tpl_vars['MODULE']->value, 'CONDITION_INFO' => array(), 'CONDITION' => "or", 'NOCHOSEN' => true), 0); ?> </div><div class="addCondition"><button type="button" class="btn"><strong><?php echo vtranslate('LBL_ADD_CONDITION', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></button></div></div></div></div><?php }
function content_5685e6404d8b1($_smarty_tpl) { ?> <div id="toggleButton" class="toggleButton" title="<?php echo vtranslate('LBL_LEFT_PANEL_SHOW_HIDE', 'Vtiger'); ?> "><i id="tButtonImage" class="<?php if ($_smarty_tpl->tpl_vars['LEFTPANELHIDE']->value != '1') { ?> icon-chevron-left<?php } else { ?> icon-chevron-right<?php } ?> "></i></div><div class="container-fluid"><div class="row-fluid reportsDetailHeader"><input type="hidden" name="date_filters" data-value='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['DATE_FILTERS']->value); ?> ' /><div class="reportHeader row-fluid"><div class='span8 btn-toolbar'><h3><?php echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getName(); ?> </h3></div><div class='span4'><div class="btn-toolbar pull-right"><?php if ($_smarty_tpl->tpl_vars['REPORT_MODEL']->value->isEditable() == true) { ?> <div class="btn-group"><button onclick='window.location.href="<?php echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getEditViewUrl(); ?> "' type="button" class="cursorPointer btn"><strong><?php echo vtranslate('LBL_CUSTOMIZE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong> <i class="icon-pencil"></i></button></div><?php } ?> <div class="btn-group"><button onclick='window.location.href="<?php echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getDuplicateRecordUrl(); ?> "' type="button" class="cursorPointer btn"><strong><?php echo vtranslate('LBL_DUPLICATE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></button></div></div></div></div><div class="well"><form name='chartDetailForm' id='chartDetailForm'><input type="hidden" name="module" value="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value; ?> " /><input type="hidden" name="action" value="ChartSave" /><input type="hidden" name="recordId" id="recordId" value="<?php echo $_smarty_tpl->tpl_vars['RECORD']->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('reports_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="advanced_filter" id="advanced_filter" value=<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['ADVANCED_FILTERS']->value); ?> /><input type="hidden" name='groupbyfield' value=<?php echo $_smarty_tpl->tpl_vars['CHART_MODEL']->value->getGroupByField(); ?> /><input type="hidden" name='datafields' value=<?php echo Zend_JSON::encode($_smarty_tpl->tpl_vars['CHART_MODEL']->value->getDataFields()); ?> /><input type="hidden" name='charttype' value="<?php echo $_smarty_tpl->tpl_vars['CHART_MODEL']->value->getChartType(); ?> " /><?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><div><div class='row-fluid'><span class="span4"><div><span><?php echo vtranslate('LBL_SELECT_GROUP_BY_FIELD', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </span><span class="redColor">*</span></div><br><div class="row-fluid"><select id='groupbyfield' name='groupbyfield' class="span10" data-validation-engine="validate[required]" style='min-width:300px;'></select></div></span><span class="span2"> </span><span class="span4"><div><span><?php echo vtranslate('LBL_SELECT_DATA_FIELD', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </span><span class="redColor">*</span></div><br><div class="row-fluid"><select id='datafields' name='datafields[]' class="span10" data-validation-engine="validate[required]" style='min-width:300px;'></select></div></span></div><br><div class='hide'><?php echo $_smarty_tpl->getSubTemplate(vtemplate_path("chartReportHiddenContents.tpl", $_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> </div></div><br><div class='row-fluid'><?php $_smarty_tpl->tpl_vars['filterConditionNotExists'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['SELECTED_ADVANCED_FILTER_FIELDS']->value[1]['columns']) == 0 && count($_smarty_tpl->tpl_vars['SELECTED_ADVANCED_FILTER_FIELDS']->value[2]['columns']) == 0, null, 0); ?> <button class="btn" name="modify_condition" data-val="<?php echo $_smarty_tpl->tpl_vars['filterConditionNotExists']->value; ?> "><strong><?php echo vtranslate('LBL_MODIFY_CONDITION', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong> <i class="<?php if ($_smarty_tpl->tpl_vars['filterConditionNotExists']->value == true) { ?> icon-chevron-right <?php } else { ?> icon-chevron-down <?php } ?> "></i></button></div><br><div id='filterContainer' class='<?php if ($_smarty_tpl->tpl_vars['filterConditionNotExists']->value == true) { ?> hide <?php } ?> '><?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); ?> </div></div><div class="row-fluid textAlignCenter"><button class="btn btn-success generateReport" data-mode="save" value="<?php echo vtranslate('LBL_SAVE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> "/><strong><?php echo vtranslate('LBL_SAVE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></button></div></div></form></div></div><div id="reportContentsDiv"><?php }
function content_5679a04042dc3($_smarty_tpl) { ?> <form class="form-horizontal recordEditView padding1per" id="chart_report_step3" method="post" action="index.php"><input type="hidden" name="module" value="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value; ?> " ><input type="hidden" name="action" value="ChartSave" ><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('reports_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" name="advanced_filter" id="advanced_filter" value="" ><input type="hidden" class="step" value="3" ><input type="hidden" name='groupbyfield' value=<?php echo $_smarty_tpl->tpl_vars['CHART_MODEL']->value->getGroupByField(); ?> ><input type="hidden" name='datafields' value=<?php echo Zend_JSON::encode($_smarty_tpl->tpl_vars['CHART_MODEL']->value->getDataFields()); ?> ><input type="hidden" name='charttype' value=<?php echo $_smarty_tpl->tpl_vars['CHART_MODEL']->value->getChartType(); ?> ><div class="padding1per border1px"><div class="row-fluid"><div><div><h4><strong><?php echo vtranslate('LBL_SELECT_CHART_TYPE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></h4></div><br><div><div><ul class="nav nav-tabs" name="charttab" style="text-align:center;font-size:14px;font-weight: bold;margin:0 3%;border:0px"><li class="active marginRight5px" ><a data-type="pieChart" data-toggle="tab"><div><img src="<?php echo vimage_path('pie.PNG'); ?> " style="border:1px solid #ccc;"/></div><br><div><?php echo vtranslate('LBL_PIE_CHART', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div></a></li><li class="marginRight5px"><a data-type="verticalbarChart" data-toggle="tab"><div><img src="<?php echo vimage_path('vbar.PNG'); ?> " style="border:1px solid #ccc;"/></div><br><div><?php echo vtranslate('LBL_VERTICAL_BAR_CHART', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div></a></li><li class="marginRight5px"><a data-type="horizontalbarChart" data-toggle="tab"><div><img src="<?php echo vimage_path('hbar.PNG'); ?> " style="border:1px solid #ccc;"/></div><br><div><?php echo vtranslate('LBL_HORIZONTAL_BAR_CHART', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div></a></li><li class="marginRight5px" ><a data-type="lineChart" data-toggle="tab"><div><img src="<?php echo vimage_path('line.PNG'); ?> " style="border:1px solid #ccc;"/></div><br><div><?php echo vtranslate('LBL_LINE_CHART', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div></a></li></ul><div class='tab-content contentsBackground' style="height:auto;padding:4%;border:1px solid #ccc;"><br><div class="row-fluid tab-pane active"><div><span class="span4"><div><span><?php echo vtranslate('LBL_SELECT_GROUP_BY_FIELD', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </span><span class="redColor">*</span></div><br><div class="row-fluid"><select id='groupbyfield' name='groupbyfield' class="span10 validate[required]" data-validation-engine="validate[required]" style='min-width:300px;'></select></div></span><span class="span2"> </span><span class="span4"><div><span><?php echo vtranslate('LBL_SELECT_DATA_FIELD', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </span><span class="redColor">*</span></div><br><div class="row-fluid"><select id='datafields' name='datafields[]' class="span10 validate[required]" data-validation-engine="validate[required]" style='min-width:300px;'></select></div></span></div></div><div class='row-fluid alert-info well' style="position: relative; top: 50px;width:95%"><span class='span alert-info'><div><i class="icon-info-sign"></i> <?php echo vtranslate('LBL_PLEASE_SELECT_ATLEAST_ONE_GROUP_FIELD_AND_DATA_FIELD', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div><br><div> <?php echo vtranslate('LBL_FOR_BAR_GRAPH_AND_LINE_GRAPH_SELECT_3_MAX_DATA_FIELDS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div></span></div></div></div></div><div class='hide'><?php echo $_smarty_tpl->getSubTemplate(vtemplate_path("chartReportHiddenContents.tpl", $_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> </div></div></div></div><br><div class="pull-right block padding20px"><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" id="generateReport"><strong><?php echo vtranslate('LBL_GENERATE_CHART', $_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> <br></div></form><?php }
function content_5694bdad2a65f($_smarty_tpl) { ?> <form name="EditWorkflow" action="index.php" method="post" id="workflow_step2" class="form-horizontal" ><input type="hidden" name="module" value="Workflows" /><input type="hidden" name="action" value="Save" /><input type="hidden" name="parent" value="Settings" /><input type="hidden" class="step" value="2" /><input type="hidden" name="summary" value="<?php echo $_smarty_tpl->tpl_vars['WORKFLOW_MODEL']->value->get('summary'); ?> " /><input type="hidden" name="record" value="<?php echo $_smarty_tpl->tpl_vars['WORKFLOW_MODEL']->value->get('record'); ?> " /><input type="hidden" name="module_name" value="<?php echo $_smarty_tpl->tpl_vars['WORKFLOW_MODEL']->value->get('module_name'); ?> " /><input type="hidden" name="execution_condition" value="<?php echo $_smarty_tpl->tpl_vars['WORKFLOW_MODEL']->value->get('execution_condition'); ?> " /><input type="hidden" name="conditions" id="advanced_filter" value='' /><input type="hidden" id="olderConditions" value='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['WORKFLOW_MODEL']->value->get('conditions')); ?> ' /><input type="hidden" name="filtersavedinnew" value="<?php echo $_smarty_tpl->tpl_vars['WORKFLOW_MODEL']->value->get('filtersavedinnew'); ?> " /><input type="hidden" name="schtypeid" value="<?php echo $_smarty_tpl->tpl_vars['WORKFLOW_MODEL']->value->get('schtypeid'); ?> " /><input type="hidden" name="schtime" value="<?php echo $_smarty_tpl->tpl_vars['WORKFLOW_MODEL']->value->get('schtime'); ?> " /><input type="hidden" name="schdate" value=<?php echo $_smarty_tpl->tpl_vars['WORKFLOW_MODEL']->value->get('schdate'); ?> /><input type="hidden" name="schdayofweek" value=<?php echo Zend_Json::encode($_smarty_tpl->tpl_vars['WORKFLOW_MODEL']->value->get('schdayofweek')); ?> /><input type="hidden" name="schdayofmonth" value=<?php echo Zend_Json::encode($_smarty_tpl->tpl_vars['WORKFLOW_MODEL']->value->get('schdayofmonth')); ?> /><input type="hidden" name="schannualdates" value=<?php echo Zend_Json::encode($_smarty_tpl->tpl_vars['WORKFLOW_MODEL']->value->get('schannualdates')); ?> /><div class="row-fluid" style="border:1px solid #ccc;"><?php if ($_smarty_tpl->tpl_vars['IS_FILTER_SAVED_NEW']->value == false) { ?> <div class="alert alert-info"><?php echo vtranslate('LBL_CREATED_IN_OLD_LOOK_CANNOT_BE_EDITED', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </div><div class="row-fluid"><span class="span6"><input type="radio" name="conditionstype" class="alignMiddle" checked=""/> <span class="alignMiddle"><?php echo vtranslate('LBL_USE_EXISTING_CONDITIONS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </span></span><span class="span6"><input type="radio" id="enableAdvanceFilters" name="conditionstype" class="alignMiddle recreate"/> <span class="alignMiddle"><?php echo vtranslate('LBL_RECREATE_CONDITIONS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </span></span></div><br><?php } ?> <div id="advanceFilterContainer" <?php if ($_smarty_tpl->tpl_vars['IS_FILTER_SAVED_NEW']->value == false) { ?> class="zeroOpacity conditionsContainer padding1per" <?php } else { ?> class="conditionsContainer padding1per" <?php } ?> ><h5 class="padding-bottom1per"><strong><?php echo vtranslate('LBL_CHOOSE_FILTER_CONDITIONS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></h5><span class="span10" ><?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), 0); ?> </span><?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('EXECUTION_CONDITION' => $_smarty_tpl->tpl_vars['WORKFLOW_MODEL']->value->get('execution_condition')), 0); ?> </div></div><br><div class="pull-right"><button class="btn btn-danger backStep" type="button"><strong><?php echo vtranslate('LBL_BACK', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong></button> <button class="btn btn-success" type="submit"><strong><?php echo vtranslate('LBL_NEXT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong></button><a class="cancelLink" type="reset" onclick="javascript:window.history.back();"><?php echo vtranslate('LBL_CANCEL', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </a></div><br><br></form><?php }
function content_56854396b279a($_smarty_tpl) { ?> <div class="row-fluid conditionRow marginBottom10px"><span class="span4"><select class="<?php if (empty($_smarty_tpl->tpl_vars['NOCHOSEN']->value)) { ?> chzn-select<?php } ?> row-fluid" name="columnname"><option value="none"><?php echo vtranslate('LBL_SELECT_FIELD', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </option><?php $_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['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; ?> <optgroup label='<?php echo vtranslate($_smarty_tpl->tpl_vars['BLOCK_LABEL']->value, $_smarty_tpl->tpl_vars['SOURCE_MODULE']->value); ?> '><?php $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false; $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['BLOCK_FIELDS']->value; 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; $_smarty_tpl->tpl_vars['FIELD_NAME']->value = $_smarty_tpl->tpl_vars['FIELD_MODEL']->key; $_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); $_smarty_tpl->tpl_vars["SPECIAL_VALIDATOR"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getValidator(), null, 0); if (!empty($_smarty_tpl->tpl_vars['COLUMNNAME_API']->value)) { $_smarty_tpl->tpl_vars['columnNameApi'] = new Smarty_variable($_smarty_tpl->tpl_vars['COLUMNNAME_API']->value, null, 0); } else { $_smarty_tpl->tpl_vars['columnNameApi'] = new Smarty_variable('getCustomViewColumnName', null, 0); } ?> <option value="<?php $_tmp1 = $_smarty_tpl->tpl_vars['columnNameApi']->value; echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->{$_tmp1}(); ?> " data-fieldtype="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldType(); ?> " data-field-name="<?php echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value; ?> "<?php $_tmp2 = $_smarty_tpl->tpl_vars['columnNameApi']->value; if (decode_html($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->{$_tmp2}()) == decode_html($_smarty_tpl->tpl_vars['CONDITION_INFO']->value['columnname'])) { $_smarty_tpl->tpl_vars['FIELD_TYPE'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldType(), null, 0); $_smarty_tpl->tpl_vars['SELECTED_FIELD_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value, null, 0); if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == 'reference') { $_smarty_tpl->tpl_vars['FIELD_TYPE'] = new Smarty_variable('V', null, 0); } $_smarty_tpl->createLocalArrayVariable('FIELD_INFO', null, 0); $_smarty_tpl->tpl_vars['FIELD_INFO']->value['value'] = decode_html($_smarty_tpl->tpl_vars['CONDITION_INFO']->value['value']); ?> selected="selected"<?php } if ($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name') == 'Calendar' && $_smarty_tpl->tpl_vars['FIELD_NAME']->value == 'recurringtype') { $_smarty_tpl->tpl_vars['PICKLIST_VALUES'] = new Smarty_variable(Calendar_Field_Model::getReccurencePicklistValues(), null, 0); $_smarty_tpl->createLocalArrayVariable('FIELD_INFO', null, 0); $_smarty_tpl->tpl_vars['FIELD_INFO']->value['picklistvalues'] = $_smarty_tpl->tpl_vars['PICKLIST_VALUES']->value; } if ($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name') == 'Calendar' && $_smarty_tpl->tpl_vars['FIELD_NAME']->value == 'activitytype') { $_smarty_tpl->createLocalArrayVariable('FIELD_INFO', null, 0); $_smarty_tpl->tpl_vars['FIELD_INFO']->value['picklistvalues']['Task'] = vtranslate('Task', 'Calendar'); } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == 'reference') { $_smarty_tpl->tpl_vars['referenceList'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getWebserviceFieldObject()->getReferenceList(), null, 0); if (is_array($_smarty_tpl->tpl_vars['referenceList']->value) && in_array('Users', $_smarty_tpl->tpl_vars['referenceList']->value)) { $_smarty_tpl->tpl_vars['USERSLIST'] = new Smarty_variable(array(), null, 0); $_smarty_tpl->tpl_vars['CURRENT_USER_MODEL'] = new Smarty_variable(Users_Record_Model::getCurrentUserModel(), null, 0); $_smarty_tpl->tpl_vars['ACCESSIBLE_USERS'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->getAccessibleUsers(), null, 0); $_smarty_tpl->tpl_vars['USER_NAME'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['USER_NAME']->_loop = false; $_from = $_smarty_tpl->tpl_vars['ACCESSIBLE_USERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['USER_NAME']->key => $_smarty_tpl->tpl_vars['USER_NAME']->value) { $_smarty_tpl->tpl_vars['USER_NAME']->_loop = true; $_smarty_tpl->createLocalArrayVariable('USERSLIST', null, 0); $_smarty_tpl->tpl_vars['USERSLIST']->value[$_smarty_tpl->tpl_vars['USER_NAME']->value] = $_smarty_tpl->tpl_vars['USER_NAME']->value; } $_smarty_tpl->createLocalArrayVariable('FIELD_INFO', null, 0); $_smarty_tpl->tpl_vars['FIELD_INFO']->value['picklistvalues'] = $_smarty_tpl->tpl_vars['USERSLIST']->value; $_smarty_tpl->createLocalArrayVariable('FIELD_INFO', null, 0); $_smarty_tpl->tpl_vars['FIELD_INFO']->value['type'] = 'picklist'; } } ?> data-fieldinfo='<?php echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_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 } ?> ><?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 } ?> </optgroup><?php } $_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['EVENT_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; ?> <optgroup label='<?php echo vtranslate($_smarty_tpl->tpl_vars['BLOCK_LABEL']->value, 'Events'); ?> '><?php $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false; $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['BLOCK_FIELDS']->value; 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; $_smarty_tpl->tpl_vars['FIELD_NAME']->value = $_smarty_tpl->tpl_vars['FIELD_MODEL']->key; $_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); if (!empty($_smarty_tpl->tpl_vars['COLUMNNAME_API']->value)) { $_smarty_tpl->tpl_vars['columnNameApi'] = new Smarty_variable($_smarty_tpl->tpl_vars['COLUMNNAME_API']->value, null, 0); } else { $_smarty_tpl->tpl_vars['columnNameApi'] = new Smarty_variable('getCustomViewColumnName', null, 0); } ?> <option value="<?php $_tmp3 = $_smarty_tpl->tpl_vars['columnNameApi']->value; echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->{$_tmp3}(); ?> " data-fieldtype="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldType(); ?> " data-field-name="<?php echo $_smarty_tpl->tpl_vars['FIELD_NAME']->value; ?> "<?php $_tmp4 = $_smarty_tpl->tpl_vars['columnNameApi']->value; if (decode_html($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->{$_tmp4}()) == $_smarty_tpl->tpl_vars['CONDITION_INFO']->value['columnname']) { $_smarty_tpl->tpl_vars['FIELD_TYPE'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldType(), null, 0); $_smarty_tpl->tpl_vars['SELECTED_FIELD_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value, null, 0); if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == 'reference') { $_smarty_tpl->tpl_vars['FIELD_TYPE'] = new Smarty_variable('V', null, 0); } $_smarty_tpl->createLocalArrayVariable('FIELD_INFO', null, 0); $_smarty_tpl->tpl_vars['FIELD_INFO']->value['value'] = decode_html($_smarty_tpl->tpl_vars['CONDITION_INFO']->value['value']); ?> selected="selected"<?php } if ($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name') == 'Calendar' && $_smarty_tpl->tpl_vars['FIELD_NAME']->value == 'recurringtype') { $_smarty_tpl->tpl_vars['PICKLIST_VALUES'] = new Smarty_variable(Calendar_Field_Model::getReccurencePicklistValues(), null, 0); $_smarty_tpl->createLocalArrayVariable('FIELD_INFO', null, 0); $_smarty_tpl->tpl_vars['FIELD_INFO']->value['picklistvalues'] = $_smarty_tpl->tpl_vars['PICKLIST_VALUES']->value; } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == 'reference') { $_smarty_tpl->tpl_vars['referenceList'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getWebserviceFieldObject()->getReferenceList(), null, 0); if (is_array($_smarty_tpl->tpl_vars['referenceList']->value) && in_array('Users', $_smarty_tpl->tpl_vars['referenceList']->value)) { $_smarty_tpl->tpl_vars['USERSLIST'] = new Smarty_variable(array(), null, 0); $_smarty_tpl->tpl_vars['CURRENT_USER_MODEL'] = new Smarty_variable(Users_Record_Model::getCurrentUserModel(), null, 0); $_smarty_tpl->tpl_vars['ACCESSIBLE_USERS'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->getAccessibleUsers(), null, 0); $_smarty_tpl->tpl_vars['USER_NAME'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['USER_NAME']->_loop = false; $_from = $_smarty_tpl->tpl_vars['ACCESSIBLE_USERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['USER_NAME']->key => $_smarty_tpl->tpl_vars['USER_NAME']->value) { $_smarty_tpl->tpl_vars['USER_NAME']->_loop = true; $_smarty_tpl->createLocalArrayVariable('USERSLIST', null, 0); $_smarty_tpl->tpl_vars['USERSLIST']->value[$_smarty_tpl->tpl_vars['USER_NAME']->value] = $_smarty_tpl->tpl_vars['USER_NAME']->value; } $_smarty_tpl->createLocalArrayVariable('FIELD_INFO', null, 0); $_smarty_tpl->tpl_vars['FIELD_INFO']->value['picklistvalues'] = $_smarty_tpl->tpl_vars['USERSLIST']->value; $_smarty_tpl->createLocalArrayVariable('FIELD_INFO', null, 0); $_smarty_tpl->tpl_vars['FIELD_INFO']->value['type'] = 'picklist'; } } ?> data-fieldinfo='<?php echo Vtiger_Util_Helper::toSafeHTML(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 } ?> </optgroup><?php } ?> </select></span><span class="span3"><select class="<?php if (empty($_smarty_tpl->tpl_vars['NOCHOSEN']->value)) { ?> chzn-select<?php } ?> row-fluid" name="comparator"><option value="none"><?php echo vtranslate('LBL_NONE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </option><?php $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTIONS'] = new Smarty_variable($_smarty_tpl->tpl_vars['ADVANCED_FILTER_OPTIONS_BY_TYPE']->value[$_smarty_tpl->tpl_vars['FIELD_TYPE']->value], null, 0); if ($_smarty_tpl->tpl_vars['FIELD_TYPE']->value == 'D' || $_smarty_tpl->tpl_vars['FIELD_TYPE']->value == 'DT') { $_smarty_tpl->tpl_vars['DATE_FILTER_CONDITIONS'] = new Smarty_variable(array_keys($_smarty_tpl->tpl_vars['DATE_FILTERS']->value), null, 0); $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTIONS'] = new Smarty_variable(array_merge($_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTIONS']->value, $_smarty_tpl->tpl_vars['DATE_FILTER_CONDITIONS']->value), null, 0); } $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION']->_loop = false; $_from = $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTIONS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION']->key => $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION']->value) { $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION']->value; ?> "<?php if ($_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION']->value == $_smarty_tpl->tpl_vars['CONDITION_INFO']->value['comparator']) { ?> selected<?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['ADVANCED_FILTER_OPTIONS']->value[$_smarty_tpl->tpl_vars['ADVANCE_FILTER_OPTION']->value]); ?> </option><?php } ?> </select></span><span class="span4 fieldUiHolder"><input name="<?php if ($_smarty_tpl->tpl_vars['SELECTED_FIELD_MODEL']->value) { echo $_smarty_tpl->tpl_vars['SELECTED_FIELD_MODEL']->value->get('name'); } ?> " data-value="value" class="row-fluid" type="text" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['CONDITION_INFO']->value['value'], ENT_QUOTES, 'UTF-8', true); ?> " /></span><span class="hide"><!-- TODO : see if you need to respect CONDITION_INFO condition or / and --><?php if (empty($_smarty_tpl->tpl_vars['CONDITION']->value)) { $_smarty_tpl->tpl_vars['CONDITION'] = new Smarty_variable("and", null, 0); } ?> <input type="hidden" name="column_condition" value="<?php echo $_smarty_tpl->tpl_vars['CONDITION']->value; ?> " /></span><span class="span1"><i class="deleteCondition icon-trash alignMiddle" title="<?php echo vtranslate('LBL_DELETE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> "></i></span></div><?php }
function content_5682049c2def5($_smarty_tpl) { ?> <div class="container-fluid" id="sharingAccessContainer"><div class="contents"><form name="EditSharingAccess" action="index.php" method="post" class="form-horizontal" id="EditSharingAccess"><input type="hidden" name="module" value="SharingAccess" /><input type="hidden" name="action" value="SaveAjax" /><input type="hidden" name="parent" value="Settings" /><input type="hidden" class="dependentModules" value='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['DEPENDENT_MODULES']->value); ?> ' /><div><div class="widget_header row-fluid"><div class="span8"><h3><?php echo vtranslate('LBL_SHARING_ACCESS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </h3></div><div class="span4"><button class="btn btn-success pull-right hide" type="submit" name="saveButton"><strong><?php echo vtranslate('LBL_APPLY_NEW_SHARING_RULES', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong></button></div></div><hr></div><table class="table table-bordered table-condensed sharingAccessDetails"><colgroup><col width="20%"><col width="15%"><col width="15%"><col width="20%"><col width="10%"><col width="20%"></colgroup><thead><tr class="blockHeader"><th><?php echo vtranslate('LBL_MODULE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </th><?php $_smarty_tpl->tpl_vars['ACTION_MODEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['ACTION_MODEL']->_loop = false; $_smarty_tpl->tpl_vars['ACTION_ID'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['ALL_ACTIONS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['ACTION_MODEL']->key => $_smarty_tpl->tpl_vars['ACTION_MODEL']->value) { $_smarty_tpl->tpl_vars['ACTION_MODEL']->_loop = true; $_smarty_tpl->tpl_vars['ACTION_ID']->value = $_smarty_tpl->tpl_vars['ACTION_MODEL']->key; ?> <th><?php echo vtranslate($_smarty_tpl->tpl_vars['ACTION_MODEL']->value->getName(), $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </th><?php } ?> <th nowrap="nowrap"><?php echo vtranslate('LBL_ADVANCED_SHARING_RULES', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </th></tr></thead><tbody><tr data-module-name="Calendar"><td><?php echo vtranslate('SINGLE_Calendar', 'Calendar'); ?> </td><td class=""><div><input type="radio" disabled="disabled" /></div></td><td class=""><div><input type="radio" disabled="disabled" /></div></td><td class=""><div><input type="radio" disabled="disabled" /></div></td><td class=""><div><input type="radio" checked="true" disabled="disabled" /></div></td><td><div class="row-fluid"><div class="span3"> </div><div class="span6"><button type="button" class="btn btn-mini vtButton arrowDown row-fluid" disabled="disabled" ><img src="layouts/vlayout/skins/images/Arrow-down.png"></img></button></div></div></td></tr><?php $_smarty_tpl->tpl_vars['MODULE_MODEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['MODULE_MODEL']->_loop = false; $_smarty_tpl->tpl_vars['TABID'] = 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['MODULE_MODEL']->key => $_smarty_tpl->tpl_vars['MODULE_MODEL']->value) { $_smarty_tpl->tpl_vars['MODULE_MODEL']->_loop = true; $_smarty_tpl->tpl_vars['TABID']->value = $_smarty_tpl->tpl_vars['MODULE_MODEL']->key; ?> <tr data-module-name="<?php echo $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'); ?> "><td><?php if ($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getName() == 'Accounts') { echo vtranslate($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); } else { echo vtranslate($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getName()); } ?> </td><?php $_smarty_tpl->tpl_vars['ACTION_MODEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['ACTION_MODEL']->_loop = false; $_smarty_tpl->tpl_vars['ACTION_ID'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['ALL_ACTIONS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['ACTION_MODEL']->key => $_smarty_tpl->tpl_vars['ACTION_MODEL']->value) { $_smarty_tpl->tpl_vars['ACTION_MODEL']->_loop = true; $_smarty_tpl->tpl_vars['ACTION_ID']->value = $_smarty_tpl->tpl_vars['ACTION_MODEL']->key; ?> <td class=""><?php if ($_smarty_tpl->tpl_vars['ACTION_MODEL']->value->isModuleEnabled($_smarty_tpl->tpl_vars['MODULE_MODEL']->value)) { ?> <div><input type="radio" name="permissions[<?php echo $_smarty_tpl->tpl_vars['TABID']->value; ?> ]" data-action-state="<?php echo $_smarty_tpl->tpl_vars['ACTION_MODEL']->value->getName(); ?> " value="<?php echo $_smarty_tpl->tpl_vars['ACTION_ID']->value; ?> "<?php if ($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getPermissionValue() == $_smarty_tpl->tpl_vars['ACTION_ID']->value) { ?> checked="true"<?php } ?> ></div><?php } ?> </td><?php } ?> <td class="triggerCustomSharingAccess"><div class="row-fluid"><div class="span3"> </div><div class="span6"><button type="button" class="btn btn-mini vtButton arrowDown row-fluid" data-handlerfor="fields" data-togglehandler="<?php echo $_smarty_tpl->tpl_vars['TABID']->value; ?> -rules"><img src="layouts/vlayout/skins/images/Arrow-down.png"></img></button><button type="button" class="btn btn-mini vtButton arrowUp row-fluid hide" data-handlerfor="fields" data-togglehandler="<?php echo $_smarty_tpl->tpl_vars['TABID']->value; ?> -rules"><img src="layouts/vlayout/skins/images/Arrow-up.png"></img></button></div></div></td></tr><?php } ?> </tbody></table><div><div class="pull-right"><button class="btn btn-success hide" type="submit" name="saveButton"><strong><?php echo vtranslate('LBL_APPLY_NEW_SHARING_RULES', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong></button></div></div></form></div></div><?php }
function content_5685e54d8fd7c($_smarty_tpl) { ?> <div class="reportContents"><form class="form-horizontal recordEditView" id="report_step1" 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="<?php echo $_smarty_tpl->tpl_vars['VIEW']->value; ?> " /><input type="hidden" name="mode" value="step2" /><input type="hidden" class="step" value="1" /><input type="hidden" name="isDuplicate" value="<?php echo $_smarty_tpl->tpl_vars['IS_DUPLICATE']->value; ?> " /><input type="hidden" name="record" value="<?php echo $_smarty_tpl->tpl_vars['RECORD_ID']->value; ?> " /><input type=hidden id="relatedModules" data-value='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['RELATED_MODULES']->value); ?> ' /><div class="well contentsBackground"><div class="row-fluid padding1per"><span class="span3"><?php echo vtranslate('LBL_REPORT_NAME', $_smarty_tpl->tpl_vars['MODULE']->value); ?> <span class="redColor">*</span></span><span class="span7 row-fluid"><input class="span6" data-validation-engine='validate[required]' type="text" name="reportname" value="<?php echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('reportname'); ?> "/></span></div><div class="row-fluid padding1per"><span class="span3"><?php echo vtranslate('LBL_REPORT_FOLDER', $_smarty_tpl->tpl_vars['MODULE']->value); ?> <span class="redColor">*</span></span><span class="span7 row-fluid"><select class="chzn-select span6" name="folderid"><optgroup><?php $_smarty_tpl->tpl_vars['REPORT_FOLDER'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['REPORT_FOLDER']->_loop = false; $_from = $_smarty_tpl->tpl_vars['REPORT_FOLDERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['REPORT_FOLDER']->key => $_smarty_tpl->tpl_vars['REPORT_FOLDER']->value) { $_smarty_tpl->tpl_vars['REPORT_FOLDER']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['REPORT_FOLDER']->value->getId(); ?> "<?php if ($_smarty_tpl->tpl_vars['REPORT_FOLDER']->value->getId() == $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('folderid')) { ?> selected=""<?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['REPORT_FOLDER']->value->getName(), $_smarty_tpl->tpl_vars['MODULE']->value); ?> </option><?php } ?> </optgroup></select></span></div><div class="row-fluid padding1per"><span class="span3"><?php echo vtranslate('PRIMARY_MODULE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> <span class="redColor">*</span></span><span class="span7 row-fluid"><select class="span6 chzn-select" id="primary_module" name="primary_module"><optgroup><?php $_smarty_tpl->tpl_vars['RELATED_MODULE'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['RELATED_MODULE']->_loop = false; $_smarty_tpl->tpl_vars['RELATED_MODULE_KEY'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['MODULELIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['RELATED_MODULE']->key => $_smarty_tpl->tpl_vars['RELATED_MODULE']->value) { $_smarty_tpl->tpl_vars['RELATED_MODULE']->_loop = true; $_smarty_tpl->tpl_vars['RELATED_MODULE_KEY']->value = $_smarty_tpl->tpl_vars['RELATED_MODULE']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['RELATED_MODULE_KEY']->value; ?> " <?php if ($_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getPrimaryModule() == $_smarty_tpl->tpl_vars['RELATED_MODULE_KEY']->value) { ?> selected="selected" <?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['RELATED_MODULE_KEY']->value, $_smarty_tpl->tpl_vars['RELATED_MODULE_KEY']->value); ?> </option><?php } ?> </optgroup></select></span></div><div class="row-fluid padding1per"><span class="span3"><div><?php echo vtranslate('LBL_SELECT_RELATED_MODULES', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div><div>(<?php echo vtranslate('LBL_MAX', $_smarty_tpl->tpl_vars['MODULE']->value); ?> 2)</div></span><span class="span7 row-fluid"><?php $_smarty_tpl->tpl_vars['SECONDARY_MODULES_ARR'] = new Smarty_variable(explode(':', $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getSecondaryModules()), null, 0); $_smarty_tpl->tpl_vars['PRIMARY_MODULE'] = new Smarty_variable($_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getPrimaryModule(), null, 0); if ($_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value == '') { $_smarty_tpl->tpl_vars['RELATED'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['RELATED']->_loop = false; $_smarty_tpl->tpl_vars['PARENT'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['RELATED_MODULES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['relatedlist']['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['RELATED']->key => $_smarty_tpl->tpl_vars['RELATED']->value) { $_smarty_tpl->tpl_vars['RELATED']->_loop = true; $_smarty_tpl->tpl_vars['PARENT']->value = $_smarty_tpl->tpl_vars['RELATED']->key; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['relatedlist']['index']++; if ($_smarty_tpl->getVariable('smarty')->value['foreach']['relatedlist']['index'] == 0) { $_smarty_tpl->tpl_vars['PRIMARY_MODULE'] = new Smarty_variable($_smarty_tpl->tpl_vars['PARENT']->value, null, 0); } } } $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULES'] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_MODULES']->value[$_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value], null, 0); ?> <select class="span6 select2-container" id="secondary_module" multiple name="secondary_modules[]" data-placeholder="<?php echo vtranslate('LBL_SELECT_RELATED_MODULES', $_smarty_tpl->tpl_vars['MODULE']->value); ?> "><?php $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE_LABEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE_LABEL']->_loop = false; $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE_LABEL']->key => $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE_LABEL']->value) { $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE_LABEL']->_loop = true; $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE']->value = $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE_LABEL']->key; ?> <option <?php if (in_array($_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE']->value, $_smarty_tpl->tpl_vars['SECONDARY_MODULES_ARR']->value)) { ?> selected="" <?php } ?> value="<?php echo $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE_LABEL']->value; ?> </option><?php } ?> </select></span></div><div class="row-fluid padding1per"><span class="span3"><?php echo vtranslate('LBL_DESCRIPTION', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </span><span class="span7"><textarea class="span6" type="text" name="description" ><?php echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('description'); ?> </textarea></span></div><div class="row-fluid padding1per"><div class="row span"><input type="checkbox" <?php if ($_smarty_tpl->tpl_vars['SCHEDULEDREPORTS']->value->get('scheduleid') != '') { ?> checked="" <?php } ?> value="<?php if ($_smarty_tpl->tpl_vars['SCHEDULEDREPORTS']->value->get('scheduleid') != '') { ?> true<?php } ?> " name='enable_schedule' style="margin-top: 0px !important;"> <strong><?php echo vtranslate('LBL_SCHEDULE_REPORTS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></div></div><div id="scheduleBox" class='well contentsBackground <?php if ($_smarty_tpl->tpl_vars['SCHEDULEDREPORTS']->value->get('scheduleid') == '') { ?> hide <?php } ?> '><div class='row-fluid'><div class='span3' style='position:relative;top:5px;'><?php echo vtranslate('LBL_RUN_REPORT', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div><div class='span4'><?php $_smarty_tpl->tpl_vars['scheduleid'] = new Smarty_variable($_smarty_tpl->tpl_vars['SCHEDULEDREPORTS']->value->get('scheduleid'), null, 0); ?> <select class='chzn-select' id='schtypeid' name='schtypeid'><option value="1" <?php if ($_smarty_tpl->tpl_vars['scheduleid']->value == 1) { ?> selected<?php } ?> ><?php echo vtranslate('LBL_DAILY', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </option><option value="2" <?php if ($_smarty_tpl->tpl_vars['scheduleid']->value == 2) { ?> selected<?php } ?> ><?php echo vtranslate('LBL_WEEKLY', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </option><option value="5" <?php if ($_smarty_tpl->tpl_vars['scheduleid']->value == 5) { ?> selected<?php } ?> ><?php echo vtranslate('LBL_SPECIFIC_DATE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </option><option value="3" <?php if ($_smarty_tpl->tpl_vars['scheduleid']->value == 3) { ?> selected<?php } ?> ><?php echo vtranslate('LBL_MONTHLY_BY_DATE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </option><option value="4" <?php if ($_smarty_tpl->tpl_vars['scheduleid']->value == 4) { ?> selected<?php } ?> ><?php echo vtranslate('LBL_YEARLY', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </option></select></div></div><div class='row-fluid <?php if ($_smarty_tpl->tpl_vars['scheduleid']->value != 2) { ?> hide <?php } ?> ' id='scheduledWeekDay' style='padding:5px 0px;'><div class='span3' style='position:relative;top:5px;'><?php echo vtranslate('LBL_ON_THESE_DAYS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div><div class='span4'><?php $_smarty_tpl->tpl_vars['dayOfWeek'] = new Smarty_variable(Zend_Json::decode($_smarty_tpl->tpl_vars['SCHEDULEDREPORTS']->value->get('schdayoftheweek')), null, 0); ?> <select style='width:230px;' multiple class='chosen' data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" name='schdayoftheweek' id='schdayoftheweek'><option value="7" <?php if (is_array($_smarty_tpl->tpl_vars['dayOfWeek']->value) && in_array('7', $_smarty_tpl->tpl_vars['dayOfWeek']->value)) { ?> selected <?php } ?> ><?php echo vtranslate('LBL_DAY0', 'Calendar'); ?> </option><option value="1" <?php if (is_array($_smarty_tpl->tpl_vars['dayOfWeek']->value) && in_array('1', $_smarty_tpl->tpl_vars['dayOfWeek']->value)) { ?> selected <?php } ?> ><?php echo vtranslate('LBL_DAY1', 'Calendar'); ?> </option><option value="2" <?php if (is_array($_smarty_tpl->tpl_vars['dayOfWeek']->value) && in_array('2', $_smarty_tpl->tpl_vars['dayOfWeek']->value)) { ?> selected <?php } ?> ><?php echo vtranslate('LBL_DAY2', 'Calendar'); ?> </option><option value="3" <?php if (is_array($_smarty_tpl->tpl_vars['dayOfWeek']->value) && in_array('3', $_smarty_tpl->tpl_vars['dayOfWeek']->value)) { ?> selected <?php } ?> ><?php echo vtranslate('LBL_DAY3', 'Calendar'); ?> </option><option value="4" <?php if (is_array($_smarty_tpl->tpl_vars['dayOfWeek']->value) && in_array('4', $_smarty_tpl->tpl_vars['dayOfWeek']->value)) { ?> selected <?php } ?> ><?php echo vtranslate('LBL_DAY4', 'Calendar'); ?> </option><option value="5" <?php if (is_array($_smarty_tpl->tpl_vars['dayOfWeek']->value) && in_array('5', $_smarty_tpl->tpl_vars['dayOfWeek']->value)) { ?> selected <?php } ?> ><?php echo vtranslate('LBL_DAY5', 'Calendar'); ?> </option><option value="6" <?php if (is_array($_smarty_tpl->tpl_vars['dayOfWeek']->value) && in_array('6', $_smarty_tpl->tpl_vars['dayOfWeek']->value)) { ?> selected <?php } ?> ><?php echo vtranslate('LBL_DAY6', 'Calendar'); ?> </option></select></div></div><div class='row-fluid <?php if ($_smarty_tpl->tpl_vars['scheduleid']->value != 3) { ?> hide <?php } ?> ' id='scheduleMonthByDates' style="padding:5px 0px;"><div class='span3' style='position:relative;top:5px;'><?php echo vtranslate('LBL_ON_THESE_DAYS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div><div class='span4'><?php $_smarty_tpl->tpl_vars['dayOfMonth'] = new Smarty_variable(Zend_Json::decode($_smarty_tpl->tpl_vars['SCHEDULEDREPORTS']->value->get('schdayofthemonth')), null, 0); ?> <select style="width: 281px !important;" multiple class="chosen-select span6" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" name='schdayofthemonth' id='schdayofthemonth' ><?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['foo'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['foo']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['name'] = 'foo'; $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['loop'] = is_array($_loop = 31) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['foo']['total']; ?> <option value=<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['foo']['iteration']; ?> <?php if (is_array($_smarty_tpl->tpl_vars['dayOfMonth']->value) && in_array($_smarty_tpl->getVariable('smarty')->value['section']['foo']['iteration'], $_smarty_tpl->tpl_vars['dayOfMonth']->value)) { ?> selected<?php } ?> ><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['foo']['iteration']; ?> </option><?php } } ?> </select></div></div><div class='row-fluid <?php if ($_smarty_tpl->tpl_vars['scheduleid']->value != 5) { ?> hide <?php } ?> ' id='scheduleByDate' style="padding:5px 0px;"><div class='span3' style='position:relative;top:5px;'><?php echo vtranslate('LBL_CHOOSE_DATE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div><div class='span6'><div class='input-append row-fluid'><div class='row-fluid date'><?php $_smarty_tpl->tpl_vars['specificDate'] = new Smarty_variable(Zend_Json::decode($_smarty_tpl->tpl_vars['SCHEDULEDREPORTS']->value->get('schdate')), null, 0); if ($_smarty_tpl->tpl_vars['specificDate']->value[0] != '') { ?> <?php $_smarty_tpl->tpl_vars['specificDate1'] = new Smarty_variable(DateTimeField::convertToUserFormat($_smarty_tpl->tpl_vars['specificDate']->value[0]), null, 0); ?> <?php } ?> <input style='width: 185px;' type="text" class="dateField span6" id="schdate" name="schdate" value="<?php echo $_smarty_tpl->tpl_vars['specificDate1']->value; ?> " data-date-format="<?php echo $_smarty_tpl->tpl_vars['CURRENT_USER']->value->date_format; ?> " data-validation-engine="validate[ required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]"/><span class="add-on"><i class="icon-calendar"></i></span></div></div></div></div><div class='row-fluid <?php if ($_smarty_tpl->tpl_vars['scheduleid']->value != 4) { ?> hide <?php } ?> ' id='scheduleAnually' style='padding:5px 0px;'><div class='span3' style='position:relative;top:5px;'><?php echo vtranslate('LBL_SELECT_MONTH_AND_DAY', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div><div class='span5'><div id='annualDatePicker'></div></div><div class='span2'><div style='padding-bottom:5px;'><?php echo vtranslate('LBL_SELECTED_DATES', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div><div><input type=hidden id=hiddenAnnualDates value='<?php echo $_smarty_tpl->tpl_vars['SCHEDULEDREPORTS']->value->get('schannualdates'); ?> ' /><?php $_smarty_tpl->tpl_vars['ANNUAL_DATES'] = new Smarty_variable(Zend_Json::decode($_smarty_tpl->tpl_vars['SCHEDULEDREPORTS']->value->get('schannualdates')), null, 0); ?> <select multiple class="chosen-select" id='annualDates' name='schannualdates' data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]"><?php $_smarty_tpl->tpl_vars['DATES'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['DATES']->_loop = false; $_from = $_smarty_tpl->tpl_vars['ANNUAL_DATES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['DATES']->key => $_smarty_tpl->tpl_vars['DATES']->value) { $_smarty_tpl->tpl_vars['DATES']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['DATES']->value; ?> " selected><?php echo $_smarty_tpl->tpl_vars['DATES']->value; ?> </option><?php } ?> </select></div></div></div><div class='row-fluid' id='scheduledTime' style='padding:5px 0px 10px 0px;'><div class='span3' style='position:relative;top:5px;'><?php echo vtranslate('LBL_AT_TIME', $_smarty_tpl->tpl_vars['MODULE']->value); ?> <span class="redColor">*</span></div><div class='span4' id='schtime'><div class="input-append time"><input type='text' class='timepicker-default input-small' data-format='24' name='schtime' value="<?php echo $_smarty_tpl->tpl_vars['SCHEDULEDREPORTS']->value->get('schtime'); ?> " data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]"/><span class="add-on cursorPointer"><i class="icon-time"></i></span></div></div></div><div class='row-fluid' id='recipientsList' style='padding:5px 0px 10px 0px;'><div class='span3' style='position:relative;top:5px;'><?php echo vtranslate('LBL_SELECT_RECIEPIENTS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> <span class="redColor">*</span></div><div class='span4'><?php $_smarty_tpl->tpl_vars['ALL_ACTIVEUSER_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENT_USER']->value->getAccessibleUsers(), null, 0); $_smarty_tpl->tpl_vars['ALL_ACTIVEGROUP_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENT_USER']->value->getAccessibleGroups(), null, 0); $_smarty_tpl->tpl_vars['recipients'] = new Smarty_variable(Zend_Json::decode($_smarty_tpl->tpl_vars['SCHEDULEDREPORTS']->value->get('recipients')), null, 0); ?> <select multiple class="chosen-select span6" id='recipients' name='recipients' data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" style="width: 281px !important;"><optgroup label="<?php echo vtranslate('LBL_USERS'); ?> "><?php $_smarty_tpl->tpl_vars['USER_NAME'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['USER_NAME']->_loop = false; $_smarty_tpl->tpl_vars['USER_ID'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['ALL_ACTIVEUSER_LIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['USER_NAME']->key => $_smarty_tpl->tpl_vars['USER_NAME']->value) { $_smarty_tpl->tpl_vars['USER_NAME']->_loop = true; $_smarty_tpl->tpl_vars['USER_ID']->value = $_smarty_tpl->tpl_vars['USER_NAME']->key; $_smarty_tpl->tpl_vars['USERID'] = new Smarty_variable("USER::" . $_smarty_tpl->tpl_vars['USER_ID']->value, null, 0); ?> <option value="<?php echo $_smarty_tpl->tpl_vars['USERID']->value; ?> " <?php if (is_array($_smarty_tpl->tpl_vars['recipients']->value) && in_array($_smarty_tpl->tpl_vars['USERID']->value, $_smarty_tpl->tpl_vars['recipients']->value)) { ?> selected <?php } ?> data-picklistvalue= '<?php echo $_smarty_tpl->tpl_vars['USER_NAME']->value; ?> '> <?php echo $_smarty_tpl->tpl_vars['USER_NAME']->value; ?> </option><?php } ?> </optgroup><optgroup label="<?php echo vtranslate('LBL_GROUPS'); ?> "><?php $_smarty_tpl->tpl_vars['GROUP_NAME'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['GROUP_NAME']->_loop = false; $_smarty_tpl->tpl_vars['GROUP_ID'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['ALL_ACTIVEGROUP_LIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['GROUP_NAME']->key => $_smarty_tpl->tpl_vars['GROUP_NAME']->value) { $_smarty_tpl->tpl_vars['GROUP_NAME']->_loop = true; $_smarty_tpl->tpl_vars['GROUP_ID']->value = $_smarty_tpl->tpl_vars['GROUP_NAME']->key; $_smarty_tpl->tpl_vars['GROUPID'] = new Smarty_variable("GROUP::" . $_smarty_tpl->tpl_vars['GROUP_ID']->value, null, 0); ?> <option value="<?php echo $_smarty_tpl->tpl_vars['GROUPID']->value; ?> " <?php if (is_array($_smarty_tpl->tpl_vars['recipients']->value) && in_array($_smarty_tpl->tpl_vars['GROUPID']->value, $_smarty_tpl->tpl_vars['recipients']->value)) { ?> selected <?php } ?> data-picklistvalue= '<?php echo $_smarty_tpl->tpl_vars['GROUP_NAME']->value; ?> '><?php echo $_smarty_tpl->tpl_vars['GROUP_NAME']->value; ?> </option><?php } ?> </optgroup><optgroup label="<?php echo vtranslate('Roles', 'Roles'); ?> "><?php $_smarty_tpl->tpl_vars['ROLE_OBJ'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['ROLE_OBJ']->_loop = false; $_smarty_tpl->tpl_vars['ROLE_ID'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['ROLES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['ROLE_OBJ']->key => $_smarty_tpl->tpl_vars['ROLE_OBJ']->value) { $_smarty_tpl->tpl_vars['ROLE_OBJ']->_loop = true; $_smarty_tpl->tpl_vars['ROLE_ID']->value = $_smarty_tpl->tpl_vars['ROLE_OBJ']->key; $_smarty_tpl->tpl_vars['ROLEID'] = new Smarty_variable("ROLE::" . $_smarty_tpl->tpl_vars['ROLE_ID']->value, null, 0); ?> <option value="<?php echo $_smarty_tpl->tpl_vars['ROLEID']->value; ?> " <?php if (is_array($_smarty_tpl->tpl_vars['recipients']->value) && in_array($_smarty_tpl->tpl_vars['ROLEID']->value, $_smarty_tpl->tpl_vars['recipients']->value)) { ?> selected <?php } ?> data-picklistvalue= '<?php echo $_smarty_tpl->tpl_vars['ROLE_OBJ']->value->get('rolename'); ?> '><?php echo $_smarty_tpl->tpl_vars['ROLE_OBJ']->value->get('rolename'); ?> </option><?php } ?> </optgroup></select></div></div><div class='row-fluid' id='specificemailsids' style='padding:5px 0px 10px 0px;'><div class='span3' style='position:relative;top:5px;'><?php echo vtranslate('LBL_SPECIFIC_EMAIL_ADDRESS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div><div class='span4'><?php $_smarty_tpl->tpl_vars['specificemailids'] = new Smarty_variable(Zend_Json::decode($_smarty_tpl->tpl_vars['SCHEDULEDREPORTS']->value->get('specificemails')), null, 0); ?> <input id="specificemails" style="width: 281px !important;" class="span6" type="text" value="<?php echo $_smarty_tpl->tpl_vars['specificemailids']->value; ?> " name="specificemails" data-validation-engine="validate[funcCall[Vtiger_MultiEmails_Validator_Js.invokeValidation]]"></input></div></div><?php if ($_smarty_tpl->tpl_vars['SCHEDULEDREPORTS']->value->get('next_trigger_time')) { ?> <div class="row-fluid"><div class='span3'><span class=''><?php echo vtranslate('LBL_NEXT_TRIGGER_TIME', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </span></div><div class='span'><?php echo DateTimeField::convertToUserFormat($_smarty_tpl->tpl_vars['SCHEDULEDREPORTS']->value->get('next_trigger_time')); ?> <span> (<?php echo $_smarty_tpl->tpl_vars['ACTIVE_ADMIN']->value->time_zone; ?> )</span></div></div><?php } ?> </div></div><div class="pull-right"><button type="submit" class="btn btn-success nextStep"><strong><?php echo vtranslate('LBL_NEXT', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></button> <a onclick='window.history.back()' class="cancelLink cursorPointer"><?php echo vtranslate('LBL_CANCEL', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </a></div></form></div><?php }
function content_567a594c4440b($_smarty_tpl) { ?> <form class="form-horizontal recordEditView" id="report_step3" method="post" action="index.php"><input type="hidden" name="module" value="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value; ?> " /><input type="hidden" name="action" value="Save" /><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="selected_fields" id="seleted_fields" value='<?php echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('selected_fields'); ?> ' /><input type="hidden" name="selected_sort_fields" id="selected_sort_fields" value=<?php echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('selected_sort_fields'); ?> /><input type="hidden" name="selected_calculation_fields" id="calculation_fields" value=<?php echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('calculation_fields'); ?> /><input type="hidden" name="advanced_filter" id="advanced_filter" value="" /><input type="hidden" name="isDuplicate" value="<?php echo $_smarty_tpl->tpl_vars['IS_DUPLICATE']->value; ?> " /><input type="hidden" class="step" value="3" /><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" name="date_filters" data-value='<?php echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['DATE_FILTERS']->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 contentsBackground"><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" id="generateReport"><strong><?php echo vtranslate('LBL_GENERATE_REPORT', $_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></form> <?php }
function content_56948dbbe5e96($_smarty_tpl) { ?> <input type='hidden' id='pageNumber' value="<?php echo $_smarty_tpl->tpl_vars['PAGE_NUMBER']->value; ?> "><input type='hidden' id='pageLimit' value="<?php echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->getPageLimit(); ?> "><input type="hidden" id="noOfEntries" value="<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRIES_COUNT']->value; ?> "><input type="hidden" id="pageStartRange" value="<?php echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->getRecordStartRange(); ?> " /><input type="hidden" id="pageEndRange" value="<?php echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->getRecordEndRange(); ?> " /><input type="hidden" id="view" value="<?php echo $_smarty_tpl->tpl_vars['VIEW']->value; ?> "/><input type="hidden" id="previousPageExist" value="<?php echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->isPrevPageExists(); ?> " /><input type="hidden" id="nextPageExist" value="<?php echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->isNextPageExists(); ?> " /><input type="hidden" id="totalCount" value="<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_COUNT']->value; ?> " /><?php if (!empty($_smarty_tpl->tpl_vars['SUBPRODUCTS_POPUP']->value) && !empty($_smarty_tpl->tpl_vars['PARENT_PRODUCT_ID']->value)) { ?> <input type="hidden" id="subProductsPopup" value="<?php echo $_smarty_tpl->tpl_vars['SUBPRODUCTS_POPUP']->value; ?> " /><input type="hidden" id="parentProductId" value="<?php echo $_smarty_tpl->tpl_vars['PARENT_PRODUCT_ID']->value; ?> " /><?php } ?> <div class="contents-topscroll"><div class="topscroll-div"> </div></div><div class="popupEntriesDiv relatedContents contents-bottomscroll"><input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['ORDER_BY']->value; ?> " id="orderBy"><input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['SORT_ORDER']->value; ?> " id="sortOrder"><input type="hidden" value="Inventory_Popup_Js" id="popUpClassName"/><?php $_smarty_tpl->tpl_vars['WIDTHTYPE'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->get('rowheight'), null, 0); ?> <div class="bottomscroll-div"><table class="table table-bordered listViewEntriesTable"><thead><tr class="listViewHeaders"><?php if ($_smarty_tpl->tpl_vars['MULTI_SELECT']->value) { ?> <th class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value; ?> "><input type="checkbox" class="selectAllInCurrentPage" /></th><?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) { $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = true; ?> <th class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value; ?> "><a href="javascript:void(0);" class="listViewHeaderValues" data-nextsortorderval="<?php if ($_smarty_tpl->tpl_vars['ORDER_BY']->value == $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('column')) { echo $_smarty_tpl->tpl_vars['NEXT_SORT_ORDER']->value; } else { ?> ASC<?php } ?> " data-columnname="<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('column'); ?> "><?php echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('label'), $_smarty_tpl->tpl_vars['TARGET_MODULE']->value); if ($_smarty_tpl->tpl_vars['ORDER_BY']->value == $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('column')) { ?> <img class="sortImage" src="<?php 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 } ?> <th class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value; ?> "><?php echo vtranslate('LBL_ACTION', $_smarty_tpl->tpl_vars['MODULE_NAME']->value); ?> </th></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) { $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = true; $_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('name'), null, 0); ?> <td class="listViewEntryValue <?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value; ?> "><?php if ($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->isNameField() == true || $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('uitype') == '4') { ?> <a><?php echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value); ?> </a><?php } elseif ($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('uitype') == '72') { ob_start(); echo $_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->get('currency_symbol_placement'); $_tmp2 = ob_get_clean(); $_smarty_tpl->tpl_vars['CURRENCY_SYMBOL_PLACEMENT'] = new Smarty_variable($_tmp2, null, 0); if ($_smarty_tpl->tpl_vars['CURRENCY_SYMBOL_PLACEMENT']->value == '1.0$') { echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value); echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get('currencySymbol'); } else { echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get('currencySymbol'); echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value); } } else { echo $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value); } ?> </td><?php } ?> <td class="listViewEntryValue <?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value; ?> "><?php if ($_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get('subProducts') == true) { ?> <a class="subproducts"><b><?php echo vtranslate('LBL_SUB_PRODUCTS', $_smarty_tpl->tpl_vars['MODULE_NAME']->value); ?> </b></a><!--<img class="lineItemPopup cursorPointer alignMiddle" data-popup="ProductsPopup" title="<?php echo vtranslate('Products', $_smarty_tpl->tpl_vars['MODULE']->value); ?> " data-module-name="Products" data-field-name="productid" src="<?php echo vimage_path('Products.png'); ?> "/>--><?php } else { echo vtranslate('NOT_A_BUNDLE', $_smarty_tpl->tpl_vars['MODULE_NAME']->value); } ?> </td></tr><?php } ?> </table><!--added this div for Temporarily --><?php if ($_smarty_tpl->tpl_vars['LISTVIEW_ENTRIES_COUNT']->value == '0') { if ($_smarty_tpl->tpl_vars['LBL_MODULE_DISABLED']->value == 'true') { ?> <div class="row-fluid"><div class="emptyRecordsDiv"><?php echo vtranslate('LBL_PRODUCTSMOD_DISABLED', $_smarty_tpl->tpl_vars['RELATED_MODULE']->value); ?> .</div></div><?php } else { ?> <div class="row-fluid"><div class="emptyRecordsDiv"><?php echo vtranslate('LBL_EQ_ZERO', $_smarty_tpl->tpl_vars['MODULE']->value); ?> <?php echo vtranslate($_smarty_tpl->tpl_vars['RELATED_MODULE']->value, $_smarty_tpl->tpl_vars['RELATED_MODULE']->value); ?> <?php echo vtranslate('LBL_FOUND', $_smarty_tpl->tpl_vars['MODULE']->value); ?> .</div></div><?php } } ?> </div><?php if (!empty($_smarty_tpl->tpl_vars['SUBPRODUCTS_POPUP']->value) && !empty($_smarty_tpl->tpl_vars['PARENT_PRODUCT_ID']->value)) { ?> <div class="row-fluid" style="margin-top:10px"><div class="span6"> </div><div class="span6"><div class="pull-right"><button type="button" class="btn" id="backToProducts"><strong><?php echo vtranslate('LBL_BACK_TO_PRODUCTS', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></button></div></div></div><?php } }
function content_569519a0994a0($_smarty_tpl) { $_smarty_tpl->tpl_vars['jsModel'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['jsModel']->_loop = false; $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['SCRIPTS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['jsModel']->key => $_smarty_tpl->tpl_vars['jsModel']->value) { $_smarty_tpl->tpl_vars['jsModel']->_loop = true; $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['jsModel']->key; ?> <script type="<?php echo $_smarty_tpl->tpl_vars['jsModel']->value->getType(); ?> " src="<?php echo $_smarty_tpl->tpl_vars['jsModel']->value->getSrc(); ?> "></script><?php } ?> <div id="massEditContainer" class='modelContainer'><div class="modal-header contentsBackground"><button type="button" class="close " data-dismiss="modal" aria-hidden="true">×</button><h3 id="massEditHeader"><?php echo vtranslate('LBL_MASS_EDITING', $_smarty_tpl->tpl_vars['MODULE']->value); ?> <?php echo vtranslate($_smarty_tpl->tpl_vars['MODULE']->value, $_smarty_tpl->tpl_vars['MODULE']->value); ?> </h3></div><form class="form-horizontal" id="massEdit" name="MassEdit" method="post" action="index.php"><?php if (!empty($_smarty_tpl->tpl_vars['PICKIST_DEPENDENCY_DATASOURCE']->value)) { ?> <input type="hidden" name="picklistDependency" value='<?php echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKIST_DEPENDENCY_DATASOURCE']->value); ?> ' /><?php } ?> <input type="hidden" name="module" value="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value; ?> " /><input type="hidden" name="action" value="MassSave" /><input type="hidden" name="viewname" value="<?php echo $_smarty_tpl->tpl_vars['CVID']->value; ?> " /><input type="hidden" name="selected_ids" value=<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['SELECTED_IDS']->value); ?> ><input type="hidden" name="excluded_ids" value=<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['EXCLUDED_IDS']->value); ?> ><input type="hidden" name="search_key" value= "<?php echo $_smarty_tpl->tpl_vars['SEARCH_KEY']->value; ?> " /><input type="hidden" name="operator" value="<?php echo $_smarty_tpl->tpl_vars['OPERATOR']->value; ?> " /><input type="hidden" name="search_value" value="<?php echo $_smarty_tpl->tpl_vars['ALPHABET_VALUE']->value; ?> " /><input type="hidden" name="search_params" value='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['SEARCH_PARAMS']->value); ?> ' /><input type="hidden" id="massEditFieldsNameList" data-value='<?php echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['MASS_EDIT_FIELD_DETAILS']->value)); ?> ' /><div name='massEditContent'><div class="modal-body tabbable"><ul class="nav nav-tabs massEditTabs"><?php $_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['RECORD_STRUCTURE']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['blockIterator']['iteration'] = 0; 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['smarty']->value['foreach']['blockIterator']['iteration']++; if (count($_smarty_tpl->tpl_vars['BLOCK_FIELDS']->value) > 0) { ?> <li <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['blockIterator']['iteration'] == 1) { ?> class="active"<?php } ?> ><a href="#block_<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['blockIterator']['iteration']; ?> " data-toggle="tab"><strong><?php echo vtranslate($_smarty_tpl->tpl_vars['BLOCK_LABEL']->value, $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></a></li><?php } } ?> </ul><div class="tab-content massEditContent"><?php $_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['RECORD_STRUCTURE']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['blockIterator']['iteration'] = 0; 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['smarty']->value['foreach']['blockIterator']['iteration']++; if (count($_smarty_tpl->tpl_vars['BLOCK_FIELDS']->value) > 0) { ?> <div class="tab-pane <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['blockIterator']['iteration'] == 1) { ?> active<?php } ?> " id="block_<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['blockIterator']['iteration']; ?> "><table class="massEditTable table table-bordered"><tr><?php $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(0, null, 0); $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false; $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['BLOCK_FIELDS']->value; 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; $_smarty_tpl->tpl_vars['FIELD_NAME']->value = $_smarty_tpl->tpl_vars['FIELD_MODEL']->key; $_smarty_tpl->tpl_vars["isReferenceField"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType(), null, 0); $_smarty_tpl->tpl_vars["refrenceList"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getReferenceList(), null, 0); $_smarty_tpl->tpl_vars["refrenceListCount"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['refrenceList']->value), null, 0); if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isEditable() == true) { if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == "19") { if ($_smarty_tpl->tpl_vars['COUNTER']->value == '1') { ?> <td></td><td></td></tr><tr><?php $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(0, null, 0); } } if ($_smarty_tpl->tpl_vars['COUNTER']->value == 2) { ?> </tr><tr><?php $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable(1, null, 0); } else { $_smarty_tpl->tpl_vars['COUNTER'] = new Smarty_variable($_smarty_tpl->tpl_vars['COUNTER']->value + 1, null, 0); } ?> <td class="fieldLabel alignMiddle"><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory() == true) { ?> <span class="redColor">*</span> <?php } ob_start(); 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); } } 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->getFieldDataType() == 'boolean') { ?> style="width:25%" <?php } ?> <?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']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> </td><?php } } if (1 & $_smarty_tpl->tpl_vars['COUNTER']->value) { ?> <td></td><td></td><?php } ?> </tr></table></div><?php } } ?> </div></div></div><?php echo $_smarty_tpl->getSubTemplate(vtemplate_path('ModalFooter.tpl', $_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> </form></div><?php }
function content_56799fef97f71($_smarty_tpl) { ?> <div class="reportContents"><form class="form-horizontal recordEditView" id="report_step1" 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="<?php echo $_smarty_tpl->tpl_vars['VIEW']->value; ?> " /><input type="hidden" name="mode" value="step2" /><input type="hidden" class="step" value="1" /><input type="hidden" name="isDuplicate" value="<?php echo $_smarty_tpl->tpl_vars['IS_DUPLICATE']->value; ?> " /><input type="hidden" name="record" value="<?php echo $_smarty_tpl->tpl_vars['RECORD_ID']->value; ?> " /><input type=hidden id="relatedModules" data-value='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['RELATED_MODULES']->value); ?> ' /><div class="well contentsBackground"><div class="row-fluid padding1per"><span class="span3"><?php echo vtranslate('LBL_REPORT_NAME', $_smarty_tpl->tpl_vars['MODULE']->value); ?> <span class="redColor">*</span></span><span class="span7 row-fluid"><input class="span6" data-validation-engine='validate[required]' type="text" name="reportname" value="<?php echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('reportname'); ?> "/></span></div><div class="row-fluid padding1per"><span class="span3"><?php echo vtranslate('LBL_REPORT_FOLDER', $_smarty_tpl->tpl_vars['MODULE']->value); ?> <span class="redColor">*</span></span><span class="span7 row-fluid"><select class="chzn-select span6" name="folderid"><optgroup><?php $_smarty_tpl->tpl_vars['REPORT_FOLDER'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['REPORT_FOLDER']->_loop = false; $_from = $_smarty_tpl->tpl_vars['REPORT_FOLDERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['REPORT_FOLDER']->key => $_smarty_tpl->tpl_vars['REPORT_FOLDER']->value) { $_smarty_tpl->tpl_vars['REPORT_FOLDER']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['REPORT_FOLDER']->value->getId(); ?> "<?php if ($_smarty_tpl->tpl_vars['REPORT_FOLDER']->value->getId() == $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('folderid')) { ?> selected=""<?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['REPORT_FOLDER']->value->getName(), $_smarty_tpl->tpl_vars['MODULE']->value); ?> </option><?php } ?> </optgroup></select></span></div><div class="row-fluid padding1per"><span class="span3"><?php echo vtranslate('PRIMARY_MODULE', $_smarty_tpl->tpl_vars['MODULE']->value); ?> <span class="redColor">*</span></span><span class="span7 row-fluid"><select class="span6 chzn-select" id="primary_module" name="primary_module" <?php if ($_smarty_tpl->tpl_vars['RECORD_ID']->value && $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getPrimaryModule() && $_smarty_tpl->tpl_vars['IS_DUPLICATE']->value != true) { ?> disabled="disabled"<?php } ?> ><optgroup><?php $_smarty_tpl->tpl_vars['RELATED_MODULE'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['RELATED_MODULE']->_loop = false; $_smarty_tpl->tpl_vars['RELATED_MODULE_KEY'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['MODULELIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['RELATED_MODULE']->key => $_smarty_tpl->tpl_vars['RELATED_MODULE']->value) { $_smarty_tpl->tpl_vars['RELATED_MODULE']->_loop = true; $_smarty_tpl->tpl_vars['RELATED_MODULE_KEY']->value = $_smarty_tpl->tpl_vars['RELATED_MODULE']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['RELATED_MODULE_KEY']->value; ?> " <?php if ($_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getPrimaryModule() == $_smarty_tpl->tpl_vars['RELATED_MODULE_KEY']->value) { ?> selected="selected"<?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['RELATED_MODULE_KEY']->value, $_smarty_tpl->tpl_vars['RELATED_MODULE_KEY']->value); ?> </option><?php } ?> </optgroup></select><?php if ($_smarty_tpl->tpl_vars['RECORD_ID']->value && $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getPrimaryModule() && $_smarty_tpl->tpl_vars['IS_DUPLICATE']->value != true) { ?> <input type="hidden" name="primary_module" value="<?php echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getPrimaryModule(); ?> " /><?php } ?> </span></div><div class="row-fluid padding1per"><span class="span3"><div><?php echo vtranslate('LBL_SELECT_RELATED_MODULES', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </div><div>(<?php echo vtranslate('LBL_MAX', $_smarty_tpl->tpl_vars['MODULE']->value); ?> 2)</div></span><span class="span7 row-fluid"><?php $_smarty_tpl->tpl_vars['SECONDARY_MODULES_ARR'] = new Smarty_variable(explode(':', $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getSecondaryModules()), null, 0); $_smarty_tpl->tpl_vars['PRIMARY_MODULE'] = new Smarty_variable($_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getPrimaryModule(), null, 0); if ($_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value == '') { $_smarty_tpl->tpl_vars['RELATED'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['RELATED']->_loop = false; $_smarty_tpl->tpl_vars['PARENT'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['RELATED_MODULES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['relatedlist']['index'] = -1; foreach ($_from as $_smarty_tpl->tpl_vars['RELATED']->key => $_smarty_tpl->tpl_vars['RELATED']->value) { $_smarty_tpl->tpl_vars['RELATED']->_loop = true; $_smarty_tpl->tpl_vars['PARENT']->value = $_smarty_tpl->tpl_vars['RELATED']->key; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['relatedlist']['index']++; if ($_smarty_tpl->getVariable('smarty')->value['foreach']['relatedlist']['index'] == 0) { $_smarty_tpl->tpl_vars['PRIMARY_MODULE'] = new Smarty_variable($_smarty_tpl->tpl_vars['PARENT']->value, null, 0); } } } $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULES'] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_MODULES']->value[$_smarty_tpl->tpl_vars['PRIMARY_MODULE']->value], null, 0); ?> <select class="span6 select2-container" id="secondary_module" multiple name="secondary_modules[]"data-placeholder="<?php echo vtranslate('LBL_SELECT_RELATED_MODULES', $_smarty_tpl->tpl_vars['MODULE']->value); ?> " <?php if ($_smarty_tpl->tpl_vars['RECORD_ID']->value && $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getSecondaryModules() && $_smarty_tpl->tpl_vars['IS_DUPLICATE']->value != true) { ?> disabled="disabled"<?php } ?> ><?php $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE_LABEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE_LABEL']->_loop = false; $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE_LABEL']->key => $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE_LABEL']->value) { $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE_LABEL']->_loop = true; $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE']->value = $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE_LABEL']->key; ?> <option <?php if (in_array($_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE']->value, $_smarty_tpl->tpl_vars['SECONDARY_MODULES_ARR']->value)) { ?> selected="" <?php } ?> value="<?php echo $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE']->value; ?> "><?php echo $_smarty_tpl->tpl_vars['PRIMARY_RELATED_MODULE_LABEL']->value; ?> </option><?php } ?> </select><?php if ($_smarty_tpl->tpl_vars['RECORD_ID']->value && $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getSecondaryModules() && $_smarty_tpl->tpl_vars['IS_DUPLICATE']->value != true) { ?> <input type="hidden" name="secondary_modules[]" value="<?php echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->getSecondaryModules(); ?> " /><?php } ?> </span></div><div class="row-fluid padding1per"><span class="span3"><?php echo vtranslate('LBL_DESCRIPTION', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </span><span class="span7"><textarea class="span6" type="text" name="description" ><?php echo $_smarty_tpl->tpl_vars['REPORT_MODEL']->value->get('description'); ?> </textarea></span></div></div><div class="pull-right"><button type="submit" class="btn btn-success nextStep"><strong><?php echo vtranslate('LBL_NEXT', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </strong></button> <a onclick='window.history.back()' class="cancelLink cursorPointer"><?php echo vtranslate('LBL_CANCEL', $_smarty_tpl->tpl_vars['MODULE']->value); ?> </a></div></form></div><?php }
function content_564b7f09aab4b($_smarty_tpl) { ?> <div class="container-fluid" id="layoutEditorContainer"><input id="selectedModuleName" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value; ?> " /><div class="widget_header row-fluid"><div class="span8"><h3><?php echo vtranslate('LBL_FIELDS_AND_LAYOUT_EDITOR', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </h3></div><div class="span4"><div class="pull-right"><select class="select2 span3" name="layoutEditorModules"><?php $_smarty_tpl->tpl_vars['MODULE_NAME'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['MODULE_NAME']->_loop = false; $_from = $_smarty_tpl->tpl_vars['SUPPORTED_MODULES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['MODULE_NAME']->key => $_smarty_tpl->tpl_vars['MODULE_NAME']->value) { $_smarty_tpl->tpl_vars['MODULE_NAME']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value; ?> " <?php if ($_smarty_tpl->tpl_vars['MODULE_NAME']->value == $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value) { ?> selected <?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['MODULE_NAME']->value, $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </option><?php } ?> </select></div></div></div><hr><div class="contents tabbable"><ul class="nav nav-tabs layoutTabs massEditTabs"><li class="active"><a data-toggle="tab" href="#detailViewLayout"><strong><?php echo vtranslate('LBL_DETAILVIEW_LAYOUT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong></a></li><li class="relatedListTab"><a data-toggle="tab" href="#relatedTabOrder"><strong><?php echo vtranslate('LBL_ARRANGE_RELATED_TABS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong></a></li></ul><div class="tab-content layoutContent padding20 themeTableColor overflowVisible"><div class="tab-pane active" id="detailViewLayout"><?php $_smarty_tpl->tpl_vars['FIELD_TYPE_INFO'] = new Smarty_variable($_smarty_tpl->tpl_vars['SELECTED_MODULE_MODEL']->value->getAddFieldTypeInfo(), null, 0); $_smarty_tpl->tpl_vars['IS_SORTABLE'] = new Smarty_variable($_smarty_tpl->tpl_vars['SELECTED_MODULE_MODEL']->value->isSortableAllowed(), null, 0); $_smarty_tpl->tpl_vars['IS_BLOCK_SORTABLE'] = new Smarty_variable($_smarty_tpl->tpl_vars['SELECTED_MODULE_MODEL']->value->isBlockSortableAllowed(), null, 0); $_smarty_tpl->tpl_vars['ALL_BLOCK_LABELS'] = new Smarty_variable(array(), null, 0); if ($_smarty_tpl->tpl_vars['IS_SORTABLE']->value) { ?> <div class="btn-toolbar"><button class="btn addButton addCustomBlock" type="button"><i class="icon-plus icon-white"></i> <strong><?php echo vtranslate('LBL_ADD_CUSTOM_BLOCK', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong></button><span class="pull-right"><button class="btn btn-success saveFieldSequence hide" type="button"><strong><?php echo vtranslate('LBL_SAVE_FIELD_SEQUENCE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong></button></span></div><?php } ?> <div id="moduleBlocks"><?php $_smarty_tpl->tpl_vars['BLOCK_MODEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['BLOCK_MODEL']->_loop = false; $_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['BLOCKS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['BLOCK_MODEL']->key => $_smarty_tpl->tpl_vars['BLOCK_MODEL']->value) { $_smarty_tpl->tpl_vars['BLOCK_MODEL']->_loop = true; $_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value = $_smarty_tpl->tpl_vars['BLOCK_MODEL']->key; $_smarty_tpl->tpl_vars['FIELDS_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->getLayoutBlockActiveFields(), null, 0); $_smarty_tpl->tpl_vars['BLOCK_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->get('id'), null, 0); $_smarty_tpl->createLocalArrayVariable('ALL_BLOCK_LABELS', null, 0); $_smarty_tpl->tpl_vars['ALL_BLOCK_LABELS']->value[$_smarty_tpl->tpl_vars['BLOCK_ID']->value] = $_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value; ?> <div id="block_<?php echo $_smarty_tpl->tpl_vars['BLOCK_ID']->value; ?> " class="editFieldsTable block_<?php echo $_smarty_tpl->tpl_vars['BLOCK_ID']->value; ?> marginBottom10px border1px <?php if ($_smarty_tpl->tpl_vars['IS_BLOCK_SORTABLE']->value) { ?> blockSortable<?php } ?> " data-block-id="<?php echo $_smarty_tpl->tpl_vars['BLOCK_ID']->value; ?> " data-sequence="<?php echo $_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->get('sequence'); ?> " style="border-radius: 4px 4px 0px 0px;background: white;"><div class="row-fluid layoutBlockHeader"><div class="blockLabel span5 padding10 marginLeftZero"><img class="alignMiddle" src="<?php echo vimage_path('drag.png'); ?> " /> <strong><?php echo vtranslate($_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value, $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value); ?> </strong></div><div class="span6 marginLeftZero" style="float:right !important;"><div class="pull-right btn-toolbar blockActions" style="margin: 4px;"><?php if ($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->isAddCustomFieldEnabled()) { ?> <div class="btn-group"><button class="btn addCustomField" type="button"><strong><?php echo vtranslate('LBL_ADD_CUSTOM_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong></button></div><?php } if ($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->isActionsAllowed()) { ?> <div class="btn-group"><button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php echo vtranslate('LBL_ACTIONS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong> <i class="caret"></i></button><ul class="dropdown-menu pull-right"><li class="blockVisibility" data-visible="<?php if (!$_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->isHidden()) { ?> 1<?php } else { ?> 0<?php } ?> " data-block-id="<?php echo $_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->get('id'); ?> "><a href="javascript:void(0)"><i class="icon-ok <?php if ($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->isHidden()) { ?> hide <?php } ?> "></i> <?php echo vtranslate('LBL_ALWAYS_SHOW', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </a></li><li class="inActiveFields"><a href="javascript:void(0)"><?php echo vtranslate('LBL_INACTIVE_FIELDS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </a></li><?php if ($_smarty_tpl->tpl_vars['BLOCK_MODEL']->value->isCustomized()) { ?> <li class="deleteCustomBlock"><a href="javascript:void(0)"><?php echo vtranslate('LBL_DELETE_CUSTOM_BLOCK', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </a></li><?php } ?> </ul></div><?php } ?> </div></div></div><div class="blockFieldsList <?php if ($_smarty_tpl->tpl_vars['SELECTED_MODULE_MODEL']->value->isFieldsSortableAllowed($_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value)) { ?> blockFieldsSortable <?php } ?> row-fluid" style="padding:5px;min-height: 27px"><ul name="sortable1" class="connectedSortable span6" style="list-style-type: none; float: left;min-height: 1px;padding:2px;"><?php $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false; $_from = $_smarty_tpl->tpl_vars['FIELDS_LIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['fieldlist']['index'] = -1; 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; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['fieldlist']['index']++; $_smarty_tpl->tpl_vars['FIELD_INFO'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo(), null, 0); if ($_smarty_tpl->getVariable('smarty')->value['foreach']['fieldlist']['index'] % 2 == 0) { ?> <li><div class="opacity editFields marginLeftZero border1px" data-block-id="<?php echo $_smarty_tpl->tpl_vars['BLOCK_ID']->value; ?> " data-field-id="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('id'); ?> " data-sequence="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('sequence'); ?> "><div class="row-fluid padding1per"><?php $_smarty_tpl->tpl_vars['IS_MANDATORY'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory(), null, 0); ?> <span class="span1"> <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isEditable()) { ?> <a><img src="<?php echo vimage_path('drag.png'); ?> " border="0" title="<?php echo vtranslate('LBL_DRAG', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> "/></a><?php } ?> </span><div class="span11 marginLeftZero" style="word-wrap: break-word;"><span class="fieldLabel"><?php echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value); ?> <?php if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) { ?> <span class="redColor">*</span><?php } ?> </span><span class="btn-group pull-right actions"><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isEditable()) { ?> <a href="javascript:void(0)" class="dropdown-toggle editFieldDetails" data-toggle="dropdown"><i class="icon-pencil alignMiddle" title="<?php echo vtranslate('LBL_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> "></i></a><div class="basicFieldOperations pull-right hide" style="width : 250px;"><form class="form-horizontal fieldDetailsForm"><div class="modal-header contentsBackground"><strong><?php echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value); ?> </strong></div><div style="padding-bottom: 5px;"><span><input type="hidden" name="mandatory" value="O" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="mandatory" <?php if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) { ?> checked <?php } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatoryOptionDisabled()) { ?> readonly="readonly" <?php } ?> value="M" /> <?php echo vtranslate('LBL_MANDATORY_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="presence" value="1" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="presence" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isViewable()) { ?> checked <?php } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isActiveOptionDisabled()) { ?> readonly="readonly" class="optionDisabled"<?php } ?> <?php if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) { ?> readonly="readonly" <?php } ?> value="2" /> <?php echo vtranslate('LBL_ACTIVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="quickcreate" value="1" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="quickcreate" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isQuickCreateEnabled()) { ?> checked <?php } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isQuickCreateOptionDisabled()) { ?> readonly="readonly" class="optionDisabled"<?php } ?> <?php if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) { ?> readonly="readonly" <?php } ?> value="2" /> <?php echo vtranslate('LBL_QUICK_CREATE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="summaryfield" value="0"/><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="summaryfield" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isSummaryField()) { ?> checked <?php } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isSummaryFieldOptionDisabled()) { ?> readonly="readonly" class="optionDisabled"<?php } ?> value="1" /> <?php echo vtranslate('LBL_SUMMARY_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="masseditable" value="2" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="masseditable" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMassEditable()) { ?> checked <?php } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMassEditOptionDisabled()) { ?> readonly="readonly" <?php } ?> value="1" /> <?php echo vtranslate('LBL_MASS_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="defaultvalue" value="" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="defaultvalue" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> checked <?php } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isDefaultValueOptionDisabled()) { ?> readonly="readonly" <?php } ?> value="" /> <?php echo vtranslate('LBL_DEFAULT_VALUE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label><div class="padding1per defaultValueUi <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> zeroOpacity <?php } ?> " style="padding : 0px 10px 0px 25px;"><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isDefaultValueOptionDisabled() != "true") { if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "picklist") { $_smarty_tpl->tpl_vars['PICKLIST_VALUES'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPicklistValues(), null, 0); ?> <select class="span2" name="fieldDefaultValue" <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> disabled="" <?php } ?> data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" data-fieldinfo='<?php echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value)); ?> '><?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 (decode_html($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue')) == $_smarty_tpl->tpl_vars['PICKLIST_NAME']->value) { ?> selected <?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value, $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value); ?> </option><?php } ?> </select><?php } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "multipicklist") { $_smarty_tpl->tpl_vars['PICKLIST_VALUES'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPicklistValues(), null, 0); $_smarty_tpl->tpl_vars["FIELD_VALUE_LIST"] = new Smarty_variable(explode(' |##| ', $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue')), null, 0); ?> <select multiple class="span2" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> disabled="" <?php } ?> name="fieldDefaultValue" data-fieldinfo='<?php echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value)); ?> '><?php $_smarty_tpl->tpl_vars['PICKLIST_VALUE'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = false; $_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; ?> <option value="<?php echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value); ?> " <?php if (in_array(Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value), $_smarty_tpl->tpl_vars['FIELD_VALUE_LIST']->value)) { ?> selected <?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value, $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value); ?> </option><?php } ?> </select><?php } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "boolean") { ?> <input type="hidden" name="fieldDefaultValue" value="" /><input type="checkbox" name="fieldDefaultValue" value="1"<?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue') == 1) { ?> checked <?php } ?> data-fieldinfo='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value); ?> ' /><?php } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "time") { ?> <div class="input-append time"><input type="text" class="input-small" data-format="<?php echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('hour_format'); ?> " data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> disabled="" <?php } ?> data-toregister="time" value="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue'); ?> " name="fieldDefaultValue" data-fieldinfo='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value); ?> '/><span class="add-on cursorPointer"><i class="icon-time"></i></span></div><?php } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "date") { ?> <div class="input-append date"><?php $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), null, 0); ?> <input type="text" class="input-medium" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> disabled="" <?php } ?> name="fieldDefaultValue" data-toregister="date" data-date-format="<?php echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('date_format'); ?> " data-fieldinfo='<?php echo ZEND_JSON::encode($_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('defaultvalue')); ?> " /><span class="add-on"><i class="icon-calendar"></i></span></div><?php } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "percentage") { ?> <div class="input-append"><input type="number" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> disabled="" <?php } ?> class="input-medium" name="fieldDefaultValue"value="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue'); ?> " data-fieldinfo='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value); ?> ' step="any" /><span class="add-on">%</span></div><?php } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "currency") { ?> <div class="input-prepend"><span class="add-on"><?php echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_symbol'); ?> </span><input type="text" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> disabled="" <?php } ?> class="input-medium" name="fieldDefaultValue"data-fieldinfo='<?php echo ZEND_JSON::encode($_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('defaultvalue')); ?> "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'); ?> ' /></div><?php } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldName() == "terms_conditions" && $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype') == 19) { $_smarty_tpl->tpl_vars['INVENTORY_TERMS_AND_CONDITIONS_MODEL'] = new Smarty_variable(Settings_Vtiger_MenuItem_Model::getInstance("INVENTORYTERMSANDCONDITIONS"), null, 0); ?> <a href="<?php echo $_smarty_tpl->tpl_vars['INVENTORY_TERMS_AND_CONDITIONS_MODEL']->value->getUrl(); ?> " target="_blank"><?php echo vtranslate('LBL_CLICK_HERE_TO_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </a><?php } else { ?> <input type="text" class="input-medium" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> disabled="" <?php } ?> name="fieldDefaultValue" value="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue'); ?> " data-fieldinfo='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value); ?> '/><?php } } ?> </div></span></div><div class="modal-footer" style="padding: 0px;"><span class="pull-right"><button class="btn btn-success saveFieldDetails" data-field-id="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('id'); ?> " type="submit" style="margin: 5px;"><strong><?php echo vtranslate('LBL_SAVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong></button></span></div></form></div><?php } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isCustomField() == 'true') { ?> <a href="javascript:void(0)" class="deleteCustomField" data-field-id="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('id'); ?> "><i class="icon-trash alignMiddle" title="<?php echo vtranslate('LBL_DELETE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> "></i></a><?php } ?> </span></div></div></div></li><?php } } ?> </ul><ul <?php if ($_smarty_tpl->tpl_vars['SELECTED_MODULE_MODEL']->value->isFieldsSortableAllowed($_smarty_tpl->tpl_vars['BLOCK_LABEL_KEY']->value)) { ?> name="sortable2"<?php } ?> class="connectedSortable span6" style="list-style-type: none; margin: 0; float: left;min-height: 1px;padding:2px;"><?php $_smarty_tpl->tpl_vars['FIELD_MODEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false; $_from = $_smarty_tpl->tpl_vars['FIELDS_LIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } $_smarty_tpl->tpl_vars['smarty']->value['foreach']['fieldlist1']['index'] = -1; 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; $_smarty_tpl->tpl_vars['smarty']->value['foreach']['fieldlist1']['index']++; $_smarty_tpl->tpl_vars['FIELD_INFO'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo(), null, 0); if ($_smarty_tpl->getVariable('smarty')->value['foreach']['fieldlist1']['index'] % 2 != 0) { ?> <li><div class="opacity editFields marginLeftZero border1px" data-block-id="<?php echo $_smarty_tpl->tpl_vars['BLOCK_ID']->value; ?> " data-field-id="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('id'); ?> " data-sequence="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('sequence'); ?> "><div class="row-fluid padding1per"><?php $_smarty_tpl->tpl_vars['IS_MANDATORY'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatory(), null, 0); ?> <span class="span1"> <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isEditable()) { ?> <a><img src="<?php echo vimage_path('drag.png'); ?> " border="0" title="<?php echo vtranslate('LBL_DRAG', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> "/></a><?php } ?> </span><div class="span11 marginLeftZero" style="word-wrap: break-word;"><span class="fieldLabel"><?php if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) { ?> <span class="redColor">*</span><?php } echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value); ?> </span><span class="btn-group pull-right actions"><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isEditable()) { ?> <a href="javascript:void(0)" class="dropdown-toggle editFieldDetails" data-toggle="dropdown"><i class="icon-pencil alignMiddle" title="<?php echo vtranslate('LBL_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> "></i></a><div class="basicFieldOperations pull-right hide" style="width : 250px;"><form class="form-horizontal fieldDetailsForm"><div class="modal-header contentsBackground"><strong><?php echo vtranslate($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('label'), $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value); ?> </strong></div><div style="padding-bottom: 5px;"><span><input type="hidden" name="mandatory" value="O" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="mandatory" <?php if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) { ?> checked <?php } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMandatoryOptionDisabled()) { ?> readonly="readonly" <?php } ?> value="M" /> <?php echo vtranslate('LBL_MANDATORY_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="presence" value="1" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="presence" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isViewable()) { ?> checked <?php } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isActiveOptionDisabled()) { ?> readonly="readonly" class="optionDisabled"<?php } ?> <?php if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) { ?> readonly="readonly" <?php } ?> value="2" /> <?php echo vtranslate('LBL_ACTIVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="quickcreate" value="1" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="quickcreate" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isQuickCreateEnabled()) { ?> checked <?php } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isQuickCreateOptionDisabled()) { ?> readonly="readonly" class="optionDisabled"<?php } ?> <?php if ($_smarty_tpl->tpl_vars['IS_MANDATORY']->value) { ?> readonly="readonly" <?php } ?> value="2" /> <?php echo vtranslate('LBL_QUICK_CREATE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="summaryfield" value="0"/><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="summaryfield" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isSummaryField()) { ?> checked <?php } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isSummaryFieldOptionDisabled()) { ?> readonly="readonly" class="optionDisabled"<?php } ?> value="1" /> <?php echo vtranslate('LBL_SUMMARY_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="masseditable" value="2" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="masseditable" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMassEditable()) { ?> checked <?php } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isMassEditOptionDisabled()) { ?> readonly="readonly" <?php } ?> value="1" /> <?php echo vtranslate('LBL_MASS_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="defaultvalue" value="" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="defaultvalue" <?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> checked <?php } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isDefaultValueOptionDisabled()) { ?> readonly="readonly" <?php } ?> value="" /> <?php echo vtranslate('LBL_DEFAULT_VALUE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label><div class="padding1per defaultValueUi <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> zeroOpacity <?php } ?> " style="padding : 0px 10px 0px 25px;"><?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isDefaultValueOptionDisabled() != "true") { if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "picklist") { $_smarty_tpl->tpl_vars['PICKLIST_VALUES'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPicklistValues(), null, 0); ?> <select class="span2" name="fieldDefaultValue" <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> disabled="" <?php } ?> data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" data-fieldinfo='<?php echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value)); ?> '><?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 (decode_html($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue')) == $_smarty_tpl->tpl_vars['PICKLIST_NAME']->value) { ?> selected <?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value, $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value); ?> </option><?php } ?> </select><?php } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "multipicklist") { $_smarty_tpl->tpl_vars['PICKLIST_VALUES'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getPicklistValues(), null, 0); $_smarty_tpl->tpl_vars["FIELD_VALUE_LIST"] = new Smarty_variable(explode(' |##| ', $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue')), null, 0); ?> <select multiple class="span2" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> disabled="" <?php } ?> name="fieldDefaultValue" data-fieldinfo='<?php echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value)); ?> '><?php $_smarty_tpl->tpl_vars['PICKLIST_VALUE'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['PICKLIST_VALUE']->_loop = false; $_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; ?> <option value="<?php echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value); ?> " <?php if (in_array(Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value), $_smarty_tpl->tpl_vars['FIELD_VALUE_LIST']->value)) { ?> selected <?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['PICKLIST_VALUE']->value, $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value); ?> </option><?php } ?> </select><?php } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "boolean") { ?> <input type="hidden" name="fieldDefaultValue" value="" /><input type="checkbox" name="fieldDefaultValue" value="1"<?php if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue') == 1) { ?> checked <?php } ?> data-fieldinfo='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value); ?> ' /><?php } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "time") { ?> <div class="input-append time"><input type="text" class="input-small" data-format="<?php echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('hour_format'); ?> " data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> disabled="" <?php } ?> data-toregister="time" value="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue'); ?> " name="fieldDefaultValue" data-fieldinfo='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value); ?> '/><span class="add-on cursorPointer"><i class="icon-time"></i></span></div><?php } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "date") { ?> <div class="input-append date"><?php $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), null, 0); ?> <input type="text" class="input-medium" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> disabled="" <?php } ?> name="fieldDefaultValue" data-toregister="date" data-date-format="<?php echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('date_format'); ?> " data-fieldinfo='<?php echo ZEND_JSON::encode($_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('defaultvalue')); ?> " /><span class="add-on"><i class="icon-calendar"></i></span></div><?php } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "percentage") { ?> <div class="input-append"><input type="number" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> disabled="" <?php } ?> class="input-medium" name="fieldDefaultValue"value="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue'); ?> " data-fieldinfo='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value); ?> ' step="any" /><span class="add-on">%</span></div><?php } elseif ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldDataType() == "currency") { ?> <div class="input-prepend"><span class="add-on"><?php echo $_smarty_tpl->tpl_vars['USER_MODEL']->value->get('currency_symbol'); ?> </span><input type="text" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> disabled="" <?php } ?> class="input-medium" name="fieldDefaultValue"data-fieldinfo='<?php echo ZEND_JSON::encode($_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('defaultvalue')); ?> "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'); ?> ' /></div><?php } else { ?> <input type="text" class="input-medium" data-validation-engine="validate[required,funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" <?php if (!$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->hasDefaultValue()) { ?> disabled="" <?php } ?> name="fieldDefaultValue" value="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('defaultvalue'); ?> " data-fieldinfo='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['FIELD_INFO']->value); ?> '/><?php } } ?> </div></span></div><div class="modal-footer" style="padding: 0px;"><span class="pull-right"><button class="btn btn-success saveFieldDetails" data-field-id="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('id'); ?> " type="submit" style="margin: 5px;"><strong><?php echo vtranslate('LBL_SAVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong></button></span></div></form></div><?php } if ($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isCustomField() == 'true') { ?> <a href="javascript:void(0)" class="deleteCustomField" data-field-id="<?php echo $_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('id'); ?> "><i class="icon-trash alignMiddle" title="<?php echo vtranslate('LBL_DELETE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> "></i></a><?php } ?> </span></div></div></div></li><?php } } ?> </ul></div></div><?php } ?> </div><input type="hidden" class="inActiveFieldsArray" value='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['IN_ACTIVE_FIELDS']->value); ?> ' /><div class="newCustomBlockCopy hide marginBottom10px border1px <?php if ($_smarty_tpl->tpl_vars['IS_BLOCK_SORTABLE']->value) { ?> blockSortable <?php } ?> " data-block-id="" data-sequence="" style="border-radius: 4px;"><div class="row-fluid layoutBlockHeader"><div class="span6 blockLabel padding10"><img class="alignMiddle" src="<?php echo vimage_path('drag.png'); ?> " /> </div><div class="span6 marginLeftZero"><div class="pull-right btn-toolbar blockActions" style="margin: 4px;"><div class="btn-group"><button class="btn addCustomField hide" type="button"><strong><?php echo vtranslate('LBL_ADD_CUSTOM_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong></button></div><div class="btn-group"><button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php echo vtranslate('LBL_ACTIONS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong> <i class="caret"></i></button><ul class="dropdown-menu pull-right"><li class="blockVisibility" data-visible="1" data-block-id=""><a href="javascript:void(0)"><i class="icon-ok"></i> <?php echo vtranslate('LBL_ALWAYS_SHOW', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </a></li><li class="inActiveFields"><a href="javascript:void(0)"><?php echo vtranslate('LBL_INACTIVE_FIELDS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </a></li><li class="deleteCustomBlock"><a href="javascript:void(0)"><?php echo vtranslate('LBL_DELETE_CUSTOM_BLOCK', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </a></li></ul></div></div></div></div><div class="blockFieldsList row-fluid blockFieldsSortable" style="padding:5px;min-height: 27px"><ul class="connectedSortable span6 ui-sortable" style="list-style-type: none; float: left;min-height:1px;padding:2px;" name="sortable1"></ul><ul class="connectedSortable span6 ui-sortable" style="list-style-type: none; margin: 0;float: left;min-height:1px;padding:2px;" name="sortable2"></ul></div></div><li class="newCustomFieldCopy hide"><div class="marginLeftZero border1px" data-field-id="" data-sequence=""><div class="row-fluid padding1per"><span class="span1"> <?php if ($_smarty_tpl->tpl_vars['IS_SORTABLE']->value) { ?> <a><img src="<?php echo vimage_path('drag.png'); ?> " border="0" title="<?php echo vtranslate('LBL_DRAG', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> "/></a><?php } ?> </span><div class="span11 marginLeftZero" style="word-wrap: break-word;"><span class="fieldLabel"></span><span class="btn-group pull-right actions"><?php if ($_smarty_tpl->tpl_vars['IS_SORTABLE']->value) { ?> <a href="javascript:void(0)" class="dropdown-toggle editFieldDetails" data-toggle="dropdown"><i class="icon-pencil alignMiddle" title="<?php echo vtranslate('LBL_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> "></i></a><div class="basicFieldOperations hide pull-right" style="width: 250px;"><form class="form-horizontal fieldDetailsForm"><div class="modal-header contentsBackground"></div><div style="padding-bottom: 5px;"><span><input type="hidden" name="mandatory" value="O" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="mandatory" value="M" /> <?php echo vtranslate('LBL_MANDATORY_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="presence" value="1" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="presence" value="2" /> <?php echo vtranslate('LBL_ACTIVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="quickcreate" value="1" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="quickcreate" value="2" /> <?php echo vtranslate('LBL_QUICK_CREATE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="summaryfield" value="0"/><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="summaryfield" value="1" /> <?php echo vtranslate('LBL_SUMMARY_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="masseditable" value="2" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="masseditable" value="1" /> <?php echo vtranslate('LBL_MASS_EDIT', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></span><span><input type="hidden" name="defaultvalue" value="" /><label class="checkbox" style="padding-left: 25px; padding-top: 5px;"><input type="checkbox" name="defaultvalue" value="" /> <?php echo vtranslate('LBL_DEFAULT_VALUE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label><div class="padding1per defaultValueUi" style="padding : 0px 10px 0px 25px;"></div></span></div><div class="modal-footer"><span class="pull-right"><button class="btn btn-success saveFieldDetails" data-field-id="" type="submit"><strong><?php echo vtranslate('LBL_SAVE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong></button></span></div></form></div><?php } ?> <a href="javascript:void(0)" class="deleteCustomField" data-field-id=""><i class="icon-trash alignMiddle" title="<?php echo vtranslate('LBL_DELETE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> "></i></a></span></div></div></div></li><div class="modal addBlockModal hide"><div class="modal-header contentsBackground"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h3><?php echo vtranslate('LBL_ADD_CUSTOM_BLOCK', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </h3></div><form class="form-horizontal addCustomBlockForm"><div class="modal-body"><div class="control-group"><span class="control-label"><span class="redColor">*</span><span><?php echo vtranslate('LBL_BLOCK_NAME', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </span></span><div class="controls"><input type="text" name="label" class="span3" data-validation-engine="validate[required]" /></div></div><div class="control-group"><span class="control-label"><?php echo vtranslate('LBL_ADD_AFTER', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </span><div class="controls"><span class="row-fluid"><select class="span8" name="beforeBlockId"><?php $_smarty_tpl->tpl_vars['BLOCK_LABEL'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['BLOCK_LABEL']->_loop = false; $_smarty_tpl->tpl_vars['BLOCK_ID'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['ALL_BLOCK_LABELS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['BLOCK_LABEL']->key => $_smarty_tpl->tpl_vars['BLOCK_LABEL']->value) { $_smarty_tpl->tpl_vars['BLOCK_LABEL']->_loop = true; $_smarty_tpl->tpl_vars['BLOCK_ID']->value = $_smarty_tpl->tpl_vars['BLOCK_LABEL']->key; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['BLOCK_ID']->value; ?> " data-label="<?php echo $_smarty_tpl->tpl_vars['BLOCK_LABEL']->value; ?> "><?php echo vtranslate($_smarty_tpl->tpl_vars['BLOCK_LABEL']->value, $_smarty_tpl->tpl_vars['SELECTED_MODULE_NAME']->value); ?> </option><?php } ?> </select></span></div></div></div><?php echo $_smarty_tpl->getSubTemplate(vtemplate_path('ModalFooter.tpl', 'Vtiger'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> </form></div><div class="modal createFieldModal hide"><div class="modal-header contentsBackground"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h3><?php echo vtranslate('LBL_CREATE_CUSTOM_FIELD', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </h3></div><form class="form-horizontal createCustomFieldForm"><div class="modal-body"><div class="control-group"><span class="control-label"><?php echo vtranslate('LBL_SELECT_FIELD_TYPE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </span><div class="controls"><span class="row-fluid"><select class="fieldTypesList span7" name="fieldType"><?php $_smarty_tpl->tpl_vars['FIELD_TYPE'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['FIELD_TYPE']->_loop = false; $_from = $_smarty_tpl->tpl_vars['ADD_SUPPORTED_FIELD_TYPES']->value; 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; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['FIELD_TYPE']->value; ?> "<?php $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->_loop = false; $_smarty_tpl->tpl_vars['TYPE_INFO'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['FIELD_TYPE_INFO']->value[$_smarty_tpl->tpl_vars['FIELD_TYPE']->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->key => $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->value) { $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->_loop = true; $_smarty_tpl->tpl_vars['TYPE_INFO']->value = $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->key; ?> data-<?php echo $_smarty_tpl->tpl_vars['TYPE_INFO']->value; ?> ="<?php echo $_smarty_tpl->tpl_vars['TYPE_INFO_VALUE']->value; ?> "<?php } ?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['FIELD_TYPE']->value, $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </option><?php } ?> </select></span></div></div><div class="control-group"><span class="control-label"><span class="redColor">*</span> <?php echo vtranslate('LBL_LABEL_NAME', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </span><div class="controls"><input type="text" maxlength="50" name="fieldLabel" value="" data-validation-engine="validate[required, funcCall[Vtiger_Base_Validator_Js.invokeValidation]]"data-validator=<?php echo Zend_Json::encode(array(array('name' => 'FieldLabel'))); ?> /></div></div><div class="control-group supportedType lengthsupported"><span class="control-label"><span class="redColor">*</span> <?php echo vtranslate('LBL_LENGTH', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </span><div class="controls"><input type="text" name="fieldLength" value="" data-validation-engine="validate[required, funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" /></div></div><div class="control-group supportedType decimalsupported hide"><span class="control-label"><span class="redColor">*</span> <?php echo vtranslate('LBL_DECIMALS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </span><div class="controls"><input type="text" name="decimal" value="" data-validation-engine="validate[required, funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" /></div></div><div class="control-group supportedType preDefinedValueExists hide"><span class="control-label"><span class="redColor">*</span> <?php echo vtranslate('LBL_PICKLIST_VALUES', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </span><div class="controls"><div class="row-fluid"><input type="hidden" id="picklistUi" class="span7 select2" name="pickListValues"placeholder="<?php echo vtranslate('LBL_ENTER_PICKLIST_VALUES', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> " data-validation-engine="validate[required, funcCall[Vtiger_Base_Validator_Js.invokeValidation]]" data-validator=<?php echo Zend_Json::encode(array(array('name' => 'PicklistFieldValues'))); ?> /></div></div></div><div class="control-group supportedType picklistOption hide"><span class="control-label"> </span><div class="controls"><label class="checkbox"><input type="checkbox" class="checkbox" name="isRoleBasedPickList" value="1" > <?php echo vtranslate('LBL_ROLE_BASED_PICKLIST', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </label></div></div></div><?php echo $_smarty_tpl->getSubTemplate(vtemplate_path('ModalFooter.tpl', 'Vtiger'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?> </form></div><div class="modal inactiveFieldsModal hide"><div class="modal-header contentsBackground"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h3><?php echo vtranslate('LBL_INACTIVE_FIELDS', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </h3></div><form class="form-horizontal inactiveFieldsForm"><div class="modal-body"><div class="row-fluid inActiveList"></div></div><div class="modal-footer"><div class=" pull-right cancelLinkContainer"><a class="cancelLink" type="reset" data-dismiss="modal"><?php echo vtranslate('LBL_CANCEL', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </a></div><button class="btn btn-success" type="submit" name="reactivateButton"><strong><?php echo vtranslate('LBL_REACTIVATE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </strong></button></div></form></div></div><div class="tab-pane" id="relatedTabOrder"></div></div></div></div><?php }
function content_54d2a1f057330($_smarty_tpl) { ?> <div class='modelContainer modal basicCreateView'><div class="modal-header"><button data-dismiss="modal" class="close" title="<?php echo vtranslate('LBL_CLOSE'); ?> ">x</button><h3><?php echo vtranslate('LBL_ADD_ITEM_TO', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> <?php echo vtranslate($_smarty_tpl->tpl_vars['SELECTED_PICKLIST_FIELDMODEL']->value->get('label'), $_smarty_tpl->tpl_vars['SOURCE_MODULE']->value); ?> </h3></div><form name="addItemForm" 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['SELECTED_MODULE_NAME']->value; ?> " /><input type="hidden" name="action" value="SaveAjax" /><input type="hidden" name="mode" value="add" /><input type="hidden" name="picklistName" value="<?php echo $_smarty_tpl->tpl_vars['SELECTED_PICKLIST_FIELDMODEL']->value->get('name'); ?> " /><input type="hidden" name="pickListValues" value='<?php echo Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($_smarty_tpl->tpl_vars['SELECTED_PICKLISTFIELD_ALL_VALUES']->value)); ?> ' /><div class="modal-body tabbable"><div class="control-group"><div class="control-label"><span class="redColor">*</span><?php echo vtranslate('LBL_ITEM_VALUE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </div><div class="controls"><input type="text" data-prompt-position="topLeft:70" 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></div><?php if ($_smarty_tpl->tpl_vars['SELECTED_PICKLIST_FIELDMODEL']->value->isRoleBased()) { ?> <div class="control-group"><div class="control-label"><?php echo vtranslate('LBL_ASSIGN_TO_ROLE', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </div><div class="controls"><select class="rolesList" name="rolesSelected[]" multiple style="min-width: 220px" data-placeholder="<?php echo vtranslate('LBL_CHOOSE_ROLES', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> "><option value="all"><?php echo vtranslate('LBL_ALL_ROLES', $_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value); ?> </option><?php $_smarty_tpl->tpl_vars['ROLE'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['ROLE']->_loop = false; $_from = $_smarty_tpl->tpl_vars['ROLES_LIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['ROLE']->key => $_smarty_tpl->tpl_vars['ROLE']->value) { $_smarty_tpl->tpl_vars['ROLE']->_loop = true; ?> <option value="<?php echo $_smarty_tpl->tpl_vars['ROLE']->value->get('roleid'); ?> "><?php echo $_smarty_tpl->tpl_vars['ROLE']->value->get('rolename'); ?> </option><?php } ?> </select></div></div><?php } ?> </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 }