Файл в PHP
This commit is contained in:
@ -21,7 +21,6 @@
|
|||||||
//include("../include/toExcell.php");
|
//include("../include/toExcell.php");
|
||||||
//require_once("config.php");
|
//require_once("config.php");
|
||||||
|
|
||||||
|
|
||||||
function getCurrentDirectory() {
|
function getCurrentDirectory() {
|
||||||
$path = dirname($_SERVER['PHP_SELF']);
|
$path = dirname($_SERVER['PHP_SELF']);
|
||||||
$position = strrpos($path,'/') + 1;
|
$position = strrpos($path,'/') + 1;
|
||||||
@ -815,9 +814,16 @@
|
|||||||
{
|
{
|
||||||
if($nextnode->getAttribute("vt")=="b"){ if($row[$nextnode->getAttribute("n")]===false) { $row[$nextnode->getAttribute("n")]="0"; } else if($row[$nextnode->getAttribute("n")]===true) { $row[$nextnode->getAttribute("n")]="1"; } }
|
if($nextnode->getAttribute("vt")=="b"){ if($row[$nextnode->getAttribute("n")]===false) { $row[$nextnode->getAttribute("n")]="0"; } else if($row[$nextnode->getAttribute("n")]===true) { $row[$nextnode->getAttribute("n")]="1"; } }
|
||||||
|
|
||||||
if($nextnode->getAttribute("vt")=="blob") { $xmlstring.='<prop n="'.$nextnode->getAttribute("n").'"><![CDATA['.$row[$nextnode->getAttribute("cd")].']]></prop>'."\n"; }
|
if($nextnode->getAttribute("vt")=="blob") { //Только blob не file так как file как обычная текстовая строка (100 символов)
|
||||||
//else if($nextnode->getAttribute("vt")=="file") { $xmlstring.='<prop n="'.$nextnode->getAttribute("n").'"><![CDATA['.$row[$nextnode->getAttribute("cd")].']]></prop>'."\n"; }
|
if(array_key_exists($nextnode->getAttribute("cd"), $row)) {
|
||||||
else { $xmlstring.='<prop n="'.$nextnode->getAttribute("n").'"><![CDATA['.$row[$nextnode->getAttribute("n")].']]></prop>'."\n"; }
|
$xmlstring .= '<prop n="' . $nextnode->getAttribute("n") . '"><![CDATA[' . $row[$nextnode->getAttribute("cd")] . ']]></prop>' . "\n";
|
||||||
|
}else{
|
||||||
|
sendError('Поле "'.$nextnode->getAttribute("cd").'" не найдено в результирующем наборе!');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$xmlstring.='<prop n="'.$nextnode->getAttribute("n").'"><![CDATA['.$row[$nextnode->getAttribute("n")].']]></prop>'."\n";
|
||||||
|
}
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
sendError('Поле "'.$nextnode->getAttribute("n").'" не найдено в результирующем наборе!');
|
sendError('Поле "'.$nextnode->getAttribute("n").'" не найдено в результирующем наборе!');
|
||||||
|
|||||||
Reference in New Issue
Block a user