Ejemplo n.º 1
0
function get_month($index, $long = FALSE)
{
    if ($long) {
        $months = get_months_long();
    } else {
        $months = get_months();
    }
    return $months[$index - 1];
}
Ejemplo n.º 2
0
 function _get_common_report_data()
 {
     $data = array();
     $data['report_date_range_simple'] = get_simple_date_ranges();
     $data['months'] = get_months();
     $data['days'] = get_days();
     $data['years'] = get_years();
     $data['selected_month'] = date('n');
     $data['selected_day'] = date('d');
     $data['selected_year'] = date('Y');
     return $data;
 }
Ejemplo n.º 3
0
 function _get_common_report_data($time = false)
 {
     $data = array();
     $data['report_date_range_simple'] = get_simple_date_ranges($time);
     $data['months'] = get_months();
     $data['days'] = get_days();
     $data['years'] = get_years();
     $data['hours'] = get_hours($this->config->item('time_format'));
     $data['minutes'] = get_minutes();
     $data['selected_month'] = date('m');
     $data['selected_day'] = date('d');
     $data['selected_year'] = date('Y');
     return $data;
 }
Ejemplo n.º 4
0
        $arr_bank_holidays[] = $easter + 86400 * 39;
        // Ascension
        $arr_bank_holidays[] = $easter + 86400 * 50;
        // Pentecote
        return $arr_bank_holidays;
    }
    if (request_confirm('End_Add_Event')) {
        insert_db('Caranille_Events', $_POST);
    }
    if (request_confirm('End_Edit_Event')) {
        update_db('Caranille_Events', $_POST);
    }
    $month = request_confirm('m') ? str_pad(request_get('m'), 2, "0", STR_PAD_LEFT) : date('m');
    $year = request_confirm('y') ? str_pad(request_get('y'), 4, "0", STR_PAD_LEFT) : date('Y');
    debug_log("period({$year},{$month})");
    $calendar = get_months($year, $month);
    foreach ($calendar as $day => $week) {
        $events[$day] = get_db('request_event', array('date' => "{$year}-{$month}-{$day}%", 'guild' => guild_data('Guild_ID')));
    }
    /**
    	$list_events = list_db('list_event',array(
    			'date' => "$year-$month%",
    			'guild' => guild_data('Guild_ID')
    		));
    **/
    $pm = intval($month) == 1 ? 12 : $month - 1;
    $nm = intval($month) == 12 ? 1 : $month + 1;
    $py = intval($month) == 1 ? $year - 1 : $year;
    $ny = intval($month) == 12 ? $year + 1 : $year;
    $date = new DateTime($year . "-" . $month . "-01");
}
                    <?php 
        echo $pendingstocks->quantity;
        ?>
                </td>
                <td>
                    <?php 
        echo $pendingstocks->expected_time_of_arrival;
        ?>
                </td>
                
                <?php 
        if (get_months($pendingstocks->expected_time_of_arrival) < 3 || get_months($pendingstocks->expected_time_of_arrival) == 3) {
            echo "<td style='background-color: #00FF00'>" . "" . "</td>";
        } elseif (get_months($pendingstocks->expected_time_of_arrival) > 3 && get_months($pendingstocks->expected_time_of_arrival) < 6 || get_months($pendingstocks->expected_time_of_arrival) == 6) {
            echo "<td style='background-color: #FFFF00'>" . "" . "</td>";
        } elseif (get_months($pendingstocks->expected_time_of_arrival) > 6 && get_months($pendingstocks->expected_time_of_arrival) < 9 || get_months($pendingstocks->expected_time_of_arrival) == 9) {
            echo "<td style='background-color: #FF9900'>" . "" . "</td>";
        } else {
            echo "<td style='background-color: #FF0000 '>" . "" . "</td>";
        }
        ?>
            </tr>

            <?php 
        $count++;
    }
    ?>
        </tbody>
        <?php 
}
?>
Ejemplo n.º 6
0
?>
								</td>
							</tr>
							<tr>
								<td>
									<strong>Best Season To Visit</strong>
								</td>
								<td>
									: 
								</td>
								<td>
									<?php 
if ($record_temple->months == 'All') {
    echo 'All';
} else {
    echo get_months($record_temple->months);
}
?>
								</td>
							</tr>
							<tr>
								<td>
									<strong>Languages</strong>
								</td>
								<td>
									: 
								</td>
								<td>
									 <?php 
echo ucwords($record_temple->languages);
?>
Ejemplo n.º 7
0
$mns = array('01' => 'Jan', '02' => 'Feb', '03' => 'Mar', '04' => 'Apr', '05' => 'May', '06' => 'Jun', '07' => 'Jul', '08' => 'Aug', '09' => 'Sep', '10' => 'Oct', '11' => 'Nov', '12' => 'Dec');
$dateformat = 8;
$colformat = 8;
$total_all = $curr_year = 0;
$str_years = '';
if (count($argv) > 1) {
    foreach ($argv as $y) {
        if (!in_array($y, $allowed_years)) {
            continue;
        }
        $str_years .= $y . ' ';
        $months = array_merge($months, get_months($y));
    }
} else {
    $str_years = date('y');
    $months = array_merge(get_months(date('y')));
}
$db->Query("SELECT DISTINCT product FROM transactions WHERE 1");
while (list($p) = $db->FetchRow()) {
    $p2 = $p;
    switch ($p) {
        case 'cb_referral':
            $p2 = 'CB REF';
            break;
        case 'directad':
            $p2 = 'DirAD';
            break;
        case 'digipanel_license':
            $p2 = 'DP';
            break;
        case 'elp_mem_monthly':
Ejemplo n.º 8
0
 // front page
 if ($_GET['page_name'] == 'front') {
     if (!empty($config['front']['article_id'])) {
         // this is a specific article, selected in the edit room
         $article = get_article($config['front']['article_id']);
     } else {
         // determine what content goes on front page, and which list style
         switch ($config['front']['page_style']) {
             case 'custom':
                 break;
             case 'latest_post':
                 $article = get_article();
                 break;
             case 'latest_month':
                 // get list of valid months
                 $months_list = get_months();
                 $current_page = empty($_GET['page']) ? '1' : (int) $_GET['page'];
                 $_GET['month'] = $months_list[$current_page - 1]['month'];
                 $_GET['year'] = $months_list[$current_page - 1]['year'];
                 // use front list style setting
                 $config['layout']['per_page'] = 0;
                 // override per page value in this case
                 $config['layout']['list_style'] = $config['front']['front_list_style'];
                 $articles = get_articles($config['layout']);
                 break;
             case 'per_page':
             default:
                 $config['layout']['list_style'] = $config['front']['front_list_style'];
                 $articles = get_articles($config['layout']);
                 break;
         }
Ejemplo n.º 9
0
<?php

if (!($months = get_months())) {
    return;
}
?>
<aside class="block">
  <h3 class="block-title"><?php 
_e('Archives', 'wb');
?>
</h3>
  <div class="block-body">
    <ul class="nav nav-pills nav-stacked">
<?php 
foreach ($months as $month) {
    $label = ucfirst(date_i18n('F Y', mktime(0, 0, 0, $month->month, 1, $month->year)));
    $url = get_month_link($month->year, $month->month);
    $active = is_month() && get_query_var('monthnum') == $month->month && get_query_var('year') == $month->year;
    ?>
      <li<?php 
    echo $active ? ' class="active"' : '';
    ?>
>
<?php 
    if ($active && get_option('show_on_front') === 'page') {
        ?>
        <a href="<?php 
        echo get_permalink(get_option('page_for_posts'));
        ?>
" class="close"><i class="glyphicon glyphicon-remove"></i></a>
<?php