<?php
if (!defined('USING_SYSTEM')) exit;
?>
<!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=utf-8" />
<link type="text/css" rel="stylesheet" href="admin/images/page.css?v=<?php echo FA_VERSION.'-'.FA_FIXPACK ?>" />
<script type="text/javascript" src="skins/common/images/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="admin/images/page.js?v=<?php echo FA_VERSION.'-'.FA_FIXPACK ?>"></script>
<title>Filiant Control Panel</title>
</head>
<body>
<div class="bigTips"<?php echo ($tips=='')?'':' style="display:block;"' ?>><?php echo $tips ?></div>
<form id="mainForm" action="" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th colspan="3">文件预览</th>
  </tr>
  <tr>
    <td class="title" width="150">文本类</td>
    <td width="400">
      <input name="preview[txt]" id="txt" type="checkbox" value="txt"<?php echo in_array('txt', $_APP['preview'])?' checked="checked"':'' ?> /><label for="txt">TXT</label>
    </td>
    <td class="tips">可直接在线查看 TXT 文档</td>
  </tr>
  <tr>
    <td class="title">图像类</td>
    <td>
      <input name="preview[jpg]" id="jpg" type="checkbox" value="jpg"<?php echo in_array('jpg', $_APP['preview'])?' checked="checked"':'' ?> /><label for="jpg">JPG</label> <input name="preview[gif]" id="gif" type="checkbox" value="gif"<?php echo in_array('gif', $_APP['preview'])?' checked="checked"':'' ?> /><label for="gif">GIF</label> <input name="preview[jpeg]" id="jpeg" type="checkbox" value="jpeg"<?php echo in_array('jpeg', $_APP['preview'])?' checked="checked"':'' ?> /><label for="jpeg">JPEG</label> <input name="preview[png]" id="png" type="checkbox" value="png"<?php echo in_array('png', $_APP['preview'])?' checked="checked"':'' ?> /><label for="png">PNG</label>
    </td>
    <td class="tips">可直接在线预览图像</td>
  </tr>
  <tr>
    <td class="title" width="150">音频类</td>
    <td width="400">
      <input name="preview[mp3]" id="mp3" type="checkbox" value="mp3"<?php echo in_array('mp3', $_APP['preview'])?' checked="checked"':'' ?> /><label for="mp3">MP3</label>
    </td>
    <td class="tips">可直接在线聆听音乐</td>
  </tr>
  <tr>
    <td class="title">视频类</td>
    <td>
      <input name="preview[mp4]" id="mp4" type="checkbox" value="mp4"<?php echo in_array('mp4', $_APP['preview'])?' checked="checked"':'' ?> /><label for="mp4">MP4</label> <input name="preview[flv]" id="flv" type="checkbox" value="flv"<?php echo in_array('flv', $_APP['preview'])?' checked="checked"':'' ?> /><label for="flv">FLV</label> <input name="preview[f4v]" id="f4v" type="checkbox" value="f4v"<?php echo in_array('f4v', $_APP['preview'])?' checked="checked"':'' ?> /><label for="f4v">F4V</label>
    </td>
    <td class="tips">可直接在线观看视频</td>
  </tr>
  <tr style="display:none;">
    <td class="title">办公类</td>
    <td>
      <input name="preview[doc]" id="doc" type="checkbox" value="doc"<?php echo in_array('doc', $_APP['preview'])?' checked="checked"':'' ?> /><label for="doc">DOC</label> <input name="preview[xls]" id="xls" type="checkbox" value="xls"<?php echo in_array('xls', $_APP['preview'])?' checked="checked"':'' ?> /><label for="xls">XLS</label> <input name="preview[ppt]" id="ppt" type="checkbox" value="ppt"<?php echo in_array('ppt', $_APP['preview'])?' checked="checked"':'' ?> /><label for="ppt">PPT</label>
    </td>
    <td class="tips">可直接在线查看 Office 文档</td>
  </tr>
</table>
<div class="controls">
  <a id="okBtn" class="button" href="javascript:void(0);" onclick="$('#mainForm').trigger('submit');return false;">保存<i></i></a><input name="do" type="hidden" value="1" />
</div>
</form>
</body>
</html>