function GetChildrenPages($parent_id, $class, $level, $start = "") { global $absoluteURL; if ($level < 1) { return; } if (!empty($start)) { $parent_check = "nav_position_id = '{$parent_id}'"; } else { $parent_check = "parent_id = '{$parent_id}'"; } $mySQL = "SELECT settings.feature_id as fid, template.template_id as tid, nav_tab_name as name,nav_tab_id as id,navigation_tab.parent_id,navigation_tab.usort, navigation_tab.status as nav_status, template.template_type as template\r\n\tFROM navigation_tab \r\n\tJOIN template \r\n\tON template.template_id = navigation_tab.template_id \r\n\tJOIN template_feature\r\n\tON template_feature.template_id = template.template_id\r\n\tJOIN settings\r\n\tON settings.feature_id = template_feature.feature_id\r\n\tWHERE navigation_tab.status > 0 \r\n\tAND {$parent_check} \r\n\tAND navigation_tab.archive_date = '' \r\n\tGROUP BY id\r\n\tORDER BY usort ASC"; $recSET = mysql_query($mySQL) or die(mysql_error()); $output = ""; while ($recROW = mysql_fetch_assoc($recSET)) { $name = $recROW['name']; $template = SpecialTrim($recROW['template'], 15); $newlevel = $level - 1; $newclass = $class + 1; $status = $recROW['nav_status']; $id = $recROW['id']; $pid = $recROW['parent_id']; $tid = $recROW['tid']; $usort = $recROW['usort']; $fid = $recROW['fid']; if ($status == '3') { $bgcolor = ''; } if ($status == '2') { $bgcolor = GetSetting('InvisibleColor'); } if ($status > 50) { $bgcolor = '#f9f9f9'; } $output .= "\t\r\n\t\t\t\t<li style='background-color:{$bgcolor}'>\r\n\t\t\t\t\t<div class=\"column1\"><p class=\"level{$class}\">{$name}</p></div>\r\n\t\t\t\t\t<div class=\"column2 middle_column\">{$template}</div>\r\n\t\t\t\t\t<div class=\"column3\">" . iconList($tid, $id, $pid, $usort, $fid) . "\t\t\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"clear\"></div>\r\n\t\t\t\t</li>\r\n\t\t\r\n\t\t"; $output .= GetChildrenPages($id, $newclass, $newlevel); } return $output; }
echo $nav_tab_id; ?> &vignette_id=<?php echo $vignette_id; ?> " rel="lyteframe" rev="width: 680px; height: 350px; scrolling: no;" class="picture" style="background-image:url('<?php echo getVignetteMultimediaPicture($vignette_id, $feature_id, 'medium'); ?> ')"></a> <div> <h5><?php echo ucfirst(SpecialTrim(strip_tags(html_entity_decode(deSanitizeData($recROW2['pagetitle']))), 12)); ?> </h5> <p><?php echo ucfirst(SpecialTrim(strip_tags(html_entity_decode(deSanitizeData($recROW2['body']))), 18)); ?> </p> <ul> <li><a href="<?php echo deSanitizeData($absoluteURL) . "admin.space/feature.base/vignette.uploader/delete/?vignette_id={$vignette_id}"; ?> " rel="lyteframe" rev="width: 430px; height: 130px; scrolling: no;"><img src="<?php echo deSanitizeData($absoluteURL); ?> multimedia/pictures/template/admin.space/icons/x.gif"></a></li> <li><a href="<?php echo deSanitizeData($absoluteURL) . "admin.space/feature.base/vignette.uploader/sort/?nav_tab_id={$nav_tab_id}&fid={$feature_id}&usort={$usort}&dir=up&id={$vignette_id}"; ?> "><img src="<?php echo deSanitizeData($absoluteURL);