<iframe src="" name="groupmodify" style="display:none"></iframe>

<SCRIPT LANGUAGE="JavaScript">
<!--
	function checkform(theform)
	{
		if($('#sitename').val()=='')
		{
			alert('请填写网站名称');
			return false;
		}


		if($('#url').val()=='')
		{
			alert('请填写连接地址');
			return false;
		}
	}
//-->
</SCRIPT>

<form action="index.php?con=<?php echo $GLOBALS['setting']['adminpath'];  ?>&act=othersitemodify"  enctype="multipart/form-data"  method="post"  target="groupmodify" onsubmit="return checkform(this);" >
	<INPUT TYPE="hidden" NAME="commit" value="1">
	<INPUT TYPE="hidden" NAME="updateid" value="<?php echo $othersite['id']; ?>">
	<table  border="0" class="table_form" style="width:100%;">
		<tr>
			<th width="120px">网站名称：</th>
			<td><INPUT TYPE="text" class="input-text" NAME="sitename" id="sitename"   value="<?php echo $othersite['sitename']; ?>"></td>
		</tr>


		<tr>
			<th width="120px">字体颜色：</th>
			<td>
				<SELECT NAME="color">
					<OPTION VALUE="">选择颜色</option>
					<OPTION VALUE="#ff0000"  <?php  if($othersite['color'] == "#ff0000"){ echo "selected";   } ?> style="background:#ff0000;">#ff0000</option>
					<OPTION VALUE="#339900"  <?php  if($othersite['color'] == "#339900"){ echo "selected";   } ?> style="background:#339900;">#339900</option>
					<OPTION VALUE="#3300FF"  <?php  if($othersite['color'] == "#3300FF"){ echo "selected";   } ?> style="background:#3300FF;">#3300FF</option>
					<OPTION VALUE="#990000"  <?php  if($othersite['color'] == "#990000"){ echo "selected";   } ?> style="background:#990000;">#990000</option>
					<OPTION VALUE="#FFFF00"  <?php  if($othersite['color'] == "#FFFF00"){ echo "selected";   } ?> style="background:#FFFF00;">#FFFF00</option>
					<OPTION VALUE="#FF9900"  <?php  if($othersite['color'] == "#FF9900"){ echo "selected";   } ?> style="background:#FF9900;">#FF9900</option>
					<OPTION VALUE="#660000"  <?php  if($othersite['color'] == "#660000"){ echo "selected";   } ?> style="background:#660000;">#660000</option>
				</SELECT>
				<input type="checkbox" name="font" value="bold"  <?php  if($othersite['font']){ echo "checked";  } ?>  >加粗</td>
		</tr>

		<tr>
			<th width="120px">地址连接：</th>
			<td><INPUT TYPE="text" class="input-text" NAME="url" id="url"   value="<?php echo $othersite['url']; ?>"></td>
		</tr>

		<tr>
			<th width="120px">排序：</th>
			<td><INPUT TYPE="text" class="input-text" NAME="sort" id="sort"   value="<?php echo $othersite['sort']; ?>"></td>
		</tr>

		<tr>
			<th width="120px">图片：</th>
			<td>
				<input type="file" name="img">
				<?php
					if($othersite['img'])
					{
					     echo "<img src='".$othersite['img']."' height='100px'>";
					}
				?>
				网址：<input type="text" name="img_url">
			</td>
		</tr>

		<tr>
			<th width="120px">分类：</th>
			<td>
				<select name="cate">
				   <?php   foreach($GLOBALS['sitecate']  AS $key => $val  ){    ?>
						<option value="<?php  echo $key;  ?>" <?php echo $othersite['cate']==$key?'selected':''; ?> ><?php  echo $val['sitecatename'];  ?></option>
				   <?php   } ?>
				</select>
			</td>
		</tr>

		<tr>
			<th width="120px">是否置顶：</th>
			<td> 
				<select name="istop">
					<option value="0"  <?php  if($othersite['istop'] == 0 ){  echo 'selected'; }  ?>  >不显示</option>
					<option value="1"  <?php  if($othersite['istop'] == 1 ){  echo 'selected'; }  ?>  >显示</option>
				</select>
			</td>
		</tr>

		<tr>
			<th width="120px">是否推荐：</th>
			<td> 
				<select name="recommend">
					<option value="0"  <?php  if($othersite['recommend'] == 0 ){  echo 'selected'; }  ?>  >否</option>
					<option value="1"  <?php  if($othersite['recommend'] == 1 ){  echo 'selected'; }  ?>  >是</option>
				</select>
			</td>
		</tr>

		<tr>
			<th width="120px"></th>  
			<td><INPUT TYPE="submit" class="button" value="提交"></td>
		</tr>
	</table>
</FORM>

