Ejemplo n.º 1
0
 public function init()
 {
     parent::init('adminFormExercisesEdit');
     $this->addElements(array(new vkNgine_Form_Element_Hidden('exerciseId'), new vkNgine_Form_Element_Text('name', array('label' => Zend_Registry::get('t')->_('Exercise Name'), 'class' => 'field text medium'), true), new vkNgine_Form_Element_Textarea('instructions', array('label' => Zend_Registry::get('t')->_('Instructions'), 'class' => 'field text medium'), false), new vkNgine_Form_Element_Text('primaryMuscle', array('label' => Zend_Registry::get('t')->_('Primary Muscle'), 'class' => 'field text medium'), false), new vkNgine_Form_Element_Text('secondaryMuscle', array('label' => Zend_Registry::get('t')->_('Secondary Muscle'), 'class' => 'field text medium'), false), new vkNgine_Form_Element_Text('mechanics', array('label' => Zend_Registry::get('t')->_('Mechanics'), 'class' => 'field text medium'), false), new vkNgine_Form_Element_Text('equipmentUsed', array('label' => Zend_Registry::get('t')->_('Equipment Used'), 'class' => 'field text medium'), false)));
     $this->addDisplayGroup(array('exerciseId', 'name', 'primaryMuscle', 'secondaryMuscle', 'mechanics', 'equipmentUsed'), 'general', array('legend' => Zend_Registry::get('t')->_('General Information')));
     $general = $this->getDisplayGroup('general');
     $general->setDecorators(array('FormElements', 'Fieldset', array('HtmlTag', array('tag' => 'div', 'style' => 'float:left;width:400px;'))));
     $this->addElements(array(new vkNgine_Form_Element_Textarea('instructions', array('label' => Zend_Registry::get('t')->_('Instructions'), 'class' => 'field text medium'), false)));
     $this->addDisplayGroup(array('instructions'), 'additional_information', array('legend' => Zend_Registry::get('t')->_('Additional Information')));
     $additional_information = $this->getDisplayGroup('additional_information');
     $additional_information->setDecorators(array('FormElements', 'Fieldset', array('HtmlTag', array('tag' => 'div', 'style' => 'float:left;width:400px;'))));
 }
 public function init()
 {
     parent::init('publicFormDailyExercises');
     $miles = null;
     $miles[null] = 0;
     for ($i = 0; $i < 8; $i++) {
         for ($v = 0; $v < 100; $v++) {
             if ($i) {
                 $miles[$i . '.' . $v] = $i . '.' . $v;
             }
         }
     }
     $this->addElements(array(new vkNgine_Form_Element_Hidden('date'), new vkNgine_Form_Element_Hidden('forward'), new vkNgine_Form_Element_Select('workoutId', array('label' => null, 'class' => 'input-large setdays', 'escape' => false, 'select' => 'none', 'desc' => null), array(), false), new vkNgine_Form_Element_Select('workoutDay', array('label' => Zend_Registry::get('t')->_('Choose a workout day'), 'class' => 'input-mini', 'style' => 'none', 'escape' => false), array(), false), new vkNgine_Form_Element_Select('type', array('label' => null, 'class' => 'input-large', 'escape' => false, 'style' => 'none', 'desc' => null), array('' => $this->convertText2Turkish(Zend_Registry::get('t')->_('Choose an Activity')), 'Cycling' => $this->convertText2Turkish(Zend_Registry::get('t')->_('Cycling')), 'Rope Jumping' => $this->convertText2Turkish(Zend_Registry::get('t')->_('Rope Jumping')), 'Football' => $this->convertText2Turkish(Zend_Registry::get('t')->_('Football')), 'Notes' => $this->convertText2Turkish(Zend_Registry::get('t')->_('Notes')), 'Running' => $this->convertText2Turkish(Zend_Registry::get('t')->_('Running')), 'Stairs' => $this->convertText2Turkish(Zend_Registry::get('t')->_('Stairs')), 'Swimming' => $this->convertText2Turkish(Zend_Registry::get('t')->_('Swimming')), 'Weight Lifting' => $this->convertText2Turkish(Zend_Registry::get('t')->_('Weight Lifting'))), false), new vkNgine_Form_Element_Select('timeSpentHour', array('label' => 'Hour', 'class' => 'input-xsmall', 'style' => 'none', 'escape' => false), array(null => 0, 1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5), false), new vkNgine_Form_Element_Select('timeSpentMin', array('label' => 'Minute', 'class' => 'input-xsmall', 'style' => 'none', 'escape' => false), array(null => 0, 10 => 10, 15 => 15, 20 => 20, 25 => 25, 30 => 30, 35 => 35, 40 => 40, 45 => 45), false), new vkNgine_Form_Element_Select('miles', array('label' => 'Miles', 'class' => 'input-xsmall', 'style' => 'none', 'escape' => false), $miles, false), new vkNgine_Form_Element_Textarea('moreDetails', array('label' => null, 'class' => 'input-xlarge', 'escape' => false, 'style' => 'height: 100px;', 'placeholder' => Zend_Registry::get('t')->_('More details for this')), false)));
 }
Ejemplo n.º 3
0
 public function init()
 {
     parent::init('adminFormUsersEdit');
     $userId = new vkNgine_Form_Element_Hidden('userId');
     $email = new vkNgine_Form_Element_Email('email', array('label' => Zend_Registry::get('t')->_('Email'), 'class' => 'field text medium', 'validate' => 'notuser'), true);
     $firstName = new vkNgine_Form_Element_Text('firstName', array('label' => Zend_Registry::get('t')->_('First Name'), 'class' => 'field text medium'), true);
     $lastName = new vkNgine_Form_Element_Text('lastName', array('label' => Zend_Registry::get('t')->_('Last Name'), 'class' => 'field text medium'), true);
     $password = new vkNgine_Form_Element_Password('password', array('label' => Zend_Registry::get('t')->_('Password'), 'class' => 'field text medium'), true);
     $level = new vkNgine_Form_Element_Select('level', array('label' => Zend_Registry::get('t')->_('Level'), 'class' => 'field text medium', 'desc' => null), array('' => Zend_Registry::get('t')->_('Select One'), 'STANDARD' => Zend_Registry::get('t')->_('Standard'), 'ADMIN' => Zend_Registry::get('t')->_('Admin')), true);
     $this->addElements(array($userId, $email, $firstName, $lastName, $password, $level));
     $this->addDisplayGroup(array('email', 'firstName', 'lastName', 'password', 'level'), 'general', array('legend' => Zend_Registry::get('t')->_('General Information')));
     $general = $this->getDisplayGroup('general');
     $general->setDecorators(array('FormElements', 'Fieldset', array('HtmlTag', array('tag' => 'div', 'style' => 'float:left;width:400px;'))));
     $companyName = new vkNgine_Form_Element_Text('companyName', array('label' => Zend_Registry::get('t')->_('Company Name'), 'class' => 'field text medium'), false);
     $mailingAddress = new vkNgine_Form_Element_Text('mailingAddress', array('label' => Zend_Registry::get('t')->_('Mailing Address'), 'class' => 'field text medium'), false);
     $phone = new vkNgine_Form_Element_Text('phone', array('label' => Zend_Registry::get('t')->_('Phone'), 'class' => 'field text medium'), false);
     $city = new vkNgine_Form_Element_Text('city', array('label' => Zend_Registry::get('t')->_('City'), 'class' => 'field text medium'), false);
     $state = new vkNgine_Form_Element_Select('state', array('label' => Zend_Registry::get('t')->_('State'), 'desc' => null, 'class' => 'field text medium'), array(), false);
     $zip = new vkNgine_Form_Element_Text('zip', array('label' => Zend_Registry::get('t')->_('Zip'), 'class' => 'field text medium'), false);
     $this->addElements(array($companyName, $mailingAddress, $phone, $city, $state, $zip));
     $this->addDisplayGroup(array('companyName', 'mailingAddress', 'phone', 'city', 'state', 'zip'), 'additional_information', array('legend' => Zend_Registry::get('t')->_('Additional Information')));
     $additional_information = $this->getDisplayGroup('additional_information');
     $additional_information->setDecorators(array('FormElements', 'Fieldset', array('HtmlTag', array('tag' => 'div', 'style' => 'float:left;width:400px;'))));
 }
Ejemplo n.º 4
0
 public function init()
 {
     parent::init('adminFormFoodsEdit');
     $this->addElements(array(new vkNgine_Form_Element_Hidden('foodId'), new vkNgine_Form_Element_Text('name', array('label' => Zend_Registry::get('t')->_('Name'), 'class' => 'field text medium'), true), new vkNgine_Form_Element_Text('servingSize', array('label' => Zend_Registry::get('t')->_('Serving Size'), 'class' => 'field text medium'), true), new vkNgine_Form_Element_Select('servingSizeType', array('label' => Zend_Registry::get('t')->_('Serving Size Type'), 'class' => 'select', 'onkeyup' => 'var value = $(this).val(); $("#servingSizes").val(value);', 'escape' => false, 'desc' => null), array('' => Zend_Registry::get('t')->_('Choose One'), 'serving' => 'Serving', 'gr' => 'gr', 'cup' => Zend_Registry::get('t')->_('cup'), 'tbsp' => Zend_Registry::get('t')->_('tbsp'), 'tsp' => Zend_Registry::get('t')->_('tsp'), 'oz' => 'oz', 'ml' => 'ml', 'lb' => 'lb'), true), new vkNgine_Form_Element_Text('protein', array('label' => Zend_Registry::get('t')->_('Protein'), 'class' => 'field text medium'), false), new vkNgine_Form_Element_Text('calories', array('label' => Zend_Registry::get('t')->_('Calories'), 'class' => 'field text medium'), false), new vkNgine_Form_Element_Text('carbs', array('label' => Zend_Registry::get('t')->_('Carbs'), 'class' => 'field text medium'), false), new vkNgine_Form_Element_Text('fat', array('label' => Zend_Registry::get('t')->_('Fat'), 'class' => 'field text medium'), false), new vkNgine_Form_Element_Text('sugar', array('label' => Zend_Registry::get('t')->_('Sugar'), 'class' => 'field text medium'), false), new vkNgine_Form_Element_Text('sodium', array('label' => Zend_Registry::get('t')->_('Sodium'), 'class' => 'field text medium'), false), new vkNgine_Form_Element_Text('fiber', array('label' => Zend_Registry::get('t')->_('Fiber'), 'class' => 'field text medium'), false), new vkNgine_Form_Element_Text('cholesterol', array('label' => Zend_Registry::get('t')->_('Cholesterol'), 'class' => 'field text medium'), false)));
 }
 public function init()
 {
     parent::init('publicFormMyaccountCalendar');
     $this->setAttrib('class', 'form');
     $this->addElements(array(new vkNgine_Form_Element_Password('password', array('label' => null, 'id' => null, 'class' => 'input-password m-wrap medium', 'autocomplete' => 'off', 'desc' => Zend_Registry::get('t')->_('Write a new password only if you want to change your current password'), 'removeDecorators' => 1), true), new vkNgine_Form_Element_Select('calendarView', array('label' => null, 'class' => 'setCalendarView m-wrap large', 'escape' => false, 'style' => true, 'removeDecorators' => true, 'desc' => Zend_Registry::get('t')->_('This will change the default view of the calendar')), array('Weekly' => Zend_Registry::get('t')->_('Weekly'), 'Monthly' => Zend_Registry::get('t')->_('Monthly')), true), new vkNgine_Form_Element_Radio('notifications', array('label' => null, 'class' => 'notifications', 'removeDecorators' => true), array('senddaily' => Zend_Registry::get('t')->_(' Send daily reminders'), 'senddailyifnolog' => Zend_Registry::get('t')->_(' Send daily reminders if nothing logged for the day'), 'disable' => Zend_Registry::get('t')->_(" Don't send any reminders")), true)));
 }
Ejemplo n.º 6
0
 public function init()
 {
     parent::init('adminFormMealsFoodsEdit');
     $this->addElements(array(new vkNgine_Form_Element_Hidden('mealId'), new vkNgine_Form_Element_Select('foodId', array('label' => Zend_Registry::get('t')->_('Foods'), 'class' => 'field select medium', 'escape' => false, 'desc' => null), array(), false)));
 }
Ejemplo n.º 7
0
 public function init()
 {
     parent::init('adminFormWorkoutsExercisesEdit');
     $this->addElements(array(new vkNgine_Form_Element_Hidden('workoutId'), new vkNgine_Form_Element_Select('exerciseId', array('label' => Zend_Registry::get('t')->_('Exercises'), 'class' => 'field select medium', 'escape' => false, 'desc' => null), array(), false), new vkNgine_Form_Element_Text('sets', array('label' => Zend_Registry::get('t')->_('Sets'), 'class' => 'field text medium'), false)));
 }
 public function init()
 {
     parent::init('publicFormAddSelectedExercises');
     $this->setAttrib('class', 'form');
     $this->addElements(array(new vkNgine_Form_Element_Hidden('exerciseIds'), new vkNgine_Form_Element_Select('workoutId', array('label' => null, 'class' => 'input-large setdays', 'escape' => false, 'desc' => Zend_Registry::get('t')->_('Choose a workout to add selected exercises')), array(), true), new vkNgine_Form_Element_Select('day', array('label' => null, 'class' => 'input-small', 'style' => 'width:30%', 'escape' => false, 'desc' => Zend_Registry::get('t')->_('Choose the day you want to add these')), array(), true)));
 }
Ejemplo n.º 9
0
 public function init()
 {
     parent::init('publicFormMyaccountFoods');
     $this->setAttrib('class', 'form');
     $this->addElements(array(new vkNgine_Form_Element_Hidden('foodId'), new vkNgine_Form_Element_Text('foodSearch', array('label' => null, 'class' => 'foodsearch m-wrap xlarge', 'removeDecorators' => true, 'escape' => false, 'placeholder' => Zend_Registry::get('t')->_('Enter a food'), 'desc' => null), true), new vkNgine_Form_Element_Text('servingSize', array('label' => null, 'class' => 'm-wrap small', 'onkeyup' => 'var value = $(this).val(); $("#servingSize").val(value);', 'escape' => false, 'placeholder' => Zend_Registry::get('t')->_('How much?'), 'desc' => null), true), new vkNgine_Form_Element_Select('servingSizes', array('label' => null, 'class' => 'small m-wrap', 'onkeyup' => 'var value = $(this).val(); $("#servingSizes").val(value);', 'escape' => false, 'desc' => null), array('' => Zend_Registry::get('t')->_('Choose One'), 'serving' => 'Serving', 'gr' => 'gr', 'cup' => Zend_Registry::get('t')->_('cup'), 'tbsp' => Zend_Registry::get('t')->_('tbsp'), 'tsp' => Zend_Registry::get('t')->_('tsp'), 'oz' => 'oz', 'ml' => 'ml', 'lb' => 'lb'), true)));
 }
Ejemplo n.º 10
0
 public function init()
 {
     parent::init('publicFormManageWorkout');
     $this->setAttrib('class', 'form');
     $this->addElements(array(new vkNgine_Form_Element_Hidden('workoutId')));
 }
Ejemplo n.º 11
0
 public function init()
 {
     parent::init('adminFormMealsEdit');
     $this->addElements(array(new vkNgine_Form_Element_Hidden('mealId'), new vkNgine_Form_Element_Select('userId', array('label' => Zend_Registry::get('t')->_('User'), 'class' => 'field select medium', 'escape' => false, 'desc' => Zend_Registry::get('t')->_('Meal will be added to this user')), array(), true), new vkNgine_Form_Element_Text('title', array('label' => Zend_Registry::get('t')->_('Title'), 'class' => 'field text medium'), true)));
 }
 public function init()
 {
     parent::init('adminFormMyAccount');
     $this->addElements(array(new vkNgine_Form_Element_Text('password', array('label' => Zend_Registry::get('t')->_('Password'), 'class' => 'field text medium'), true)));
 }
 public function init()
 {
     parent::init('publicFormDailyDetails');
     $this->setAttrib('class', 'form');
     $this->addElements(array(new vkNgine_Form_Element_Hidden('date'), new vkNgine_Form_Element_Hidden('forward'), new vkNgine_Form_Element_Select('type', array('label' => null, 'class' => 'input-xlarge', 'escape' => false, 'desc' => Zend_Registry::get('t')->_('Color will color the box, Supplement will log the daily use')), array('' => $this->convertText2Turkish(Zend_Registry::get('t')->_('Choose One')), 'COLOR' => $this->convertText2Turkish(Zend_Registry::get('t')->_('Color')), 'SUPPLEMENT' => $this->convertText2Turkish(Zend_Registry::get('t')->_('Supplement'))), true), new vkNgine_Form_Element_Text('value', array('label' => null, 'class' => 'input-xlarge', 'maxlength' => 17, 'removeDecorators' => true, 'placeholder' => Zend_Registry::get('t')->_('Enter the value for the type')), false), new vkNgine_Form_Element_Select('color', array('label' => null, 'class' => 'input-xlarge', 'escape' => false, 'desc' => Zend_Registry::get('t')->_('Choose one if you want to color a box on the calendar')), array('' => $this->convertText2Turkish(Zend_Registry::get('t')->_('Choose One')), 'LightSlateGray' => $this->convertText2Turkish(Zend_Registry::get('t')->_('off gym'))), false)));
 }
Ejemplo n.º 14
0
 public function init()
 {
     parent::init('publicFormEditWorkout');
     $this->setAttrib('class', 'form');
     $this->addElements(array(new vkNgine_Form_Element_Hidden('workoutId'), new vkNgine_Form_Element_Text('name', array('label' => null, 'class' => 'm-wrap large', 'placeholder' => Zend_Registry::get('t')->_('Workout Name')), true), new vkNgine_Form_Element_Select('day', array('label' => Zend_Registry::get('t')->_('How many days a week'), 'class' => 'm-wrap large', 'escape' => false), array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7'), true), new vkNgine_Form_Element_Textarea('notes', array('label' => null, 'class' => 'span5 m-wrap', 'rows' => 3, 'escape' => false, 'placeholder' => Zend_Registry::get('t')->_('Notes')), false), new vkNgine_Form_Element_Text('startDate', array('label' => null, 'readonly' => '', 'class' => 'm-wrap m-ctrl-medium date-picker', 'placeholder' => Zend_Registry::get('t')->_('Start Date')), false), new vkNgine_Form_Element_Text('endDate', array('label' => null, 'readonly' => '', 'class' => 'm-wrap m-ctrl-medium date-picker', 'placeholder' => Zend_Registry::get('t')->_('End Date')), false), new vkNgine_Form_Element_Text('source', array('label' => null, 'class' => 'm-wrap large', 'placeholder' => Zend_Registry::get('t')->_('Source')), false)));
 }
Ejemplo n.º 15
0
 public function init()
 {
     parent::init('publicFormMyaccountMeals');
     $this->setAttrib('class', 'form');
     $this->addElements(array(new vkNgine_Form_Element_Select('meals', array('label' => null, 'class' => 'large m-wrap', 'style' => 'width:250px', 'escape' => false, 'desc' => null), array(), true)));
 }
Ejemplo n.º 16
0
 public function init()
 {
     parent::init('publicFormEditMeasurements');
     $this->setAttrib('class', 'form');
     $this->addElements(array(new vkNgine_Form_Element_Text('value', array('label' => null, 'class' => 'm-wrap large', 'placeholder' => Zend_Registry::get('t')->_('Value')), true), new vkNgine_Form_Element_Select('type', array('label' => null, 'class' => 'm-wrap large', 'escape' => false, 'desc' => null), array('WEIGHT' => Zend_Registry::get('t')->_('Weight')), true), new vkNgine_Form_Element_Text('date', array('label' => null, 'class' => 'm-wrap m-ctrl-medium date-picker', 'placeholder' => Zend_Registry::get('t')->_('Record Date')), true)));
 }
Ejemplo n.º 17
0
 public function init()
 {
     parent::init('adminFormWorkoutsEdit');
     $this->addElements(array(new vkNgine_Form_Element_Hidden('workoutId'), new vkNgine_Form_Element_Select('userId', array('label' => Zend_Registry::get('t')->_('User'), 'class' => 'field select medium', 'escape' => false, 'desc' => Zend_Registry::get('t')->_('Workout will be added to this user')), array(), true), new vkNgine_Form_Element_Text('name', array('label' => Zend_Registry::get('t')->_('Workout Name'), 'class' => 'field text medium'), true), new vkNgine_Form_Element_Text('startDate', array('label' => Zend_Registry::get('t')->_('Start Date'), 'class' => 'field text medium datePicker'), false), new vkNgine_Form_Element_Text('endDate', array('label' => Zend_Registry::get('t')->_('End Date'), 'class' => 'field text medium datePicker'), false), new vkNgine_Form_Element_Text('source', array('label' => Zend_Registry::get('t')->_('Source'), 'class' => 'field text medium'), false)));
 }