コード例 #1
0
}
$log = LoggerManager::getLogger('user_list');
global $mod_strings, $adb;
global $theme;
$theme_path = "themes/" . $theme . "/";
$image_path = $theme_path . "images/";
global $current_language;
$mod_strings = return_module_language($current_language, 'Users');
$category = getParentTab();
$focus = new Users();
$no_of_users = UserCount();
//Display the mail send status
$smarty = new vtigerCRM_Smarty();
if ($_REQUEST['mail_error'] != '') {
    require_once "modules/Emails/mail.php";
    $error_msg = strip_tags(parseEmailErrorString($_REQUEST['mail_error']));
    $error_msg = $app_strings['LBL_MAIL_NOT_SENT_TO_USER'] . ' ' . vtlib_purify($_REQUEST['user']) . '. ' . $app_strings['LBL_PLS_CHECK_EMAIL_N_SERVER'];
    $smarty->assign("ERROR_MSG", $mod_strings['LBL_MAIL_SEND_STATUS'] . ' <b><font class="warning">' . $error_msg . '</font></b>');
}
//Retreiving the start value from request
if (isset($_REQUEST['start']) && $_REQUEST['start'] != '') {
    $start = vtlib_purify($_REQUEST['start']);
} elseif ($_SESSION['user_pagestart'] != '') {
    $start = $_SESSION['user_pagestart'];
} else {
    $start = 1;
}
$list_query = getListQuery("Users");
$userid = array();
$userid_Query = "SELECT id,user_name FROM vtiger_users WHERE user_name IN ('admin')";
$users = $adb->pquery($userid_Query, array());
コード例 #2
0
ファイル: EditView.php プロジェクト: kikojover/corebos
require_once 'include/utils/utils.php';
require_once 'include/utils/UserInfoUtil.php';
require_once "include/Zend/Json.php";
global $log, $app_strings, $app_list_strings, $mod_strings, $current_user, $currentModule, $default_charset;
$focus = CRMEntity::getInstance($currentModule);
$smarty = new vtigerCRM_Smarty();
$json = new Zend_Json();
$smarty->assign("UPLOADSIZE", $upload_maxsize / 1000000);
// Convert to MB
if ($_REQUEST['upload_error'] == true) {
    echo '<br><b><font color="red"> The selected file has no data or a invalid file.</font></b><br>';
}
//Email Error handling
if ($_REQUEST['mail_error'] != '') {
    require_once "modules/Emails/mail.php";
    echo parseEmailErrorString($_REQUEST['mail_error']);
}
//added to select the module in combobox of compose-popup
if (isset($_REQUEST['par_module']) && $_REQUEST['par_module'] != '') {
    $smarty->assign('select_module', vtlib_purify($_REQUEST['par_module']));
} elseif (isset($_REQUEST['pmodule']) && $_REQUEST['pmodule'] != '') {
    $smarty->assign('select_module', vtlib_purify($_REQUEST['pmodule']));
}
if (isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
    $focus->id = $_REQUEST['record'];
    $focus->mode = 'edit';
    $focus->retrieve_entity_info($_REQUEST['record'], "Emails");
    $query = 'select idlists,from_email,to_email,cc_email,bcc_email from vtiger_emaildetails where emailid =?';
    $result = $adb->pquery($query, array($focus->id));
    $from_email = $adb->query_result($result, 0, 'from_email');
    $smarty->assign('FROM_MAIL', $from_email);