<!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=gb2312">
<title>更改频道模型</title>
<script language="javascript">
<!--
function SelectGuide(fname,chid)
{
   var posLeft = window.event.clientY-200;
   var posTop = window.event.clientX-200;
   window.open("mychannel_field_make.php?chid="+chid+"&f="+fname, "popUpImagesWin", "scrollbars=yes,resizable=no,statebar=no,width=600,height=420,left="+posLeft+", top="+posTop);
}
//删除
function DelNote(gourl){
	if(!window.confirm("你确认要删除这条记录么！")){ return false; }
	location.href=gourl;
}
-->
</script>
<link href="css_body.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="bodytitle">
	<div class="bodytitleleft"></div>
	<div class="bodytitletxt">频道管理</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
  <form name="form1" action="mychannel_edit.php" method="post">
    <input type='hidden' name='ID' value='<?php echo $ID?>'>
    <input type='hidden' name='dopost' value='save'>
    <input type='hidden' name='issystem' value='<?php echo $row['issystem']?>'>
    <tr> 
      <td height="20" colspan="2"> <b>&nbsp;<a href="mychannel_main.php"><u>频道模型管理</u></a> 
        &gt; 更改频道模型：</b> </td>
    </tr>
    <?php 
	if($row['issystem'] == 1)
	{
	?>
    <tr> 
      <td colspan="2" bgcolor="#FFFFFF" style="color:red"> 你目前所展开的是系统模型，系统模型一般对发布程序和管理程序已经固化，更改不当将会导致使用这种内容类型的频道可能崩溃。      </td>
    </tr>
    <?php 
	}
	?>
    <tr> 
      <td width="19%" align="center" bgcolor="#FFFFFF">频道ID</td>
      <td width="81%" bgcolor="#FFFFFF"> 
        <?php echo $row['ID']?>      </td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#FFFFFF">名字标识</td>
      <td bgcolor="#FFFFFF"> 
        <?php echo $row['nid']?>      </td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#FFFFFF">频道名称</td>
      <td bgcolor="#FFFFFF"><input name="typename" type="text" id="typename" value="<?php echo $row['typename']?>" size="35"></td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#FFFFFF">附加表</td>
      <td bgcolor="#FFFFFF"><input name="addtable" type="text" id="addtable" value="<?php echo $row['addtable']?>" size="35">
        ( #@__ 是表示数据表前缀)</td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#FFFFFF">是否支持会员投稿：</td>
      <td bgcolor="#FFFFFF"> <input name="issend" type="radio"  value="0"<?php  if($row['issend']==0) echo " checked"; ?>>
        不支持 
        <input type="radio" name="issend"  value="1"<?php  if($row['issend']==1) echo " checked"; ?>>
        支持 </td>
    </tr>
    <tr> 
      <td height="28" align="center" bgcolor="#FFFFFF">投稿会员组：</td>
      <td bgcolor="#FFFFFF">
      	<input name="sendmember" type="radio"  value="0"<?php  if($row['sendmember']==0) echo " checked"; ?>>
        个人会员 
        <input type="radio" name="sendmember"  value="1"<?php  if($row['sendmember']==1) echo " checked"; ?>>
        企业会员
        <input type="radio" name="sendmember"  value="2"<?php  if($row['sendmember']==2) echo " checked"; ?>>
        所有会员
        </td>
    </tr>
    <tr>
      <td align="center" bgcolor="#FFFFFF">会员许可投稿级别：</td>
      <td bgcolor="#FFFFFF"><select name="sendrank" id="sendrank" style="width:120">
          <?php 
              $urank = $cuserLogin->getUserRank();
              $dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank' And rank>=10");
              $dsql->Execute();
              while($row2 = $dsql->GetObject())
              {
              	if($row2->rank==$row['sendrank']) echo "     <option value='".$row2->rank."' selected>".$row2->membername."</option>\r\n";
				else echo "     <option value='".$row2->rank."'>".$row2->membername."</option>\r\n";
              }
          ?>
        </select></td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#FFFFFF">会员稿件默认状态：</td>
      <td bgcolor="#FFFFFF">
	   <input name="arcsta"  type="radio" value="-1"<?php  if($row['arcsta']==-1) echo " checked";?>>
        未审核 
        <input name="arcsta"  type="radio" value="0"<?php  if($row['arcsta']==0) echo " checked";?>>
        已审核（自动生成HTML） 
        <input name="arcsta"  type="radio" value="1"<?php  if($row['arcsta']==1) echo " checked";?>>
        已审核（仅使用动态文档）</td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#FFFFFF">档案发布程序</td>
      <td bgcolor="#FFFFFF"><input name="addcon" type="text" id="addcon" value="<?php echo $row['addcon']?>" size="35"></td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#FFFFFF">档案修改程序</td>
      <td bgcolor="#FFFFFF"><input name="editcon" type="text" id="editcon" value="<?php echo $row['editcon']?>" size="35"></td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#FFFFFF">档案管理程序</td>
      <td bgcolor="#FFFFFF"><input name="mancon" type="text" id="mancon" value="<?php echo $row['mancon']?>" size="35"></td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#FFFFFF">会员发布程序</td>
      <td bgcolor="#FFFFFF"><input name="useraddcon" type="text" id="useraddcon" value="<?php echo $row['useraddcon']?>" size="35"></td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#FFFFFF">会员修改程序</td>
      <td bgcolor="#FFFFFF"><input name="usereditcon" type="text" id="usereditcon" value="<?php echo $row['usereditcon']?>" size="35"></td>
    </tr>
    <tr> 
      <td align="center" bgcolor="#FFFFFF">会员管理程序</td>
      <td bgcolor="#FFFFFF"><input name="usermancon" type="text" id="usermancon" value="<?php echo $row['usermancon']?>" size="35"></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#FFFFFF">列表附加字段：</td>
      <td bgcolor="#FFFFFF"><input name="listadd" type="text" id="listadd" size="50" value="<?php echo $row['listadd']?>">
        <br>
(用&quot;,&quot;分开，可以在列表模板{dede:list}{/dede:list}中用[field:name/]调用)</td>
    </tr>
    <tr>
      <td height="35" align="center" bgcolor="#FFFFFF">附加字段配置：</td>
      <td bgcolor="#FFFFFF"><input name="fset" type="button" id="fset" value="浏览字段信息" onClick="location.href='mychannel_field.php?ID=<?php echo $ID?>'" class="inputbut"/></td>
    </tr>
    
    
    <tr bgcolor="#E8F8FF"> 
      <td height="28" colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="26%">&nbsp;</td>
            <td width="15%"><input type="submit" name="button" id="button" value="确定" class="inputbut"/></td>
            <td width="59%" height="50"><input type="button" name="button2" id="button2" value="返回" class="inputbut" onClick="location='mychannel_main.php';"/></td>
          </tr>
        </table></td>
    </tr>
  </form>
</table>
</body>
</html>