<form action="clanwars.php?action=saveedit" method="post" name="post">
  <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="$border">
    <tr> 
      <td class="title" align="center" bgcolor="$bghead">edit clanwar</td>
    </tr>
    <tr> 
      <td bgcolor="$pagebg"></td>
    </tr>
    <tr> 
      <td bgcolor="$bg1"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" class="formtable">
          <tr> 
            <td>Date:</td>
            <td>
							<select name="day">$day</select>
							<select name="month">$month</select>
							<select name="year">$year</select>
						</td>
            <td>Squad / Game:</td>
            <td>
							<select name="squad">$squads</select>
							<select name="game">$games</select>
						</td>
          </tr>
          <tr> 
            <td colspan="4"><hr noshade size="1" color="$border"></td>
          </tr>
          <tr> 
            <td>League:</td>
            <td><input name="league" type="text" value="$league" size="35" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
            <td>Homepage:</td>
            <td><input name="leaguehp" type="text" value="$leaguehp" size="35" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          <tr>
            <td>League Match Link:</td>
            <td><input name="linkpage" type="text" value="$linkpage" size="35" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td colspan="4"><hr noshade size="1" color="$border"></td>
          </tr>
          <tr> 
            <td>Opponent:</td>
            <td><input name="opponent" type="text" value="$opponent" size="35" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"> 
            </td>
            <td>Clantag:</td>
            <td><input name="opptag" type="text" value="$opptag" size="8" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td>Homepage</td>
            <td><input name="opphp" type="text" value="$opphp" size="35" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
            <td>Country:</td>
            <td><select name="oppcountry">$countries 
              </select></td>
          </tr>
          <tr> 
            <td colspan="4"><hr noshade size="1" color="$border"></td>
          </tr>
          <tr> 
            <td>Server:</td>
            <td><input name="server" type="text" value="$server" size="35" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
            <td>HLTV-Server:</td>
            <td><input name="hltv" value="$hltv" type="text" size="35" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td colspan="5"><hr noshade size="1" color="$border"></td>
          </tr>
          <tr> 
            <td valign="top">Home-Team:</td>
            <td valign="top">
							<select name="hometeam[]" size="8" multiple>$hometeam</select></td>
            <td valign="top">Opponent-Team:</td>
            <td valign="top">
							<input name="oppteam" type="text" value="$oppteam" size="35" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'">
						</td>
          </tr>
          <tr> 
            <td colspan="5"><hr noshade size="1" color="$border"></td>
          </tr>
          <tr> 
            <td valign="top">Report:</td>
            <td colspan="4" valign="top"><textarea name="report" cols="110" rows="11" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'">$report</textarea></td>
          </tr>
          <tr> 
            <td colspan="5"><hr noshade size="1" color="$border"></td>
          </tr>
					<tr>
						<td colspan="5">
							<table width="100%" id="maplist">
								<tr>
									<td width="10%">Map ID:</td>
									<td width="25%">Map:</td>
									<td width="20%">Score Home:</td>
									<td width="20%">Score Opponent:</td>
									<td width="25%">
										<a href="javascript:;" onClick="addRow('edit');" title="add map"><img src="images/icons/expand.gif" border="0"></a>
										<a href="javascript:;" onClick="removeRow();" title="remove map"><img src="images/icons/collapse.gif" border="0">
									</a>
								</tr>
								$maps
							</table>
						</td>
					</tr>
          <tr> 
            <td colspan="4"><hr noshade size="1" color="$border"></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td align="right" valign="bottom">
							<input name="cwID" type="hidden" value="$cwID">
							<select name="comments">$comments</select> 
              <input name="post" type="submit" value="update clanwar"> 
            </td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>

