[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 /********************************************************************************* 3 * The contents of this file are subject to the SugarCRM Public License Version 1.1.2 4 * ("License"); You may not use this file except in compliance with the 5 * License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL 6 * Software distributed under the License is distributed on an "AS IS" basis, 7 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 8 * the specific language governing rights and limitations under the License. 9 * The Original Code is: SugarCRM Open Source 10 * The Initial Developer of the Original Code is SugarCRM, Inc. 11 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.; 12 * All Rights Reserved. 13 * Contributor(s): ______________________________________. 14 ********************************************************************************/ 15 /********************************************************************************* 16 * $Header$ 17 * Description: TODO: To be written. 18 ********************************************************************************/ 19 20 require_once ('data/Tracker.php'); 21 require_once ('modules/Import/ImportContact.php'); 22 require_once ('modules/Import/ImportAccount.php'); 23 require_once ('modules/Import/UsersLastImport.php'); 24 require_once ('modules/Import/parse_utils.php'); 25 require_once ('include/utils/utils.php'); 26 27 global $mod_strings; 28 global $app_list_strings; 29 global $app_strings; 30 global $current_user; 31 global $theme; 32 33 if (! isset( $_REQUEST['module'])) 34 { 35 $_REQUEST['module'] = 'Home'; 36 } 37 38 if (! isset( $_REQUEST['return_id'])) 39 { 40 $_REQUEST['return_id'] = ''; 41 } 42 if (! isset( $_REQUEST['return_module'])) 43 { 44 $_REQUEST['return_module'] = ''; 45 } 46 47 if (! isset( $_REQUEST['return_action'])) 48 { 49 $_REQUEST['return_action'] = ''; 50 } 51 52 $parenttab = getParenttab(); 53 54 $theme_path="themes/".$theme."/"; 55 $image_path=$theme_path."images/"; 56 require_once ($theme_path.'layout_utils.php'); 57 58 $log->info("Import Undo"); 59 $last_import = new UsersLastImport(); 60 $ret_value = $last_import->undo($current_user->id); 61 ?> 62 63 <br> 64 65 66 <table align="center" cellpadding="5" cellspacing="0" width="95%" class="mailClient importLeadUI small"> 67 <tr> 68 <td bgcolor="#FFFFFF" height="50" valign="middle" align="left" class="mailClientBg genHeaderSmall"> <?php echo $mod_strings['LBL_MODULE_NAME']; ?> <?php echo $app_strings[$_REQUEST['module']] ; ?> </td> 69 </tr> 70 <tr><td> </td></tr> 71 <tr> 72 <td align="left" style="padding-left:40px;"> 73 <span class="genHeaderGray"><?php echo $mod_strings['LBL_STEP_3_3']; ?></span> 74 <span class="genHeaderSmall"><?php echo $mod_strings['LBL_MAPPING_RESULTS']; ?></span> 75 </td> 76 </tr> 77 <tr> 78 <td style="padding-left:140px;"> 79 <br> 80 <?php 81 if ($ret_value) { 82 ?> 83 <?php echo "<b>" . $mod_strings['LBL_SUCCESS']."</b>" ?><BR><br> 84 <?php echo $mod_strings['LBL_LAST_IMPORT_UNDONE'] ?> 85 <?php 86 } 87 else 88 { 89 ?> 90 <?php echo $mod_strings['LBL_FAIL'] ?><br> 91 <?php echo $mod_strings['LBL_NO_IMPORT_TO_UNDO'] ?> 92 <?php 93 } 94 ?> 95 <br> 96 <br> 97 </td> 98 </tr> 99 <tr> 100 <td align="right" class="reportCreateBottom" > 101 <form name="Import" method="POST" action="index.php"> 102 <input type="hidden" name="module" value="<?php echo $_REQUEST['module']; ?>"> 103 <input type="hidden" name="action" value="Import"> 104 <input type="hidden" name="step" value="1"> 105 <input type="hidden" name="return_module" value="<?php echo $_REQUEST['RETURN_MODULE'] ?>"> 106 <input type="hidden" name="return_id" value="<?php echo $_REQUEST['RETURN_ID'] ?>"> 107 <input type="hidden" name="return_action" value="<?php echo $_REQUEST['RETURN_ACTION'] ?>"> 108 <input type="hidden" name="parenttab" value="<?php echo $parenttab ?>"> 109 <input title="<?php echo $mod_strings['LBL_TRY_AGAIN'] ?>" accessKey="" class="crmbutton small save" type="submit" name="button" value=" <?php echo $mod_strings['LBL_TRY_AGAIN'] ?> "> 110 </form> 111 </td> 112 </tr> 113 </table> 114
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 |