Inbox for [email protected] | Yahoo! - My Yahoo! Options - Sign Out - Help | ||||||||
| |||||||||
|
Hi Graeme These 3 attached files are done although not tested as I didn't want to go puting them up on the server if that would be a problem. Also there are some funny things happening with the server when I tried to login as Admin it told me Page could not be found for the adminhome.asp when I looked on the new server it was there so I thought it may still be pointing to the old one. With the ally pages, you actually didn't send the new database, I'll need to see what the structure of the database table is going to look like before I can do those pages. Let me know when you have put up those edit dept pages and I can test as well as you and see if there are any probs. Talk to you then Chris _____________________________________________________________________________ http://invites.yahoo.com.au/ - Yahoo! Invites - Organise your Mardi Gras party online!
<!-- #include file = "../includes/general.asp" -->
<%if request("submitted") = 1 then
SQL = "insert into Departments values('" & request("Dept") & "','" &
request("Gifname") & "','" & request("DeptDescription") & "','" &
request("ForumURL") & "')"
dbstart_temp
conn.execute(SQL)
Response.Redirect "dept_admin.asp"
end if
%>
<html>
<head>
<title>Mëtälü§ Grävï§: Department Admin</title>
<script language="JavaScript">
<!-- hide from JavaScript-challenged browsers
function openAnyWindow(url, name) {
var l = openAnyWindow.arguments.length;
var w = "";
var h = "";
var features = "";
for (i=2; i<l; i++) {
var param = openAnyWindow.arguments[i];
if ( (parseInt(param) == 0) ||
(isNaN(parseInt(param))) ) {
features += param + ',';
} else {
(w == "") ? w = "width=" + param + "," :
h = "height=" + param;
}
}
features += w + h;
var code = "popupWin = window.open(url, name";
if (l > 2) code += ", '" + features;
code += "')";
eval(code);
}
// done hiding -->
</script>
</head>
<!---*-------- Stylesheet --------*--->
<link REL="StyleSheet" TYPE="text/css" HREF="../style/style.css">
<!---*-------- /Stylesheet--------*--->
<body bgcolor="#000000" background="../images/bg.gif"
bgproperties="fixed" text="#D2D2D2" link="#A1C5DB" alink="#88A1B7" vlink="#d5d1d7">
<form name = add_dept action = add_dept.asp method = post>
<input type = hidden name = submitted value = 1>
<table width="100%">
<tr>
<td>
<font SIZE="2" COLOR="#00ff00" FACE="Federation, Verdana,
Arial"> <b>D E P T A D M I N</b> </font><img
src="../images/blink_end.gif" WIDTH="6" HEIGHT="2">
</td>
<td align="right" valign="top">
<font SIZE="1" FACE="Verdana, Arial">
<a href="../home.html"><b>Site Home</b></a>
</font>
<font SIZE="1" FACE="Verdana, Arial">
<img src="../images/bullet.gif" WIDTH="9" HEIGHT="9">
<a href="adminhome.asp"><b>Admin Home</b></a>
</font>
<font SIZE="1" FACE="Verdana, Arial">
<img src="../images/bullet.gif" WIDTH="9" HEIGHT="9">
<b>Dept Admin </b>
</font>
</td>
</tr>
</table>
<!-- <font face="Verdana" size="2">Instructions for adding and editing
Department Information:
<br><br>
Department Name: This is simply the name of the game you are planning
to play as a new Department.
<br><br>
Gifname: an abbreviation of the name of your dept. The actual gif file
itself should be called "gifname_logo.gif" eg. for "tribes_logo.gif"
the gifname is "tribes"</font>
-->
<br>
<table width="100%">
<tr width="100%" bgcolor="#314248">
<td colspan="2">
<font face="Verdana" color="#A1C5DB" size="2"><b>Add New
Department</b></font>
</td>
</tr>
<tr>
<td width="50%">
<font face="Verdana" size="2">Department Name:</font>
</td>
<td>
<input type="text" name = DeptName>
</td>
</tr>
<tr>
<td>
<font face="Verdana" size="2">Gif Name:</font>
</td>
<td>
<input type="text" name = Gifname>
</td>
</tr>
<tr>
<td width="30%" valign="top">
<font face="Verdana" size="2">Dept Description:</font>
</td>
<td>
<textarea name="DeptDescription" rows="5" cols="25">A brief
description of the Department</textarea>
</td>
</tr>
<tr>
<td>
<font face="Verdana" size="2">Forum URL:</font>
</td>
<td>
<input type="text" name = ForumURL value="http://">
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
<input type="button" value="Add New Department" onclick =
"document.add_dept.submit()">
</td>
</tr>
</table>
</form>
</body>
</html>
<!-- Designed and Created by Graeme Blackwood
([email protected]) -->
<!-- Copyright © 2000 Graeme Blackwood -->
<!-- Please do not reproduce in any way without permission of the
respective copyright owner -->
D E P T A D M I N | Site Home Admin Home Dept Admin |
Please select a Department to Administrate from the list below: |
<!-- #include file = "../includes/general.asp" -->
<%
if request("submitted") = 1 then
SQL = "update Departments set DeptName = '" & request("DeptName") &
"', Gifname = '" & request("Gifname") & "',Desc = '" &
request("DeptDescription") & "',ForumURL = '" & request("ForumURL") & "', Clansign = '"
& request("Overseer") & "' where ID = " & request("ID")
dbstart_temp
conn.execute(SQL)
Response.Redirect "dept_admin.asp"
end if
%>
<html>
<%
SQL = "select * from Departments where ID = " & request("Dept")
dbstart_temp
set RS = conn.execute(SQL)
id = RS("id")
DeptName = RS("DeptName")
Gifname = RS("Gifname")
Description = RS("Desc")
ForumURL = RS("ForumURL")
Callsign = RS("Callsign")
ClanName = RS("ClanName")
ClanLogo = RS("ClanLogo")
ClanURL = RS("ClanURL")
dbclose
%>
<head>
<title>Mëtälü§ Grävï§: <%=DeptName%> Department Admin</title>
<script language="JavaScript">
<!-- hide from JavaScript-challenged browsers
function openAnyWindow(url, name) {
var l = openAnyWindow.arguments.length;
var w = "";
var h = "";
var features = "";
for (i=2; i<l; i++) {
var param = openAnyWindow.arguments[i];
if ( (parseInt(param) == 0) ||
(isNaN(parseInt(param))) ) {
features += param + ',';
} else {
(w == "") ? w = "width=" + param + "," :
h = "height=" + param;
}
}
features += w + h;
var code = "popupWin = window.open(url, name";
if (l > 2) code += ", '" + features;
code += "')";
eval(code);
}
// done hiding -->
</script>
</head>
<!---*-------- Stylesheet --------*--->
<link REL="StyleSheet" TYPE="text/css" HREF="../style/style.css">
<!---*-------- /Stylesheet--------*--->
<body bgcolor="#000000" background="../images/bg.gif"
bgproperties="fixed" text="#D2D2D2" link="#A1C5DB" alink="#88A1B7" vlink="#d5d1d7">
<table width="100%">
<tr>
<td>
<font SIZE="2" COLOR="#00ff00" FACE="Federation, Verdana,
Arial"> <b>D E P T A D M I N</b> </font><img
src="../images/blink_end.gif" WIDTH="6" HEIGHT="2">
</td>
<td align="right" valign="top">
<font SIZE="1" FACE="Verdana, Arial">
<a href="../home.html"><b>Site Home</b></a>
</font>
<font SIZE="1" FACE="Verdana, Arial">
<img src="../images/bullet.gif" WIDTH="9" HEIGHT="9">
<a href="adminhome.asp"><b>Admin Home</b></a>
</font>
<font SIZE="1" FACE="Verdana, Arial">
<img src="../images/bullet.gif" WIDTH="9" HEIGHT="9">
<b>Dept Admin </b>
</font>
</td>
</tr>
</table>
<!-- <font face="Verdana" size="2">Instructions for adding and editing
Department Information:
<br><br>
Department Name: This is simply the name of the game you are planning
to play as a new Department.
<br><br>
Gifname: an abbreviation of the name of your dept. The actual gif file
itself should be called "gifname_logo.gif" eg. for "tribes_logo.gif"
the gifname is "tribes"</font>
-->
<br>
<form name = edit_dept action = edit_dept.asp method = post>
<input type = hidden name = submitted value = 1>
<input type = hidden name = ID value = "<%=ID%>">
<table width="100%">
<tr width="100%" bgcolor="#314248">
<td width="50%" colspan="2">
<font face="Verdana" color="#A1C5DB"
size="2"><b>Department</b></font>
</td>
<td width="50%" colspan="2">
<font face="Verdana" color="#A1C5DB" size="2"><b>Department
Allies</b></font>
</td>
</tr>
<tr>
<td>
<font face="Verdana" size="2">Department Name:</font>
</td>
<td>
<input type="text" name = DeptName value="<%=DeptName%>">
</td>
<td>
</td>
</tr>
<tr>
<td>
<font face="Verdana" size="2">Gif Name:</font>
</td>
<td>
<input type="text" name = Gifname value="<%=Gifname%>">
</td>
<td>
</td>
</tr>
<tr>
<td width="30%">
<font face="Verdana" size="2">Dept Description:</font>
</td>
<td>
<textarea name="DeptDescription" rows="5" cols="25">
<%=Description%></textarea>
</td>
<td align="center" valign="top">
<font face="Verdana" size="2">Click <a
href="javascript:openAnyWindow('allies_edit.asp?DeptID=<%=DeptID%>','remote','scrollbars',
500, 500);">here</a> to view/edit the current Allies of this Dept</font>
</td>
</tr>
<tr>
<td>
<font face="Verdana" size="2">Forum URL:</font>
</td>
<td>
<input type="text" name = ForumURL
value="http://<%=ForumURL%>">
</td>
<td align="center">
<font face="Verdana" size="2">Or</font>
</td>
</tr>
<tr>
<td>
<font face="Verdana" size="2">Dept Overseer:</font>
</td>
<td>
<select name="OverSeer">
<%
SQL = "sp_selectOverseer"
dbstart
set RS = cmd.execute
do while not RS.EOF
Callsign = RS("Callsign")
%>
<option value="<%=Callsign%>"><%=Callsign%></option>
<%
RS.movenext
loop
dbclose
%>
</select>
</td>
<td align="center">
<font face="Verdana" size="2">Add a new Ally <a
href="javascript:openAnyWindow('add_ally.asp','remote', 500, 350);">here</a></font>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="button" value="Edit Department Info" onclick =
"document.edit_dept.submit()">
</td>
</tr>
</table>
</form>
</body>
</html>
<!-- Designed and Created by Graeme Blackwood
([email protected]) -->
<!-- Copyright © 2000 Graeme Blackwood -->
<!-- Please do not reproduce in any way without permission of the
respective copyright owner -->
Privacy
Policy- Terms of Service
Copyright © 1994-2001 Yahoo! Inc. All rights reserved.