<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/modules/tadtools/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/modules/tadtools/bootstrap/css/bootstrap-responsive.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/modules/tadtools/css/xoops_adm.css" />


<script type="text/javascript" src="<{$xoops_url}>/modules/tadtools/My97DatePicker/WdatePicker.js"></script>
<form action="add.php" method="post" id="myForm" name="myForm" enctype="multipart/form-data">

<link href="../css/bootstrap-switch.css" rel="stylesheet">
<script src="../bootstrap-switch.js"></script>


<{if (!$assn)}>
  <div class="row-fluid">
    <div class="span2">選擇班級(可多選)</div>
    <div class="span8"><{html_options  multiple="multiple"   size="8" name="class_id[]" options=$class_list_c  }></div>
  </div>
<{else}>
  <div class="row-fluid">
    <div class="span2">班級</div>
    <div class="span8"><{$class_id}></div>

  </div>
<{/if}>

  <div class="row-fluid">
    <div class="span2"><{$smarty.const._MA_TADASSIGN_TITLE}></div>
    <div class="span8"><input type="text" name="title" value="<{$title}>" class="span12"  placeholder="<{$smarty.const._MA_TADASSIGN_TITLE}>"></div>

  </div>

  <div class="row-fluid">
    <div class="span2"><{$smarty.const._MA_TADASSIGN_PASSWD}></div>
    <div class="span3"><input type="text" name="passwd" class="span12" value="<{$passwd}>" placeholder="<{$smarty.const._MA_TADASSIGN_PASSWD}>"></div>
    <div class="span5"><{$smarty.const._MA_TADASSIGN_PASSWD_DESC}></div>

  </div>

  <div class="row-fluid">
    <div class="span2">限制上傳的副檔名</div>
    <div class="span3"><input type="text" name="ext_file" class="span12" value="<{$ext_file}>" placeholder="例： jpg,jpeg,png "></div>
    <div class="span5">(以逗號分隔多種副檔案，忽略大小寫，空白表示不限制。)</div>
  </div>


  <div class="row-fluid">
    <div class="span2"><{$smarty.const._MA_TADASSIGN_NOTE}></div>
    <div class="span8"><textarea name="note"  class="span12" rows=4 placeholder="<{$smarty.const._MA_TADASSIGN_NOTE}>"><{$note}></textarea></div>
  </div>

  <div class="row-fluid">
    <div class="span2">開放上傳</div>
    <div class="span8">
        <div class="span1">
        <input type="checkbox" name="upload_mode"  class="upload" value=1  <{if $upload_mode=='1'}>checked<{/if}>  id="upload_mode">
        </div>
    </div>
  </div>


  <div class="row-fluid">
    <div class="span2"><{$smarty.const._MA_TADASSIGN_SHOW}></div>
    <div class="span8">
       <div class="span1">
        <input type="checkbox" name="open_show"  class="upload"   value=1  <{if $open_show=='1'}>checked<{/if}>  id="open_show">
        </div>
    </div>
  </div>

  <div class="row-fluid">
    <div class="span2">評分時，使用雲端觀看。</div>
    <div class="span8">
       <div class="span1">
        <input type="checkbox" name="gview_mode"  class="upload"   value=1  <{if $gview_mode=='1'}>checked<{/if}>  id="gview_mode">
        </div>
    </div>
  </div>

  <div style="text-align:center;">
    <input type="hidden" name="op" value="<{$op}>">
    <input type="hidden" name="assn" value="<{$assn}>">
    <button type="submit" class="btn btn-primary"><{$smarty.const._TAD_SAVE}></button>
  </div>
</form>
<script type="text/javascript">
    $("[name='upload_mode']").bootstrapSwitch();
    $("[name='open_show']").bootstrapSwitch();
    $("[name='gview_mode']").bootstrapSwitch();
 </script>
