{include file="$template_path/html/header.html"}
<link href="{$template_data}css/custom/resource.css" rel="stylesheet" />
<link href="{$template_data}css/custom/mobile.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
{include file="$template_path/html/pagenav.html"}
{if $smarty.session.user.power_elite_author  == 'true' || $smarty.session.user.elite_author  == 'true'}
<div class="pagetit pagetabs{if $smarty.session.user.power_elite_author  == 'true'} power-elite-author{/if}{if $smarty.session.user.elite_author  == 'true'} elite-author{/if}">
  <div class="navblock">
    <ul class="titnav clr">
      <li><a href="/" title="主页">主页</a></li>
      <li class="pipe">&gt;</li>
      <li><a href="/{$languageURL}author_dashboard/">我的账号</a></li>
    </ul>
    <h2>上传至{$domain}</h2>
    {include file="$template_path/users/tabsy.html"}
  </div>
</div>
{else}
<div class="pagetit pagetabs">
  <div class="navblock">
    <ul class="titnav clr">
      <li><a href="/" title="主页">主页</a></li>
      <li class="pipe">&gt;</li>
      <li><a href="/{$languageURL}author_dashboard/">我的账号</a></li>
    </ul>
    <h2>上传至{$domain}</h2>
    {include file="$template_path/users/tabsy.html"}
  </div>
</div>
{/if}

<div class="resourcebg">
  <div class="pageblock clr">
    {$errorMessage}
    <div class="leftdetail">
      <h2 class="underlined">选择上传类别：</h2>

        <form id="begin-upload" action="/{$languageURL}upload/form/" method="get">
            <div class="radiogroup clr">
                {if $mainCategories}
                {foreach from=$mainCategories item=c name=foo}
                <input type="radio" name="category"{if $smarty.foreach.foo.first} checked="checked"{/if} id="category_{$c.id}" value="{$c.id}" />
                <label for="category_{$c.id}">{$c.name}</label>
                {/foreach}
                {/if}
            </div>
            <button type="submit" class="btntheme2 btnsize3">下一步</button>
        </form>
    </div>
    <div class="rightdetail">
      <h3 class="tipstit">如何让文件更受欢迎？</h3>
      <div class="tipsdetail">
        <p>请确保做到以下几点:</p>
        <ul class="tiplist">
          <li>浏览 <a href='/{$languageURL}help/upload/'>上传说明</a>。</li>
          <li>给作品添加有用并且准确的标签和描述。</li>
        </ul>
      </div>
      <h3 class="tipstit">上传遇到问题？</h3>
      <div class="tipsdetail">
        <p>有些用户上传遇到问题，我们准备了一个<a href="/{$languageURL}help/upload/">常见问题列表</a>。请查看这个文档，如果还是有问题请联系管理员处理。</p>
      </div>
    </div>
  </div>
</div>
{include file="$template_path/html/footer.html"}
</body>
</html>