Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2496

Přidáno uživatelem David Raška před asi 9 roky(ů)

Upravy:
refs #965: Upraveny spusob ziskani hodnoty v nekonecnu

Zobrazit rozdíly:

freenetis/branches/1.2/application/controllers/membership_interrupts.php
$membership_interrupt->transaction_start();
$from = date('Y-m-d', $form_data['from']);
if (isset($form_data["to_infinity"]) && $form_data["to_infinity"] != "1")
{
$to = date('Y-m-d', $form_data['to']);
}
else
{
$to = '9999-12-31';
}
$from = $this->form->from->get_string_value_with_infinite();
$to = $this->form->to->get_string_value_with_infinite();
$fee_model = new Fee_Model();
$fee = $fee_model->get_by_special_type(Fee_Model::MEMBERSHIP_INTERRUPT);
......
{
$membership_interrupt->transaction_start();
$from = date('Y-m-d', $form_data['from']);
if (isset($form_data["to_infinity"]) && $form_data["to_infinity"] != "1")
{
$to = date('Y-m-d', $form_data['to']);
}
else
{
$to = '9999-12-31';
}
$from = $this->form->from->get_string_value_with_infinite();
$to = $this->form->to->get_string_value_with_infinite();
$membership_interrupt->comment = $form_data['comment'];
freenetis/branches/1.2/application/libraries/forge/Form_Date.php
$this->data['value'] = strtotime($time);
}
public function get_string_value_with_infinite()
{
$name = $this->name . "_infinity";
$ts = new DateTime();
if ($this->parent_form == NULL)
{
$ts->setTimestamp($this->value);
}
elseif ($this->parent_form->$name->value == "1")
{
$ts->setDate(9999,12,31);
}
else
{
$ts->setTimestamp($this->value);
}
return $ts->format('Y-m-d');
}
} // End Form Dateselect
freenetis/branches/1.2/application/views/js/base.php
if (this.checked)
{
$("#"+id).attr('disabled', 'disabled');
//$("#"+id).nextAll('.error').remove();
$("#"+id).val('9999-12-31');
}
else
{

Také k dispozici: Unified diff