<?php
return array
(
    'source' => $source,
    'update' => array
    (
        'control' => array
        (
            'text_x' => array
            (
                'text_type' => 1,
            ),
            'text_y' => array
            (
                'text_type' => 1,
            ),
            'text_move' => array
            (
                'text_type' => 2,
            ),
        ),
        'tab' => array
        (
            '基本处理' => $data_id.',type,template_id,time_length,time_start',
            '文字处理' => 'text,text_type,text_size,text_color,text_alpha,text_x,text_y,text_move',
            //'片头片尾' => '',
        ),
        //'desc' => '原创声明：',
        'field'    => array
        (
            $data_id => array
            (
                'type' => 'hidden',
            ),
            'type' => array
            (
                'type' => 'radio',
                'remote' => 'source/data.getVideoTemplate',
            ),
            'template_id' => array
            (
                'type' => 'select',
            ),
            
            'time_length' => array
            (
                'desc' => '请输入秒数，为0则不做截取',
                'default' => $check ? '3' : '0',
            ),
            'time_start' => array
            (
                'desc' => '请输入秒数',
                'default' => $check ? '3' : '0',
            ),
            'text' => array
            (
                'desc' => '请输入要添加的文字，变量：{author}是视频作者名称，{pdate}是视频发布时间，{name}是视频的标题, {admin}是当前操作人名称，{data_name}是当前素材的名称，{source_name}是当前资源的名称，{zone_name}是当前源区的名称',
            ),
            'text_type' => array
            (
                'type' => 'radio',
                'control' => true,
            ),
            'text_size' => array
            (
                'default' => $check ? '25' : '30',
            ),
            'text_color',
            'text_alpha' => array
            (
                'default' => $check ? '1' : '0.3',
            ),
            'text_x',
            'text_y',
            'text_move',
        ),
        # update提交之后的操作
        'end' => 'source/video.update',
    ),
);