Beispiel #1
0
    } else {
        echo "<option value= \"{$i}\" selected = \"selected\">{$i}</option>\n";
    }
}
if ($expense[day] == 100) {
    echo "<option value= \"100\" selected = \"selected\">End</option>\n";
} else {
    echo "<option value= \"100\">End</option>\n";
}
?>
      </select>
      <br/>OR...specific date in future:
      <?php 
$sel_month = date("n", strtotime($expense['due_date']));
$sel_day = date("j", strtotime($expense['due_date']));
echo date_selector($sel_month, $sel_day);
?>
    </td>

    <!--TOTAL -->
    <td>
      <input style = "text-align: center;" type = "text" class="text_input" name = "total_exp" 
      <?php 
if ($expense['type'] == 2) {
    echo "value =\"" . $expense[daily_amt] . "\"></input>&nbsp;*per day";
} else {
    echo "value =\"" . $expense[total_exp] . "\"></input>";
}
?>
    </td>
<tr>
  <form method= "post">
    <!--DATE -->
    <td>
      <?php 
$month_id = date("n");
$day_id = date("j");
echo date_selector($month_id, $day_id);
?>
    </td>

    <!--//TYPE-->
    <td><input class ="text_input" name = "type" type= "text"></input></td>


    <!--//EXPENSE-->
    <td><input class ="text_input_wider" name = "expense" type= "text"></input></td>

    <!--//CLEARED?-->
    <td>
      <select name= "cleared">
	<option  value = "1">yes</option>";
	<option  value = "0" selected = "selected">no</option>
      </select>
    </td>

    <!--//AMOUNT-->
    <td ><input class ="text_input" style= "text-align:right" name = "amount" type= "text"></input></td>
    <td></td>

    <!--//BUDGETED AS -->
?>
<br />
<br />
<?php 
echo '<div class="fieldname">' . picto_tag('picto_outings') . __('name') . ' </div>' . input_tag('onam', null, array('autofocus' => 'autofocus'));
echo georef_selector('With GPS track:');
$activities_raw = $sf_data->getRaw('activities');
include_partial('routes_filter', array('activities' => $activities_raw));
include_partial('summits/summits_short_filter');
include_partial('huts/huts_short_filter');
include_partial('parkings/parkings_filter');
echo __('outing_with_public_transportation') . ' ' . bool_selector('owtp');
?>
<br /><br />
<?php 
echo __('Date') . __('&nbsp;:') . ' ' . date_selector(array('month' => true, 'year' => true, 'day' => true));
?>
<div data-act-filter="1 2 5 7" style="display:none">
<?php 
echo __('avalanche_infos') . ' ' . select_tag('avdate', options_for_select(array('2-3-4-5' => __('yes'), '1' => __('no'), ' ' => __('filled in'), '-' => __('nonwell informed')), '', array('include_blank' => true)));
?>
</div>
<br />
<?php 
echo __('filter language') . __('&nbsp;:') . ' ' . lang_selector('ocult');
if ($is_connected) {
    echo label_for('myoutings', __('Search in my outings')) . ' ' . checkbox_tag('myoutings', 1, false);
}
?>
<br />
<?php 
include_once 'ressources/class.system.network.inc';
include_once 'ressources/class.mysql.inc';
include_once 'ressources/class.artica.graphs.inc';
include_once 'ressources/class.calendar.inc';
//ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);
$users = new usersMenus();
if (!$users->AsAnAdministratorGeneric) {
    echo "<H1>No right!!!</H1>";
    die;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["selector"])) {
    date_selector();
    exit;
}
if (isset($_GET["30days"])) {
    trentedays();
    exit;
}
if (isset($_GET["30daysSize"])) {
    trentedayssize();
    exit;
}
if (isset($_GET["build-calendar"])) {
    date_build_calendar();
    exit;
}
if (isset($_GET["ChangeLabelsText"])) {