<?php echo Form::open(array("class" => "formee")); ?> <div class=headline> <div class="grid-12-12"> <div class="grid-4-12" style="margin-top:-15px; margin-left:-35px;"> <h3>Salary Entry for the month of</h3></div> <div class="grid-2-12" style="margin-top:18px;color:#f00;"> <?php echo createMonths('month', $month); ?> </div> <div class="grid-2-12" style="margin-top:18px;"> <?php echo createYears(2000, 2050, 'year', $year); ?> </div> <div class="grid-2-12" style="margin-top:18px;"> <?php echo Form::submit('submit', 'View', array('class' => 'btn btn-primary')); ?> </div> </div> </div> <?php echo Form::close(); if ($salaries) { ?> <?php
echo Form::select('type', Input::post('type', isset($leave) ? $leave->type : ''), array('sick' => 'Sick', 'vacation' => 'Vacation')); ?> </div> </div> <div class="grid-8-12"> <div class="grid-4-12"> <?php echo Form::label('Time Off <em class="formee-req">*</em>', 'date_of_leave', array('style' => 'font-weight:700;')); ?> </div> <div class="grid-2-12"> <?php echo createYears(1920, 2500, 'dol_year', date('Y')); ?> </div> <div class="grid-2-12"> <?php echo createMonths('dol_month', date('m')); ?> </div> </div> <div class="grid-12-12"> <div class="grid-4-12"> <?php echo Form::label('Select Dates <em class="formee-req">*</em>', 'dol_date', array('style' => 'font-weight:700;')); ?> </div> <div class="grid-9-12" style="font-size: 18px">
$formarray['action'] = $_SERVER['PHP_SELF']; $formarray['rows'][2]['items'] = "Description:|description|text|" . $_POST['description']; $formarray['rows'][3]['items'] = "Amount:|amount|text|" . $_POST['amount']; $formarray['rows'][4]['type'] = "select"; $formarray['rows'][4]['label'] = "Type:"; $formarray['rows'][4]['name'] = "type_id"; $formarray['rows'][4]['selected'] = $_POST['type_id']; $formarray['rows'][4]['value'] = $expense_types; if (is_null($_POST['start_minute'])) { $_min = date('i'); } else { $_min = $_POST['start_minute']; } $selecthtml = createDays('start_day', $_POST['start_day']); $selecthtml .= createMonths('start_month', $_POST['start_month']); $selecthtml .= createYears(2010, date('Y'), 'start_year', $_POST['start_year']); $selecthtml .= createHours('start_hour', $_POST['start_hour']); $selecthtml .= createMinutes('start_minute', $_min); $formarray['rows'][5]['type'] = "select"; $formarray['rows'][5]['html'] = $selecthtml; $formarray['rows'][6]['items'] = "|groupid|hidden|" . $groupdetails['group_id']; $formarray['rows'][7]['items'] = "|mode|hidden|validate"; $formarray['rows'][8]['items'] = "|redirect|hidden|" . $_POST['redirect']; $formarray['rows'][9]['items'] = "||submit|Add expense"; for ($i = 0; $i < $members_size; $i++) { /*if (!empty($members[$i]['username'])) $uname = " (" . $members[$i]['username'] . ")"; else $uname = "";*/ $uname = format_name($user, $members[$i]['username'], $members[$i]['realname']); if (empty($_POST['members']) || in_array($members[$i]['user_id'], $_POST['members'])) { $checked = 1; } else {
echo Form::open(array("class" => "formee")); ?> <div class=headline> <div class="grid-12-12"> <div class="grid-4-12" style="margin-top:-15px; margin-left:-35px;"> <h3>Salary Entry for the month of</h3></div> <div class="grid-2-12" style="margin-top:18px;color:#f00;"> <?php echo createMonths('month', date('m')); ?> </div> <div class="grid-2-12" style="margin-top:18px;"> <?php echo createYears(2000, 2050, 'year', date('Y')); ?> </div> </div> </div> <div style="margin-top:15px; margin-left:30px; width:1050px;" class="well"> <div class="grid-7-12" style="margin-top:-25px;"> <div class="grid-4-12"> <?php echo Form::label('Gross <em class="formee-req">*</em>', 'gross'); ?> <?php echo Form::input('gross', Input::post('gross', isset($salary) ? $salary->gross : '0'), array('id' => 'gross', 'class' => 'formee-large', 'required', 'placeholder' => 'Gross')); ?> </div> <div class="grid-4-12">