<?php  session_start();
if($_SESSION[admin]!=""){

include_once("conn/conn.php");
include_once("config.php");
$sql_t="select * from tb_video_type";
$rst_t=$conn->execute($sql_t);
$array_t=$rst_t->GetRows();
$smarty->assign("video_type",$array_t);

$sql="select tb_video_id,tb_video_name,tb_video_type,tb_video_author,tb_video_date,tb_video_auditing,tb_video_address,tb_video_picture from tb_video ";
$rst=$conn->execute($sql);
$array=$rst->GetRows();

$smarty->assign("video",$array);

$smarty->display("manage_up_video.tpl");


}else{
echo "<script>alert('ÇëÕýÈ·µÇÂ¼!'); window.location.href='index.php';</script>";
}
?>