<!doctype html>
<html>
<?php echo $this->fetch('head.html'); ?>
<style>
	.video{
		max-width: 100%;
	}
</style>
<body>

<img src="<?php echo images_site($this->_var['vote']['imgurl']); ?>" class="wmax"> 
<form class="vjform" id="joinForm">
	<input type="hidden" name="id" value="<?php echo $this->_var['vote']['id']; ?>">
    <input type="hidden" name="shopappid" value="<?php echo $this->_var['shop_app']['shopappid']; ?>">
	<div class="f16 pd-10">填写报名信息</div>
     
    	<div class="input-flex">
        	<div class="input-flex-label">作品名称</div>
            <input type="text" name="title" class="input-flex-text" value="<?php echo $this->_var['data']['title']; ?>"> 
        </div>
    	 
       <div class="input-flex">
       	<div class="input-flex-label">上传视频</div>
       	<div class="videoBox flex-1">
       		<?php if (! $this->_var['data']['url']): ?>
       		<div class="upimg-btn" id="js-upbtn">
       			<div class="upimg-btn-icon">
       
       			</div>
       		</div>
       
       		<span id="progress"></span>
       		<div style="padding: 10px; color: #f60;">视频小于100M，只支持mp4格式</div>
       		<div id="mp4box">
       		</div>
       		<input type="hidden" name="url" id="url" value="<?php echo $this->_var['data']['url']; ?>" />
       		<?php else: ?>
       		<div id="mp4box">
       
       			<video controls="" src="<?php echo images_site($this->_var['data']['url']); ?>" class="video"></video>
       
       		</div>
       		<?php endif; ?>
       		<input type="hidden" name="imgurl" id="imgurl" value="<?php echo $this->_var['data']['imgurl']; ?>" />
       	</div>
       </div>
         
        <div class="input-flex">
        	<div class="input-flex-label">联系人</div>
            <input type="text" name="nickname" class="input-flex-text" value="<?php echo $this->_var['data']['nickname']; ?>"> 
        </div>
        
        <div class="input-flex">
        	<div class="input-flex-label">联系手机</div>
            <td> <input type="text" class="input-flex-text" name="telephone" value="<?php echo $this->_var['data']['telephone']; ?>"></td>
        </div>
        <div class="input-flex">
        	<div class="input-flex-label">地址</div>
            <td> <input type="text" class="input-flex-text" name="address" value="<?php echo $this->_var['data']['address']; ?>"></td>
        </div>
       <div id="join-submit" class="btn-row-submit">提交</div>
	   <div style="display: none;">
	   	<input type="file" id="up-video" name="upfile" />
	   </div>
</form>

<div class="row-box">
	<div class="row-box-hd">参与规则</div>
    <div class="pd-10"><?php echo $this->_var['vote']['ruledesc']; ?></div>
</div>
 
 <?php $this->assign('ftnav','join'); ?>
<?php echo $this->fetch('footer.html'); ?>
 <script src="/plugin/lrz/lrz.bundle.js"></script>
 <script src="<?php echo $this->_var['skins']; ?>vote/join.js"></script>
 
</body>
</html>
