[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 {*<!-- 2 /********************************************************************************* 3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * 10 ********************************************************************************/ 11 -->*} 12 13 <script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script> 14 15 <br> 16 <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%"> 17 <tbody><tr> 18 <td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td> 19 <td class="showPanelBg" style="padding: 10px;" valign="top" width="100%"> 20 <br> 21 <div align=center> 22 {include file='SetMenu.tpl'} 23 <form action="index.php" method="post" name="profileform" id="form"> 24 <input type="hidden" name="module" value="Users"> 25 <input type="hidden" name="mode" value="{$MODE}"> 26 <input type="hidden" name="action" value="profilePrivileges"> 27 <input type="hidden" name="parenttab" value="Settings"> 28 <input type="hidden" name="parent_profile" value="{$PARENT_PROFILE}"> 29 <input type="hidden" name="radio_button" value="{$RADIO_BUTTON}"> 30 31 <!-- DISPLAY --> 32 <table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine"> 33 <tr> 34 <td width=50 rowspan=2 valign=top><img src="{$IMAGE_PATH}ico-profile.gif" alt="{$MOD.LBL_PROFILES}" width="48" height="48" border=0 title="{$MOD.LBL_PROFILES}"></td> 35 <td class=heading2 valign=bottom><b> <a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a> > <a href="index.php?module=Users&action=ListProfiles&parenttab=Settings">{$CMOD.LBL_PROFILE_PRIVILEGES}</a></b></td> 36 </tr> 37 <tr> 38 <td valign=top class="small">{$MOD.LBL_PROFILE_DESCRIPTION}</td> 39 </tr> 40 </table> 41 42 43 <table border=0 cellspacing=0 cellpadding=10 width=100% > 44 <tr> 45 <td valign="top"> 46 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 47 <tbody><tr> 48 <td> 49 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 50 <tbody><tr class="small"> 51 <td><img src="{$IMAGE_PATH}prvPrfTopLeft.gif"></td> 52 <td class="prvPrfTopBg" width="100%"></td> 53 <td><img src="{$IMAGE_PATH}prvPrfTopRight.gif"></td> 54 55 </tr> 56 </tbody></table> 57 <table class="prvPrfOutline" border="0" cellpadding="0" cellspacing="0" width="100%"> 58 <tbody> 59 <tr> 60 <td><!-- Module name heading --> 61 <table class="small" border="0" cellpadding="2" cellspacing="0"> 62 <tbody><tr> 63 <td valign="top"><img src="{$IMAGE_PATH}prvPrfHdrArrow.gif"> </td> 64 <td class="prvPrfBigText"><b> {$CMOD.LBL_STEP_1_2} : {$CMOD.LBL_WELCOME_PROFILE_CREATE} </b><br> 65 <font class="small"> {$CMOD.LBL_SELECT_CHOICE_NEW_PROFILE} </font> </td> 66 67 <td class="small" style="padding-left: 10px;" align="right"></td> 68 </tr> 69 </tbody></table></td> 70 <td align="right" valign="bottom"> </td> 71 </tr> 72 <tr> 73 <td><!-- tabs --> 74 <table width="95%" border="0" cellpadding="5" cellspacing="0" align="center"> 75 <tr><td colspan="2"> </td></tr> 76 <tr> 77 <td align="right" width="25%" style="padding-right:10px;"> 78 <b style="color:#FF0000;font-size:16px;">{$APP.LBL_REQUIRED_SYMBOL}</b> <b>{$CMOD.LBL_NEW_PROFILE_NAME} : </b></td> 79 <td width="75%" align="left" style="padding-left:10px;"> 80 <input type="text" name="profile_name" id="pobox" value="{$PROFILENAME}" class="txtBox" /></td> 81 </tr> 82 <tr><td colspan="2"> </td></tr> 83 <tr> 84 <td align="right" style="padding-right:10px;" valign="top"><b>{$CMOD.LBL_DESCRIPTION} : </b></td> 85 <td align="left" style="padding-left:10px;"><textarea name="profile_description" class="txtBox">{$PROFILEDESC}</textarea></td> 86 </tr> 87 <tr><td colspan="2" style="border-bottom:1px dashed #CCCCCC;" height="75"> </td></tr> 88 <tr> 89 <td align="right" width="10%" style="padding-right:10px;"> 90 {if $RADIO_BUTTON neq 'newprofile'} 91 <input name="radiobutton" checked type="radio" value="baseprofile" /> 92 {else} 93 <input name="radiobutton" type="radio" value="baseprofile" /> 94 {/if} 95 </td> 96 <td width="90%" align="left" style="padding-left:10px;">{$CMOD.LBL_BASE_PROFILE_MESG}</td> 97 </tr> 98 <tr> 99 <td align="right" style="padding-right:10px;"> </td> 100 <td align="left" style="padding-left:10px;">{$CMOD.LBL_BASE_PROFILE} 101 <select name="parentprofile" class="importBox"> 102 {foreach item=combo from=$PROFILE_LISTS} 103 {if $PARENT_PROFILE eq $combo.1} 104 <option selected value="{$combo.1}">{$combo.0}</option> 105 {else} 106 <option value="{$combo.1}">{$combo.0}</option> 107 {/if} 108 {/foreach} 109 </select> 110 </td> 111 </tr> 112 <tr><td colspan="2"> </td></tr> 113 <tr><td align="center" colspan="2"><b>( {$CMOD.LBL_OR} )</b></td></tr> 114 <tr><td colspan="2"> </td></tr> 115 <tr> 116 <td align="right" style="padding-right:10px;"> 117 {if $RADIO_BUTTON eq 'newprofile'} 118 <input name="radiobutton" checked type="radio" value="newprofile" /> 119 {else} 120 <input name="radiobutton" type="radio" value="newprofile" /> 121 {/if} 122 </td> 123 <td align="left" style="padding-left:10px;">{$CMOD.LBL_BASE_PROFILE_MESG_ADV}</td> 124 </tr> 125 <tr><td colspan="2" style="border-bottom:1px dashed #CCCCCC;" height="75"> </td></tr> 126 <tr> 127 <td colspan="2" align="right"> 128 <input type="button" value=" {$APP.LNK_LIST_NEXT} › " name="Next" class="crmButton small" onClick="rolevalidate();"/> 129 <input type="button" value=" {$APP.LBL_CANCEL_BUTTON_LABEL} " title="{$APP.LBL_CANCEL_BUTTON_TITLE}" name="Cancel" onClick="window.history.back();" class="crmButton small cancel"/> 130 </td> 131 </tr> 132 </table> 133 134 </td></tr> 135 <table class="small" border="0" cellpadding="0" cellspacing="0" width="100%"> 136 <tbody><tr> 137 <td><img src="{$IMAGE_PATH}prvPrfBottomLeft.gif"></td> 138 <td class="prvPrfBottomBg" width="100%"></td> 139 <td><img src="{$IMAGE_PATH}prvPrfBottomRight.gif"></td> 140 </tr> 141 </tbody></table></td> 142 </tr> 143 </tbody></table> 144 145 <p> </p> 146 <table border="0" cellpadding="5" cellspacing="0" width="100%"> 147 <tbody><tr><td class="small" align="right" nowrap="nowrap"><a href="#top">Scroll to Top</a></td></tr> 148 </tbody></table> 149 150 151 152 153 154 155 156 </td> 157 </table> 158 159 160 161 </td> 162 </tr> 163 </table> 164 </td> 165 </tr> 166 </table> 167 168 </div> 169 </td> 170 <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td> 171 </form> 172 </tr> 173 </tbody> 174 </table> 175 <script> 176 function rolevalidate() 177 {ldelim} 178 var profilename = document.getElementById('pobox').value; 179 profilename = profilename.replace(/ /gi,'',profilename); 180 if(profilename != '') 181 dup_validation(profilename); 182 else 183 {ldelim} 184 alert('Enter The Profile name'); 185 document.getElementById('pobox').focus(); 186 {rdelim} 187 {rdelim} 188 189 190 function dup_validation(profilename) 191 {ldelim} 192 new Ajax.Request( 193 'index.php', 194 {ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim}, 195 method: 'post', 196 postBody: 'module=Users&action=UsersAjax&file=CreateProfile&ajax=true&dup_check=true&profile_name='+profilename, 197 onComplete: function(response) {ldelim} 198 if(response.responseText == 'SUCESS') 199 document.profileform.submit(); 200 else 201 alert(response.responseText); 202 {rdelim} 203 {rdelim} 204 ); 205 {rdelim} 206 </script>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |