<?php 
 $sql="select * from  ".TABLE_ALBUM."  where  pid='$pid'   $andlangbh order by pos desc,id desc";
 //echo $sql;
   $rowlist = getall($sql);
 
    ?>
 
     <?php
	   if($rowlist == 'no') {
         //$loactlink= $PHP_SELF."?pid=$pid&act=add";
        //jump($loactlink);//
        echo '<p style="padding:10px">没有相关图片，请添加。</p>';
     }
     
    else{
        echo '<strong style="display:block;background:#e2e2e2;padding:5px">修改图片</strong>';
      echo '<ul>';
        foreach($rowlist as $v){
            $imgsqlname = $v['kvsm'];
			$title = $v['title'];
            $tidsidebar = $v['id'];
            if($title=='') $title='无标题'; 
           
 //mod_album.php?lang=en&pid=&ppid=album20180726_1147127952&file=edit&tid=10&act=edit
 $link =  $jumpv_file.'&tid='.$tidsidebar.'&act=edit';

 if($tid==$tidsidebar) $activesidebar2 = ' background:red;color:#fff';
 else $activesidebar2 = '';
           echo '<li> <a style=" display:block;padding:5px;'.$activesidebar2.'" href="'.$link.'"><i class="fa fa-angle-right"></i> '.$title.'</a></li>';

        }
      
    echo '</ul>';  
    }
?>