Click to See Complete Forum and Search --> : directories


zuzupus
08-04-2003, 05:21 AM
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



<? $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 http://server2.vitodesign.com/scripts/diradmin.phtml

thanks in advance

zuzupus
08-04-2003, 09:55 AM
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

Bootsman123
08-04-2003, 10:12 AM
I don't quite get you problem.

zuzupus
08-04-2003, 10:22 AM
thanks for feedback did u seen the link or attached jpg
if not understood im sorry

i can clear once again

on left side on right side

+SPECIALS +SPECIALS
when i clcik on this when i clcik on this
i get 3 child tree i get 3 child tree
EXPO EXPO
PRESS PRESS
Photoservice Photoservice

both r same i want when i clcik left side specials the tree will opn automatically on right side for specials i dont have to clcik on right side everytime

is it possible without going right side it will happen

thanks