%
' dont check security if its a new client (coming from 'add_new_client.asp')
if request.querystring("client_access")="new_client_access" then
else
%>
<%
end if
%>
<<% =title_text %> - Edit - Business Meeting Point
<%
conn = strAdminProvider
' wenn NEU (von add_turnierberichte.asp kommend)
if request.querystring("client_access")="new_client_access" then
strSqlStmt = "select * FROM business_meeting_point WHERE id IN (select MAX(id) FROM business_meeting_point)"
' wurde in 'list_turnierberichte' ist um eins erhoht, wenn von 'list_turnierberichte' als xnew='Neuer Bericht' kommt
Set rs=Server.CreateObject("ADODB.Recordset")
'response.write strSqlStmt
rs.open strSqlStmt, conn
id=rs("id")
xpassword=request.querystring("xpassword")
xusername=request.querystring("xusername")
session("client")=request.querystring("xpassword")
else
session("xnew")=""
id=request.querystring("id")
strSqlStmt = "select * FROM business_meeting_point WHERE id=" & id
Set rs=Server.CreateObject("ADODB.Recordset")
'response.write strSqlStmt
rs.open strSqlStmt, conn
xpassword=rs("xpassword")
xusername=rs("username")
if rs.eof then
response.write no_cients_in_db
response.end
end if
end if
%>
<%
' graphic 'update' when it's a new client, otherwise 'register'
if request.querystring("xnew")="new" OR request.querystring("xnew")="" AND request.querystring("id")="" then
update_button="register_" & session("lang") & ".gif"
else
update_button="update_" & session("lang") & ".gif"
end if
%>