本文整理汇总了PHP中Vtiger_Util_Helper::replaceSpaceWithUnderScores方法的典型用法代码示例。如果您正苦于以下问题:PHP Vtiger_Util_Helper::replaceSpaceWithUnderScores方法的具体用法?PHP Vtiger_Util_Helper::replaceSpaceWithUnderScores怎么用?PHP Vtiger_Util_Helper::replaceSpaceWithUnderScores使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vtiger_Util_Helper
的用法示例。
在下文中一共展示了Vtiger_Util_Helper::replaceSpaceWithUnderScores方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: content_56755d06176cd
function content_56755d06176cd($_smarty_tpl)
{
?>
<div class="quickWidgetContainer accordion"><?php
$_smarty_tpl->tpl_vars['val'] = new Smarty_variable(1, null, 0);
$_smarty_tpl->tpl_vars['SIDEBARWIDGET'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['SIDEBARWIDGET']->_loop = false;
$_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['QUICK_LINKS']->value['SIDEBARWIDGET'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->key => $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value) {
$_smarty_tpl->tpl_vars['SIDEBARWIDGET']->_loop = true;
$_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->key;
?>
<div class="quickWidget"><div class="accordion-heading accordion-toggle quickWidgetHeader" data-target="#<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_sideBar_<?php
echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel());
?>
"data-toggle="collapse" data-parent="#quickWidgets" data-label="<?php
echo $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel();
?>
"data-widget-url="<?php
echo $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getUrl();
?>
" ><span class="pull-left"><img class="imageElement" data-rightimage="<?php
echo vimage_path('rightArrowWhite.png');
?>
" data-downimage="<?php
echo vimage_path('downArrowWhite.png');
?>
" src="<?php
echo vimage_path('rightArrowWhite.png');
?>
" /></span><h5 class="title widgetTextOverflowEllipsis pull-right" title="<?php
echo vtranslate($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
?>
"><?php
echo vtranslate($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</h5><div class="loadingImg hide pull-right"><div class="loadingWidgetMsg"><strong><?php
echo vtranslate('LBL_LOADING_WIDGET', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</strong></div></div><div class="clearfix"></div></div><div class="widgetContainer accordion-body collapse" id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_sideBar_<?php
echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getLabel());
?>
" data-url="<?php
echo $_smarty_tpl->tpl_vars['SIDEBARWIDGET']->value->getUrl();
?>
"></div></div><?php
}
?>
</div><?php
}
开发者ID:wsLapshin,项目名称:charter_crm,代码行数:60,代码来源:9be48198bb63a34d80ac3c1b2bbc45e031f79948.file.SideBarWidgets.tpl.php
示例2: content_5694b10795b54
function content_5694b10795b54($_smarty_tpl)
{
?>
<div class="quickLinksDiv"><?php
$_smarty_tpl->tpl_vars['SIDEBARLINK'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['SIDEBARLINK']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['QUICK_LINKS']->value['SIDEBARLINK'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['SIDEBARLINK']->key => $_smarty_tpl->tpl_vars['SIDEBARLINK']->value) {
$_smarty_tpl->tpl_vars['SIDEBARLINK']->_loop = true;
$_smarty_tpl->tpl_vars['SIDE_LINK_URL'] = new Smarty_variable(decode_html($_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getUrl()), null, 0);
$_smarty_tpl->tpl_vars["EXPLODED_PARSE_URL"] = new Smarty_variable(explode('?', $_smarty_tpl->tpl_vars['SIDE_LINK_URL']->value), null, 0);
$_smarty_tpl->tpl_vars["COUNT_OF_EXPLODED_URL"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['EXPLODED_PARSE_URL']->value), null, 0);
if ($_smarty_tpl->tpl_vars['COUNT_OF_EXPLODED_URL']->value > 1) {
$_smarty_tpl->tpl_vars["EXPLODED_URL"] = new Smarty_variable($_smarty_tpl->tpl_vars['EXPLODED_PARSE_URL']->value[$_smarty_tpl->tpl_vars['COUNT_OF_EXPLODED_URL']->value - 1], null, 0);
}
$_smarty_tpl->tpl_vars["PARSE_URL"] = new Smarty_variable(explode('&', $_smarty_tpl->tpl_vars['EXPLODED_URL']->value), null, 0);
$_smarty_tpl->tpl_vars["CURRENT_LINK_VIEW"] = new Smarty_variable('view=' . $_smarty_tpl->tpl_vars['CURRENT_VIEW']->value, null, 0);
$_smarty_tpl->tpl_vars["LINK_LIST_VIEW"] = new Smarty_variable(in_array($_smarty_tpl->tpl_vars['CURRENT_LINK_VIEW']->value, $_smarty_tpl->tpl_vars['PARSE_URL']->value), null, 0);
$_smarty_tpl->tpl_vars["CURRENT_MODULE_NAME"] = new Smarty_variable('module=' . $_smarty_tpl->tpl_vars['MODULE']->value, null, 0);
$_smarty_tpl->tpl_vars["IS_LINK_MODULE_NAME"] = new Smarty_variable(in_array($_smarty_tpl->tpl_vars['CURRENT_MODULE_NAME']->value, $_smarty_tpl->tpl_vars['PARSE_URL']->value), null, 0);
?>
<p onclick="window.location.href = '<?php
echo $_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getUrl();
?>
'" id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_sideBar_link_<?php
echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getLabel());
?>
"class="<?php
if ($_smarty_tpl->tpl_vars['LINK_LIST_VIEW']->value && $_smarty_tpl->tpl_vars['IS_LINK_MODULE_NAME']->value) {
?>
selectedQuickLink <?php
} else {
?>
unSelectedQuickLink<?php
}
?>
"><a class="quickLinks" href="<?php
echo $_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getUrl();
?>
"><strong><?php
echo vtranslate($_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</strong></a></p><?php
}
?>
</div><?php
}
开发者ID:cin-system,项目名称:vtigercrm-cin,代码行数:54,代码来源:bce6fcc16fbefde7203b5b95c232122a9edc20ee.file.SideBarLinks.tpl.php
示例3: content_553ed1ba08389
function content_553ed1ba08389($_smarty_tpl)
{
?>
<div class="listViewTopMenuDiv"><div class="listViewActionsDiv row-fluid"><span class="btn-toolbar span4"><?php
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWBASIC'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->key => $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value) {
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = true;
?>
<span class="btn-group"><button id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_listView_basicAction_<?php
echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel());
?>
" class="btn addButton" <?php
if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), 'javascript:') === 0) {
?>
onclick='<?php
echo substr($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), strlen("javascript:"));
?>
;'<?php
} else {
?>
onclick='window.location.href="<?php
echo $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl();
?>
"'<?php
}
?>
><i class="icon-plus icon-white"></i> <strong><?php
echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</strong></button></span><?php
}
?>
</span><span class="btn-toolbar span4"><span class="customFilterMainSpan btn-group"></span></span><span class="hide filterActionImages pull-right"><i title="<?php
echo vtranslate('LBL_DENY', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
" data-value="deny" class="icon-ban-circle alignMiddle denyFilter filterActionImage pull-right"></i><i title="<?php
echo vtranslate('LBL_APPROVE', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
" data-value="approve" class="icon-ok alignMiddle approveFilter filterActionImage pull-right"></i><i title="<?php
echo vtranslate('LBL_DELETE', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
" data-value="delete" class="icon-trash alignMiddle deleteFilter filterActionImage pull-right"></i><i title="<?php
echo vtranslate('LBL_EDIT', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
" data-value="edit" class="icon-pencil alignMiddle editFilter filterActionImage pull-right"></i></span></div></div><?php
}
开发者ID:jmangarret,项目名称:vtigercrm,代码行数:54,代码来源:20148f0c4b52c8ffa74dd265430a1d46e46d1eaa.file.ListPDFHeader.tpl.php
示例4: if
<?php if ($_valid && !is_callable('content_56059b37aa321')) {function content_56059b37aa321($_smarty_tpl) {?>
<div class="sidebarTitleBlock"><h3 class="titlePadding themeTextColor unSelectedQuickLink cursorPointer"><a href="index.php?module=Vtiger&parent=Settings&view=Index"><?php echo vtranslate('LBL_SETTINGS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</a></h3></div><!--div><input class='input-medium' type='text' name='settingsSearch' placeholder=<?php echo vtranslate("LBL_SEARCH_SETTINGS_PLACEHOLDER",$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
></div--><div class="quickWidgetContainer accordion" id="settingsQuickWidgetContainer"><?php $_smarty_tpl->tpl_vars['MENU'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['MENU']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['SETTINGS_MENUS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['MENU']->key => $_smarty_tpl->tpl_vars['MENU']->value){
$_smarty_tpl->tpl_vars['MENU']->_loop = true;
?><div class="quickWidget"><div class="accordion-heading accordion-toggle quickWidgetHeader" data-parent="#settingsQuickWidgetContainer" data-target="#Settings_sideBar_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['MENU']->value->getLabel());?>
"data-toggle="collapse" data-parent="#quickWidgets"><span class="pull-left"><img class="imageElement" data-rightimage="<?php echo vimage_path('rightArrowWhite.png');?>
" data-downimage="<?php echo vimage_path('downArrowWhite.png');?>
" src="<?php if ($_smarty_tpl->tpl_vars['SELECTED_MENU']->value->get('blockid')==$_smarty_tpl->tpl_vars['MENU']->value->get('blockid')&&!empty($_smarty_tpl->tpl_vars['SELECTED_FIELDID']->value)){?><?php echo vimage_path('downArrowWhite.png');?>
<?php }else{ ?><?php echo vimage_path('rightArrowWhite.png');?>
<?php }?>" /></span><h5 class="title paddingLeft10px widgetTextOverflowEllipsis" title="<?php echo vtranslate($_smarty_tpl->tpl_vars['MENU']->value->getLabel(),$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
"><?php echo vtranslate($_smarty_tpl->tpl_vars['MENU']->value->getLabel(),$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</h5><div class="clearfix"></div></div><div style="border-bottom: 1px solid black;" class="widgetContainer accordion-body <?php if ($_smarty_tpl->tpl_vars['SELECTED_MENU']->value->get('blockid')==$_smarty_tpl->tpl_vars['MENU']->value->get('blockid')&&!empty($_smarty_tpl->tpl_vars['SELECTED_FIELDID']->value)){?> in <?php }?> collapse" id="Settings_sideBar_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['MENU']->value->getLabel());?>
"><?php $_smarty_tpl->tpl_vars['MENUITEM'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['MENUITEM']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['MENU']->value->getMenuItems(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['MENUITEM']->key => $_smarty_tpl->tpl_vars['MENUITEM']->value){
$_smarty_tpl->tpl_vars['MENUITEM']->_loop = true;
?><div class="<?php if ($_smarty_tpl->tpl_vars['MENUITEM']->value->getId()==$_smarty_tpl->tpl_vars['SELECTED_FIELDID']->value){?> selectedMenuItem selectedListItem<?php }?>" style="padding:7px;border-top:0px;"><div class="row-fluid menuItem" data-actionurl="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getPinUnpinActionUrl();?>
"><a href="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getUrl();?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getId();?>
" class="span9 menuItemLabel" data-menu-item="true" ><?php echo vtranslate($_smarty_tpl->tpl_vars['MENUITEM']->value->get('name'),$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</a><span class="span1"> </span><img style="margin-right: 6%" id="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getId();?>
_menuItem" data-pintitle="<?php echo vtranslate('LBL_PIN',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
" data-unpintitle="<?php echo vtranslate('LBL_UNPIN',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['MENUITEM']->value->getId();?>
" class="pinUnpinShortCut cursorPointer hide pull-right" data-unpinimageurl="<?php ob_start();?><?php echo vimage_path('unpin.png');?>
<?php $_tmp1=ob_get_clean();?><?php echo $_tmp1;?>
" data-pinimageurl="<?php ob_start();?><?php echo vimage_path('pin.png');?>
<?php $_tmp2=ob_get_clean();?><?php echo $_tmp2;?>
" <?php if ($_smarty_tpl->tpl_vars['MENUITEM']->value->isPinned()){?> title="<?php echo vtranslate('LBL_UNPIN',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
" src="<?php echo vimage_path('unpin.png');?>
" data-action="unpin" <?php }else{ ?> title="<?php echo vtranslate('LBL_PIN',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
" src="<?php echo vimage_path('pin.png');?>
" data-action="pin" <?php }?> /><div class="clearfix"></div></div></div><?php } ?></div></div><?php } ?></div><div class="row-fluid"><button type="button" class="row-fluid extensionStorebtn" onclick='window.location.href="index.php?module=ExtensionStore&parent=Settings&view=ExtensionStore"'><?php echo vtranslate('LBL_EXTENSION_STORE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</button></div>
<?php }} ?>
开发者ID:jeremyevans6,项目名称:kulturedTiger-,代码行数:38,代码来源:0d061a4aadff8431a63056327fadd1437ee1f9fe.file.Sidebar.tpl.php
示例5: if
<?php if ($_valid && !is_callable('content_56059e5cb0268')) {function content_56059e5cb0268($_smarty_tpl) {?>
<?php $_smarty_tpl->tpl_vars["MODULE_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'), null, 0);?><input id="recordId" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();?>
" /><div class="detailViewContainer"><div class="row-fluid detailViewTitle"><div class="<?php if ($_smarty_tpl->tpl_vars['NO_PAGINATION']->value){?> span12 <?php }else{ ?> span10 <?php }?>"><div class="row-fluid"><div class="span5"><div class="row-fluid"><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("DetailViewHeaderTitle.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</div></div><div class="span7"><div class="pull-right detailViewButtoncontainer"><div class="btn-toolbar"><?php $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value){
$_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = true;
?><span class="btn-group"><button class="btn" id="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
_detailView_basicAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getLabel());?>
"<?php if ($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->isPageLoadLink()){?>onclick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();?>
'"<?php }else{ ?>onclick=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();?>
<?php }?>><strong><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong></button></span><?php } ?><?php if (count($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEW'])>0){?><span class="btn-group"><button class="btn dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);"><strong><?php echo vtranslate('LBL_MORE',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong> <i class="caret"></i></button><ul class="dropdown-menu pull-right"><?php $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value){
$_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->_loop = true;
?><?php if ($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel()==''){?><li class="divider"></li><?php }else{ ?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
_detailView_moreAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel());?>
"><a href=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getUrl();?>
><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a></li><?php }?><?php } ?></ul></span><?php }?><?php if (count($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWSETTING'])>0){?><span class="btn-group"><button class="btn dropdown-toggle" href="#" data-toggle="dropdown"><i class="icon-wrench" alt="<?php echo vtranslate('LBL_SETTINGS',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
" title="<?php echo vtranslate('LBL_SETTINGS',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
"></i> <i class="caret"></i></button><ul class="listViewSetting dropdown-menu"><?php $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWSETTING']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->key => $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->value){
$_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->_loop = true;
?><li><a href=<?php echo $_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->value->getUrl();?>
><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAILVIEW_SETTING']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a></li><?php } ?></ul></span><?php }?></div></div></div></div></div><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['NO_PAGINATION']->value;?>
<?php $_tmp1=ob_get_clean();?><?php if (!$_tmp1){?><div class="span2 detailViewPagingButton"><span class="btn-group pull-right"><button class="btn" id="detailViewPreviousRecordButton" <?php if (empty($_smarty_tpl->tpl_vars['PREVIOUS_RECORD_URL']->value)){?> disabled="disabled" <?php }else{ ?> onclick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['PREVIOUS_RECORD_URL']->value;?>
'" <?php }?>><i class="icon-chevron-left"></i></button><button class="btn" id="detailViewNextRecordButton" <?php if (empty($_smarty_tpl->tpl_vars['NEXT_RECORD_URL']->value)){?> disabled="disabled" <?php }else{ ?> onclick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['NEXT_RECORD_URL']->value;?>
'" <?php }?>><i class="icon-chevron-right"></i></button></span></div><?php }?></div><div class="detailViewInfo row-fluid"><div class="<?php if ($_smarty_tpl->tpl_vars['NO_PAGINATION']->value){?> span12 <?php }else{ ?> span10 <?php }?> <?php if (!empty($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWTAB'])||!empty($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWRELATED'])){?> details <?php }?>"><form id="detailView" data-name-fields='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields());?>
' method="POST"><?php if (!empty($_smarty_tpl->tpl_vars['PICKLIST_DEPENDENCY_DATASOURCE']->value)){?><input type="hidden" name="picklistDependency" value="<?php echo Vtiger_Util_Helper::toSafeHTML($_smarty_tpl->tpl_vars['PICKLIST_DEPENDENCY_DATASOURCE']->value);?>
"><?php }?><div class="contents">
<?php }} ?>
开发者ID:jeremyevans6,项目名称:kulturedTiger-,代码行数:36,代码来源:e33d7d390663b9fd6eb1778948113f3c41046894.file.DetailViewHeader.tpl.php
示例6: if
<?php if ($_valid && !is_callable('content_56081d0d8cd7f')) {function content_56081d0d8cd7f($_smarty_tpl) {?>
<?php $_smarty_tpl->tpl_vars["MODULE_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->get('name'), null, 0);?><input id="recordId" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getId();?>
" /><div class="detailViewContainer"><div class="detailViewTitle" id="userPageHeader"><div class="row-fluid"><div class="span8"><span class="row-fluid marginLeftZero"><span class="logo span2"><?php $_smarty_tpl->tpl_vars['IMAGE_INFO'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['IMAGE_INFO']->_loop = false;
$_smarty_tpl->tpl_vars['ITER'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['RECORD']->value->getImageDetails(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['IMAGE_INFO']->key => $_smarty_tpl->tpl_vars['IMAGE_INFO']->value){
$_smarty_tpl->tpl_vars['IMAGE_INFO']->_loop = true;
$_smarty_tpl->tpl_vars['ITER']->value = $_smarty_tpl->tpl_vars['IMAGE_INFO']->key;
?><?php if (!empty($_smarty_tpl->tpl_vars['IMAGE_INFO']->value['path'])&&!empty($_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'])){?><img src="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['path'];?>
_<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['orgname'];?>
" data-image-id="<?php echo $_smarty_tpl->tpl_vars['IMAGE_INFO']->value['id'];?>
"><?php }?><?php } ?></span><span class="span9"><span id="userHeading" class="row-fluid"><h3><?php echo $_smarty_tpl->tpl_vars['RECORD']->value->getName();?>
</h3></span></span></span></div><div class="span4"><div class="row-fluid pull-right detailViewButtoncontainer"><div class="btn-toolbar pull-right"><?php $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value){
$_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->_loop = true;
?><div class="btn-group"><button class="btn"<?php if ($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->isPageLoadLink()){?>onclick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();?>
'"<?php }else{ ?>onclick=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getUrl();?>
<?php }?>><strong><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_BASIC_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong></button></div><?php } ?><?php if (count($_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEW'])>0){?><span class="btn-group"><button class="btn dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);"><strong><?php echo vtranslate('LBL_MORE',$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</strong> <i class="caret"></i></button><ul class="dropdown-menu pull-right"><?php $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->key => $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value){
$_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->_loop = true;
?><?php if ($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel()=='Delete'){?><?php if ($_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->isAdminUser()&&$_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->getId()!=$_smarty_tpl->tpl_vars['RECORD']->value->getId()){?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
_detailView_moreAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel());?>
"><a href=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getUrl();?>
><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a></li><?php }?><?php }else{ ?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE_NAME']->value;?>
_detailView_moreAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel());?>
"><a href=<?php echo $_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getUrl();?>
><?php echo vtranslate($_smarty_tpl->tpl_vars['DETAIL_VIEW_LINK']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE_NAME']->value);?>
</a></li><?php }?><?php } ?></ul></span><?php }?></div></div></div></div></div><div class="detailViewInfo userPreferences row-fluid"><div class="details span12"><form id="detailView" data-name-fields='<?php echo ZEND_JSON::encode($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields());?>
'><div class="contents"><?php }} ?>
开发者ID:jeremyevans6,项目名称:kulturedTiger-,代码行数:36,代码来源:d530ef594a91e00a639e33ea0e1c91ecc04482eb.file.UserViewHeader.tpl.php
示例7: if
<?php if ($_valid && !is_callable('content_56081cc8a2092')) {function content_56081cc8a2092($_smarty_tpl) {?>
<div class="container-fluid"><div class="widget_header row-fluid"><h3><?php echo vtranslate($_smarty_tpl->tpl_vars['MODULE']->value,$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</h3></div><hr><div class="row-fluid"><span class="span4 btn-toolbar"><span class="btn-group listViewMassActions"><?php if (count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW'])>0){?><button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php echo vtranslate('LBL_ACTIONS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
</strong> <i class="caret"></i></button><ul class="dropdown-menu"><?php $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->key => $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value){
$_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = true;
?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value;?>
_listView_advancedAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel());?>
"><a <?php if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(),'javascript:')===0){?> href="javascript:void(0);" onclick='<?php echo substr($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(),strlen("javascript:"));?>
;'<?php }else{ ?> href='<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl();?>
' <?php }?>><?php echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE']->value);?>
</a></li><?php } ?></ul><?php }?></span><?php $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->key => $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value){
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = true;
?><span class="btn-group"><button class="btn addButton" <?php if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(),'javascript:')===0){?> onclick='<?php echo substr($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(),strlen("javascript:"));?>
;'<?php }else{ ?> onclick='window.location.href="<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl();?>
"' <?php }?>><i class="icon-plus"></i> <strong><?php echo vtranslate('LBL_ADD_RECORD',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</strong></button></span><?php } ?></span><div class="span4 btn-toolbar"><select class="select2" id="usersFilter" name="status" style="min-width:350px;"><option value="Active"><?php echo vtranslate('LBL_ACTIVE_USERS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option><option value="Inactive"><?php echo vtranslate('LBL_INACTIVE_USERS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
</option></select></div><span class="span4 btn-toolbar"><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('ListViewActions.tpl',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</span></div><div class="listViewContentDiv" id="listViewContents">
<?php }} ?>
开发者ID:jeremyevans6,项目名称:kulturedTiger-,代码行数:24,代码来源:1d270d05c2fd4df5f6006f9795cc88eba3944fe1.file.ListViewHeader.tpl.php
示例8: content_5685502d7e42e
function content_5685502d7e42e($_smarty_tpl)
{
?>
<div class="listViewPageDiv"><div class="listViewTopMenuDiv"><div class="listViewActionsDiv row-fluid"><span class="btn-toolbar span4"><span class="btn-group listViewMassActions"><button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php
echo vtranslate('LBL_ACTIONS', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</strong> <i class="caret"></i></button><ul class="dropdown-menu"><?php
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"] = new Smarty_Variable();
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->key => $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->value) {
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = true;
?>
<li id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_listView_massAction_<?php
echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel());
?>
"><a href="javascript:void(0);" <?php
if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(), 'javascript:') === 0) {
?>
onclick='<?php
echo substr($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(), strlen("javascript:"));
?>
;'<?php
} else {
?>
onclick="Vtiger_List_Js.triggerMassAction('<?php
echo $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl();
?>
')"<?php
}
?>
><?php
echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a></li><?php
}
if (count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW']) > 0) {
?>
<li class="divider"></li><?php
$_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->key => $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value) {
$_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = true;
?>
<li id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_listView_advancedAction_<?php
echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel());
?>
"><a <?php
if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(), 'javascript:') === 0) {
?>
href="javascript:void(0);" onclick='<?php
echo substr($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(), strlen("javascript:"));
?>
;'<?php
} else {
?>
href='<?php
echo $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl();
?>
' <?php
}
?>
><?php
echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a></li><?php
}
}
?>
</ul></span><?php
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWBASIC'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->key => $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value) {
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = true;
if ($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel() == 'LBL_ADD_RECORD') {
$_smarty_tpl->tpl_vars["childLinks"] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getChildLinks(), null, 0);
?>
<span class="btn-group"><button class="btn dropdown-toggle addButton" data-toggle="dropdown" id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_listView_basicAction_Add"><i class="icon-plus"></i> <strong><?php
echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
?>
//.........这里部分代码省略.........
开发者ID:thanhphi0127,项目名称:vtiger,代码行数:101,代码来源:160b8072750a8d0d025a43c8adca333d9b4248ad.file.ListViewHeader.tpl.php
示例9: if
<?php if ($_valid && !is_callable('content_56059c18904f1')) {function content_56059c18904f1($_smarty_tpl) {?>
<div class="listViewPageDiv"><div class="listViewTopMenuDiv noprint"><div class="listViewActionsDiv row-fluid"><span class="btn-toolbar span4"><span class="btn-group listViewMassActions"><?php if (count($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value)>0||count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW'])>0){?><button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php echo vtranslate('LBL_ACTIONS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
</strong> <i class="caret"></i></button><ul class="dropdown-menu"><?php $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->total= $_smarty_tpl->_count($_from);
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->key => $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->value){
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = true;
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->iteration++;
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->last = $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->iteration === $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->total;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['actionCount']['last'] = $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->last;
?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value;?>
_listView_massAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel());?>
"><a href="javascript:void(0);" <?php if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(),'javascript:')===0){?>onclick='<?php echo substr($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(),strlen("javascript:"));?>
;'<?php }else{ ?> onclick="Vtiger_List_Js.triggerMassAction('<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl();?>
')"<?php }?> ><?php echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE']->value);?>
</a></li><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['actionCount']['last']==true){?><li class="divider"></li><?php }?><?php } ?><?php if (count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW'])>0){?><?php $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->key => $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value){
$_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = true;
?><li id="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value;?>
_listView_advancedAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel());?>
"><a <?php if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(),'javascript:')===0){?> href="javascript:void(0);" onclick='<?php echo substr($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(),strlen("javascript:"));?>
;'<?php }else{ ?> href='<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl();?>
' <?php }?>><?php echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE']->value);?>
</a></li><?php } ?><?php }?></ul><?php }?></span><?php $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->key => $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value){
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = true;
?><span class="btn-group"><button id="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value;?>
_listView_basicAction_<?php echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel());?>
" class="btn addButton" <?php if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(),'javascript:')===0){?> onclick='<?php echo substr($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(),strlen("javascript:"));?>
;'<?php }else{ ?> onclick='window.location.href="<?php echo $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl();?>
"'<?php }?>><i class="icon-plus"></i> <strong><?php echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel(),$_smarty_tpl->tpl_vars['MODULE']->value);?>
</strong></button></span><?php } ?></span><span class="btn-toolbar span4"><span class="customFilterMainSpan btn-group"><?php if (count($_smarty_tpl->tpl_vars['CUSTOM_VIEWS']->value)>0){?><select id="customFilter" style="width:350px;"><?php $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->_loop = false;
$_smarty_tpl->tpl_vars['GROUP_LABEL'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['CUSTOM_VIEWS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->key => $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->value){
$_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->_loop = true;
$_smarty_tpl->tpl_vars['GROUP_LABEL']->value = $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->key;
?><optgroup label=' <?php if ($_smarty_tpl->tpl_vars['GROUP_LABEL']->value=='Mine'){?> <?php }else{ ?> <?php echo vtranslate($_smarty_tpl->tpl_vars['GROUP_LABEL']->value);?>
<?php }?>' ><?php $_smarty_tpl->tpl_vars["CUSTOM_VIEW"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["CUSTOM_VIEW"]->_loop = false;
$_from = $_smarty_tpl->tpl_vars['GROUP_CUSTOM_VIEWS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["CUSTOM_VIEW"]->key => $_smarty_tpl->tpl_vars["CUSTOM_VIEW"]->value){
$_smarty_tpl->tpl_vars["CUSTOM_VIEW"]->_loop = true;
?><option data-editurl="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getEditUrl();?>
" data-deleteurl="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getDeleteUrl();?>
" data-approveurl="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getApproveUrl();?>
" data-denyurl="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getDenyUrl();?>
" data-editable="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isEditable();?>
" data-deletable="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isDeletable();?>
" data-pending="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isPending();?>
" data-public="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isPublic()&&$_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->isAdminUser();?>
" id="filterOptionId_<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('cvid');?>
" value="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('cvid');?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('cvid');?>
" <?php if ($_smarty_tpl->tpl_vars['VIEWID']->value!=''&&$_smarty_tpl->tpl_vars['VIEWID']->value!='0'&&$_smarty_tpl->tpl_vars['VIEWID']->value==$_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getId()){?> selected="selected" <?php }elseif(($_smarty_tpl->tpl_vars['VIEWID']->value==''||$_smarty_tpl->tpl_vars['VIEWID']->value=='0')&&$_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->isDefault()=='true'){?> selected="selected" <?php }?> class="filterOptionId_<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('cvid');?>
"><?php if ($_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('viewname')=='All'){?><?php echo vtranslate($_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('viewname'),$_smarty_tpl->tpl_vars['MODULE']->value);?>
<?php echo vtranslate($_smarty_tpl->tpl_vars['MODULE']->value,$_smarty_tpl->tpl_vars['MODULE']->value);?>
<?php }else{ ?><?php echo vtranslate($_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->get('viewname'),$_smarty_tpl->tpl_vars['MODULE']->value);?>
<?php }?><?php if ($_smarty_tpl->tpl_vars['GROUP_LABEL']->value!='Mine'){?> [ <?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getOwnerName();?>
] <?php }?></option><?php } ?></optgroup><?php } ?><?php if ($_smarty_tpl->tpl_vars['FOLDERS']->value!=''){?><optgroup id="foldersBlock" label='<?php echo vtranslate('LBL_FOLDERS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
' ><?php $_smarty_tpl->tpl_vars['FOLDER'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['FOLDER']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['FOLDERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['FOLDER']->key => $_smarty_tpl->tpl_vars['FOLDER']->value){
$_smarty_tpl->tpl_vars['FOLDER']->_loop = true;
?><option data-foldername="<?php echo $_smarty_tpl->tpl_vars['FOLDER']->value->getName();?>
" <?php if (decode_html($_smarty_tpl->tpl_vars['FOLDER']->value->getName())==$_smarty_tpl->tpl_vars['FOLDER_NAME']->value){?> selected=""<?php }?> data-folderid="<?php echo $_smarty_tpl->tpl_vars['FOLDER']->value->get('folderid');?>
" data-deletable="<?php echo !($_smarty_tpl->tpl_vars['FOLDER']->value->hasDocuments());?>
" class="filterOptionId_folder<?php echo $_smarty_tpl->tpl_vars['FOLDER']->value->get('folderid');?>
folderOption<?php if ($_smarty_tpl->tpl_vars['FOLDER']->value->getName()=='Default'){?> defaultFolder <?php }?>" id="filterOptionId_folder<?php echo $_smarty_tpl->tpl_vars['FOLDER']->value->get('folderid');?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['DEFAULT_CUSTOM_FILTER_ID']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['FOLDER']->value->getName();?>
</option><?php } ?></optgroup><?php }?></select><span class="filterActionsDiv hide"><hr><ul class="filterActions"><li data-value="create" id="createFilter" data-createurl="<?php echo $_smarty_tpl->tpl_vars['CUSTOM_VIEW']->value->getCreateUrl();?>
"><i class="icon-plus-sign"></i> <?php echo vtranslate('LBL_CREATE_NEW_FILTER');?>
</li></ul></span><img class="filterImage" src="<?php echo vimage_path('filter.png');?>
" style="display:none;height:13px;margin-right:2px;vertical-align: middle;"><?php }else{ ?><input type="hidden" value="0" id="customFilter" /><?php }?></span></span><span class="hide filterActionImages pull-right"><i title="<?php echo vtranslate('LBL_DENY',$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-value="deny" class="icon-ban-circle alignMiddle denyFilter filterActionImage pull-right"></i><i title="<?php echo vtranslate('LBL_APPROVE',$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-value="approve" class="icon-ok alignMiddle approveFilter filterActionImage pull-right"></i><i title="<?php echo vtranslate('LBL_DELETE',$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-value="delete" class="icon-trash alignMiddle deleteFilter filterActionImage pull-right"></i><i title="<?php echo vtranslate('LBL_EDIT',$_smarty_tpl->tpl_vars['MODULE']->value);?>
" data-value="edit" class="icon-pencil alignMiddle editFilter filterActionImage pull-right"></i></span><span class="span4 btn-toolbar"><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('ListViewActions.tpl'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</span></div></div><div class="listViewContentDiv" id="listViewContents"><?php }} ?>
开发者ID:jeremyevans6,项目名称:kulturedTiger-,代码行数:82,代码来源:9c55982488f7e3bd4f0fd4eb1d767706b5dad472.file.ListViewHeader.tpl.php
示例10: content_56853f7ad291c
function content_56853f7ad291c($_smarty_tpl)
{
?>
<div class="listViewPageDiv"><div class="listViewTopMenuDiv"><div class="listViewActionsDiv row-fluid"><span class="btn-toolbar span4"><?php
if ($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value) {
?>
<span class="btn-group listViewMassActions"><button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php
echo vtranslate('LBL_ACTIONS', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</strong> <i class="caret"></i></button><ul class="dropdown-menu"><?php
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"] = new Smarty_Variable();
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->key => $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->value) {
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = true;
?>
<li id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_listView_massAction_<?php
echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel());
?>
"><a href="javascript:void(0);" <?php
if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(), 'javascript:') === 0) {
?>
onclick='<?php
echo substr($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(), strlen("javascript:"));
?>
;'<?php
} else {
?>
onclick="Vtiger_List_Js.triggerMassAction('<?php
echo $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl();
?>
')"<?php
}
?>
><?php
echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a></li><?php
}
?>
</ul></span><?php
}
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWBASIC'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->key => $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value) {
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = true;
?>
<span class="btn-group"><button id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_listView_basicAction_<?php
echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel());
?>
" class="btn clearRecycleBin" <?php
if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), 'javascript:') === 0) {
?>
onclick='<?php
echo substr($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl(), strlen("javascript:"));
?>
;'<?php
} else {
?>
onclick='window.location.href="<?php
echo $_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getUrl();
?>
"'<?php
}
?>
<?php
if ($_smarty_tpl->tpl_vars['DELETED_RECORDS_TOTAL_COUNT']->value == 0) {
?>
disabled="disabled" <?php
}
?>
> <strong><?php
echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</strong></button></span><?php
}
?>
</span><span class="btn-toolbar span4"><span class="customFilterMainSpan btn-group"><?php
if (count($_smarty_tpl->tpl_vars['MODULE_LIST']->value) > 0) {
?>
<select id="customFilter" style="width:350px;"><?php
$_smarty_tpl->tpl_vars['MODULEMODEL'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['MODULEMODEL']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['MODULE_LIST']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
//.........这里部分代码省略.........
开发者ID:thanhphi0127,项目名称:vtiger,代码行数:101,代码来源:7e7ced975f2dedb8d04183d9fb05004a02f33600.file.ListViewHeader.tpl.php
示例11: content_567b7c45f24c4
function content_567b7c45f24c4($_smarty_tpl)
{
?>
<div id="settingsQuickWidgetContainer" style="margin:0px;padding:0px">
<div class="widgetContainer" id="Settings_sideBar_LBL_OTHER_SETTINGS" >
<?php
$_smarty_tpl->tpl_vars['SIDEBARLINK'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['SIDEBARLINK']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['QUICK_LINKS']->value['SIDEBARLINK'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['SIDEBARLINK']->key => $_smarty_tpl->tpl_vars['SIDEBARLINK']->value) {
$_smarty_tpl->tpl_vars['SIDEBARLINK']->_loop = true;
?>
<?php
$_smarty_tpl->tpl_vars['SIDE_LINK_URL'] = new Smarty_variable(decode_html($_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getUrl()), null, 0);
?>
<?php
$_smarty_tpl->tpl_vars["EXPLODED_PARSE_URL"] = new Smarty_variable(explode('?', $_smarty_tpl->tpl_vars['SIDE_LINK_URL']->value), null, 0);
?>
<?php
$_smarty_tpl->tpl_vars["COUNT_OF_EXPLODED_URL"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['EXPLODED_PARSE_URL']->value), null, 0);
?>
<?php
if ($_smarty_tpl->tpl_vars['COUNT_OF_EXPLODED_URL']->value > 1) {
?>
<?php
$_smarty_tpl->tpl_vars["EXPLODED_URL"] = new Smarty_variable($_smarty_tpl->tpl_vars['EXPLODED_PARSE_URL']->value[$_smarty_tpl->tpl_vars['COUNT_OF_EXPLODED_URL']->value - 1], null, 0);
?>
<?php
}
?>
<?php
$_smarty_tpl->tpl_vars["PARSE_URL"] = new Smarty_variable(explode('&', $_smarty_tpl->tpl_vars['EXPLODED_URL']->value), null, 0);
?>
<?php
$_smarty_tpl->tpl_vars["CURRENT_LINK_VIEW"] = new Smarty_variable('view=' . $_smarty_tpl->tpl_vars['CURRENT_PVIEW']->value, null, 0);
?>
<?php
$_smarty_tpl->tpl_vars["LINK_LIST_VIEW"] = new Smarty_variable(in_array($_smarty_tpl->tpl_vars['CURRENT_LINK_VIEW']->value, $_smarty_tpl->tpl_vars['PARSE_URL']->value), null, 0);
?>
<?php
$_smarty_tpl->tpl_vars["CURRENT_MODULE_NAME"] = new Smarty_variable('module=' . $_smarty_tpl->tpl_vars['MODULE']->value, null, 0);
?>
<?php
$_smarty_tpl->tpl_vars["IS_LINK_MODULE_NAME"] = new Smarty_variable(in_array($_smarty_tpl->tpl_vars['CURRENT_MODULE_NAME']->value, $_smarty_tpl->tpl_vars['PARSE_URL']->value), null, 0);
?>
<div class="<?php
if ($_smarty_tpl->tpl_vars['LINK_LIST_VIEW']->value) {
?>
selectedMenuItem selectedListItem<?php
}
?>
" style='padding-left:10px;border-top:0px;padding-bottom: 5px'>
<div class="row-fluid menuItem" data-actionurl="">
<a href="<?php
echo $_smarty_tpl->tpl_vars['SIDE_LINK_URL']->value;
?>
" data-id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_settingsBar_link_<?php
echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getLabel());
?>
" class="textOverflowEllipsis span9 menuItemLabel" data-menu-item="true" ><?php
echo vtranslate($_smarty_tpl->tpl_vars['SIDEBARLINK']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a>
<div class="clearfix"></div>
</div>
</div>
<?php
}
?>
</div>
</div><?php
}
开发者ID:cin-system,项目名称:cinrepo,代码行数:78,代码来源:d7f71c56c21b29d7fa9dea443b36dcb8d6d75c66.file.SettingsList.tpl.php
示例12: content_5645ebcea8b18
//.........这里部分代码省略.........
if (empty($_smarty_tpl->tpl_vars['title']->value)) {
$_smarty_tpl->tpl_vars['title'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('last_name'), null, 0);
}
?>
<span class="dropdown-toggle" data-toggle="dropdown" href="#"><a id="menubar_item_right_<?php
echo $_smarty_tpl->tpl_vars['title']->value;
?>
" class="userName textOverflowEllipsis span" title="<?php
echo $_smarty_tpl->tpl_vars['title']->value;
?>
"><?php
echo $_smarty_tpl->tpl_vars['title']->value;
?>
<i class="caret"></i> </a> </span><?php
}
if (!empty($_smarty_tpl->tpl_vars['childLinks']->value)) {
?>
<ul class="dropdown-menu pull-right"><?php
$_smarty_tpl->tpl_vars['obj'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['obj']->_loop = false;
$_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['childLinks']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['obj']->key => $_smarty_tpl->tpl_vars['obj']->value) {
$_smarty_tpl->tpl_vars['obj']->_loop = true;
$_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['obj']->key;
if ($_smarty_tpl->tpl_vars['obj']->value->getLabel() == null) {
?>
<li class="divider"> </li><?php
} elseif ($_smarty_tpl->tpl_vars['obj']->value->getLabel() == 'LBL_FEEDBACK') {
?>
<li><a href="https://discussions.vtiger.com" target="_blank"><?php
echo vtranslate($_smarty_tpl->tpl_vars['obj']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a></li><?php
} else {
$_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getId(), null, 0);
$_smarty_tpl->tpl_vars["href"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getUrl(), null, 0);
$_smarty_tpl->tpl_vars["label"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getLabel(), null, 0);
$_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable('', null, 0);
if (stripos($_smarty_tpl->tpl_vars['obj']->value->getUrl(), 'javascript:') === 0) {
$_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable("onclick=" . $_smarty_tpl->tpl_vars['href']->value, null, 0);
$_smarty_tpl->tpl_vars["href"] = new Smarty_variable("javascript:;", null, 0);
}
?>
<li><a target="<?php
echo $_smarty_tpl->tpl_vars['obj']->value->target;
?>
" id="menubar_item_right_<?php
echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['label']->value);
?>
" <?php
if ($_smarty_tpl->tpl_vars['label']->value == 'Switch to old look') {
?>
switchLook<?php
}
?>
href="<?php
echo $_smarty_tpl->tpl_vars['href']->value;
?>
" <?php
echo $_smarty_tpl->tpl_vars['onclick']->value;
?>
><?php
echo vtranslate($_smarty_tpl->tpl_vars['label']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a></li><?php
}
}
?>
</ul><?php
}
?>
</span><?php
}
?>
</span></div></div><div class="clearfix"></div></div></div><?php
$_smarty_tpl->tpl_vars["announcement"] = new Smarty_variable($_smarty_tpl->tpl_vars['ANNOUNCEMENT']->value->get('announcement'), null, 0);
?>
<div class="announcement noprint" id="announcement"><marquee direction="left" scrolldelay="10" scrollamount="3" behavior="scroll" class="marStyle" onmouseover="javascript:stop();" onmouseout="javascript:start();"><?php
if (!empty($_smarty_tpl->tpl_vars['announcement']->value)) {
echo $_smarty_tpl->tpl_vars['announcement']->value;
} else {
echo vtranslate('LBL_NO_ANNOUNCEMENTS', $_smarty_tpl->tpl_vars['MODULE']->value);
}
?>
</marquee></div><input type='hidden' value="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
" id='module' name='module'/><input type="hidden" value="<?php
echo $_smarty_tpl->tpl_vars['PARENT_MODULE']->value;
?>
" id="parent" name='parent' /><input type='hidden' value="<?php
echo $_smarty_tpl->tpl_vars['VIEW']->value;
?>
" id='view' name='view'/>
<?php
}
开发者ID:jmangarret,项目名称:vtigercrm,代码行数:101,代码来源:6ba489e2e27ae0abd76a0b84897c48860eac98d0.file.MenuBar.tpl.php
示例13: content_56463173a79af
function content_56463173a79af($_smarty_tpl)
{
$_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"><!-- jmangarret BOTON DE ACCION PROCESAR EN VISTA DETALLE DEL LOCALIZADOR, may2016 !--><?php
if ($_smarty_tpl->tpl_vars['MODULE']->value == 'Localizadores') {
?>
<span class="btn-group"><a href="javascript:void(0);"><button id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_listView_basicAction_Process" class="btn addButton"><i class="icon-plus icon-white"></i> <strong>Procesar</strong></button></a></span><script type="text/javascript">$(document).ready(function() {$('#<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_listView_basicAction_Process').click(function(){var ids1 = new Array();ids1.push($("#recordId").val());var ajax_data1 = {"userid" : $("#current_user_id").val(),"accion" : "procesarLocalizadores","id" : ids1};jQuery.ajax({data: ajax_data1,url: 'modules/Localizadores/ajaxProcesarList_Loc.php',type: 'get',success: function(response){if (response!='')bootbox.alert(response);}});});});</script><?php
}
?>
<!-- jmangarret BOTON DE ACCION PROCESAR EN VISTA DETALLE DEL LOCALIZADOR, may2016 !--><?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();
}
?>
><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
}
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;
?>
<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
}
?>
</ul></span><?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
//.........这里部分代码省略.........
开发者ID:jmangarret,项目名称:vtigercrm,代码行数:101,代码来源:01ff8b34f66b67d087d8d68c4ea34ef98dc630c5.file.DetailViewHeader.tpl.php
示例14: content_5645ebdd9c96d
function content_5645ebdd9c96d($_smarty_tpl)
{
?>
<div class="listViewPageDiv"><div class="listViewTopMenuDiv noprint"><div class="listViewActionsDiv row-fluid"><span class="btn-toolbar span4"><span class="btn-group listViewMassActions"><?php
if (count($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value) > 0 || count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW']) > 0) {
?>
<button class="btn dropdown-toggle" data-toggle="dropdown"><strong><?php
echo vtranslate('LBL_ACTIONS', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</strong> <i class="caret"></i></button><ul class="dropdown-menu"><?php
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"] = new Smarty_Variable();
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTIONS']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->total = $_smarty_tpl->_count($_from);
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->iteration = 0;
foreach ($_from as $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->key => $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->value) {
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->_loop = true;
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->iteration++;
$_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->last = $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->iteration === $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->total;
$_smarty_tpl->tpl_vars['smarty']->value['foreach']['actionCount']['last'] = $_smarty_tpl->tpl_vars["LISTVIEW_MASSACTION"]->last;
?>
<li id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_listView_massAction_<?php
echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel());
?>
"><a href="javascript:void(0);" <?php
if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(), 'javascript:') === 0) {
?>
onclick='<?php
echo substr($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl(), strlen("javascript:"));
?>
;'<?php
} else {
?>
onclick="Vtiger_List_Js.triggerMassAction('<?php
echo $_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getUrl();
?>
')"<?php
}
?>
><?php
echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_MASSACTION']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a></li><?php
if ($_smarty_tpl->getVariable('smarty')->value['foreach']['actionCount']['last'] == true) {
?>
<li class="divider"></li><?php
}
}
if (count($_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW']) > 0) {
$_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEW'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->key => $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value) {
$_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->_loop = true;
?>
<li id="<?php
echo $_smarty_tpl->tpl_vars['MODULE']->value;
?>
_listView_advancedAction_<?php
echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel());
?>
"><a <?php
if (stripos($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(), 'javascript:') === 0) {
?>
href="javascript:void(0);"onclick='<?php
echo substr($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl(), strlen("javascript:"));
?>
;'<?php
} else {
?>
href='<?php
echo $_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getUrl();
?>
'<?php
}
?>
><?php
echo vtranslate($_smarty_tpl->tpl_vars['LISTVIEW_ADVANCEDACTIONS']->value->getLabel(), $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a></li><?php
}
}
?>
</ul><?php
}
?>
</span><?php
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['LISTVIEW_BASICACTION']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['LISTVIEW_LINKS']->value['LISTVIEWBASIC'];
if (!is_array($_from) && !is_object($_from)) {
//.........这里部分代码省略.........
开发者ID:jmangarret,项目名称:vtigercrm,代码行数:101,代码来源:eb5f06dd0e4791cd874da304a615937aa7877d7b.file.ListViewHeader.tpl.php
示例15: content_5674dd282e457
//.........这里部分代码省略.........
?>
</strong> <i class="caret"></i> </a> </span><?php
}
if (!empty($_smarty_tpl->tpl_vars['childLinks']->value)) {
?>
<ul class="dropdown-menu pull-right"><?php
$_smarty_tpl->tpl_vars['obj'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['obj']->_loop = false;
$_smarty_tpl->tpl_vars['index'] = new Smarty_Variable();
$_from = $_smarty_tpl->tpl_vars['childLinks']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
foreach ($_from as $_smarty_tpl->tpl_vars['obj']->key => $_smarty_tpl->tpl_vars['obj']->value) {
$_smarty_tpl->tpl_vars['obj']->_loop = true;
$_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['obj']->key;
if ($_smarty_tpl->tpl_vars['obj']->value->getLabel() == null) {
?>
<li class="divider"> </li><?php
} else {
$_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getId(), null, 0);
$_smarty_tpl->tpl_vars["href"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getUrl(), null, 0);
$_smarty_tpl->tpl_vars["label"] = new Smarty_variable($_smarty_tpl->tpl_vars['obj']->value->getLabel(), null, 0);
$_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable('', null, 0);
if (stripos($_smarty_tpl->tpl_vars['obj']->value->getUrl(), 'javascript:') === 0) {
$_smarty_tpl->tpl_vars["onclick"] = new Smarty_variable("onclick=" . $_smarty_tpl->tpl_vars['href']->value, null, 0);
$_smarty_tpl->tpl_vars["href"] = new Smarty_variable("javascript:;", null, 0);
}
?>
<li><a target="<?php
echo $_smarty_tpl->tpl_vars['obj']->value->target;
?>
" id="menubar_item_right_<?php
echo Vtiger_Util_Helper::replaceSpaceWithUnderScores($_smarty_tpl->tpl_vars['label']->value);
?>
" <?php
if ($_smarty_tpl->tpl_vars['label']->value == 'Switch to old look') {
?>
switchLook<?php
}
?>
href="<?php
echo $_smarty_tpl->tpl_vars['href']->value;
?>
" <?php
echo $_smarty_tpl->tpl_vars['onclick']->value;
?>
><?php
echo vtranslate($_smarty_tpl->tpl_vars['label']->value, $_smarty_tpl->tpl_vars['MODULE']->value);
?>
</a></li><?php
}
}
?>
</ul><?php
}
?>
</span><?php
}
?>
</span><div id="headerLinksCompact"><span class="btn-group dropdown qCreate cursorPointer"><img src="<?php
echo vimage_path('btnAdd_white.png');
?>
" class="" alt="<?php
echo vtranslate('LBL_QUICK_CREATE', $_smarty_tpl->tpl_vars['MODULE']->value);
?>
开发者ID:wsLapshin,项目名称:charter_crm,代码行数:67,代码来源:a44c8b80a46730cdae7ca15392c353bd95d5eed1.file.MenuBar.tpl.php