<tr> <?php echo tep_draw_form('period_back', tep_href_link(FILENAME_TIMEREGISTRATION_CALENDAR)) . tep_create_parameters(array('period' => tep_next_period($_SESSION['timesheet']->period, -1)), array('mPath'), 'hidden_field'); ?> <td align="left" class="infoBoxHeading"> <?php echo tep_image_submit('arrow_left.gif', TEXT_TIMEREGISTRATION_BACK, '', DIR_WS_IMAGES); ?> </td> </form> <td align="center" class="infoBoxHeading"><?php echo TEXT_TIMEREGISTRATION_PERIOD . $_SESSION['timesheet']->period; ?> </td> <?php echo tep_draw_form('period_forward', tep_href_link(FILENAME_TIMEREGISTRATION_CALENDAR)) . tep_create_parameters(array('period' => tep_next_period($_SESSION['timesheet']->period, 1)), array('mPath'), 'hidden_field'); ?> <td align="right" class="infoBoxHeading"> <?php echo tep_image_submit('arrow_right.gif', TEXT_TIMEREGISTRATION_FORWARD, '', DIR_WS_IMAGES); ?> </td> </form> </tr> </table> </td> </tr> <tr> <td align="center"> <table border="0px" width="20%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr>
</td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php if ($_SESSION['timesheet']->listing[$index]->locked) { echo tep_draw_form('unlock_timesheet', tep_href_link(FILENAME_ADMINISTRATION_TIMESHEETS)) . tep_create_parameters(array('action' => 'unlock_timesheet', 'timesheets_id' => $_SESSION['timesheet']->listing[$index]->id), array('mPath', 'employees_id'), 'hidden_field'); echo tep_image_submit('play.png', TEXT_TIMESHEETS_UNLOCK, '', DIR_WS_IMAGES); echo '</form>'; } else { echo tep_draw_separator('pixel_trans.gif', '16', '16'); } ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php if (!$_SESSION['timesheet']->listing[$index]->locked) { echo tep_draw_form('lock_timesheet', tep_href_link(FILENAME_ADMINISTRATION_TIMESHEETS)) . tep_create_parameters(array('action' => 'lock_timesheet', 'timesheets_id' => $_SESSION['timesheet']->listing[$index]->id), array('mPath', 'employees_id'), 'hidden_field'); echo tep_image_submit('stop.png', TEXT_TIMESHEETS_LOCK, '', DIR_WS_IMAGES); echo '</form>'; } else { echo tep_draw_separator('pixel_trans.gif', '16', '16'); } ?> </td> </tr> <?php $odd_or_even = $odd_or_even == 'odd' ? 'even' : 'odd'; } } else { ?> <tr class="entryListing-odd"> <td class="entryListing-data" colspan="6" style="text-align:center">
<td class="item_entry" colspan="2"> <?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?> </td> </tr> <tr> <td align="right" class="item_entry" colspan="2"> <?php if ($_POST['action'] == 'enter_data' || $_POST['action'] == 'save_data') { echo tep_image_submit('button_save.gif', TEXT_ENTRY_SAVE); echo '</form>'; } else { echo tep_image(DIR_WS_LANGUAGES . $_SESSION['language'] . '/images/buttons/button_save_disabled.gif'); } echo ' '; if ($_POST['action'] == 'select_project' || $_POST['action'] == 'select_role' || $_POST['action'] == 'enter_data' || $_POST['action'] == 'save_data') { echo tep_draw_form('fcancel', tep_href_link(FILENAME_TIMEREGISTRATION)) . tep_create_parameters(array(), array('mPath', 'period', 'sort_order'), 'hidden_field'); echo tep_image_submit('button_cancel.gif', TEXT_ENTRY_CANCEL); echo '</form>'; } else { echo tep_image(DIR_WS_LANGUAGES . $_SESSION['language'] . '/images/buttons/button_cancel_disabled.gif'); } ?> </td> </tr> </table> </td> </tr> </table> <!-- activity_entry_eof //-->
?> </td> <td class="entryListing-data"><?php echo tep_strftime(DATE_FORMAT_SHORT, $_SESSION['employee_role']->listing[$index]->start_date) . '<br>' . ($_SESSION['employee_role']->listing[$index]->end_date != 0 ? tep_strftime(DATE_FORMAT_SHORT, $_SESSION['employee_role']->listing[$index]->end_date) : '∞'); ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('edit_entry', tep_href_link(FILENAME_ADMINISTRATION_EMPLOYEES_ROLES)) . tep_create_parameters(array('action' => 'enter_data', 'employees_roles_id' => $_SESSION['employee_role']->listing[$index]->id, 'roles_id' => $_SESSION['employee_role']->listing[$index]->role->id, 'employees_id' => $_SESSION['employee_role']->listing[$index]->employee->id, 'employees_roles_start_date' => $_SESSION['employee_role']->listing[$index]->start_date, 'employees_roles_end_date' => $_SESSION['employee_role']->listing[$index]->end_date), array('mPath', 'projects_id'), 'hidden_field'); echo tep_image_submit('edit.gif', TEXT_ENTRY_EDIT, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('delete_entry', tep_href_link(FILENAME_ADMINISTRATION_EMPLOYEES_ROLES)) . tep_create_parameters(array('action' => 'delete_entry', 'employees_roles_id' => $_SESSION['employee_role']->listing[$index]->id, 'roles_id' => $_SESSION['employee_role']->listing[$index]->role->id, 'employees_id' => $_SESSION['employee_role']->listing[$index]->employee->id, 'employees_roles_start_date' => $_SESSION['employee_role']->listing[$index]->start_date, 'employees_roles_end_date' => $_SESSION['employee_role']->listing[$index]->end_date), array('mPath', 'projects_id'), 'hidden_field'); echo tep_image_submit('delete.gif', TEXT_ENTRY_DELETE, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> </tr> <?php $odd_or_even = $odd_or_even == 'odd' ? 'even' : 'odd'; } } else { ?> <tr class="entryListing-odd"> <td class="entryListing-data" colspan="5" style="text-align:center"> <?php echo TEXT_EMPLOYEES_ROLES_LISTING_IS_EMPTY; ?>
</form> </td> <td style="width: 100px;<?php if ($punch_clock_activities_id == 3) { echo 'background: red;'; } ?> "><?php echo 'Project 3'; ?> </td> </tr> <tr> <td style="vertical-align: middle;"> <?php echo tep_draw_form('frmStop', tep_href_link(FILENAME_TIMEREGISTRATION_PUNCH_CLOCK)) . tep_create_parameters(null, array('mPath', 'period'), 'hidden_field'); ?> <input name="btn" type="submit" style="width: 50px;" value="STOP"<?php if ($punch_clock_activities_id == 0) { echo ' disabled'; } ?> > </form> </td> <td style="width: 100px;"> </td> </tr> </table> </td> </tr> <tr>
<table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . COMPANY_BANNER, COMPANY_NAME) . '</a>'; ?> </td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php if (isset($_SESSION['employee'])) { echo HEADER_TEXT_CURRENT_USER . $_SESSION['employee']->fullname . ' '; echo tep_draw_form('logout', tep_href_link(FILENAME_DEFAULT)) . tep_create_parameters(array('action' => 'logout'), null, 'hidden_field') . '[' . tep_href_submit(HEADER_TEXT_LOGOUT, 'submitLinkHeaderNavigation') . ']</form>'; } else { echo HEADER_TEXT_NO_CURRENT_USER; } ?> </td> <td align="right" class="headerNavigation"> </td> </tr> </table> <?php if (isset($_POST['error_message']) && tep_not_null($_POST['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php
<?php /**************************************************************************** * CODE FILE : main_menu.php * Project : BitTS - BART it TimeSheet * Author(s) : Erwin Beukhof * Date : 12 october 2012 * Description : Main navigation menu * * Framework: osCommerce, Open Source E-Commerce Solutions * http://www.oscommerce.com */ ?> <!-- main_menu //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_MAINMENU); new infoBoxHeading($info_box_contents, true, true); $info_box_contents = array(); $info_box_contents[] = array('text' => tep_draw_form('menu_100', tep_href_link(FILENAME_DEFAULT)) . tep_create_parameters(array('mPath' => '100'), array('period'), 'hidden_field') . tep_href_submit(BOX_MAINMENU_HOME, 'submitLinkInfoBoxContents', $_POST['mPath'] == '100' || $_POST['mPath'] == '' ? 'style="font-weight:bold;cursor:default" disabled' : '') . '</form><br>' . '<br>' . tep_draw_form('menu_200', tep_href_link(FILENAME_TIMEREGISTRATION)) . tep_create_parameters(array('mPath' => '200'), array('period'), 'hidden_field') . tep_href_submit(BOX_MAINMENU_TIMEREGISTRATION, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['timeregistration'] ? $_POST['mPath'] == '200' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' . (substr($_POST['mPath'], 0, 1) == '2' ? '' . tep_draw_form('menu_211', tep_href_link(FILENAME_TIMEREGISTRATION_PUNCH_CLOCK)) . tep_create_parameters(array('mPath' => '211'), array('period'), 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_TIMEREGISTRATION_PUNCH_CLOCK, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['timeregistration'] ? $_POST['mPath'] == '211' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' . tep_draw_form('menu_212', tep_href_link(FILENAME_TIMEREGISTRATION_CALENDAR)) . tep_create_parameters(array('mPath' => '212'), array('period'), 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_TIMEREGISTRATION_CALENDAR, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['timeregistration'] ? $_POST['mPath'] == '212' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' : '') . tep_draw_form('menu_300', tep_href_link(FILENAME_ANALYSIS)) . tep_create_parameters(array('mPath' => '300'), array('period'), 'hidden_field') . tep_href_submit(BOX_MAINMENU_ANALYSIS, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['analysis'] ? $_POST['mPath'] == '300' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' . tep_draw_form('menu_400', tep_href_link(FILENAME_ADMINISTRATION)) . tep_create_parameters(array('mPath' => '400'), array('period'), 'hidden_field') . tep_href_submit(BOX_MAINMENU_ADMINISTRATION, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '400' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form>' . (substr($_POST['mPath'], 0, 1) == '4' ? '<br>' . tep_draw_form('menu_410', tep_href_link(FILENAME_ADMINISTRATION)) . tep_create_parameters(array('mPath' => '410'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_GENERAL, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '410' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' . (substr($_POST['mPath'], 0, 2) == '41' ? '' . tep_draw_form('menu_411', tep_href_link(FILENAME_ADMINISTRATION_EMPLOYEES)) . tep_create_parameters(array('mPath' => '411'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_EMPLOYEES, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '411' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' . tep_draw_form('menu_412', tep_href_link(FILENAME_ADMINISTRATION_TIMESHEETS)) . tep_create_parameters(array('mPath' => '412'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_TIMESHEETS, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '412' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' . tep_draw_form('menu_413', tep_href_link(FILENAME_ADMINISTRATION_BENEFITS)) . tep_create_parameters(array('mPath' => '413'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_BENEFITS, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '413' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' : '') . tep_draw_form('menu_420', tep_href_link(FILENAME_ADMINISTRATION)) . tep_create_parameters(array('mPath' => '420'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_SYSTEM, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '420' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' . (substr($_POST['mPath'], 0, 2) == '42' ? '' . tep_draw_form('menu_421', tep_href_link(FILENAME_ADMINISTRATION_CUSTOMERS)) . tep_create_parameters(array('mPath' => '421'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_CUSTOMERS, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '421' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' . tep_draw_form('menu_422', tep_href_link(FILENAME_ADMINISTRATION_BUSINESS_UNITS)) . tep_create_parameters(array('mPath' => '422'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_BUSINESS_UNITS, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '422' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' . tep_draw_form('menu_423', tep_href_link(FILENAME_ADMINISTRATION_CATEGORIES)) . tep_create_parameters(array('mPath' => '423'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_CATEGORIES, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '423' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' . tep_draw_form('menu_424', tep_href_link(FILENAME_ADMINISTRATION_UNITS)) . tep_create_parameters(array('mPath' => '424'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_UNITS, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '424' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' . tep_draw_form('menu_425', tep_href_link(FILENAME_ADMINISTRATION_PROFILES)) . tep_create_parameters(array('mPath' => '425'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_PROFILES, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '425' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' : '') . tep_draw_form('menu_430', tep_href_link(FILENAME_ADMINISTRATION)) . tep_create_parameters(array('mPath' => '430'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_PROJECTS, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '430' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form>' . (substr($_POST['mPath'], 0, 2) == '43' ? '<br>' . tep_draw_form('menu_431', tep_href_link(FILENAME_ADMINISTRATION_PROJECTS)) . tep_create_parameters(array('mPath' => '431'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_PROJECTS, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '431' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' . tep_draw_form('menu_432', tep_href_link(FILENAME_ADMINISTRATION_ROLES)) . tep_create_parameters(array('mPath' => '432'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_ROLES, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '432' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' . tep_draw_form('menu_433', tep_href_link(FILENAME_ADMINISTRATION_EMPLOYEES_ROLES)) . tep_create_parameters(array('mPath' => '433'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_EMPLOYEES_ROLES, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '433' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form><br>' . tep_draw_form('menu_434', tep_href_link(FILENAME_ADMINISTRATION_TARIFFS)) . tep_create_parameters(array('mPath' => '434'), null, 'hidden_field') . ' ' . tep_href_submit(BOX_MAINMENU_ADMINISTRATION_TARIFFS, 'submitLinkInfoBoxContents', $_SESSION['employee']->profile->right['administration'] ? $_POST['mPath'] == '434' ? 'style="font-weight:bold;cursor:default" disabled' : '' : 'style="cursor:default" disabled') . '</form>' : '') : '')); new infoBox($info_box_contents); ?> </td> </tr> <!-- main_menu_eof //-->
?> </td> <td class="entryListing-data"><?php echo tep_strftime(DATE_FORMAT_SHORT, $_SESSION['adm_benefits']->listing[$index]->start_date) . '<br>' . ($_SESSION['adm_benefits']->listing[$index]->end_date != 0 ? tep_strftime(DATE_FORMAT_SHORT, $_SESSION['adm_benefits']->listing[$index]->end_date) : '∞'); ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('edit_entry', tep_href_link(FILENAME_ADMINISTRATION_BENEFITS)) . tep_create_parameters(array('action' => 'enter_data', 'benefits_id' => $_SESSION['adm_benefits']->listing[$index]->id, 'benefits_credit' => $_SESSION['adm_benefits']->listing[$index]->credit, 'benefits_granted' => $_SESSION['adm_benefits']->listing[$index]->granted, 'benefits_comment' => $_SESSION['adm_benefits']->listing[$index]->comment, 'roles_id' => $_SESSION['adm_benefits']->listing[$index]->role->id, 'benefits_start_date' => $_SESSION['adm_benefits']->listing[$index]->start_date, 'benefits_end_date' => $_SESSION['adm_benefits']->listing[$index]->end_date), array('mPath', 'employees_id'), 'hidden_field'); echo tep_image_submit('edit.gif', TEXT_ENTRY_EDIT, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('delete_entry', tep_href_link(FILENAME_ADMINISTRATION_BENEFITS)) . tep_create_parameters(array('action' => 'delete_entry', 'benefits_id' => $_SESSION['adm_benefits']->listing[$index]->id, 'benefits_credit' => $_SESSION['adm_benefits']->listing[$index]->credit, 'benefits_granted' => $_SESSION['adm_benefits']->listing[$index]->granted, 'benefits_comment' => $_SESSION['adm_benefits']->listing[$index]->comment, 'roles_id' => $_SESSION['adm_benefits']->listing[$index]->role->id, 'benefits_start_date' => $_SESSION['adm_benefits']->listing[$index]->start_date, 'benefits_end_date' => $_SESSION['adm_benefits']->listing[$index]->end_date), array('mPath', 'employees_id'), 'hidden_field'); echo tep_image_submit('delete.gif', TEXT_ENTRY_DELETE, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> </tr> <?php $odd_or_even = $odd_or_even == 'odd' ? 'even' : 'odd'; } } else { ?> <tr class="entryListing-odd"> <td class="entryListing-data" colspan="9" style="text-align:center"> <?php echo TEXT_BENEFITS_LISTING_IS_EMPTY; ?>
<td class="item_entry" colspan="4" style="text-align:right"> <?php if ($_POST['action'] == 'enter_data') { echo tep_image_submit('button_save.gif', TEXT_ENTRY_SAVE, 'style="vertical-align:middle"'); echo '</form>'; } else { if ($_POST['action'] == 'delete_entry' && $error_level == 0) { echo TEXT_ENTRY_DELETE_QUESTION . ' '; echo tep_draw_form('delete_entry_confirm', tep_href_link(FILENAME_ADMINISTRATION_TARIFFS)) . tep_create_parameters(array('action' => 'delete_entry_confirmed'), array('mPath', 'projects_id', 'employees_roles_id', 'tariffs_id'), 'hidden_field'); echo tep_image_submit('button_ok.gif', TEXT_ENTRY_DELETE_OK, 'style="vertical-align:middle"'); echo '</form>'; } else { echo tep_image(DIR_WS_LANGUAGES . $_SESSION['language'] . '/images/buttons/button_save_disabled.gif', null, null, null, 'style="vertical-align:middle"'); } } echo ' '; if ($_POST['action'] == 'enter_data' || $_POST['action'] == 'delete_entry' && $error_level == 0) { echo tep_draw_form('fcancel', tep_href_link(FILENAME_ADMINISTRATION_TARIFFS)) . tep_create_parameters(array(), array('mPath', 'projects_id', 'employees_roles_id'), 'hidden_field'); echo tep_image_submit('button_cancel.gif', TEXT_ENTRY_CANCEL, 'style="vertical-align:middle"'); echo '</form>'; } else { echo tep_image(DIR_WS_LANGUAGES . $_SESSION['language'] . '/images/buttons/button_cancel_disabled.gif', null, null, null, 'style="vertical-align:middle"'); } ?> </td> </tr> </table> </td> </tr> </table> <!-- tariff_entry_eof //-->
echo tep_draw_form('confirm_timesheet', tep_href_link(FILENAME_TIMEREGISTRATION)) . tep_create_parameters(array('action' => 'timesheet_confirmed'), array('mPath', 'period', 'sort_order'), 'hidden_field'); echo tep_image_submit('button_ok.gif', TEXT_TIMEREGISTRATION_CONFIRM_OK, 'style="vertical-align:middle"'); ?> </form> <?php echo tep_draw_form('confirm_timesheet_cancel', tep_href_link(FILENAME_TIMEREGISTRATION)) . tep_create_parameters(array(), array('mPath', 'period', 'sort_order'), 'hidden_field'); echo tep_image_submit('button_cancel.gif', TEXT_TIMEREGISTRATION_CONFIRM_CANCEL, 'style="vertical-align:middle"'); ?> </form> <?php } else { // Confirm button disabled echo tep_image(DIR_WS_LANGUAGES . $_SESSION['language'] . '/images/buttons/button_confirm_disabled.gif', null, null, null, 'style="vertical-align:middle"') . ' '; } } echo tep_draw_form('report_projects', tep_href_link(FILENAME_REPORT), 'post') . tep_create_parameters(array('action' => 'report_projects', 'current_employee' => true, 'show_travel_distance' => true, 'show_expenses' => true, 'show_comment' => true, 'show_signature' => true), array('mPath', 'period', 'sort_order'), 'hidden_field'); echo tep_image_submit('button_pdf.gif', TEXT_BUTTON_PDF, 'style="vertical-align:middle"'); ?> </form> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '50'); ?> </td> </tr> </table> </td> <!-- body_text_eof //--> </tr>
</table> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '50'); ?> </td> </tr> <tr> <td align="center"> <table border="0px" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td> <?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN)) . tep_create_parameters(array(), array('action', 'login', 'password', 'password2'), 'hidden_field'); ?> <table border="0px" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <?php if ($error_level > 0) { ?> <tr> <td class="login_error" colspan="5"> <?php echo $LOGIN_ERROR_LEVEL[$error_level]; ?> </td> </tr> <?php } ?>
?> </td> <td class="entryListing-data"><?php echo tep_strftime(DATE_FORMAT_SHORT, $_SESSION['tariff']->listing[$index]->start_date) . '<br>' . ($_SESSION['tariff']->listing[$index]->end_date != 0 ? tep_strftime(DATE_FORMAT_SHORT, $_SESSION['tariff']->listing[$index]->end_date) : '∞'); ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('edit_entry', tep_href_link(FILENAME_ADMINISTRATION_TARIFFS)) . tep_create_parameters(array('action' => 'enter_data', 'tariffs_id' => $_SESSION['tariff']->listing[$index]->id, 'tariffs_amount' => $_SESSION['tariff']->listing[$index]->amount, 'units_id' => $_SESSION['tariff']->listing[$index]->unit->id, 'tariffs_start_date' => $_SESSION['tariff']->listing[$index]->start_date, 'tariffs_end_date' => $_SESSION['tariff']->listing[$index]->end_date), array('mPath', 'projects_id', 'employees_roles_id'), 'hidden_field'); echo tep_image_submit('edit.gif', TEXT_ENTRY_EDIT, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('delete_entry', tep_href_link(FILENAME_ADMINISTRATION_TARIFFS)) . tep_create_parameters(array('action' => 'delete_entry', 'tariffs_id' => $_SESSION['tariff']->listing[$index]->id, 'tariffs_amount' => $_SESSION['tariff']->listing[$index]->amount, 'units_id' => $_SESSION['tariff']->listing[$index]->unit->id, 'tariffs_start_date' => $_SESSION['tariff']->listing[$index]->start_date, 'tariffs_end_date' => $_SESSION['tariff']->listing[$index]->end_date), array('mPath', 'projects_id', 'employees_roles_id'), 'hidden_field'); echo tep_image_submit('delete.gif', TEXT_ENTRY_DELETE, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> </tr> <?php $odd_or_even = $odd_or_even == 'odd' ? 'even' : 'odd'; } } else { ?> <tr class="entryListing-odd"> <td class="entryListing-data" colspan="5" style="text-align:center"> <?php echo TEXT_TARIFFS_LISTING_IS_EMPTY; ?>
?> </td> <td class="entryListing-data"><?php echo $_SESSION['role']->listing[$index]->category->name; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('edit_entry', tep_href_link(FILENAME_ADMINISTRATION_ROLES)) . tep_create_parameters(array('action' => 'enter_data', 'roles_id' => $_SESSION['role']->listing[$index]->id, 'roles_name' => $_SESSION['role']->listing[$index]->name, 'roles_description' => $_SESSION['role']->listing[$index]->description, 'roles_mandatory_ticket_entry' => $_SESSION['role']->listing[$index]->mandatory_ticket_entry, 'categories_id' => $_SESSION['role']->listing[$index]->category->id), array('mPath', 'projects_id'), 'hidden_field'); echo tep_image_submit('edit.gif', TEXT_ENTRY_EDIT, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('delete_entry', tep_href_link(FILENAME_ADMINISTRATION_ROLES)) . tep_create_parameters(array('action' => 'delete_entry', 'roles_id' => $_SESSION['role']->listing[$index]->id, 'roles_name' => $_SESSION['role']->listing[$index]->name, 'roles_description' => $_SESSION['role']->listing[$index]->description, 'roles_mandatory_ticket_entry' => $_SESSION['role']->listing[$index]->mandatory_ticket_entry, 'categories_id' => $_SESSION['role']->listing[$index]->category->id), array('mPath', 'projects_id'), 'hidden_field'); echo tep_image_submit('delete.gif', TEXT_ENTRY_DELETE, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> </tr> <?php $odd_or_even = $odd_or_even == 'odd' ? 'even' : 'odd'; } } else { ?> <tr class="entryListing-odd"> <td class="entryListing-data" colspan="6" style="text-align:center"> <?php echo TEXT_ROLES_LISTING_IS_EMPTY; ?>
for (; $colindex < $calendar_day_index; $colindex++) { ?> <td class="<?php echo $colindex >= 0 && $colindex <= 4 ? 'calendar-notavailable' : 'calendar-notavailable'; ?> " align="center"> </td> <?php } for ($counter = $calendar_start; $counter <= $calendar_end; $counter++, $calendar_day++, $colindex++) { if ($colindex % 7 == 0) { ?> </tr> <tr> <?php } echo tep_draw_form('select_day_' . $calendar_day, tep_href_link(FILENAME_TIMEREGISTRATION)) . tep_create_parameters(array('mPath' => '200', 'selected_date' => tep_datetouts('%Y-%m-%d', $_SESSION['timesheet']->start_date, $calendar_day - 1), 'action' => 'select_project'), array('period', 'sort_order', 'activity_id'), 'hidden_field'); ?> <td class="<?php echo $counter == $today ? 'calendar-today' : ($colindex % 7 >= 0 && $colindex % 7 <= 4 ? 'calendar-weekday' : 'calendar-weekend'); ?> " align="center"> <?php //echo '<a href=' . tep_href_link(FILENAME_TIMEREGISTRATION, tep_create_parameters(array('mPath'=>'21','selected_date'=>tep_datetouts('%Y-%m-%d', $_SESSION['timesheet']->start_date, $calendar_day - 1),'action'=>'select_project'), array('period', 'activity_id'))) . '>' . $calendar_day . '</a>'; echo tep_href_submit($calendar_day); ?> </td> </form> <?php } // Walk the rest of the cells to complete the current row for ($restindex = $colindex % 7; $restindex > 0 && $restindex <= 6; $restindex++) {
?> </td> <td class="entryListing-data"><?php echo $_SESSION['customer']->listing[$index]->billing_fax; ?> </td> <td align="center" width="20" class="entryListing-data"> <?php echo tep_draw_form('edit_entry', tep_href_link(FILENAME_ADMINISTRATION_CUSTOMERS)) . tep_create_parameters(array('action' => 'enter_data', 'customers_status' => 'existing', 'customers_id' => $_SESSION['customer']->listing[$index]->id, 'customers_name' => $_SESSION['customer']->listing[$index]->name, 'customers_id_external' => $_SESSION['customer']->listing[$index]->id_external, 'customers_billing_name1' => $_SESSION['customer']->listing[$index]->billing_name1, 'customers_billing_name2' => $_SESSION['customer']->listing[$index]->billing_name2, 'customers_billing_address' => $_SESSION['customer']->listing[$index]->billing_address, 'customers_billing_postcode' => $_SESSION['customer']->listing[$index]->billing_postcode, 'customers_billing_city' => $_SESSION['customer']->listing[$index]->billing_city, 'customers_billing_country' => $_SESSION['customer']->listing[$index]->billing_country, 'customers_billing_email_address' => $_SESSION['customer']->listing[$index]->billing_email_address, 'customers_billing_phone' => $_SESSION['customer']->listing[$index]->billing_phone, 'customers_billing_fax' => $_SESSION['customer']->listing[$index]->billing_fax, 'customers_billing_show_logo' => $_SESSION['customer']->listing[$index]->billing_show_logo), array('mPath'), 'hidden_field'); echo tep_image_submit('edit.gif', TEXT_ENTRY_EDIT, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> <td align="center" width="20" class="entryListing-data"> <?php echo tep_draw_form('delete_entry', tep_href_link(FILENAME_ADMINISTRATION_CUSTOMERS)) . tep_create_parameters(array('action' => 'delete_entry', 'customers_id' => $_SESSION['customer']->listing[$index]->id, 'customers_name' => $_SESSION['customer']->listing[$index]->name, 'customers_id_external' => $_SESSION['customer']->listing[$index]->id_external, 'customers_billing_name1' => $_SESSION['customer']->listing[$index]->billing_name1, 'customers_billing_name2' => $_SESSION['customer']->listing[$index]->billing_name2, 'customers_billing_address' => $_SESSION['customer']->listing[$index]->billing_address, 'customers_billing_postcode' => $_SESSION['customer']->listing[$index]->billing_postcode, 'customers_billing_city' => $_SESSION['customer']->listing[$index]->billing_city, 'customers_billing_country' => $_SESSION['customer']->listing[$index]->billing_country, 'customers_billing_email_address' => $_SESSION['customer']->listing[$index]->billing_email_address, 'customers_billing_phone' => $_SESSION['customer']->listing[$index]->billing_phone, 'customers_billing_fax' => $_SESSION['customer']->listing[$index]->billing_fax, 'customers_billing_show_logo' => $_SESSION['customer']->listing[$index]->billing_show_logo), array('mPath'), 'hidden_field'); echo tep_image_submit('delete.gif', TEXT_ENTRY_DELETE, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> </tr> <?php $odd_or_even = $odd_or_even == 'odd' ? 'even' : 'odd'; } } else { ?> <tr class="entryListing-odd"> <td class="entryListing-data" colspan="8" align="center"> <?php echo TEXT_CUSTOMERS_LISTING_IS_EMPTY; ?>
echo tep_image(DIR_WS_IMAGES . 'plus.gif', TEXT_PROFILES_RIGHTS_ADMINISTRATION, null, null, 'style="vertical-align:middle"'); } else { echo tep_draw_separator('pixel_trans.gif', '16', '16'); } ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('edit_entry', tep_href_link(FILENAME_ADMINISTRATION_EMPLOYEES)) . tep_create_parameters(array('action' => 'enter_data', 'employees_status' => 'existing', 'employees_id' => $_SESSION['administration_employee']->listing[$index]->id, 'employees_login' => $_SESSION['administration_employee']->listing[$index]->login, 'employees_fullname' => $_SESSION['administration_employee']->listing[$index]->fullname, 'profiles_id' => $_SESSION['administration_employee']->listing[$index]->profile->id), array('mPath'), 'hidden_field'); echo tep_image_submit('edit.gif', TEXT_ENTRY_EDIT, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('delete_entry', tep_href_link(FILENAME_ADMINISTRATION_EMPLOYEES)) . tep_create_parameters(array('action' => 'delete_entry', 'employees_id' => $_SESSION['administration_employee']->listing[$index]->id, 'employees_login' => $_SESSION['administration_employee']->listing[$index]->login, 'employees_fullname' => $_SESSION['administration_employee']->listing[$index]->fullname, 'profiles_id' => $_SESSION['administration_employee']->listing[$index]->profile->id), array('mPath'), 'hidden_field'); echo tep_image_submit('delete.gif', TEXT_ENTRY_DELETE, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> </tr> <?php $odd_or_even = $odd_or_even == 'odd' ? 'even' : 'odd'; } } else { ?> <tr class="entryListing-odd"> <td class="entryListing-data" colspan="11" style="text-align:center"> <?php echo TEXT_EMPLOYEES_LISTING_IS_EMPTY; ?>
<tr> <?php echo tep_draw_form('period_back', tep_href_link(FILENAME_DEFAULT)) . tep_create_parameters(array('period' => tep_next_period($_POST['period'], -1)), array('mPath'), 'hidden_field'); ?> <td align="left" class="infoBoxHeading"> <?php echo tep_image_submit('arrow_left.gif', TEXT_TIMEREGISTRATION_BACK, '', DIR_WS_IMAGES); ?> </td> </form> <td align="center" class="infoBoxHeading"><?php echo TEXT_TIMEREGISTRATION_PERIOD . $_POST['period']; ?> </td> <?php echo tep_draw_form('period_forward', tep_href_link(FILENAME_DEFAULT)) . tep_create_parameters(array('period' => tep_next_period($_POST['period'], 1)), array('mPath'), 'hidden_field'); ?> <td align="right" class="infoBoxHeading"> <?php echo tep_image_submit('arrow_right.gif', TEXT_TIMEREGISTRATION_FORWARD, '', DIR_WS_IMAGES); ?> </td> </form> </tr> </table> </td> </tr> <tr> <td align="center"> <table border="0px" width="20%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr>
?> </td> <td class="entryListing-data"><?php echo $_SESSION['unit']->listing[$index]->description; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('edit_entry', tep_href_link(FILENAME_ADMINISTRATION_UNITS)) . tep_create_parameters(array('action' => 'enter_data', 'units_id' => $_SESSION['unit']->listing[$index]->id, 'units_name' => $_SESSION['unit']->listing[$index]->name, 'units_description' => $_SESSION['unit']->listing[$index]->description), array('mPath'), 'hidden_field'); echo tep_image_submit('edit.gif', TEXT_ENTRY_EDIT, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('delete_entry', tep_href_link(FILENAME_ADMINISTRATION_UNITS)) . tep_create_parameters(array('action' => 'delete_entry', 'units_id' => $_SESSION['unit']->listing[$index]->id, 'units_name' => $_SESSION['unit']->listing[$index]->name, 'units_description' => $_SESSION['unit']->listing[$index]->description), array('mPath'), 'hidden_field'); echo tep_image_submit('delete.gif', TEXT_ENTRY_DELETE, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> </tr> <?php $odd_or_even = $odd_or_even == 'odd' ? 'even' : 'odd'; } } else { ?> <tr class="entryListing-odd"> <td class="entryListing-data" colspan="5" style="text-align:center"> <?php echo TEXT_UNITS_LISTING_IS_EMPTY; ?>
?> " valign="top"> <td class="entryListing-data"><?php echo $_SESSION['category']->listing[$index]->name; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('edit_entry', tep_href_link(FILENAME_ADMINISTRATION_CATEGORIES)) . tep_create_parameters(array('action' => 'enter_data', 'categories_id' => $_SESSION['category']->listing[$index]->id, 'categories_name' => $_SESSION['category']->listing[$index]->name), array('mPath'), 'hidden_field'); echo tep_image_submit('edit.gif', TEXT_ENTRY_EDIT, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('delete_entry', tep_href_link(FILENAME_ADMINISTRATION_CATEGORIES)) . tep_create_parameters(array('action' => 'delete_entry', 'categories_id' => $_SESSION['category']->listing[$index]->id, 'categories_name' => $_SESSION['category']->listing[$index]->name), array('mPath'), 'hidden_field'); echo tep_image_submit('delete.gif', TEXT_ENTRY_DELETE, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> </tr> <?php $odd_or_even = $odd_or_even == 'odd' ? 'even' : 'odd'; } } else { ?> <tr class="entryListing-odd"> <td class="entryListing-data" colspan="3" style="text-align:center"> <?php echo TEXT_CATEGORIES_LISTING_IS_EMPTY; ?>
?> </td> <td class="entryListing-data" style="text-align:center;width:75px"><?php echo $BUSINESS_UNITS_IMAGE_POSITION[$_SESSION['business_unit']->listing[$index]->image_position]; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('edit_entry', tep_href_link(FILENAME_ADMINISTRATION_BUSINESS_UNITS)) . tep_create_parameters(array('action' => 'enter_data', 'business_units_id' => $_SESSION['business_unit']->listing[$index]->id, 'business_units_name' => $_SESSION['business_unit']->listing[$index]->name, 'business_units_image' => $_SESSION['business_unit']->listing[$index]->image, 'business_units_image_position' => $_SESSION['business_unit']->listing[$index]->image_position), array('mPath'), 'hidden_field'); echo tep_image_submit('edit.gif', TEXT_ENTRY_EDIT, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('delete_entry', tep_href_link(FILENAME_ADMINISTRATION_BUSINESS_UNITS)) . tep_create_parameters(array('action' => 'delete_entry', 'business_units_id' => $_SESSION['business_unit']->listing[$index]->id, 'business_units_name' => $_SESSION['business_unit']->listing[$index]->name, 'business_units_image' => $_SESSION['business_unit']->listing[$index]->image, 'business_units_image_position' => $_SESSION['business_unit']->listing[$index]->image_position), array('mPath'), 'hidden_field'); echo tep_image_submit('delete.gif', TEXT_ENTRY_DELETE, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> </tr> <?php $odd_or_even = $odd_or_even == 'odd' ? 'even' : 'odd'; } } else { ?> <tr class="entryListing-odd"> <td class="entryListing-data" colspan="5" style="text-align:center"> <?php echo TEXT_BUSINESS_UNITS_LISTING_IS_EMPTY; ?>
<td class="entryListing-data"><?php echo $_SESSION['project']->listing[$index]->customer->name; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('edit_entry', tep_href_link(FILENAME_ADMINISTRATION_PROJECTS)) . tep_create_parameters(array('action' => 'enter_data', 'projects_id' => $_SESSION['project']->listing[$index]->id, 'projects_name' => $_SESSION['project']->listing[$index]->name, 'projects_description' => $_SESSION['project']->listing[$index]->description, 'projects_customers_contact_name' => $_SESSION['project']->listing[$index]->customers_contact_name, 'projects_customers_reference' => $_SESSION['project']->listing[$index]->customers_reference, 'projects_start_date' => $_SESSION['project']->listing[$index]->start_date, 'projects_end_date' => $_SESSION['project']->listing[$index]->end_date, 'projects_calculated_hours' => $_SESSION['project']->listing[$index]->calculated_hours, 'projects_calculated_hours_period' => $_SESSION['project']->listing[$index]->calculated_hours_period, 'projects_business_units_id' => $_SESSION['project']->listing[$index]->business_unit->id, 'projects_customers_id' => $_SESSION['project']->listing[$index]->customer->id), array(), 'hidden_field'); echo tep_draw_hidden_field('mPath', $_REQUEST['mPath']); echo tep_draw_hidden_field('show_history', $_REQUEST['showhistory']); echo tep_image_submit('edit.gif', TEXT_ENTRY_EDIT, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('delete_entry', tep_href_link(FILENAME_ADMINISTRATION_PROJECTS)) . tep_create_parameters(array('action' => 'delete_entry', 'projects_id' => $_SESSION['project']->listing[$index]->id, 'projects_name' => $_SESSION['project']->listing[$index]->name, 'projects_description' => $_SESSION['project']->listing[$index]->description, 'projects_customers_contact_name' => $_SESSION['project']->listing[$index]->customers_contact_name, 'projects_customers_reference' => $_SESSION['project']->listing[$index]->customers_reference, 'projects_start_date' => $_SESSION['project']->listing[$index]->start_date, 'projects_end_date' => $_SESSION['project']->listing[$index]->end_date, 'projects_calculated_hours' => $_SESSION['project']->listing[$index]->calculated_hours, 'projects_calculated_hours_period' => $_SESSION['project']->listing[$index]->calculated_hours_period, 'projects_business_units_id' => $_SESSION['project']->listing[$index]->business_unit->id, 'projects_customers_id' => $_SESSION['project']->listing[$index]->customer->id), array(), 'hidden_field'); echo tep_draw_hidden_field('mPath', $_REQUEST['mPath']); echo tep_draw_hidden_field('show_history', $_REQUEST['showhistory']); echo tep_image_submit('delete.gif', TEXT_ENTRY_DELETE, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> </tr> <?php $odd_or_even = $odd_or_even == 'odd' ? 'even' : 'odd'; } } else { ?> <tr class="entryListing-odd"> <td class="entryListing-data" colspan="9" style="text-align:center"> <?php
</tr> <tr> <td valign="top" width="65"><?php echo tep_image_submit('button_pdf.gif', TEXT_BUTTON_PDF); ?> </td> <td> </td> </tr> </table> </form> </td> </tr> <tr> <td> <?php echo tep_draw_form('export_projects', tep_href_link(FILENAME_EXPORT), 'post') . tep_create_parameters(array('action' => 'export_activities'), array('period'), 'hidden_field'); ?> <table border="0" width="100%" cellspacing="0" cellpadding="10" class="report_listing"> <tr> <td colspan="2" class="boxTitle"><?php echo EXPORT_NAME_ACTIVITIES; ?> </td> </tr> <tr> <td valign="top" width="65"><?php echo tep_image_submit('button_csv.gif', TEXT_BUTTON_CSV); ?> </td> <td> </td> </tr>
<td class="item_entry" colspan="4" style="text-align:right"> <?php if ($_POST['action'] == 'enter_data') { echo tep_image_submit('button_save.gif', TEXT_ENTRY_SAVE, 'style="vertical-align:middle"'); echo '</form>'; } else { if ($_POST['action'] == 'delete_entry') { echo TEXT_ENTRY_DELETE_QUESTION . ' '; echo tep_draw_form('delete_entry_confirm', tep_href_link(FILENAME_ADMINISTRATION_EMPLOYEES)) . tep_create_parameters(array('action' => 'delete_entry_confirmed'), array('mPath', 'employees_id'), 'hidden_field'); echo tep_image_submit('button_ok.gif', TEXT_ENTRY_DELETE_OK, 'style="vertical-align:middle"'); echo '</form>'; } else { echo tep_image(DIR_WS_LANGUAGES . $_SESSION['language'] . '/images/buttons/button_save_disabled.gif', null, null, null, 'style="vertical-align:middle"'); } } echo ' '; if ($_POST['action'] == 'enter_data' || $_POST['action'] == 'delete_entry') { echo tep_draw_form('fcancel', tep_href_link(FILENAME_ADMINISTRATION_EMPLOYEES)) . tep_create_parameters(array(), array('mPath'), 'hidden_field'); echo tep_image_submit('button_cancel.gif', TEXT_ENTRY_CANCEL, 'style="vertical-align:middle"'); echo '</form>'; } else { echo tep_image(DIR_WS_LANGUAGES . $_SESSION['language'] . '/images/buttons/button_cancel_disabled.gif', null, null, null, 'style="vertical-align:middle"'); } ?> </td> </tr> </table> </td> </tr> </table> <!-- activity_entry_eof //-->
echo tep_image(DIR_WS_IMAGES . 'plus.gif', TEXT_PROFILES_RIGHTS_ADMINISTRATION, null, null, 'style="vertical-align:middle"'); } else { echo tep_draw_separator('pixel_trans.gif', '16', '16'); } ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('edit_entry', tep_href_link(FILENAME_ADMINISTRATION_PROFILES)) . tep_create_parameters(array('action' => 'enter_data', 'profiles_id' => $_SESSION['profile']->listing[$index]->id, 'profiles_name' => $_SESSION['profile']->listing[$index]->name, 'profiles_rights_login' => $_SESSION['profile']->listing[$index]->right['login'], 'profiles_rights_projectlisting' => $_SESSION['profile']->listing[$index]->right['projectlisting'], 'profiles_rights_timeregistration' => $_SESSION['profile']->listing[$index]->right['timeregistration'], 'profiles_rights_analysis' => $_SESSION['profile']->listing[$index]->right['analysis'], 'profiles_rights_administration' => $_SESSION['profile']->listing[$index]->right['administration']), array('mPath'), 'hidden_field'); echo tep_image_submit('edit.gif', TEXT_ENTRY_EDIT, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> <td class="entryListing-data" style="width:20px;text-align:center"> <?php echo tep_draw_form('delete_entry', tep_href_link(FILENAME_ADMINISTRATION_PROFILES)) . tep_create_parameters(array('action' => 'delete_entry', 'profiles_id' => $_SESSION['profile']->listing[$index]->id, 'profiles_name' => $_SESSION['profile']->listing[$index]->name, 'profiles_rights_login' => $_SESSION['profile']->listing[$index]->right['login'], 'profiles_rights_projectlisting' => $_SESSION['profile']->listing[$index]->right['projectlisting'], 'profiles_rights_timeregistration' => $_SESSION['profile']->listing[$index]->right['timeregistration'], 'profiles_rights_analysis' => $_SESSION['profile']->listing[$index]->right['analysis'], 'profiles_rights_administration' => $_SESSION['profile']->listing[$index]->right['administration']), array('mPath'), 'hidden_field'); echo tep_image_submit('delete.gif', TEXT_ENTRY_DELETE, '', DIR_WS_IMAGES); echo '</form>'; ?> </td> </tr> <?php $odd_or_even = $odd_or_even == 'odd' ? 'even' : 'odd'; } } else { ?> <tr class="entryListing-odd"> <td class="entryListing-data" colspan="8" style="text-align:center"> <?php echo TEXT_PROFILES_LISTING_IS_EMPTY; ?>