]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Connectors/connectors/sources/ext/rest/insideview/tpls/InsideView.tpl
Release 6.3.0
[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-2011 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 document.getElementById('insideViewDiv').style.height='430px';
45 YAHOO.util.Connect.asyncRequest('GET', 'index.php?module=Connectors&action=CallConnectorFunc&source_id=ext_rest_insideview&source_func=allowInsideView', {ldelim}{rdelim}, null);
46 {rdelim}
47 SUGAR.util.doWhen("typeof(markSubPanelLoaded) != 'undefined' && document.getElementById('subpanel_insideview')", function() {ldelim}
48         markSubPanelLoaded('insideview');
49         var insideViewSubPanel = document.getElementById("subpanel_insideview" );
50         insideViewSubPanel.cookie_name="insideview_v";
51         if(div_cookies['insideview_v']){ldelim}
52                 if(div_cookies['insideview_v'] == 'none')
53                 {ldelim}
54                         hideSubPanel('insideview');
55                         document.getElementById('hide_link_insideview').style.display='none';
56                         document.getElementById('show_link_insideview').style.display='';
57                 {rdelim}
58         {rdelim}
59         toggleGettingStartedButton();
60 {rdelim});
61
62 function toggleGettingStartedButton(){ldelim}
63         var acceptBox  = document.getElementById( "insideview_accept_box" );
64         var gettingStartedButton  = document.getElementById( "insideview_accept_button" );
65
66         if( acceptBox.checked ){ldelim}
67                 gettingStartedButton.disabled = '';
68                 gettingStartedButton.focus();
69         {rdelim}
70         else {ldelim}
71                 gettingStartedButton.disabled = "disabled";
72         {rdelim}
73 {rdelim}
74 </script>
75 <div id='insideViewDiv' style='width:100%' class="doNotPrint">
76     <table width="100%" cellpadding="0" cellspacing="0" border="0" class="formHeader h3Row">
77         <tbody>
78             <tr>
79                 <td nowrap="" style="padding: 0px;">
80                     <h3>
81                         <span>
82                             <a name="insideview"> </a>
83                             <span id="show_link_insideview" style="display: none">
84                                 <a href="#" onclick="current_child_field = 'insideview';showSubPanel('insideview',null,null,'insideview');document.getElementById('show_link_insideview').style.display='none';document.getElementById('hide_link_insideview').style.display='';return false;"><img src="{$logo_collapsed}" border="0"></a>
85                             </span>
86                             <span id="hide_link_insideview" style="display: ">
87                                 <a href="#" onclick="hideSubPanel('insideview');document.getElementById('hide_link_insideview').style.display='none';document.getElementById('show_link_insideview').style.display='';return false;"><img src="{$logo_expanded}" border="0"></a>
88                             </span>
89                         </span>
90                     </h3>
91                 </td>
92                 <td width="100%">
93                     <img height="1" width="1" src="{sugar_getimagepath file='blank.gif'}" alt="">
94                 </td>
95             </tr>
96         </tbody>
97     </table>
98   <div id='subpanel_insideview' style='width:100%' {if !$showInsideView}align="center"{/if}>
99       <div id='insideViewConfirm' class="detail view" style="padding: 20px; width: 700px; text-align: left; position: relative;{if $showInsideView}display:none;{/if}">
100       
101       <a href="#" onclick="hideSubPanel('insideview');document.getElementById('hide_link_insideview').style.display='none';document.getElementById('show_link_insideview').style.display='';return false;"><img src="{$close}" border="0" style='position: absolute; top: -8px; right: -9px;'></a>
102       
103       
104       <div style="font-size: 14px;">
105         <a href='http://www.insideview.com/SUGARCRM/' target='_blank' style='text-decoration: none; font-size: 14px;'><strong style='color: #d71e00;'>{$connector_language.LBL_TAGLINK}</strong></a> <strong>{$connector_language.LBL_TAGLINE}</strong>
106       </div>
107       
108    
109       
110       
111         <div style="float: left; padding-bottom: 10px; font-size: 13px; padding-right: 20px; padding-top: 10px;">
112       
113
114
115         {$connector_language.iv_description0}<br>{$connector_language.iv_description1}<strong>{$connector_language.iv_description2}</strong>{$connector_language.iv_description3}<br/>{$connector_language.iv_description4}
116
117        
118       </div>
119       
120       
121          <div style="float: right; padding-bottom: 10px; width: 190px;"><a href='http://www.insideview.com/SUGARCRM/' target='_blank' style='text-decoration: none;'><img style="margin-right: 10px; border-radius: 6px 6px 6px 6px; -moz-border-radius: 6px 6px 6px 6px; -webkit-border-radius: 6px 6px 6px 6px;" src="{$video}" align="left"/></a><a href='http://www.insideview.com/SUGARCRM/' target='_blank' style='text-decoration: none; position: relative; top: 15px;'>{$connector_language.LBL_VID0}<br>{$connector_language.LBL_VID1}</a></div>
122       
123                <hr style="width: 775px; border-color: #eee; background-color: #eee;">
124      <form>
125      <input type="checkbox" class="checkbox" name="insideview_accept_box" id="insideview_accept_box" onClick='toggleGettingStartedButton();'/>&nbsp;{$connector_language.LBL_TOS0}<a href='http://www.insideview.com/cat-terms-use.html' target='_blank' style='text-decoration: none;'>{$connector_language.LBL_TOS1}</a>{$connector_language.LBL_TOS2}<a href='http://www.insideview.com/cat-privacy.html' target='_blank' style='text-decoration: none;'>{$connector_language.LBL_TOS3}</a>.
126          <button name="insideview_accept_button" id="insideview_accept_button" onclick="allowInsideView(); return false;" class='button primary' style='height: 25px; float: right; border: 1px solid #821200; background-color: #eeeeee; background-image: none; text-shadow: 1px 1px #FFFFFF; color: #222; margin-bottom: 0px; background-image: -moz-linear-gradient(center top , #F9F9F9 0%, #F2F2F2 50%, #F1F1F1 50%, #DDDDDD 100%); background-image: -webkit-gradient( linear,left top,left bottom,color-stop(0, #f9f9f9),color-stop(.5, #F2F2F2),color-stop(.5, #F1F1F1),color-stop(1, #DDDDDD)); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#f9f9f9", endColorstr="#DDDDDD");'>{$connector_language.LBL_GET_STARTED}</button>
127           
128      </form>
129       <div class="clear"></div>
130       
131       </div>
132       <iframe id='insideViewFrame' src='{$URL}' scrolling="no" style='border:0px; width:100%;height:400px;overflow:hidden;{if !$showInsideView}display:none;{else}display:block;{/if}'></iframe>
133    </div>
134 </div>