<?php /* Smarty version Smarty-3.0.6, created on 2012-01-09 10:16:10
         compiled from "C:\wamp\www\yun3/tpl\add_video.html" */ ?>
<?php /*%%SmartyHeaderCode:118094f0a4dea2ca610-98270987%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '601db280b8688354e2b433d3a4239af9531908b1' => 
    array (
      0 => 'C:\\wamp\\www\\yun3/tpl\\add_video.html',
      1 => 1326075345,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '118094f0a4dea2ca610-98270987',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_date_format')) include 'C:\wamp\www\yun3\init\Drivers\Smarty\plugins\modifier.date_format.php';
?><?php $_template = new Smarty_Internal_Template("require_header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
$_template->assign('addcss','yes');$_template->assign('editor','yes');$_template->assign('titlepre',"分享视频"); echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<div class="contentTop"></div>
<div class="content">
<form action="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'add','a'=>'post'),$_smarty_tpl);?>
" id="form1" method="post">
  <div id="hearder_bg">

    <div id="main">
  
      <h2 id="title">发布视频</h2>
      <div id="pb-post-area">
      
     
      
      
     <div id="musicFrom">
    	  <div id="musicNotice">请输入来自土豆/优酷/等网站的播放页面地址,注意不是FLASH地址</div>
          <input type="text"  id="musicurl" class="musicurl"   value="http://" onfocus="musicMouse(this)" onblur="musicMosout(this,'u')" >
          <input type="button" id="urlParseLoading" value="保存" onclick="saveMusicList($('#musicurl').val())"  style="padding:2px 15px">
    </div>
      
      
   
    
     <div id="localMusic"></div>
     <div id="musicList">
         <?php  $_smarty_tpl->tpl_vars['d'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('body')->value['attr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['d']->key => $_smarty_tpl->tpl_vars['d']->value){
?>
          <div class="list" img="<?php echo $_smarty_tpl->tpl_vars['d']->value['img'];?>
" pid="<?php echo $_smarty_tpl->tpl_vars['d']->value['pid'];?>
" type="<?php echo $_smarty_tpl->tpl_vars['d']->value['type'];?>
">
          <div class="uri">已添加：<?php echo $_smarty_tpl->tpl_vars['d']->value['url'];?>
</div>
          <input type="text" value="<?php echo $_smarty_tpl->tpl_vars['d']->value['desc'];?>
" name="musicList[<?php echo $_smarty_tpl->tpl_vars['d']->value['pid'];?>
]"><a onclick="musicDItem(this)" href="javascript:void(0)">移除</a>
 
          </div>
         <?php }} ?>

            <div class="clear"></div>
         </div>
     

           
    
        
        <div>
          <h3 class="title"> 标题 <span>(选填)</span> </h3>
 
          <input type="text" name="pb-text-title" id="pb-text-title" class="input" tabindex="1" value="<?php echo $_smarty_tpl->getVariable('blog')->value['title'];?>
">
        </div>
        
        
         
    
        
        <div>
          <h3 class="title">内容 <span>(选填)</span></h3>
          <span id="uploadpic"> 
          <span id="upload_bar"> 
           <div class="uploadBtn" id="upload_img"><span>上传图片</span><input type="file" size="1" name="filedata" ext="jpg,jpeg,gif,png" /></div> 
          </span>
        	  <span id="uploading" style="display:none">正在上传...</span> </span>
          <textarea name="textarea" id="textarea" style="width:100%; height:200px"><?php echo $_smarty_tpl->getVariable('body')->value['content'];?>
</textarea>
          <input type="hidden" name="urlmusic" id="urlmusic"  />
           </div>



     
          <?php if (is_array($_smarty_tpl->getVariable('attach')->value)){?>
            <div id="media_lib">
          <h3 class="title">我的媒体库 <span>(您可以选用的媒体)</span> </h3>
          <table border="0" width="100%" align="center" cellpadding="0" cellspacing="0" class="globox">
              <tr>
                <th width="30">ID</th>
                <th>名称</th>
                <th width="60">大小</th>
                <th width="40">类型</th>
                <th width="140">上传时间</th>
                <th width="100">操作</th>
              </tr>
                <?php  $_smarty_tpl->tpl_vars['d'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('attach')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['d']->key => $_smarty_tpl->tpl_vars['d']->value){
?>
              <tr class="trg" id="attach_<?php echo $_smarty_tpl->tpl_vars['d']->value['id'];?>
">
                <td align="center"><?php echo $_smarty_tpl->tpl_vars['d']->value['id'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['d']->value['blogdesc'];?>
 </td>
                <td align="center"><?php echo formatBytes(array('size'=>$_smarty_tpl->tpl_vars['d']->value['filesize']),$_smarty_tpl);?>
</td>
                <td align="center"><?php echo $_smarty_tpl->tpl_vars['d']->value['mime'];?>
</td>
                <td align="center"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['d']->value['time'],"%Y/%m/%d %H:%M");?>
</td>
                <td align="center"><a href="javascript:void(0)" onclick="<?php echo attach_insert(array('file'=>$_smarty_tpl->tpl_vars['d']->value['path'],'name'=>$_smarty_tpl->tpl_vars['d']->value['blogdesc'],'id'=>$_smarty_tpl->tpl_vars['d']->value['id']),$_smarty_tpl);?>
">选用</a> /
                 <a href="javascript:void(0)" onclick="delAttach('<?php echo $_smarty_tpl->tpl_vars['d']->value['id'];?>
')" class="mdiea_del">删除</a></td>
              </tr>
                <?php }} ?>
            </table>
           </div>
           <?php }?>


     
      
 
      </div>
      <div id="pb-action-holder"> 
          <a id="submit_video" class="blue-button">发布</a> 
          <a id="preview" class="gray-button">预览</a> 
          <a id="cancel" class="gray-button">取消</a> 
       <span style="display:none;" id="pb-submiting-tip">正在保存...</span>
      </div>
    </div>
    
 
    <div id="aside">
      <div class="aside-item" id="post-privacy-holder">
        <select id="post-privacy-select" name="post-privacy-select">
        <option value="1">所有人可见</option>
         <option value="0">保存为草稿</option>
        </select>
      </div>
      
      <hr class="separator">

      <div class="aside-item" id="post-tag-holder">
        <div id="post-tag">
          <ul class="clearfix" id="post-tag-list"><!--动态插入标签-->
          <?php  $_smarty_tpl->tpl_vars['d'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('myTag')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['d']->key => $_smarty_tpl->tpl_vars['d']->value){
?>
          <li tag="<?php echo $_smarty_tpl->tpl_vars['d']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['d']->value;?>
<a href="javascript:void(0)" onclick="remTags(this)">x</a></li>
        <?php }} ?>
          </ul>
          <div id="post-tag-input-holder">
            <input type="text" id="post-tag-input" class="pb-tag-tip" value="">
          </div>
        </div>
      </div>
      
      <hr class="separator">
      
      <div class="aside-item" id="recommand-tag-holder">
        <h4>常用标签</h4>
        <ul class="clearfix" id="recommand-tag-list">
        <?php  $_smarty_tpl->tpl_vars['d'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('myTagUsually')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['d']->key => $_smarty_tpl->tpl_vars['d']->value){
?>
          <li tag="<?php echo $_smarty_tpl->tpl_vars['d']->value['title'];?>
"><a href="javascript:void(0)" onclick="tuiTag('<?php echo $_smarty_tpl->tpl_vars['d']->value['title'];?>
',this)"><?php echo $_smarty_tpl->tpl_vars['d']->value['title'];?>
</a></li>
        <?php }} ?>
        </ul>
        <div class="clear"></div>
      </div>
      <hr class="separator">
      
      <div class="aside-item pb-side-opt" id="top-post-holder">
        <label> 
        
         <?php if ($_smarty_tpl->getVariable('blog')->value['top']==1){?>
        <input type="checkbox" id="pb-top-post" name="pb-top-post" value="1" checked="checked">
        <?php }else{ ?>
           <input type="checkbox" id="pb-top-post" name="pb-top-post" value="1">
        <?php }?>
        文章置顶
        </label>
        <p class="top-post-tip">多个置顶将按照时间排序</p>
      </div>
      
      <div class="aside-item pb-side-opt" id="top-post-holder">
        <label>
        <?php if ($_smarty_tpl->getVariable('blog')->value['noreply']==1){?>
        <input type="checkbox" id="pb-nowrite-post" name="pb-nowrite-post" value="1" checked="checked">禁止评论
        <?php }else{ ?>
           <input type="checkbox" id="pb-nowrite-post" name="pb-nowrite-post" value="1">禁止评论
        <?php }?>
        </label>
        <p class="top-post-tip">本条内容不允许评论</p>
      </div>
       <hr class="separator">
      <!--
        <div class="aside-item pb-side-opt" id="top-post-holder">
         <label> <input name="pb-sync-to-qqweibo" type="checkbox" id="pb-sync-to-qqweibo" value="1">转发腾讯微薄</label>
      </div>
      
        <div class="aside-item pb-side-opt" id="top-post-holder">
         <label><input name="pb-sync-to-weibo" type="checkbox" id="pb-sync-to-weibo" value="1">转发新浪微薄</label>
      </div>
      -->
      <input type="hidden" name="blog-types" id="blog-types" value="4" />
      <input type="hidden" name="blog-open" id="blog-open" value="1" />
      <input type="hidden" name="blog-tags" id="blog-tags" value="" />
      <input type="hidden" name="id" value="<?php echo $_smarty_tpl->getVariable('blog')->value['bid'];?>
" />
   
      
    </div>
    <div class="clear"></div>
  </div>
</form>
</div>

<?php $_template = new Smarty_Internal_Template("require_footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
