$fields['timezone'] = $credentials->utc_offset; unset($fields['type']); $table = "manager_tw_acc"; if ($db->doInsert($table, $fields)) { $hsc->clearFlow(); exit(makebody(0, $fields['name'], $fields['screen_name'], $fields['img'], $credentials->default_profile_image ? "true" : "false", $fields['location'])); } else { exit(makeBody(6)); } } } else { $hsc->clearFlow(); exit(makeBody(4)); } } break; } } } else { $hsc->clearFlow(); exit(makeBody(2)); } } else { $hsc->clearFlow(); exit(makeBody(4)); } } catch (Exception $e) { $hsc->clearFlow(); exit(makeBody(4)); } }
} function makeFooter() { return "<div id=\"footer\"><p><a href=\"http://www.solitude.dk/filethingie/\">File Thingie</a> © <!-- Copyright --> 2003-2006 <a href=\"http://www.solitude.dk\">Andreas Haugstrup Pedersen</a>.</p></div>"; } # Start running File Thingie # session_start(); header("Content-Type: text/html; charset=ISO-8859-1"); $str = ""; if (checklogin()) { // Run initializing functions. sanitizeREQUEST(); doAction(); $str = makeHeader(); $str .= makeSidebar(); $str .= makeBody(); } else { $str .= makeLogin(); } $str .= makeFooter(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <?php require "../includes/globals.php"; session_start(); //$id = $_SESSION['valid_admin']; //$pw = $_SESSION['pw'];
function ShowReport(){ global $GroupCostCenter; global $GroupPersonType; ?> <html> <head> <META http-equiv=Content-Type content="text/html; charset=UTF-8" > <style> .header { background-color: #D9EBFF; font-weight: bold; font-size: 10px !important; } .header td{ font-size: 11px !important; } /*-----------------------*/ #outer table { border : 0px; border-collapse: collapse; width : 100%; } #outer tr { border : 1px solid black; border-bottom: 0px; } #outer td { font-family: tahoma; font-size: 10px; height : 21px; } /*-----------------------*/ #inner table { border : 0px; border-collapse: collapse; width : 100%; } #inner td { font-family: tahoma; padding-right : 3px; font-size: 10px; height : 21px; border-collapse: collapse; border : 1px solid black; } </style> </head> <body dir=rtl> <? $person_count; $salaryItems = array(); global $MainQuery; $MainRows = PrepareData($person_count,$_GET['RepType']); $currentGroup = ""; for($i=0; $i < count($MainRows); $i++) { $row = $MainRows[$i]; $group = $GroupCostCenter ? $row["cost_center_id"] . "_" : "ALL_"; $group .= $GroupPersonType ? $row["person_type"] : "ALL"; if($currentGroup != $group) { if($currentGroup != "") { makeBody($salaryItems); makeFooter(); } makeHeader($row, $person_count); $currentGroup = $group; $i--; $salaryItems = array(); continue; } $salaryItems[ $row["salary_item_type_id"] ] = $row; $salaryItems[ $row["salary_item_type_id"] ]["value"] = ($row["effect_type"] == "1") ? $row["pay_sum"] : $row["get_sum"]; $salaryItems[ $row["salary_item_type_id"] ]["diff_value"] = ($row["effect_type"] == "1") ? $row["diff_pay_sum"] : $row["diff_get_sum"]; } //--------- for last costcenter -------------- makeBody($salaryItems); makeFooter(); ?> <div style="display:none"><?= $MainQuery ?></div> </body> </html> <? }