]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Configurator/tpls/SugarpdfSettingsFields.tpl
Release 6.5.0
[Github/sugarcrm.git] / modules / Configurator / tpls / SugarpdfSettingsFields.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
39
40 *}
41 {if $property.type == "image"}
42 {if $count is not odd}</tr>{/if}
43 <tr>
44     <td scope="row" width="20%">{$property.label}:<span class="error" id="resized_{$name}_img" style="display:none"> {$MOD.LBL_IMG_RESIZED}</span>{sugar_help text=$property.info_label} </td>
45     <td colspan="3">
46         <img src='{$property.path}' id='{$name}_img' style='margin-bottom: 10px;'>
47         <input type='hidden' id='{$name}' name='{$name}' value='{$property.value}'>
48         <script type='text/javascript'>
49             {literal}
50             YAHOO.util.Event.onDOMReady(function() {
51                 if(document.getElementById({/literal}"{$name}_img"{literal}).width>document.width/2){
52                     document.getElementById({/literal}"{$name}_img"{literal}).width = document.width/2;
53                     document.getElementById({/literal}"resized_{$name}_img"{literal}).style.display="";
54                 }
55             });
56             {/literal}
57         </script>
58     </td>
59 </tr>
60 {counter}
61 {else}
62     {if $count is odd}
63     <tr>
64     {/if}
65         <td scope="row" width="20%">{$property.label}:{if isset($property.required) && $property.required == true} <span class="required">*</span>{/if}{sugar_help text=$property.info_label} </td>
66         <td  width="30%">
67             {if isset($property.custom)}
68                 {$property.custom}
69             {elseif $property.type == "text"}
70                 <input type='text' size='40' name='{$name}' id='{$name}' value='{$property.value}'>
71             {elseif $property.type == "number"}
72                 <input type='text' size='10' name='{$name}' id='{$name}' value='{$property.value}' onchange="verifyNumber('{$name}')">
73                 {if isset($property.unit)}
74                     {$property.unit}
75                 {/if}
76             {elseif $property.type == "percent"}
77                 <input type='text' size='20' name='{$name}' id='{$name}' value='{$property.value}' onchange="verifyPercent('{$name}')">
78             {elseif $property.type == "select"}
79                 {html_options name=$name options=$property.selectList selected=$property.value}
80             {elseif $property.type == "multiselect"}
81                 <select name='{$name}[]' multiple size=4>
82                 {html_options options=$property.selectList selected=$property.value}
83                 </select>
84             {elseif $property.type == "bool"}
85                 <input type="hidden" name='{$name}' value='false'>
86                 <input type='checkbox' name='{$name}' value='true' id='{$name}' {if $property.value == "true"}CHECKED{/if}>
87             {elseif $property.type == "password"}
88                 <input type='password' size='20' name='{$name}' id='{$name}' value='{$property.value}'>
89             {elseif $property.type == "file"}
90                 <input type="file" id='{$name}' name='{$name}' size="20" onBlur="checkFileType('{$name}',0);"/>
91             {/if}
92         </td>
93     {if $count is not odd}
94     </tr>
95     {/if}
96 {/if}