]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Connectors/connectors/sources/ext/rest/insideview/tpls/InsideView.tpl
Release 6.5.9
[Github/sugarcrm.git] / modules / Connectors / connectors / sources / ext / rest / insideview / tpls / InsideView.tpl
1 {*
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
5  * 
6  * This program is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License version 3 as published by the
8  * Free Software Foundation with the addition of the following permission added
9  * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10  * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11  * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
12  * 
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
16  * details.
17  * 
18  * You should have received a copy of the GNU Affero General Public License along with
19  * this program; if not, see http://www.gnu.org/licenses or write to the Free
20  * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301 USA.
22  * 
23  * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24  * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
25  * 
26  * The interactive user interfaces in modified source and object code versions
27  * of this program must display Appropriate Legal Notices, as required under
28  * Section 5 of the GNU Affero General Public License version 3.
29  * 
30  * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31  * these Appropriate Legal Notices must retain the display of the "Powered by
32  * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33  * technical reasons, the Appropriate Legal Notices must display the words
34  * "Powered by SugarCRM".
35  ********************************************************************************/
36
37 *}
38 <script type="text/javascript">
39 function allowInsideView() {ldelim}
40
41 document.getElementById('insideViewFrame').src = "{$AJAX_URL}";
42 document.getElementById('insideViewConfirm').style.display = 'none';
43 document.getElementById('insideViewFrame').style.display = 'block';
44 YAHOO.util.Connect.asyncRequest('GET', 'index.php?module=Connectors&action=CallConnectorFunc&source_id=ext_rest_insideview&source_func=allowInsideView', {ldelim}{rdelim}, null);
45 {rdelim}
46 SUGAR.util.doWhen("typeof(markSubPanelLoaded) != 'undefined' && document.getElementById('subpanel_insideview')", function() {ldelim}
47         markSubPanelLoaded('insideview');
48         var insideViewSubPanel = document.getElementById("subpanel_insideview" );
49         insideViewSubPanel.cookie_name="insideview_v";
50         if(div_cookies['insideview_v']){ldelim}
51                 if(div_cookies['insideview_v'] == 'none')
52                 {ldelim}
53             hideInsideViewSubPanel();
54                 {rdelim}
55         {rdelim}
56     else
57     {ldelim}
58         if(typeof(DCMenu) == 'undefined')
59             return;
60         var cookieKey = DCMenu.module + '_divs';
61         var tmpCookie = Get_Cookie(cookieKey);
62         if(tmpCookie)
63         {ldelim}
64             var subCookies = tmpCookie.split('#');
65             var foundInsideViewCookie = false;
66             for(var x=0;x<subCookies.length;x++ )
67             {ldelim}
68                 var subCookie = subCookies[x];
69                 var pars = subCookie.split('=');
70                 if(pars.length == 2)
71                 {ldelim}
72                     if(pars[0] == 'insideview_v')
73                         foundInsideViewCookie = true;
74                 {rdelim}
75             {rdelim}
76             if(!foundInsideViewCookie)
77             {ldelim}
78                 hideInsideViewSubPanel()
79             {rdelim}
80         {rdelim}
81         else
82         {ldelim}
83             hideInsideViewSubPanel();
84         {rdelim}
85
86     {rdelim}
87
88         toggleGettingStartedButton();
89 {rdelim});
90
91 function hideInsideViewSubPanel(){ldelim}
92     hideSubPanel('insideview');
93     document.getElementById('hide_link_insideview').style.display='none';
94     document.getElementById('show_link_insideview').style.display='';
95 {rdelim}
96
97 function toggleGettingStartedButton(){ldelim}
98         var acceptBox  = document.getElementById( "insideview_accept_box" );
99         var gettingStartedButton  = document.getElementById( "insideview_accept_button" );
100
101         if( acceptBox.checked ){ldelim}
102                 gettingStartedButton.disabled = '';
103                 gettingStartedButton.focus();
104         {rdelim}
105         else {ldelim}
106                 gettingStartedButton.disabled = "disabled";
107         {rdelim}
108 {rdelim}
109 </script>
110 <div id='insideViewDiv' style='width:100%' class="doNotPrint">
111     <table width="100%" cellpadding="0" cellspacing="0" border="0" class="formHeader h3Row">
112         <tbody>
113             <tr>
114                 <td nowrap="">
115                     <h3>
116                         <a name="insideview"> </a>
117                         <span id="show_link_insideview" style="display: none">
118                             <a class="utilsLink" href="#" onclick="current_child_field = 'insideview';markSubPanelLoaded('insideview');showSubPanel('insideview',null,null,'insideview');document.getElementById('show_link_insideview').style.display='none';document.getElementById('hide_link_insideview').style.display='';return false;">{sugar_getimage name='advanced_search' attr='border="0" align="absmiddle"' ext='.gif' alt=$APP.LBL_SHOW }</a>
119                         </span>
120                         <span id="hide_link_insideview" style="display: ">
121                             <a class="utilsLink" href="#" onclick="hideSubPanel('insideview');document.getElementById('hide_link_insideview').style.display='none';document.getElementById('show_link_insideview').style.display='';return false;">{sugar_getimage name='basic_search' attr='border="0" align="absmiddle"' ext='.gif' alt=$APP.LBL_HIDE }</a>
122                         </span>
123
124                         <span>InsideView</span>
125                     </h3>
126                 </td>
127                 <td width="100%" valign="middle" nowrap="">
128                 </td>
129             </tr>
130         </tbody>
131     </table>
132   <div id='subpanel_insideview' style='width:100%' {if !$showInsideView}align="center"{/if}>
133       <div id='insideViewConfirm' class="detail view" style="width: 100%; text-align: left; position: relative;{if $showInsideView}display:none;{/if}">
134           <a href="#" onclick="hideSubPanel('insideview');document.getElementById('hide_link_insideview').style.display='none';document.getElementById('show_link_insideview').style.display='';return false;"></a>
135           <div style="width: 100%; float: left; padding: 10px 0px 20px 0pt;">
136             <a target="_blank"  href="http://community.insideview.com/t5/Getting-Started/Find-Opportunities-to-Reach-Out-to-Customers/ta-p/1133"  style="float: left; width: 230px;display:block;text-decoration:none;">
137                 <img title="{$connector_language.LBL_OPP}" src="https://my.insideview.com/iv/common/ruby/images/sugarembed-img1.png" style="float: left;border:0 solid;">
138                 <div  style="float: left; padding-top: 11px; width: 150px;">
139                     <span style="color: #990000; float: left; font-family: arial; font-size: 14px; font-weight: bold;">{$connector_language.LBL_OPP}</span>
140                     <span style="font-size: 10px; font-weight: bold; font-family: arial; color: #333333;float: left;">{$connector_language.LBL_OPP_SUB}</span>
141                 </div>
142             </a>
143             <a target="_blank"  href="http://community.insideview.com/t5/Getting-Started/Get-Referrals-to-Key-Decision-Makers/ta-p/1141"  style="float: left; width: 230px;display:block;text-decoration:none;">
144                 <img title="{$connector_language.LBL_REFERRAL}" src="https://my.insideview.com/iv/common/ruby/images/sugarembed-img2.png" style="float: left;border:0 solid;">
145                 <div style="float: left; padding-top: 11px; padding-left: 10px;width: 150px;">
146                     <span style="color: #990000; float: left; font-family: arial; font-size: 14px; font-weight: bold;">{$connector_language.LBL_REFERRAL}</span>
147                     <span style="font-size: 10px; font-weight: bold; font-family: arial; color: #333333;float: left;">{$connector_language.LBL_REFERRAL_SUB}</span>
148                 </div>
149             </a>
150             <a  target="_blank"  href="http://community.insideview.com/t5/Getting-Started/Engage-Prospects-and-Customers/ta-p/1127" style="float: left; width: 230px;display:block;text-decoration:none;">
151                 <img title="{$connector_language.LBL_ENGAGE}" src="https://my.insideview.com/iv/common/ruby/images/sugarembed-img3.png" style="float: left;border:0 solid;">
152                 <div style="float: left; padding-top: 11px; padding-left: 10px;width: 140px;">
153                     <span style="color: #990000; float: left; font-family: arial; font-size: 14px; font-weight: bold;">{$connector_language.LBL_ENGAGE}</span>
154                     <span style="font-size: 10px; font-weight: bold; font-family: arial; color: #333333;float: left;">{$connector_language.LBL_ENGAGE_SUB}</span>
155                 </div>
156             </a>
157           </div>
158           <hr style="border-color: rgb(238, 238, 238); background-color: rgb(238, 238, 238); width: 100%;">
159           <form>
160               <input type="checkbox" class="checkbox" name="insideview_accept_box" id="insideview_accept_box" style="display: none;" onclick="toggleGettingStartedButton();">
161               <div style="float:left;padding:0 0 10px 0">
162                     <div style="font-size: 11px; float:left;margin: 5px 15px 0px 150px;">
163                         {$connector_language.iv_description0}&nbsp;<a href="http://www.insideview.com/cat-terms-use.html" target="_blank" style="color:#0099CC;text-decoration: none; font-size: 11px;">{$connector_language.LBL_TOS1}</a>&nbsp;and&nbsp;<a style="color:#0099CC;text-decoration: none; font-size: 11px;" target="_blank" href="http://www.insideview.com/cat-privacy.html">{$connector_language.LBL_TOS3}</a>.
164                     </div>
165                     <div onclick="allowInsideView(); return false;" name="insideview_accept_button" id="insideview_accept_button" style="float:right;height: 30px; background-image: url('https://my.insideview.com/iv/common/ruby/images/sugarembed-button.png');font-weight: bold; width: 113px; font-size: 14px;cursor:pointer;">
166                         <div style="float:left;margin:7px 0 0 18px;color:#ffffff;">{$connector_language.LBL_GET_STARTED}</div>
167                     </div>
168               </div>
169           </form>
170           <div class="clear"></div>
171       </div>
172       <iframe id='insideViewFrame' src='{$URL}' title='{$URL}' scrolling="no" style='border:0px; width:100%;height:400px;overflow:hidden;{if !$showInsideView}display:none;{else}display:block;{/if}'></iframe>
173    </div>
174 </div>