Ejemplo n.º 1
0
$bs_cache = $mybssql->get_cache();
foreach ($bzone as $zoneid => $bosslist) {
    $zbcode .= '<table width="100%" border="0" cellspacing="1" cellpadding="2">';
    $zbcode .= '<tr><th colspan="4">' . $user->lang[$zoneid]['long'] . '</th></tr>';
    $zbcode .= '<tr><th>' . $user->lang['bs_ol_in'] . '</th><th>' . $user->lang['bs_ol_fd'] . '</th><th>' . $user->lang['bs_ol_ld'] . '</th><th>' . $user->lang['bs_ol_co'] . '</th></tr>';
    $zbcode .= '<tr>';
    $zbcode .= '<td width="60%" class="row2">' . $user->lang[$zoneid]['long'] . '</td>';
    $zbcode .= '<td class="row1">' . bs_date2text($bs_cache[$zoneid]['fvd']) . '</td>';
    $zbcode .= '<td class="row1">' . bs_date2text($bs_cache[$zoneid]['lvd']) . '</td>';
    $zbcode .= '<td class="row1">' . $bs_cache[$zoneid]['vc'] . '</td>';
    $zbcode .= '</tr>';
    foreach ($bosslist as $bossid) {
        $zbcode .= '<tr>';
        $zbcode .= '<td class="row2">' . $user->lang[$bossid]['long'] . '</td>';
        $zbcode .= '<td class="row1">' . bs_date2text($bs_cache[$zoneid]['bosses'][$bossid]['fkd']) . '</td>';
        $zbcode .= '<td class="row1">' . bs_date2text($bs_cache[$zoneid]['bosses'][$bossid]['lkd']) . '</td>';
        $zbcode .= '<td class="row1">' . $bs_cache[$zoneid]['bosses'][$bossid]['kc'] . '</td>';
        $zbcode .= '</tr>';
    }
    $zbcode .= "</table>";
}
function bs_date2text($date)
{
    global $user;
    if ($date == BS_MAX_DATE or $date == BS_MIN_DATE) {
        return $user->lang['never'];
    } else {
        return strftime($user->lang['dateFormat'], $date);
    }
}
//Framework include
Ejemplo n.º 2
0
    $data['strings'] = $parse_array['pb_' . $entity];
}
$data['fd_offs'] = $offset_array[$entity]['fd'];
$data['ld_offs'] = $offset_array[$entity]['ld'];
$data['co_offs'] = $offset_array[$entity]['counter'];
$zbcode = '<table width="100%" border="0" cellspacing="1" cellpadding="2">';
$zbcode .= '<tr class="' . $eqdkp->switch_row_class() . '">';
$zbcode .= '<td>' . $user->lang['bs_ol_fd'] . '</td>';
$zbcode .= '<td>';
$zbcode .= $jquery->Calendar("fd_offs", bs_date2text($data['fd_offs']), '', array('format' => $user->lang['bs_out_date_format']));
$zbcode .= '</td>';
$zbcode .= '</tr>';
$zbcode .= '<tr class="' . $eqdkp->switch_row_class() . '">';
$zbcode .= '<td>' . $user->lang['bs_ol_ld'] . '</td>';
$zbcode .= '<td>';
$zbcode .= $jquery->Calendar("ld_offs", bs_date2text($data['ld_offs']), '', array('format' => $user->lang['bs_out_date_format']));
$zbcode .= '</td>';
$zbcode .= '</tr>';
$zbcode .= '<tr class="' . $eqdkp->switch_row_class() . '">';
$zbcode .= '<td>' . $user->lang['bs_ol_co'] . '</td>';
$zbcode .= '<td><input type="text" name="co_offs" size="3" value="' . $data['co_offs'] . '" class="input" /></td>';
$zbcode .= '</tr>';
$zbcode .= '<tr class="' . $eqdkp->switch_row_class() . '">';
$zbcode .= '<td>' . $user->lang['bs_ec_strings'] . '</td>';
$zbcode .= '<td><input type="text" name="strings" size="80" value="' . $data['strings'] . '" class="input" /></td>';
$zbcode .= '</tr>';
if ($mode == 'zone') {
    $zbcode .= '<tr class="' . $eqdkp->switch_row_class() . '">';
    $zbcode .= '<td>' . $user->lang['bs_ec_show_bp'] . '</td>';
    $bp_checked = $data['show_bp'] > 0 ? 'checked="checked"' : '';
    $zbcode .= '<td><input type="checkbox" name="show_bp" value="1" ' . $bp_checked . ' /></td>';