本文整理汇总了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 ';