View Single Post
ישן 20-04-07, 19:15   # 9
Hanan
משתמש - היכל התהילה
 
מיני פרופיל
תאריך הצטרפות: Sep 2006
גיל: 38
הודעות: 841

Hanan לא מחובר  

זה עובד סבבה, אבלה רווחים על הפנים:
PHP קוד:
    function SubBuildTree($type$i) {
        global 
$config,$AppIteam
        
$chkTree=mysql_query("SELECT * FROM ".$config->tblcode."_".$AppIteam." WHERE type='0' AND cat='".$type."'"); 
        while (
$Tree=mysql_fetch_array($chkTree)) { 
            
$b=$i 5;
            
$content .= "<span style=\"margin-left: ".$b."pt;\">".$Tree[TitleHEB]."</span><br>\n";
            
$content .= SubBuildTree($Tree[id], $i++);
        }
        return 
$content;
        }

    function 
BuildTree($type$i) {
        global 
$config,$AppIteam
        
$chkTree=mysql_query("SELECT * FROM ".$config->tblcode."_".$AppIteam." WHERE type='0' AND cat='".$type."'"); 
        while (
$Tree=mysql_fetch_array($chkTree)) { 
            
$content .= "<span style=\"margin-right: ".$i."px;\">".$Tree[TitleHEB]."</span><br>\n"
            
$content .= SubBuildTree($Tree[id], 1);
        }
        if (
$Tree[id]) BuildTree($Tree[id], $i);
        return 
$content;
        } 
רעיון?
__________________
פרוייקטים: חדשות, קייטרינג, מילים לשירים, זר מתוק

בניית אתרים - Wise Group Media LTD
  Reply With Quote