#4 xml parsing

This commit is contained in:
Philip Häusler 2011-06-13 17:54:05 +02:00
parent dafbb0c10e
commit 89fd736f36
1 changed files with 10 additions and 7 deletions

View File

@ -16,13 +16,16 @@ function admin_import() {
switch ($step) {
case "input" :
$html .= template_render('../templates/admin_import_input.html', array (
'link' => page_link_to('admin_import')
));
$data = new SimpleXMLElement(file_get_contents('../import/27C3_sample.xcs'));
print_r($data->vcalendar);
break;
$ok = false;
if (!$ok) {
$html .= template_render('../templates/admin_import_input.html', array (
'link' => page_link_to('admin_import')
));
$data = new SimpleXMLElement(file_get_contents('../import/27C3_sample.xcs'));
print_r($data->vcalendar);
break;
}
case "check" :
break;