sintonia/application/forms/AddShowRebroadcastDates.php
naomiaro 6ef4169315 CC-1985: Automatic rebroadcast of recorded content
populates rebroadcast show instances now, added a new table cc_show_rebroadcast,
added columns record, rebroadcast, instance_id, file_id to cc_show_instances table.
added column record to cc_show_days.
2011-03-15 12:05:41 -04:00

37 lines
967 B
PHP

<?php
class Application_Form_AddShowRebroadcastDates extends Zend_Form_SubForm
{
public function init()
{
//Add type select
$this->addElement('select', 'add_show_rebroadcast_date_1', array(
'label' => 'Rebroadcast Day:',
'required' => true,
'class' => ' input_select',
'multiOptions' => array(
"0 days" => "+0 days ",
"1 day" => "+1 day ",
"2 days" => "+2 days",
"3 days" => "+3 days"
),
));
// Add start time element
$this->addElement('text', 'add_show_start_time_1', array(
'label' => 'Rebroadcast Time:',
'class' => 'input_text',
'required' => true,
'value' => '0:00',
'filters' => array('StringTrim'),
'validators' => array(
'NotEmpty',
array('date', false, array('HH:mm'))
)
));
}
}