Exemplo n.º 1
0
		foreach ($rpt_array['totals'] as $fld){
		    if ($fld['show']) {
			$grouptotals_sum[$arr['name']][fldname($fld)] = 0;
		    }
		}
	    }
	}

	//display data
	if ($PageSize < 0 || $groupno >= $pagestart && $groupno <= $pageend) {
	    $row["row_data"] = true;
	    /////////////////////////////////
	    $keylink = "";
	    $arrKeys = $gSettings->getTableKeys();
	    if (!is_wr_project()) {
		$arrKeysTbl = DBGetTableKeys($rpt_array['tables'][0]);
		$arrKeys = array();
		foreach ($arrKeysTbl as $i => $k){
		    $arrKeys[$i] = $rpt_array['tables'][0] . "." . $arrKeys[$i];
		}
	    }
	    for ($j = 0; $j < count($arrKeys); $j++){
		$keylink.="&key" . ($j + 1) . "=" . runner_htmlspecialchars(rawurlencode(db_fld_value($data, $arrKeys[$j])));
	    }
	    $arrFields = array();
	    foreach ($rpt_array['totals'] as $f_key => $fld){
		if ($fld["show"]) {
		    $value = "";
		    if ($fld["view_format"] == FORMAT_DATABASE_IMAGE && is_wr_project()) {
			if ($render_mode != MODE_EXPORT) {
			    if ($fld["show_thumbnail"]) {
Exemplo n.º 2
0
{
	if($fld["table"]==$table && $fld["name"]==$field)
	{
		if($fld["show"])
			$show=true;
		break;
	}
}
if(!$show)
	exit();

//	security - end

//	construct sql

$keys = DBGetTableKeys($table);
if(!count($keys))
	exit();
$strkeywhere = "";
foreach($keys as $idx=>$k)
{
	if(strlen($strkeywhere))
		$strkeywhere.=" and ";
	$strkeywhere.=AddTableWrappers($table).".".AddFieldWrappers($k)."=";
	$type=WRGetFieldType($table.".".$k);
	if(NeedQuotes($type))
		$strkeywhere.=db_prepare_string(postvalue("key".($idx+1)));
	else
	{
		$value=postvalue("key".($idx+1));
		$strvalue = (string)$value;