|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: |
Page1.php---------->
print ("<form style=margin:0 id=ProjectForm name=ProjectForm method=post action=page2.php>
<tr><td><select name=ProjectSelectArray[] size=15 multiple=multiple id=ProjectSelectArray[]>");
//Get All Projects
$tsql = "SELECT * FROM Projects WHERE Active=1 ORDER BY ProjectName";
$stmt = sqlsrv_query($conn1, $tsql);
$str = "";
while($row = sqlsrv_fetch_array($stmt, SQLSRV_FETCH_ASSOC))
{
$a = count($_SESSION['ProjectSelect']);
for ($i=0; $i<$a; $i++) {
$ProjectID = $_SESSION['ProjectSelect'][$i];
if ($ProjectID == $row[ProjectID]) {
$str = "selected";
}
}
print ("<option value=$row[ProjectID] $str>$row[ProjectID]: $row[ProjectName] $str</option>\n");
$str = "";
}
print ("</select></td></tr></form>");
Page2.php-------------->
<?php
$_SESSION['ProjectSelect'] = $_POST['ProjectSelectArray'];
?>
<?php
print ("<form style=margin:0 id=SetExpenseDistributionForm name=SetExpenseDistributionForm method=post action=page3.php>
<table width=100% border=0 cellspacing=0 cellpadding=5>
<tr><td><a href=page1.php>Select Project(s)</a> >> <strong>Set Expense Allocation</strong> >> Select Expense Type >> Submit Expense Item</td></tr>
</table>
<table width=100% border=0 cellspacing=0 cellpadding=5>");
//Print errors if any
if (isset($formerror)) {
print ("<tr><td class=error>$formerror</td></tr>");
}
print ("<tr><td><table width=100% border=0 cellspacing=0 cellpadding=5>");
$b = count($_SESSION['ProjectSelect']);
for ($j=0; $j<$b; $j++) {
$ProjectID = $_SESSION['ProjectSelect'][$j];
//Get Project Name
$tsql = "SELECT * FROM Projects WHERE ProjectID=?";
$stmt = sqlsrv_query($conn1, $tsql, array($ProjectID));
$row = sqlsrv_fetch_array($stmt, SQLSRV_FETCH_ASSOC);
$ProjectName = $row[ProjectName];
print ("<tr><td width=4%><input name=ProjectPercentArray[$j] type=text id=ProjectPercentArray[$j]></td>
<td width=96%>%: $ProjectID: $ProjectName</td></tr>");
}
print ("</table></td></tr><tr><td><em>Expense Distribution Must Equal 100% </em></td></tr><tr><td>
<table><tr><td width=100><input name=SetExpenseDistribution type=submit id=SetExpenseDistribution value=\"Continue\" ></td>
<td><input type=button value=Cancel onClick=goToURL()></td></tr></table></td></tr></table></form>");
?>
|
Advertisement
| Hall of Fame |