本文整理匯總了PHP中IEM::timeGetUserDisplayString方法的典型用法代碼示例。如果您正苦於以下問題:PHP IEM::timeGetUserDisplayString方法的具體用法?PHP IEM::timeGetUserDisplayString怎麽用?PHP IEM::timeGetUserDisplayString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類IEM
的用法示例。
在下文中一共展示了IEM::timeGetUserDisplayString方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ShowSettingsPage
//.........這裏部分代碼省略.........
$cron_options = array_keys($cron_schedule);
foreach ($cron_options as $p => $cron_option) {
if ($cron_option == 'triggeremails_p') {
$GLOBALS['Settings_CronOptionsList'] .= '<tr style="display:none;"><td><input type="hidden" name="cron_triggeremails_p" value="' . SENDSTUDIO_CRON_TRIGGEREMAILS_P . '" /></td></tr>';
continue;
}
$opt_name = 'Cron_Options';
$GLOBALS[$opt_name] = '';
$settings_var = ${'SENDSTUDIO_CRON_' . strtoupper($cron_option)};
$GLOBALS['Cron_Option_SelectName'] = 'cron_' . $cron_option;
$GLOBALS['Cron_Option_Heading'] = GetLang('Cron_Option_'.$cron_option.'_Heading');
foreach ($api->Get($cron_option . '_options') as $opt => $desc) {
$selected = '';
if ($opt == $settings_var) {
$selected = ' SELECTED';
}
$GLOBALS[$opt_name] .= '<option value="' . $opt . '"' . $selected . '>' . GetLang('Cron_Option_' . $desc) . '</option>';
}
$GLOBALS['Cron_LastRun'] = $GLOBALS['Cron_NextRun'] = '';
$last_run = $cron_schedule[$cron_option]['lastrun'];
if ($last_run > 0) {
$GLOBALS['Cron_LastRun'] = IEM::timeGetUserDisplayString(GetLang('Cron_DateFormat'), $last_run);
if ($settings_var > 0) {
$next_run = $last_run + ($settings_var * 60);
$GLOBALS['Cron_NextRun'] = IEM::timeGetUserDisplayString(GetLang('Cron_DateFormat'), $next_run);
} else {
$GLOBALS['Cron_NextRun'] = GetLang('Cron_Option_Disabled');
}
} else {
$GLOBALS['Cron_LastRun'] = GetLang('Cron_Option_HasNotRun');
}
// Skipping any problematic CRON schedule
if (!defined('LNG_Cron_Option_'.$cron_option.'_Heading')) {
continue;
}
$GLOBALS['Cron_Option_Heading'] = GetLang('Cron_Option_'.$cron_option.'_Heading');
$GLOBALS['Settings_CronOptionsList'] .= $this->ParseTemplate('Settings_Cron_Option', true, false);
}
$GLOBALS['Imap_Selected'] = $GLOBALS['Pop3_Selected'] = '';
if (!isset($SENDSTUDIO_BOUNCE_IMAP) && SENDSTUDIO_BOUNCE_IMAP == 1) {
$GLOBALS['Imap_Selected'] = ' SELECTED ';
} else {
$GLOBALS['Pop3_Selected'] = ' SELECTED ';
}
if (isset($SENDSTUDIO_BOUNCE_IMAP) && $SENDSTUDIO_BOUNCE_IMAP == 1) {
$GLOBALS['Imap_Selected'] = ' SELECTED ';