Assembla home | Assembla project page
 

Ticket #30 (closed Bug: fixed)

Opened 8 months ago

Last modified 7 months ago

$this->set_type_time

Reported by: bola99bola00 Assigned to: somebody
Priority: Baja Milestone:
Component: component1 Version: 0.5
Severity: Normal Keywords:
Cc:

Description

Usando el $this->set_type_time, muestra

Notice: Undefined index: fl_fecha in C:\wamp\www\ikum\library\kumbia\generator\components.php on line 483

Notice: Undefined index: value in C:\wamp\www\ikum\library\kumbia\generator\components.php on line 483

Notice: Undefined index: fl_fecha in C:\wamp\www\ikum\library\kumbia\generator\components.php on line 486

Notice: Undefined offset: 1 in C:\wamp\www\ikum\library\kumbia\generator\components.php on line 493 . . . Notice: Undefined offset: 2 in C:\wamp\www\ikum\library\kumbia\generator\components.php on line 503

Lo q hice fue comentarear codigo de ese archivo components.php

Aqui la funcion a la q le hice comentareos

static function build_time_component($com='', $name, $form){
		$arr = array();
		/*if(!$_REQUEST["fl_$name"]&&$com['value']){

			$_REQUEST["fl_$name"] = $com['value'];
		}
		if($_REQUEST["fl_$name"]){
			ereg("([0-2][0-9]):([0-5][0-8])", $_REQUEST["fl_$name"], $arr);
		}*/
		Generator::forms_print("<label for='flid_$name'><strong>".$com['caption']." </strong></label></td><td>\n");
		Generator::forms_print("<select name='time{$name}_hour' id='time{$name}_hour'
		onchange='document.getElementById(\"flid_$name\").value = document.getElementById(\"time{$name}_hour\").options[document.getElementById(\"time{$name}_hour\").selectedIndex].value+\":\"+document.getElementById(\"time{$name}_minutes\").options[document.getElementById(\"time{$name}_minutes\").selectedIndex].value' disabled='disabled'>\n");
		for($i=0;$i<=23;$i++){
			/*if($arr[1]!=sprintf("%02s", $i)){
				Generator::forms_print("<option value='".sprintf("%02s", $i)."'>".sprintf("%02s", $i)."</option>\n");
			} else {*/
				Generator::forms_print("<option value='".sprintf("%02s", $i)."' selected='selected'>".sprintf("%02s", $i)."</option>\n");
			//}
		}
		Generator::forms_print("</select>:");
		Generator::forms_print("<select name='time{$name}_minutes' id='time{$name}_minutes'
		onchange='document.getElementById(\"flid_$name\").value = document.getElementById(\"time{$name}_hour\").options[document.getElementById(\"time{$name}_hour\").selectedIndex].value+\":\"+document.getElementById(\"time{$name}_minutes\").options[document.getElementById(\"time{$name}_minutes\").selectedIndex].value' disabled='disabled'>\n");
		for($i=0;$i<=59;$i++){
			/*if($arr[2]!=sprintf("%02s", $i)){
				Generator::forms_print("<option value='".sprintf("%02s", $i)."'>".sprintf("%02s", $i)."</option>\n");
			} else {*/
				Generator::forms_print("<option value='".sprintf("%02s", $i)."' selected='selected'>".sprintf("%02s", $i)."</option>\n");
			//}
		}
		Generator::forms_print("</select>");
		Generator::forms_print("<input type='hidden' name='fl_$name' id='flid_$name' value='00:00' />");
	}

Change History

11/26/08 14:05:15 changed by deivinsontejeda

  • status changed from new to closed.
  • resolution set to fixed.

Solventado bajo revisión r708

Gracias!!!