<?php | |
include('./lib/common.inc.php'); | |
include_header("Map"); | |
?> | |
<div class="msg_list"> | |
<p class="msg_head">Header-1 </p> | |
<div class="msg_body"> | |
orem ipsum dolor sit amet, consectetuer adipiscing elit orem ipsum dolor sit amet, consectetuer adipiscing elit | |
</div> | |
<p class="msg_head">Header-2</p> | |
<div class="msg_body"> | |
orem ipsum dolor sit amet, consectetuer adipiscing elit orem ipsum dolor sit amet, consectetuer adipiscing elit | |
</div> | |
<p class="msg_head">Header-3</p> | |
<div class="msg_body"> | |
orem ipsum dolor sit amet, consectetuer adipiscing elit orem ipsum dolor sit amet, consectetuer adipiscing elit | |
</div> | |
</div> | |
sourced from austender | sourced from austender |
Government Agency Information (2009-07-10): National Archives of Australia, http://www.naa.gov.au under Creative Commons - Attribution 2.5 Australia (CC-BY) | Government Agency Information (2009-07-10): National Archives of Australia, http://www.naa.gov.au under Creative Commons - Attribution 2.5 Australia (CC-BY) |
jpgraph for php | jpgraph for php |
ABR | ABR |
Redhat Liberation fonts | Redhat Liberation fonts |
<?php | |
include_once("./lib/common.inc.php"); | |
$query = "SELECT DATE(importDate) as importday, count(*) as count, min(publishDate) as start, max(publishDate) as end | |
FROM `contractnotice` WHERE childCN = 0 AND parentCN = 0 AND DATE(importDate) in (select * from (SELECT DATE(importDate) | |
FROM `contractnotice` ORDER BY `importDate` DESC limit 1) alias)"; | |
$result = mysql_query($query); | |
echo "<div>"; | |
$stats = mysql_fetch_array($result, MYSQL_BOTH); | |
echo $stats["count"] . " new records in period " . $stats["start"] . " to " . $stats["end"] ."<br>"; | |
$query = "SELECT DATE(importDate) as importday, count(*) as count, min(publishDate) as start, max(publishDate) as end | |
FROM `contractnotice` WHERE (childCN != 0 OR parentCN != 0) AND DATE(importDate) in (select * from (SELECT DATE(importDate) | |
FROM `contractnotice` ORDER BY `importDate` DESC limit 1) alias)"; | |
$result = mysql_query($query); | |
echo "<div>"; | |
$stats = mysql_fetch_array($result, MYSQL_BOTH); | |
echo $stats["count"] . " updated records in period " . $stats["start"] . " to " . $stats["end"] ."<br>"; | |
echo "Last updated: ". $stats["importday"]."<br>"; | |
/* Check for null Procurement method and 0 ABN when not ABN exempt */ | |
include_footer(); | |
?> |
<?php | <?php |
error_reporting(E_ALL); | error_reporting(E_ALL); |
$link = mysql_connect('localhost', 'team7', 'wlUsnD2xu9'); | include_once("../lib/common.inc.php"); |
if (!$link) { | |
die('Could not connect: ' . mysql_error()); | |
} | |
@mysql_select_db("team7") or die("Unable to select database"); | |
$unspscresult = mysql_query ("select * from UNSPSCcategories;"); | $unspscresult = mysql_query ("select * from UNSPSCcategories;"); |
while ($row = mysql_fetch_assoc($unspscresult)) { | while ($row = mysql_fetch_assoc($unspscresult)) { |
$unspsc[$row['Title']] = $row['UNSPSC']; | $unspsc[$row['Title']] = $row['UNSPSC']; |
} | } |
$query = "SELECT CNID,category,value | $query = "SELECT CNID,category,value |
FROM `contractnotice` | FROM `contractnotice` |
WHERE `categoryUNSPSC` IS NULL OR `categoryUNSPSC` = 0"; | WHERE `categoryUNSPSC` IS NULL OR `categoryUNSPSC` = 0"; |
$emptycatresult = mysql_query ($query); | $emptycatresult = mysql_query ($query); |
$missing = Array(); | $missing = Array(); |
if ($emptycatresult){ | if ($emptycatresult){ |
while ($record = mysql_fetch_assoc($emptycatresult)) { | while ($record = mysql_fetch_assoc($emptycatresult)) { |
if ($unspsc[$record['category']] == "") { | if ($unspsc[$record['category']] == "") { |
$missing[$record['category']]= $missing[$record['category']]+ $record['value']; | $missing[$record['category']]= $missing[$record['category']]+ $record['value']; |
// echo "<br>\n Category not found for: \n"; | // echo "<br>\n Category not found for: \n"; |
// print_r($record); | // print_r($record); |
} else { | } else { |
$result = mysql_query("UPDATE contractnotice SET categoryUNSPSC = | $result = mysql_query("UPDATE contractnotice SET categoryUNSPSC = |
'".mysql_real_escape_string($unspsc[$record['category']])."' where CNID = | '".mysql_real_escape_string($unspsc[$record['category']])."' where CNID = |
'".mysql_real_escape_string($record['CNID'])."';"); | '".mysql_real_escape_string($record['CNID'])."';"); |
if ($result) echo $record['CNID']. " set to ". ($unspsc[$record['category']]) . " <br>\n"; | if ($result) echo $record['CNID']. " set to ". ($unspsc[$record['category']]) . " <br>\n"; |
else echo "error".mysql_error(); | else echo "error".mysql_error(); |
} | } |
} | } |
} else echo "error".mysql_error(); | } else echo "error".mysql_error(); |
asort($missing); | asort($missing); |
print_r($missing); | print_r($missing); |
?> | ?> |
<?PHP | <?PHP |
//System Configurations | //System Configurations |
$config_http_script_dir = "http://localhost/contractDashboard/cutenews"; | $config_http_script_dir = "http://localhost/contractDashboard/cutenews"; |
$config_skin = "default"; | $config_skin = "default"; |
$config_date_adjust = "0"; | $config_date_adjust = "0"; |
$config_smilies = "smile,wink,wassat,tongue,laughing,sad,angry,crying"; | $config_smilies = "smile,wink,wassat,tongue,laughing,sad,angry,crying"; |
$config_auto_archive = "no"; | $config_auto_archive = "no"; |
$config_allow_registration = "no"; | $config_allow_registration = "no"; |
$config_registration_level = "4"; | $config_registration_level = "4"; |
$config_use_avatar = "no"; | $config_use_avatar = "no"; |
$config_use_wysiwyg = "no"; | $config_use_wysiwyg = "no"; |
$config_reverse_active = "no"; | $config_reverse_active = "no"; |
$config_timestamp_active = "d M Y"; | $config_timestamp_active = "d M Y"; |
$config_full_popup = "no"; | $config_full_popup = "no"; |
$config_full_popup_string = "HEIGHT=400,WIDTH=650,resizable=yes,scrollbars=yes"; | $config_full_popup_string = "HEIGHT=400,WIDTH=650,resizable=yes,scrollbars=yes"; |
$config_show_comments_with_full = "yes"; | $config_show_comments_with_full = "yes"; |
$config_auto_wrap = "44"; | $config_auto_wrap = "44"; |
$config_reverse_comments = "no"; | $config_reverse_comments = "no"; |
$config_flood_time = "15"; | $config_flood_time = "15"; |
$config_comment_max_long = "1500"; | $config_comment_max_long = "1500"; |
$config_comments_per_page = "50"; | $config_comments_per_page = "50"; |
$config_only_registered_comment = "no"; | $config_only_registered_comment = "no"; |
$config_allow_url_instead_mail = "yes"; | $config_allow_url_instead_mail = "yes"; |
$config_timestamp_comment = "d M Y h:i a"; | $config_timestamp_comment = "d M Y h:i a"; |
$config_comments_popup = "no"; | $config_comments_popup = "no"; |
$config_comments_popup_string = "HEIGHT=400,WIDTH=650,resizable=yes,scrollbars=yes"; | $config_comments_popup_string = "HEIGHT=400,WIDTH=650,resizable=yes,scrollbars=yes"; |
$config_show_full_with_comments = "yes"; | $config_show_full_with_comments = "yes"; |
$config_notify_email = "govhack@lambdacomplex.org"; | $config_notify_email = "govhack@lambdacomplex.org"; |
$config_notify_status = "disabled"; | $config_notify_status = "disabled"; |
$config_notify_registration = "no"; | $config_notify_registration = "no"; |
$config_notify_comment = "no"; | $config_notify_comment = "no"; |
$config_notify_unapproved = "no"; | $config_notify_unapproved = "no"; |
$config_notify_archive = "no"; | $config_notify_archive = "no"; |
$config_notify_postponed = "no"; | $config_notify_postponed = "no"; |
?> | ?> |
<?PHP die("You don't have access to open this file !!!"); ?> | <?PHP die("You don't have access to open this file !!!"); ?> |
1259446539|1|maxious|9c1cfbdadde1e4c9c5d301f57848bf38|cD team|govhack@lambdacomplex.org|0|0||1259446557|| | 1259446539|1|maxious|9c1cfbdadde1e4c9c5d301f57848bf38|cD team|govhack@lambdacomplex.org|0|0||1259446557|| |
<html> | <html> |
<head><title>Example1</title></head> | <head><title>Example1</title></head> |
<body> | <body> |
<a href="?go=news">news</a> || | <a href="?go=news">news</a> || |
<a href="?go=headlines">headlines</a> || | <a href="?go=headlines">headlines</a> || |
<a href="?go=archives">arhcives</a> || | <a href="?go=archives">arhcives</a> || |
<a href="?go=search">search</a> || | <a href="?go=search">search</a> || |
<a style="font-size:120%" href="example2.php">See Advanced Example >></a> | <a style="font-size:120%" href="example2.php">See Advanced Example >></a> |