Click here to Skip to main content
15,895,084 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Please help: Unable to automatically step into the server. Pin
Paddy Boyd11-Dec-08 1:55
Paddy Boyd11-Dec-08 1:55 
QuestionFirefox ignoring positioning parts of CSS Pin
47_MasoN_4710-Dec-08 10:28
professional47_MasoN_4710-Dec-08 10:28 
AnswerRe: Firefox ignoring positioning parts of CSS Pin
Guffa11-Dec-08 7:01
Guffa11-Dec-08 7:01 
GeneralRe: Firefox ignoring positioning parts of CSS Pin
47_MasoN_4712-Dec-08 8:21
professional47_MasoN_4712-Dec-08 8:21 
GeneralRe: Firefox ignoring positioning parts of CSS Pin
Guffa12-Dec-08 8:54
Guffa12-Dec-08 8:54 
GeneralRe: Firefox ignoring positioning parts of CSS Pin
47_MasoN_4712-Dec-08 9:11
professional47_MasoN_4712-Dec-08 9:11 
GeneralRe: Firefox ignoring positioning parts of CSS Pin
Guffa12-Dec-08 9:15
Guffa12-Dec-08 9:15 
GeneralRe: Firefox ignoring positioning parts of CSS Pin
47_MasoN_4712-Dec-08 10:30
professional47_MasoN_4712-Dec-08 10:30 
<?php

// Connecting to MySQL and selecting the xxx database
include 'it-opendb.php';


// Authentication - not secure...needs work
$adminPass = $_REQUEST['adminPass'];

if ($adminPass == "xxx") {

// Retrieve data from xxx database - xxx table
$request = mysql_query("SELECT * FROM xxx") or die(mysql_error());

// CSS statment
echo "<link rel='stylesheet' type='text/css' href='admincss.css' />";

// Display retrieved data with while loop
echo "<div id='itlisttableadmin'>";
echo "<table border='1'>";
echo "<tr> <th>Case #</th> <th>User Name</th> <th>Date Requested</th> <th>Date Required</th> <th>Problem</th> <th>Status</th></tr>";

while($row = mysql_fetch_array($request)){
// Print out list of IT requests into a table
echo "<tr><td>";
echo $row['id'];
echo "</td><td>";
echo $row['userName'];
echo "</td><td>";
echo $row['dateRequested'];
echo "</td><td>";
echo $row['dateRequired'];
echo "</td><td>";
echo $row['problem'];
echo "</td><td>";
echo $row['status'];
echo "</td></tr>";

}

echo "</div>";

echo "<div id='changeStatus'>";
echo "<form id='adminStatus' action='adminStatus.php' method='post'>";
echo "<p><label for='case'>Case #: </label><input type='text' maxlength='4' name='case' id='case' /></p>";
echo "<p><label for='newStatus'>New Status: </label><input type='text' name='newStatus' id='newStatus' /></p>";
echo "<p><input type='submit' name='adminStatusSubmit' id='adminStatusSubmit' value='submit' />";
echo "</form>";
echo "</div>";

echo "<div id='changeUser'>";
echo "<form id='adminUser' action='adminUser.php' method='post'>";
echo "<p><label for='case'>Case #: </label><input type='text' maxlength='4' name='case' id='case' /></p>";
echo "<p><label for='newUser'>New User Name: </label><input type='text' name='newUser' id='newUser' /></p>";
echo "<p><input type='submit' name='adminUserSubmit' id='adminUserSubmit' value='submit' />";
echo "</form>";
echo "</div>";

echo "<div id='changeRequired'>";
echo "<form id='adminRequired' action='adminRequired.php' method='post'>";
echo "<p><label for='case'>Case #: </label><input type='text' maxlength='4' name='case' id='case' /></p>";
echo "<p><label for='newDRequired'>New Date Required: </label><input type='text' name='newDRequired' id='newDRequired' /></p>";
echo "<p><input type='submit' name='adminRequiredSubmit' id='adminRequiredSubmit' value='submit' />";
echo "</form>";
echo "</div>";

echo "<div id='changeRequested'>";
echo "<form id='adminRequested' action='adminRequested.php' method='post'>";
echo "<p><label for='case'>Case #: </label><input type='text' maxlength='4' name='case' id='case' /></p>";
echo "<p><label for='newDRequested'>New Date Requested: </label><input type='text' name='newDRequested' id='newDRequested' /></p>";
echo "<p><input type='submit' name='adminRequestedSubmit' id='adminRequestedSubmit' value='submit' />";
echo "</form>";
echo "</div>";

}

else {
echo "Wrong Password - Try again";
}
?>
GeneralRe: Firefox ignoring positioning parts of CSS Pin
Guffa12-Dec-08 10:54
Guffa12-Dec-08 10:54 
GeneralRe: Firefox ignoring positioning parts of CSS Pin
47_MasoN_4712-Dec-08 11:10
professional47_MasoN_4712-Dec-08 11:10 
GeneralRe: Firefox ignoring positioning parts of CSS Pin
Guffa12-Dec-08 11:33
Guffa12-Dec-08 11:33 
GeneralRe: Firefox ignoring positioning parts of CSS Pin
47_MasoN_4712-Dec-08 11:43
professional47_MasoN_4712-Dec-08 11:43 
NewsRe: Firefox ignoring positioning parts of CSS Pin
47_MasoN_4716-Dec-08 6:49
professional47_MasoN_4716-Dec-08 6:49 
QuestionRole based contorls privileges? Pin
countnazgul10-Dec-08 4:45
countnazgul10-Dec-08 4:45 
AnswerRe: Role based contorls privileges? Pin
Howard Richards11-Dec-08 0:28
Howard Richards11-Dec-08 0:28 
QuestionHow To Displaying Hindi Content in Classic ASP application Pin
asprajesh10-Dec-08 3:42
asprajesh10-Dec-08 3:42 
AnswerRe: How To Displaying Hindi Content in Classic ASP application Pin
Mohammad Dayyan10-Dec-08 11:29
Mohammad Dayyan10-Dec-08 11:29 
GeneralRe: How To Displaying Hindi Content in Classic ASP application Pin
asprajesh10-Dec-08 21:42
asprajesh10-Dec-08 21:42 
GeneralRe: How To Displaying Hindi Content in Classic ASP application Pin
Mohammad Dayyan10-Dec-08 22:10
Mohammad Dayyan10-Dec-08 22:10 
QuestionApplying CSS in Crystal Report is not working when export to PDF Format......... Pin
Sinnakjegan9-Dec-08 17:09
Sinnakjegan9-Dec-08 17:09 
QuestionEvent that fires when the value changes Pin
Leo Smith9-Dec-08 10:39
Leo Smith9-Dec-08 10:39 
AnswerRe: Event that fires when the value changes Pin
Howard Richards9-Dec-08 21:33
Howard Richards9-Dec-08 21:33 
GeneralRe: Event that fires when the value changes Pin
Leo Smith10-Dec-08 6:46
Leo Smith10-Dec-08 6:46 
GeneralRe: Event that fires when the value changes Pin
Howard Richards11-Dec-08 0:22
Howard Richards11-Dec-08 0:22 
GeneralRe: Event that fires when the value changes Pin
Leo Smith11-Dec-08 3:01
Leo Smith11-Dec-08 3:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.