Tooltip not functioning when routed to a new url path

时间:2015-06-20 09:34:58

标签: php jquery codeigniter tooltip

I have template php files for dates and sharing. 1 file is like this:

date-share.php:

<div class="date"><?php echo date('M d'); ?><span><?php echo date('Y'); ?></span></div>
                            <a href="javascript:void(0);" class="share-button"><span class="plus"></span>Share</a>
                            <!-- Tooltip -->
                            <div class="tooltip-social-network clearfix" style="margin-top: -10px">

                                <span class='st_facebook_large' displayText='Facebook'></span>
                                <span class='st_twitter_large' displayText='Tweet'></span>
                                <span class='st_googleplus_large' displayText='Google +'></span>
                                <span class='st_pinterest_large' displayText='Pinterest'></span>
                                <span class='st_instagram_large' displayText='Instagram Badge' st_username='mews'></span>
                                <span class='st_email_large' displayText='Email'></span>
                            </div>

I php include it to one of my views to avoid too much clutter, instead of putting it there.

<?php include('templates/date-share.php')?>

This is how it would look like in the view when the SHARE button is clicked.

enter image description here

The social media icons group is just a tooltip.

However, I rerouted the view to a new url path. So I added a PHP echo base_url to all the links to maintain the root path. But I'm not sure how to apply with the php include, so I didn't add any. It still appeared but the share button can't show the tooltip anymore.

Edit: added pic for clicked SHARE without the tooltip - rerouted to a different url path

enter image description here

1 个答案:

答案 0 :(得分:1)

您可以在视图中使用Sub Combine() Dim nws, ws As Worksheet Dim rng As Range ' Add New Sheet On Error Resume Next Set nws = ThisWorkbook.Sheets("Combined") If nws Is Nothing Then With ThisWorkbook.Sheets Set nws = .Add(After:=Sheets(.Count)) nws.Name = "Combined" End With End If On Error GoTo 0 For Each ws In ThisWorkbook.Sheets If Not ws.Name = nws.Name Then With ws Set rng = Range(.Cells(1, 1), .Cells(.UsedRange.Rows.Count, .UsedRange.Columns.Count)) rng.Copy Destination:=nws.Cells(nws.Cells(nws.Rows.Count, "A").End(xlUp).Row + 1, 1) End With End If Next ws End Sub 方法加载其他视图/部分。

确保您的COUNT(FILTER位于以下路径`application / views / template / date-share.php'

现在在主视图中加载With Member [Measures].[EmployeeWisePercent] AS [Measures].[Hours] / ([Employee].[Employee].[All], [Measures].[Hours]) * 100 Member [Measures].[TotalHours] AS ([Employee].[Employee].[All], [Measures].[Hours]) MEMBER [Measures].[0-20%] AS SUM( EXISTING [Employee].[Employee].CHILDREN, IIF( [Measures].[EmployeeWisePercent]>=0 AND [Measures].[EmployeeWisePercent]<20 ,1 ,NULL) ) MEMBER [Measures].[20-40%] AS SUM( EXISTING [Employee].[Employee].CHILDREN, IIF( [Measures].[EmployeeWisePercent]>=20 AND [Measures].[EmployeeWisePercent]<40 ,1 ,NULL) ) MEMBER [Measures].[40-60%] AS SUM( EXISTING [Employee].[Employee].CHILDREN, IIF( [Measures].[EmployeeWisePercent]>=40 AND [Measures].[EmployeeWisePercent]<60 ,1 ,NULL) ) MEMBER [Measures].[60-80%] AS SUM( EXISTING [Employee].[Employee].CHILDREN, IIF( [Measures].[EmployeeWisePercent]>=60 AND [Measures].[EmployeeWisePercent]<80 ,1 ,NULL) ) MEMBER [Measures].[80-100%] AS SUM( EXISTING [Employee].[Employee].CHILDREN, IIF( [Measures].[EmployeeWisePercent]>=80 AND [Measures].[EmployeeWisePercent]<=100 ,1 ,NULL) ) SELECT NON EMPTY { MEASURES.[0-20%] , MEASURES.[20-40%] , MEASURES.[40-60%] , MEASURES.[60-80%] , MEASURES.[80-100%] } ON COLUMNS FROM ( SELECT ( STRTOSET("[Date].[Calendar].[All]", CONSTRAINED) ) ON COLUMNS FROM ( SELECT ( STRTOSET("[Project].[Project Name].&[Self Study]", CONSTRAINED) ) ON COLUMNS FROM [TimeSheetHours Cube] ) ) WHERE ( IIF( STRTOSET("[Project].[Project Name].&[Self Study]", CONSTRAINED).Count = 1, STRTOSET("[Project].[Project Name].&[Self Study]", CONSTRAINED), [Project].[Project Name].currentmember ), IIF( STRTOSET("[Date].[Calendar].[All]", CONSTRAINED).Count = 1, STRTOSET("[Date].[Calendar].[All]", CONSTRAINED), [Date].[Calendar].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS ,如下所示。

view