Exemplo n.º 1
0
/**	function used to show the error message occured during import process
 *	@param	string	$message - Error message to display in the screen, where the passed error message will be displayed in screen using Importerror.tpl file
 */
function show_error_import($message)
{
    global $import_mod_strings;
    global $theme;
    global $log;
    global $mod_strings;
    global $app_strings;
    $theme_path = "themes/" . $theme . "/";
    $image_path = $theme_path . "images/";
    $log->info("Upload Error");
    $smarty = new vtigerCRM_Smarty();
    $smarty->assign("MOD", $mod_strings);
    $smarty->assign("APP", $app_strings);
    if (isset($_REQUEST['return_module'])) {
        $smarty->assign("RETURN_MODULE", vtlib_purify($_REQUEST['return_module']));
    }
    if (isset($_REQUEST['return_action'])) {
        $smarty->assign("RETURN_ACTION", vtlib_purify($_REQUEST['return_action']));
    }
    $smarty->assign("THEME", $theme);
    $category = getParenttab();
    $smarty->assign("CATEGORY", $category);
    $smarty->assign("IMAGE_PATH", $image_path);
    $smarty->assign("PRINT_URL", "phprint.php?jt=" . session_id() . $GLOBALS['request_string']);
    $smarty->assign("MODULE", vtlib_purify($_REQUEST['module']));
    $smarty->assign("MESSAGE", $message);
    $smarty->display('Importerror.tpl');
}
Exemplo n.º 2
0
function show_error_import($message)
{
    global $current_language;
    $import_mod_strings = return_module_language($current_language, "Import");
    global $theme;
    global $log;
    global $mod_strings;
    global $app_strings;
    global $current_user;
    include 'themes/' . $theme . '/header.php';
    $theme_path = "themes/" . $theme . "/";
    $image_path = $theme_path . "images/";
    $log->info("Upload Error");
    $smarty = new CRMSmarty();
    $smarty->assign("MOD", $import_mod_strings);
    $smarty->assign("APP", $app_strings);
    if (isset($_REQUEST['return_module'])) {
        $smarty->assign("RETURN_MODULE", $_REQUEST['return_module']);
    }
    if (isset($_REQUEST['return_action'])) {
        $smarty->assign("RETURN_ACTION", $_REQUEST['return_action']);
    }
    $smarty->assign("THEME", $theme);
    $category = getParenttab();
    $smarty->assign("CATEGORY", $category);
    $smarty->assign("IMAGE_PATH", $image_path);
    //$smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
    $smarty->assign("MODULE", "SalesOrder");
    $smarty->assign("MESSAGE", $message);
    $smarty->display('SalesOrder/Importerror.tpl');
}
Exemplo n.º 3
0
global $app_strings;
global $current_user;
global $theme;
if (!isset($_REQUEST['module'])) {
    $_REQUEST['module'] = 'Home';
}
if (!isset($_REQUEST['return_id'])) {
    $_REQUEST['return_id'] = '';
}
if (!isset($_REQUEST['return_module'])) {
    $_REQUEST['return_module'] = '';
}
if (!isset($_REQUEST['return_action'])) {
    $_REQUEST['return_action'] = '';
}
$parenttab = getParenttab();
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
$log->info("Import Undo");
$last_import = new UsersLastImport();
$ret_value = $last_import->undo($current_user->id);
// vtlib customization: Invoke undo import function of the module.
$module = $_REQUEST['module'];
$undo_focus = CRMEntity::getInstance($module);
if (method_exists($undo_focus, 'undo_import')) {
    $ret_value += $undo_focus->undo_import($module, $current_user->id);
}
// END
?>

<br>
Exemplo n.º 4
0
require_once 'include/utils/utils.php';
global $app_strings;
global $mod_strings;
global $app_list_strings;
global $current_language, $current_user, $adb;
$current_module_strings = return_module_language($current_language, 'Settings');
global $list_max_entries_per_page;
global $urlPrefix;
$log = LoggerManager::getLogger('audit_trial');
global $currentModule;
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
$focus = new AuditTrail();
$smarty = new vtigerCRM_Smarty();
$category = getParenttab();
$userid = vtlib_purify($_REQUEST['userid']);
$qry = "select * from vtiger_audit_trial where userid = ? ";
$qry_result = $adb->pquery($qry, array($userid));
$no_of_rows = $adb->num_rows($qry_result);
//Retreiving the start value from request
if (isset($_REQUEST['start']) && $_REQUEST['start'] != '') {
    $start = vtlib_purify($_REQUEST['start']);
} else {
    $start = 1;
}
//Retreive the Navigation array
$navigation_array = getNavigationValues($start, $no_of_rows, '100');
$start_rec = $navigation_array['start'];
$end_rec = $navigation_array['end_val'];
$record_string = $app_strings['LBL_SHOWING'] . " " . $start_rec . " - " . $end_rec . " " . $app_strings['LBL_LIST_OF'] . " " . $no_of_rows;
Exemplo n.º 5
0
$oRss = new vtigerRSS();
if (isset($_REQUEST['folders']) && $_REQUEST['folders'] == 'true') {
    require_once "modules/" . $currentModule . "/Forms.php";
    echo get_rssfeeds_form();
    die;
}
if (isset($_REQUEST['record'])) {
    $recordid = vtlib_purify($_REQUEST['record']);
}
$rss_form = new vtigerCRM_Smarty();
$rss_form->assign("MOD", $mod_strings);
$rss_form->assign("APP", $app_strings);
$rss_form->assign("THEME", $theme);
$rss_form->assign("IMAGE_PATH", $image_path);
$rss_form->assign("MODULE", $currentModule);
$rss_form->assign("CATEGORY", getParenttab());
//<<<<<<<<<<<<<<lastrss>>>>>>>>>>>>>>>>>>//
//$url = 'http://forums/rss.php?name=forums&file=rss';
//$url = 'http://forums/weblog_rss.php?w=202';
if (isset($_REQUEST[record])) {
    $recordid = vtlib_purify($_REQUEST['record']);
    $url = $oRss->getRssUrlfromId($recordid);
    if ($oRss->setRSSUrl($url)) {
        $rss_html = $oRss->getSelectedRssHTML($recordid);
    } else {
        $rss_html = "<strong>" . $mod_strings['LBL_ERROR_MSG'] . "</strong>";
    }
    $rss_form->assign("TITLE", gerRssTitle($recordid));
    $rss_form->assign("ID", $recordid);
} else {
    $rss_form->assign("TITLE", gerRssTitle());
Exemplo n.º 6
0
}
if (isPermitted('Dashboard', 'DetailView') == 'yes' && vtlib_isModuleActive('Dashboard')) {
    $allow_dashbd = 'yes';
}
$homedetails = $homeObj->getHomePageFrame();
$maxdiv = sizeof($homedetails) - 1;
$user_name = $current_user->column_fields['user_name'];
$buttoncheck['Calendar'] = isPermitted('Calendar', 'index');
$freetag = new freetag();
$numberofcols = getNumberOfColumns();
$smarty->assign("CHECK", $buttoncheck);
if (vtlib_isModuleActive('Calendar')) {
    $smarty->assign("CALENDAR_ACTIVE", "yes");
}
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("MODULE", 'Home');
$smarty->assign("CATEGORY", getParenttab('Home'));
$smarty->assign("CURRENTUSER", $user_name);
$smarty->assign("ALL_TAG", $freetag->get_tag_cloud_html("", $current_user->id));
$smarty->assign("MAXLEN", $maxdiv);
$smarty->assign("ALLOW_RSS", $allow_rss);
$smarty->assign("ALLOW_DASH", $allow_dashbd);
$smarty->assign("HOMEFRAME", $homedetails);
$smarty->assign("MODULE_NAME", $modulenamearr);
$smarty->assign("MOD", $mod_strings);
$smarty->assign("APP", $app_strings);
$smarty->assign("THEME", $theme);
$smarty->assign("LAYOUT", $numberofcols);
$widgetBlockSize = PerformancePrefs::getBoolean('HOME_PAGE_WIDGET_GROUP_SIZE', 12);
$smarty->assign('widgetBlockSize', $widgetBlockSize);
$smarty->display("Home/Homestuff.tpl");