コード例 #1
0
    $xtpl->parse('main.err');
}
$xtpl->assign('LANG', $lang_module);
if (!empty($data)) {
    $xtpl->assign('DATA', $data);
    $is_show = $data['is_show'] ? "checked=\"checked\"" : "";
    $xtpl->assign('IS_SHOW', $is_show);
}
if (!empty($data['description'])) {
    $xtpl->assign('EDITOR', nv_aleditor('description', '100%', '300px', $data['description']));
} else {
    $xtpl->assign('EDITOR', nv_aleditor('description', '100%', '300px', ""));
}
$xtpl->assign('NV_NAME', NV_NAME_VARIABLE);
$xtpl->assign('MOD_NAME', $module_name);
$albums = $adb->getAllAlbums();
while ($album = $db->sql_fetchrow($albums)) {
    $xtpl->assign('albumid', $album['albumid']);
    $xtpl->assign('name', $album['name']);
    $select = $data['albumid'] == $album['albumid'] ? "selected=\"selected\"" : "";
    $xtpl->assign('SELECT', $select);
    $xtpl->parse('main.album');
}
$xtpl->assign('PATH', NV_UPLOADS_DIR . '/' . $module_name);
$xtpl->assign('PATH_V', NV_UPLOADS_DIR . '/' . $module_name . "/vid");
$xtpl->assign('BROWSER', NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=upload&popup=1&area=" + area+"&path="+path+"&type="+type, "NVImg", "850", "400","resizable=no,scrollbars=no,toolbar=no,location=no,status=no');
$xtpl->parse('main');
$contents = $xtpl->text('main');
include NV_ROOTDIR . "/includes/header.php";
echo nv_admin_theme($contents);
include NV_ROOTDIR . "/includes/footer.php";