[ 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 <script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script> 13 <br> 14 <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%"> 15 <tbody><tr> 16 <td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td> 17 <td class="showPanelBg" style="padding: 10px;" valign="top" width="100%"> 18 <br> 19 <div align=center> 20 {include file="SetMenu.tpl"} 21 <!-- DISPLAY --> 22 <table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine"> 23 <form action="index.php" method="post" name="tandc"> 24 <input type="hidden" name="server_type" value="backup"> 25 <input type="hidden" name="module" value="Settings"> 26 <input type="hidden" name="action" value="index"> 27 <input type="hidden" name="bkp_server_mode"> 28 <input type="hidden" name="server_type" value="backup"> 29 <input type="hidden" name="parenttab" value="Settings"> 30 <tr> 31 <td width=50 rowspan=2 valign=top><img src="{$IMAGE_PATH}backupserver.gif" alt="Users" width="48" height="48" border=0 title="Users"></td> 32 <td class=heading2 valign=bottom><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a> > {$MOD.LBL_BACKUP_SERVER_SETTINGS} </b></td> 33 </tr> 34 <tr> 35 <td valign=top class="small">{$MOD.LBL_BACKUP_SERVER_DESC} </td> 36 </tr> 37 </table> 38 39 <table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading"> 40 <tr> 41 <td class="big" height="40px;" width="70%"><strong>{$MOD.LBL_BACKUP_SERVER_SETTINGS}</strong></td> 42 <td class="small" align="center" width="30%"> 43 <span id="view_info" class="crmButton small cancel" style="display:none;"></span> 44 </td> 45 </tr> 46 </table> 47 48 <table border=0 cellspacing=0 cellpadding=0 width=100% class="listRow"> 49 <tr> 50 <td class="small" valign=top > 51 <table width="100%" border="0" cellspacing="0" cellpadding="5"> 52 <tr> 53 <td width="20%" nowrap class="small cellLabel"><strong>{$MOD.LBL_ENABLE} {$MOD.LBL_BACKUP_SERVER_SETTINGS}</strong></td> 54 <td width="80%" class="small cellText"> 55 {if $BACKUP_STATUS eq 'enabled'} 56 <input type="checkbox" checked name="enable_backup" onclick="backupenabled(this)"></input> 57 {else} 58 <input type="checkbox" name="enable_backup" onclick="backupenabled(this)"></input> 59 {/if} 60 </td> 61 </tr> 62 </table> 63 </td> 64 </tr> 65 <tr> 66 <td class="small" valign=top > 67 <br> 68 {if $BACKUP_STATUS eq 'enabled'} 69 <div id='bckcontents' style="display:block;"> 70 {else} 71 <div id='bckcontents' style="display:none;"> 72 {/if} 73 <table border=0 cellspacing=0 cellpadding=10 width=100% > 74 <tr> 75 <td> 76 77 <table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading"> 78 <tr> 79 <td class="big"><strong>{$MOD.LBL_BACKUP_SERVER_SETTINGS} ({$MOD.LBL_FTP})<br>{$ERROR_MSG}</strong></td> 80 {if $BKP_SERVER_MODE neq 'edit'} 81 <td class="small" align=right> 82 <input title="{$APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{$APP.LBL_EDIT_BUTTON_KEY}" class="crmButton small edit" onclick="this.form.action.value='BackupServerConfig';this.form.bkp_server_mode.value='edit'" type="submit" name="Edit" value="{$APP.LBL_EDIT_BUTTON_LABEL}"> 83 <input title="{$MOD.LBL_CLEAR_DATA}" accessKey="{$MOD.LBL_CLEAR_DATA}" class="crmButton small cancel" onclick="clearBackupServer();" type="button" name="Clear" value="{$MOD.LBL_CLEAR_DATA}"> 84 </td> 85 {else} 86 <td class="small" align=right> 87 <input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="crmButton small save" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" onclick="this.form.action.value='Save'; return validate()"> 88 <input title="{$APP.LBL_CANCEL_BUTTON_LABEL}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="crmButton small cancel" onclick="window.history.back()" type="button" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}"> 89 </td> 90 {/if} 91 </tr> 92 </table> 93 </td> 94 </tr> 95 <tr> 96 <td> 97 <div id="BackupServerContents"> 98 {include file="Settings/BackupServerContents.tpl"} 99 </div> 100 </td> 101 </tr> 102 </table> 103 </div> 104 </td> 105 </tr> 106 </table> 107 </td> 108 </tr> 109 </form> 110 </table> 111 </td></tr> 112 </table> 113 </div> 114 </td> 115 <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td> 116 </tr> 117 </tbody> 118 </table> 119 {literal} 120 <script> 121 function validate() { 122 if (!emptyCheck("server","ftp Server Name","text")) return false 123 if (!emptyCheck("server_username","ftp User Name","text")) return false 124 if (!emptyCheck("server_password","ftp Password","text")) return false 125 return true; 126 127 } 128 129 function clearBackupServer() 130 { 131 new Ajax.Request('index.php', 132 {queue: {position: 'end', scope: 'command'}, 133 method: 'post', 134 postBody: 'module=Settings&action=SettingsAjax&ajax=true&file=BackupServerConfig&opmode=del', 135 onComplete: function(response) { 136 $("BackupServerContents").innerHTML=response.responseText; 137 } 138 } 139 ); 140 } 141 142 function backupenabled(ochkbox) 143 { 144 if(ochkbox.checked == true) 145 { 146 $('bckcontents').style.display='block'; 147 var status='enabled'; 148 $('view_info').innerHTML = 'Backup Enabled'; 149 $('view_info').style.display = 'block'; 150 151 152 } 153 else 154 { 155 $('bckcontents').style.display='none'; 156 var status = 'disabled'; 157 $('view_info').innerHTML = 'Backup Disabled'; 158 $('view_info').style.display = 'block'; 159 } 160 $("status").style.display="block"; 161 new Ajax.Request( 162 'index.php', 163 {queue: {position: 'end', scope: 'command'}, 164 method: 'post', 165 postBody: 'module=Settings&action=SettingsAjax&file=SaveEnableBackup&ajax=true&enable_backup='+status, 166 onComplete: function(response) { 167 $("status").style.display="none"; 168 } 169 } 170 ); 171 172 setTimeout("hide('view_info')",3000); 173 } 174 175 </script> 176 {/literal}
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 |