<?php
/**
 * Copyright (C) 2009  Honghao Geng (genghonghao@gmail.com)
 * $Id: global_set_form.php 282 2009-11-06 05:16:34Z genghonghao $
 */

if (!defined('IN_ADMIN')) {
    die("Hacking attempt");
}

// 本程序是为了自动生成全局设置的表单和表单数据提交后变量的自动获取

// === 博客设置 ===
// 博客名称
$form_items['blog']['site_name']['flag'] = 'label_site_name';
$form_items['blog']['site_name']['type'] = 'input';
$form_items['blog']['site_name']['size'] = '45';

// 博客标题
$form_items['blog']['site_title']['flag'] = 'label_site_title';
$form_items['blog']['site_title']['type'] = 'input';
$form_items['blog']['site_title']['size'] = '45';

// 关键字
$form_items['blog']['site_keywords']['flag'] = 'label_site_keywords';
$form_items['blog']['site_keywords']['type'] = 'input';
$form_items['blog']['site_keywords']['size'] = '45';

// 是否关闭
$form_items['blog']['enable_close']['flag'] = 'label_enable_close';
$form_items['blog']['enable_close']['type'] = 'radio';

// 关闭原因
$form_items['blog']['close_origin']['flag'] = 'label_close_origin';
$form_items['blog']['close_origin']['type'] = 'textarea';
$form_items['blog']['close_origin']['rows'] = '4';
$form_items['blog']['close_origin']['cols'] = '35';

// 博客描述
$form_items['blog']['site_desc']['flag'] = 'label_site_desc';
$form_items['blog']['site_desc']['type'] = 'textarea';
$form_items['blog']['site_desc']['rows'] = '4';
$form_items['blog']['site_desc']['cols'] = '35';

// === 基本设置 ===
// 选择语言
$form_items['basic']['lang']['flag'] = 'label_lang';
$form_items['basic']['lang']['type'] = 'select';
$form_items['basic']['lang']['option'][0] = 'zh_cn';
$form_items['basic']['lang']['option'][1] = 'en_us';
$form_items['basic']['lang']['option'][2] = 'zh_tw';

// ICP备案证号
$form_items['basic']['icp_number']['flag'] = 'label_icp_number';
$form_items['basic']['icp_number']['type'] = 'input';
$form_items['basic']['icp_number']['size'] = '45';

// ICP证书文件
$form_items['basic']['icp_cert_file']['flag'] = 'label_icp_cert_file';
$form_items['basic']['icp_cert_file']['type'] = 'file';
$form_items['basic']['icp_cert_file']['size'] = '45';

// 是否开启评论
$form_items['basic']['enable_comment']['flag'] = 'label_enable_comment';
$form_items['basic']['enable_comment']['type'] = 'radio';

// 是否开启页面压缩
$form_items['basic']['enable_gzip']['flag'] = 'label_enable_gzip';
$form_items['basic']['enable_gzip']['type'] = 'radio';

// 是否审核评论
$form_items['basic']['enable_verify_comment']['flag'] = 'label_enable_verify_comment';
$form_items['basic']['enable_verify_comment']['type'] = 'radio';

// 统计访问地址
$form_items['basic']['statistics_herf']['flag'] = 'label_statistics_herf';
$form_items['basic']['statistics_herf']['type'] = 'input';
$form_items['basic']['statistics_herf']['size'] = '45';

// 统计代码
$form_items['basic']['statistics_code']['flag'] = 'label_statistics_code';
$form_items['basic']['statistics_code']['type'] = 'textarea';
$form_items['basic']['statistics_code']['rows'] = '4';
$form_items['basic']['statistics_code']['cols'] = '35';

// 缓存生存时间
$form_items['basic']['cache_expect_time']['flag'] = 'label_cache_expect_time';
$form_items['basic']['cache_expect_time']['type'] = 'input';
$form_items['basic']['cache_expect_time']['size'] = '10';

// 默认时区
$form_items['basic']['default_timezone']['flag'] = 'label_default_timezone';
$form_items['basic']['default_timezone']['type'] = 'timezone';

// 上传附件大小
$form_items['basic']['update_file_max']['flag'] = 'label_update_file_max';
$form_items['basic']['update_file_max']['type'] = 'input';
$form_items['basic']['update_file_max']['size'] = '10';

// === 显示设置 ===
// 首页显示文章数量
$form_items['view']['index_view_number']['flag'] = 'label_index_view_number';
$form_items['view']['index_view_number']['type'] = 'input';
$form_items['view']['index_view_number']['size'] = '10';

// 首页是否显示全文
$form_items['view']['index_view_is_full']['flag'] = 'label_index_view_is_full';
$form_items['view']['index_view_is_full']['type'] = 'radio';

// 首页显示文章数量
$form_items['view']['index_view_cut_number']['flag'] = 'label_index_view_cut_number';
$form_items['view']['index_view_cut_number']['type'] = 'input';
$form_items['view']['index_view_cut_number']['size'] = '10';

// 评论显示数量
$form_items['view']['comment_view_number']['flag'] = 'label_comment_view_number';
$form_items['view']['comment_view_number']['type'] = 'input';
$form_items['view']['comment_view_number']['size'] = '10';

// 搜索显示数量
$form_items['view']['search_view_number']['flag'] = 'label_search_view_number';
$form_items['view']['search_view_number']['type'] = 'input';
$form_items['view']['search_view_number']['size'] = '10';

// 小缩略图宽度
$form_items['view']['small_pic_width']['flag'] = 'label_small_pic_width';
$form_items['view']['small_pic_width']['type'] = 'input';
$form_items['view']['small_pic_width']['size'] = '10';

// 小缩略图高度
$form_items['view']['small_pic_height']['flag'] = 'label_small_pic_height';
$form_items['view']['small_pic_height']['type'] = 'input';
$form_items['view']['small_pic_height']['size'] = '10';

// 中等大小缩略图宽度
$form_items['view']['middle_pic_width']['flag'] = 'label_middle_pic_width';
$form_items['view']['middle_pic_width']['type'] = 'input';
$form_items['view']['middle_pic_width']['size'] = '10';

// 中等大小缩略图高度
$form_items['view']['middle_pic_height']['flag'] = 'label_middle_pic_height';
$form_items['view']['middle_pic_height']['type'] = 'input';
$form_items['view']['middle_pic_height']['size'] = '10';
?>
