|
[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: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: |
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../../Connections/sqlConn1.asp" -->
<%
Dim MM_editAction
MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
If (Request.QueryString <> "") Then
MM_editAction = MM_editAction & "?" & Server.HTMLEncode(Request.QueryString)
End If
' boolean to abort record edit
Dim MM_abortEdit
MM_abortEdit = false
%>
<%
If (CStr(Request("MM_insert")) = "form1") Then
If (Not MM_abortEdit) Then
' execute the insert
Dim MM_editCmd
Set MM_editCmd = Server.CreateObject ("ADODB.Command")
MM_editCmd.ActiveConnection = MM_sqlConn1_STRING
MM_editCmd.CommandText = "INSERT INTO dbo.LeagueTeams (TeamName) VALUES (?)"
MM_editCmd.Prepared = true
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 201, 1, 50, Request.Form("_ctl0_ContentPlaceHolder_TeamName")) ' adLongVarChar
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close
End If
End If
%>
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
If (Request.QueryString("League") <> "") Then
Recordset1__MMColParam = Request.QueryString("League")
End If
%>
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows
Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_sqlConn1_STRING
Recordset1_cmd.CommandText = "SELECT GolferID, LeagueID, FirstName, LastName FROM dbo.LeagueGolfers WHERE LeagueID = ?"
Recordset1_cmd.Prepared = true
Recordset1_cmd.Parameters.Append Recordset1_cmd.CreateParameter("param1", 5, 1, -1, Recordset1__MMColParam) ' adDouble
Set Recordset1 = Recordset1_cmd.Execute
Recordset1_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<link href="../Template/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.Estilo2 {font-size: 16px}
-->
</style>
<script type="text/javascript">
function list(){
var optionList = document.getElementById('_ctl0_ContentPlaceHolder_TeamGolfers').options;
var data = '';
var len = optionList.length;
for(i=0; i<len; i++){
data += optionList.item(i).value+',';
}
document.getElementById('HiddenList').value = data
}
function MoveOption(objSourceElement, objTargetElement){
if(objSourceElement.value==''){
alert('Please select an option to move');
return false;
}
var aryTempSourceOptions = new Array();
var x = 0;
//looping through source element to find selected options
for (var i = 0; i < objSourceElement.length; i++){
if (objSourceElement.options[i].selected){
//need to move this option to target element
var intTargetLen = objTargetElement.length++;
objTargetElement.options[intTargetLen].text = objSourceElement.options[i].text;
objTargetElement.options[intTargetLen].value = objSourceElement.options[i].value;
}else{
//storing options that stay to recreate select element
var objTempValues = new Object();
objTempValues.text = objSourceElement.options[i].text;
objTempValues.value = objSourceElement.options[i].value;
aryTempSourceOptions[x] = objTempValues;
x++;
}
}
//resetting length of source
objSourceElement.length = aryTempSourceOptions.length;
//looping through temp array to recreate source select element
for (var i = 0; i < aryTempSourceOptions.length; i++){
objSourceElement.options[i].text = aryTempSourceOptions[i].text;
objSourceElement.options[i].value = aryTempSourceOptions[i].value;
objSourceElement.options[i].selected = false;
}
}
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
</script>
</head>
<body>
<div id="content2">
<p> </p>
<p> </p>
<p><br />
</p>
<div id="Div1"><strong><strong></strong><strong></strong><strong></strong><strong></strong></strong>
<div>
<p><span class="Estilo2" id="_ctl0_ContentPlaceHolder_TeamTitle">Quick Team Add</span></p>
<p> </p>
<form id="form1" name="form1" method="POST" action="<%=MM_editAction%>">
<div id="content">
<div id="Div2">
<div>
<table id="_ctl0_ContentPlaceHolder_TeamTable" cellspacing="0" cellpadding="4" width="100%" border="0">
<tbody>
<tr>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="3">Team Name<span id="_ctl0_ContentPlaceHolder_TeamNameValidator" title="Team Name is required." controltovalidate="_ctl0_ContentPlaceHolder_TeamName" errormessage="Team Name is required." initialvalue="" isvalid="true" display="Dynamic"> (Required)</span>
<input id="_ctl0_ContentPlaceHolder_TeamName" tabindex="5" maxlength="20" name="_ctl0:ContentPlaceHolder:TeamName" />
(Maximum of 20 characters)</td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="3">Add/Remove golfers for this team.</td>
</tr>
<tr>
<td width="25%" align="middle" style="width: 12%"><span id="_ctl0_ContentPlaceHolder_OnTheTeamLabel"><strong>On the Team</strong></span> </td>
<td width="16%" align="middle" valign="center" style="width: 7%"></td>
<td align="middle" width="59%"><div align="left"><span id="_ctl0_ContentPlaceHolder_AvailableGolfersLabel"><strong>Available Golfers</strong></span> </div></td>
</tr>
<tr>
<td valign="top" style="width: 12%"><select id="_ctl0_ContentPlaceHolder_TeamGolfers" multiple="multiple" size="10" name="_ctl0:ContentPlaceHolder:TeamGolfers" style="width: 133px">
</select>
</td>
<td valign="center" align="middle" style="width: 7%"><input id="_ctl0_ContentPlaceHolder_AddToTeam" type="submit" value="<-- Add to Team" name="_ctl0:ContentPlaceHolder:AddToTeam" onclick="MoveOption(document.getElementById('_ctl0_ContentPlaceHolder_AvailableGolfers'), document.getElementById('_ctl0_ContentPlaceHolder_TeamGolfers'))"/>
<br />
<br />
<input id="_ctl0_ContentPlaceHolder_RemoveFromTeam" type="submit" value="Remove from Team -->" name="_ctl0:ContentPlaceHolder:RemoveFromTeam" onclick="MoveOption(document.getElementById('_ctl0_ContentPlaceHolder_TeamGolfers'), document.getElementById('_ctl0_ContentPlaceHolder_AvailableGolfers'))"/>
</td>
<td valign="top"><div align="left">
<select id="_ctl0_ContentPlaceHolder_AvailableGolfers" multiple="multiple" size="10" name="_ctl0:ContentPlaceHolder:AvailableGolfers">
<%
While (NOT Recordset1.EOF)
%>
<option value="<%=(Recordset1.Fields.Item("FirstName").Value)%><%=(Recordset1.Fields.Item("LastName").Value)%>"><%=(Recordset1.Fields.Item("FirstName").Value)%>,<%=(Recordset1.Fields.Item("LastName").Value)%></option>
<%
Recordset1.MoveNext()
Wend
If (Recordset1.CursorType > 0) Then
Recordset1.MoveFirst
Else
Recordset1.Requery
End If
%>
</select>
</div></td>
</tr>
<tr>
<td colspan="3"><hr />
</td>
</tr>
<tr>
<td align="right" colspan="3"><div align="left">
<input name="Save" type="submit" id="_ctl0_ContentPlaceHolder_SaveAndClose" tabindex="50" onclick="list();" value="Save and Close" language="javascript" />
<input language="javascript" id="_ctl0_ContentPlaceHolder_Cancel" tabindex="55" type="submit" value="Close" name="Close" />
<input type="hidden" name="hiddenList" id="hiddenList" />
</div></td>
</tr>
</tbody>
</table>
</div>
<strong><strong></strong><strong></strong><strong></strong><strong></strong></strong></div>
</div>
<input type="hidden" name="MM_insert" value="form1" />
</form>
<p> </p>
<p> </p>
<p> </p>
</div>
<div></div>
</div>
</div>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
|
Advertisement
| Hall of Fame |