 <!--
<?php
print <<<EOT
--> 
<table width="99%" border="0" cellspacing="1" cellpadding="3" >
  <tr>
    <td align="center" bgcolor="#eeeeee">請選擇一個分類:{$sort_fid}</td>
  </tr>
</table>
<table width='100%' cellspacing='1' cellpadding='3'  class="tablewidth">
  <form name="form_work" method="post" action="?lfj=$lfj&action=$job" onsubmit="return postdo();">
    <tr bgcolor='#FFFFFF' class="head" align="center"> 
      <td width="15%">題目類型 </td>
      <td width="56%">題目名稱</td>
      <td width="14%">所屬分類</td>
      <td width="8%">修改</td>
      <td width="7%">刪除</td>
    </tr>
    <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
    <tr bgcolor='#FFFFFF' align="center"> 
      <td width="15%">{$paperType[$rs[type]]}</td>
      <td width="56%" align="left"> 
        <input type="checkbox" name="listdb[]" value="$rs[id]">
        $rs[question]</td>
      <td width="14%">$rs[fname]</td>
      <td width="8%"><a href="?lfj=$lfj&job=edit&id=$rs[id]"><img alt='點擊修改' src='../member/images/button_edit.png' border=0></a></td>
      <td width="7%"><a href="?lfj=$lfj&action=delete&id=$rs[id]"><img alt='點擊刪除' src='../member/images/del_icon2.gif' border=0></a></td>
    </tr>
    <!--
EOT;
}
print <<<EOT
-->
    <tr bgcolor='#FFFFFF' align="center"> 
      <td colspan="5"> <a href="javascript:" onClick="CheckAll('all')">全選</a>/<a href="javascript:" onClick='CheckAll()'>反選</a> 
        <a href="?action=delete&id=$rs[id]"></a> 
        <input type="radio" name="ctype" value="del">
        刪除 
        <input type="radio" name="ctype" value="put" checked id="ctype_put">
        錄入到問卷{$select_exam} 
        <input type="submit" name="Submit" value="提交">
        <input type="hidden" name="sortid" value="$sortid">
      </td>
    </tr>
  </form>
</table>
<table width="99%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td align="center">$showpage</td>
  </tr>
  <tr>
    <td align="center">&nbsp;</td>
  </tr>
</table>
<table width='100%' cellspacing='1' cellpadding='3'  class="tablewidth">
     <tr bgcolor='#FFFFFF' class="head" > 
    <td>幫助說明:</td>
  </tr>
  <tr>
    <td>1.創建問卷或試卷表單的方法,第一步:添加題目、創建表單。第二步:把題目錄入到問卷表單。<br>
      2.題庫的目的是為了實現題目共享給多個表單，多次反復使用。</td>
  </tr>
</table>
<script language="JavaScript">
<!--
function MM_jumpMenu(selObj){
  if (selObj.options[selObj.selectedIndex].value!=''){
		window.location.href="?job=list&sortid="+selObj.options[selObj.selectedIndex].value;
  }
}
function postdo(){
	if(document.form_work.examid.value==''&&get_obj('ctype_put').checked==true){
		alert("不能為空,請選擇一張試卷");
		document.form_work.examid.focus();
		return false;
	}
}
function CheckAll(va){
	form=document.form_work
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if(va=='all'){
			e.checked = true;
		}else{
			e.checked == true ? e.checked = false : e.checked = true;
		}
	}
}
//-->
</script>
<!--
EOT;
?>
-->