<!--<?php
include_once PrintEot('left');
print <<<EOT
-->

<script language="JavaScript" type="text/javascript">
function delnav(){
	var msg=confirm("您確定要刪除該條信息？");
	return msg;
}
</script>
<!--
EOT;
if(!$job || $job=="add" || $job=="edit"){
print <<<EOT
-->
<ul class="nav3">
<li><a href="$basename&job=add" class="two">添加導航</a></li>
<li><a href="$basename&job=viewhead">頭部導航欄</a></li>
<li><a href="$basename&job=viewfoot">底部導航欄</a></li>
	</ul>
	<div class="c"></div>

<form action="$basename" method="post">
<h2>社區導航自定義</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
	  <td width="20%" align="center">欄目名稱</td>
	  <td width="80%"><input name="title" type="text" class="input" id="title" value="$title"></td>
  </tr>
	<tr class="tr3">
	  <td align="center">字體樣式</td>
	  <td><select name="color" id="color">
	    <option value="" selected>標題顏色</option>
$color_select</select>
	    <input name="b" type="checkbox" id="b" value="1" $b_check>
	    粗體
	    <input name="i" type="checkbox" id="i" value="1" $i_check>
	    斜體
	    <input name="u" type="checkbox" id="u" value="1" $u_check>
	    下劃線</td>
  </tr>
 <tr class="tr3">
	  <td align="center">鏈接圖標</td>
	  <td><input name="icon" type="text" class="input" id="link" value="$icon" size="50">
      （如果是外部鏈接，要加http://,最好為35x35的圖片）</td>
  </tr>

	<tr class="tr3">
	  <td align="center">欄目鏈接</td>
	  <td><input name="link" type="text" class="input" id="link" value="$link" size="50">
      （如果是外部鏈接，要加http://）</td>
  </tr>
	<tr class="tr3">
	  <td align="center">文字說明</td>
	  <td><input name="alt" type="text" class="input" id="alt" value="$alt">
      （鼠標懸浮于鏈接文字上時的說明內容）</td>
  </tr>
	<tr class="tr3">
	  <td align="center">目標框架</td>
	  <td><input type="radio" name="target" value="0" $self_check />
	    本窗口
        <input type="radio" name="target" value="1" $blank_check />
        新窗口</td>
    </tr>
	<tr class="tr3">
	  <td align="center">欄目類型</td>
	  <td><input type="radio" name="pos" value="head" $head_check>
	    頭部導航
        <input type="radio" name="pos" value="foot" $foot_check>
        底部導航</td>
  </tr>
	<tr class="tr3">
	  <td align="center">位置排序</td>
      <td><input name="view" type="text" class="input" id="view" value="$view" size="5"></td>
  </tr>
</table>
<center>
<br />
<input name="nid" type="hidden" id="nid" value="$nid" />
<input name="action" type="hidden" id="action" value="$actionvalue">
<input type="submit" class="btn" name="Submit" value="提交">
</center></form>
<br>
<!--
EOT;
}elseif($job=="viewhead" || $job=="viewfoot"){
print <<<EOT
-->
<ul class="nav3">
<li><a href="$basename&job=add">添加導航</a></li>
<!--
EOT;
if($job=="viewhead"){
print <<<EOT
-->
<li><a href="$basename&job=viewhead" class="two">頭部導航欄</a></li>
<li><a href="$basename&job=viewfoot">底部導航欄</a></li>
<!--
EOT;
}if($job=="viewfoot"){
print <<<EOT
-->
<li><a href="$basename&job=viewhead">頭部導航欄</a></li>
<li><a href="$basename&job=viewfoot" class="two">底部導航欄</a></li>
<!--
EOT;
}print <<<EOT
-->
</ul>
<div class="c"></div>
<form action="$basename" method="post">
<h2>社區導航自定義</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3 s3">
	  <td align="center">編號</td>
	  <td align="center">鏈接預覽</td>
	  <td align="center">排序</td>
	  <td class="tal">操作</td>
	</tr>
<!--
EOT;
$i=0;
foreach($nav as $n){
$i++;
print <<<EOT
-->
	<tr class="tr3">
	  <td align="center">$i</td>
	  <td align="center"><a href="$n[link]" target="_blank" title="$n[alt]">$n[title]</a></td>
	  <td align="center"><input name="view[$n[nid]]" type="text" class="input" id="view[$n[nid]]" value="$n[view]" size="5" /></td>
	  <td align="center"><a href="$basename&amp;job=edit&amp;nid=$n[nid]" class="fourm-two" title="編輯"><span class="edit" style="margin-right:1em;"></span></a><a class="fourm-two" title="刪除" href="$basename&amp;action=del&amp;nid=$n[nid]" onclick="return delnav();"><span class="del"></span></a></td>
  </tr>
<!--
EOT;
}print <<<EOT
-->
  </table>
<center>
<br />
<input name="action" type="hidden" id="action" value="editview" /><input type="submit" class="btn" name="Submit2" value="提交" />
</center>
</form>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>-->