20 lines
493 B
PHP
20 lines
493 B
PHP
<?php
|
|
|
|
$sql = "SELECT * FROM qiangwan_hw.gw_teamwork limit 1";
|
|
$data = getonerecord2($sql);
|
|
|
|
$sql="select id,img_more from tab_cooperative";
|
|
$query = getonerecord2($sql);
|
|
$img_more = $query['img_more'];
|
|
if($img_more){
|
|
$sql="select path from sys_picture where id in($img_more)";
|
|
$query=exec_db2($sql);
|
|
while ($row=mysqli_fetch_assoc($query)){
|
|
$list[]=$row;
|
|
}
|
|
}
|
|
$tpl->assign('data',$data);
|
|
$tpl->assign('list',$list);
|
|
$tpl->display("{$tp}.html");
|
|
|
|
?>
|