GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 04-Aug-2003, 05:04
zuzupus zuzupus is offline
Junior Member
 
Join Date: Jul 2003
Posts: 70
zuzupus is an unknown quantity at this point

directories


hi,

i created one admin page where admin can give the rights

Directory under which to create new one and Directory to copy rights from
u can c from attached img the problem is when i click on left directory let say SPECIALS it opens some child trees i want something like when i click SPECIALS at same time right side SPECIAL also show child trees

hope its understandable

PHP Code:

<? $side = 1; list($tree, $maxdepth) = make_tree($session->opens[$side-1]); ?>
                        <table border="0" cellpadding="0" cellspacing="0">
                            <th style="line-height: 150%" colspan="<?=($maxdepth+1) ?>">Directory under which to create new one<br /></th>
                            <tr>
                                    <td class="black2"><input type="radio" name="ddir" value="0" id="ddir0" /></td>
                                    <td class="black2 colspan="<?=($maxdepth+1) ?>">
                                        &nbsp;<label for="<?="ddir0" ?>">&lt;top level&gt;</label>
                                    </td>
                            </tr>
                            <? foreach($tree as $r) { ?>
                                <tr>
                                    <?=str_repeat('<td></td>', $r->depth-1) ?>
                                    <td class="black2"><input type="radio" name="ddir" value="<?=$r->sys_pk ?>" id="<?="dir{$r->sys_pk}" ?>" /></td>
                                    <td width="99%" class="black2"<?=($r->depth < $maxdepth ? (' colspan="'.($maxdepth-$r->depth+1).'"') : '') ?>>
                                        &nbsp;<label for="<?="dir{$r->sys_pk}" ?>"><? if ($r->mode) { ?><a href="<?=htmlentities("diradmin.phtml?click=".($r->mode == 2 ? 1 : 2)."&id={$r->sys_pk}&side={$side}") ?>" style="color: inherit;"><?=htmlentities(($r->mode == 2) ? '-' : '+') ?><? } ?><?=htmlentities($r->name) ?><? if ($r->mode) { ?></a><? } ?></label>
                                    </td>
                                </tr>
                            <? } ?>
                        </table>


<td valign="top">
                        <? $side = 2; list($tree, $maxdepth) = make_tree($session->opens[$side-1]); ?>
                        <table border="0" cellpadding="0" cellspacing="0">
                            <th style="line-height: 150%" colspan="<?=($maxdepth+1) ?>">Directory to copy rights from<br /></th>
                            <? foreach($tree as $r) { ?>
                                <tr>
                                    <?=str_repeat('<td></td>', $r->depth-1) ?>
                                    <td class="black2"><input type="radio" name="dir" value="<?=$r->sys_pk ?>" id="<?="dir{$r->sys_pk}" ?>" /></td>
                                    <td width="99%" class="black2"<?=($r->depth < $maxdepth ? (' colspan="'.($maxdepth-$r->depth+1).'"') : '') ?>>
                                        &nbsp;<label for="<?="dir{$r->sys_pk}" ?>"><? if ($r->mode) { ?><a href="<?=htmlentities("diradmin.phtml?click=".($r->mode == 2 ? 1 : 2)."&id={$r->sys_pk}&side={$side}") ?>" style="color: inherit;"><?=htmlentities(($r->mode == 2) ? '-' : '+') ?><? } ?><?=htmlentities($r->name) ?><? if ($r->mode) { ?></a><? } ?></label>
                                    </td>
                                </tr>
                            <? } ?>
                        </table><br />
                    </td>

the link is server2.vitodesign.com

thanks in advance
Attached Images
File Type: jpg dir.jpg (55.4 KB, 5 views)
  #2  
Old 04-Aug-2003, 09:44
zuzupus zuzupus is offline
Junior Member
 
Join Date: Jul 2003
Posts: 70
zuzupus is an unknown quantity at this point

Re: directories


anybody understood my problem please help me out in this situation im helpless even i never faced this kind of problem that if u click on one link then same link on other hand will open

thanks in advance
  #3  
Old 05-Aug-2003, 04:44
zuzupus zuzupus is offline
Junior Member
 
Join Date: Jul 2003
Posts: 70
zuzupus is an unknown quantity at this point

Re: Re: directories


still nobody understood this post have a look ar attached img
Attached Images
File Type: gif dir.gif (47.2 KB, 3 views)
  #4  
Old 05-Aug-2003, 06:08
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
zuzupus, I don't think anyone here is intentionally ignoring your thread; at least I am not

It's just that I don't know the answer and I really wish I can help you but instead of telling you this, I didn't reply so that someone else reading this someday will reply with a suggestion to your problem.
  #5  
Old 05-Aug-2003, 06:14
zuzupus zuzupus is offline
Junior Member
 
Join Date: Jul 2003
Posts: 70
zuzupus is an unknown quantity at this point
im really sorry as even i dont no how to manage this radio button stuff when clciking on left at the same time i can get dir opened on right side

sorry for ur touble
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Category: Search Engines / Directories admin GIDTopsites™ 0 31-Aug-2003 02:46
Our very special offers started!! abc5net Web Hosting Advertisements & Offers 0 15-Jul-2003 12:24
Link submission pages to search engines directories invisible web but not FFA or PPC jrobbio Advertising & Affiliates Forum 4 10-Apr-2003 20:01

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 15:00.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.