function right_menu($q,$col){
global $ar,$db;
  if($col=='folder') {
    $sql1 = "select `folder`,id,slug from `cp_filephp` where del=0 and folder='".$q."' order  by `folder`,slug";
  } else {
    $sql1 = "select `folder`,id,slug from `cp_filephp` where del=0 order  by `folder`,slug";
  }
  $res1 = mysqli_query($db, $sql1);
  while($r1 = mysqli_fetch_assoc($res1)) {
    //$dt[$c]['folder']=$r1['folder'];
    if(isset($_GET['id']) && $_GET['id']==$r1['id']) {
      $sl='<b>'.substr($r1['folder'],9)."".$r1['slug'].'</b>';
    } else {
      $sl=substr($r1['folder'],9)."".$r1['slug'];
    }
    ?>
    <a href="?op=filephp&op2=edit&id=<?=$r1['id'];?>&col=folder&q=<?=$r1['folder'];?>"><?=$sl;?></a><br>
    <?php
  }
}